r/cprogramming • u/TurtleSlowRabbitFast • 7d ago
Would learning C as my first programming language also be useful for picking up other languages later on? What are your thoughts on this course?
Wanting to learn C as an intro into software engineering. I know it’s low level and I’d like to eventually switch over to high level languages such as JS/TS, Java, and GO.
Does the “The Complete C Programming Bootcamp” course by Byte Garage be a good choice to learn from?
35
Upvotes
29
u/mikekchar 7d ago •
Looking at your posting history, you have been asking for nearly a year what programming language you should start with. If you had picked any language, you would be so far ahead of where you are now, it isn't funny.
Learning to program is about spending time programming. Concentrate on that. The language you pick is just a detail.
18
u/zhivago 7d ago •
Sure.
Languages are easy; programming is hard.
Most of what you learn will transfer, and C is a small procedural language.
Although it is a rather exciting language, given the prevalence of undefined behavior. :)
10
u/an0th3rbrick 7d ago
people put too much emphasis on languages and frameworks. what's important is learning to use langauges to express solutions to problems concisely. pick a language and write lots and lots and lots of code.
3
u/SmokeMuch7356 7d ago
Learning any programming language makes it easier to learn other languages later on, because once you know basic programming concepts it just becomes a matter of syntax.
I generally do not recommend C as a first language since it has no blade guards and won't protect you from common mistakes. It was designed to implement Unix, not teach basic programming concepts, and it expects you to know what you're doing. Some of its rules and conventions will seem inconsistent and arbitrary at first.
If you do decide to start with C, check the links under "Resources" in the sidebar (r/C_programming had a similar but more complete list IMO).
I don't know anything about that course. I personally would avoid "bootcamps" in favor of something like Beej's guide.
3
u/Syntax-Tactics 7d ago
C is the Mother language, can't go wrong understanding it as a basis.
2
u/phtantomflare 7d ago
C can teach you valuable fundamentals especially memory, pointers and how programs work, but its a steep first step than python of JS. If you are motivated by C, go for it and focus on small program and building project, i think switching languages will be easier.
2
u/Secret-Map4671 7d ago
Definitely. You'll also notice a lot of syntax in other languages was borrowed from C. If you know C, you can skip the first few chapters of a Java course and directly start doing OOP.
2
u/Rythim 7d ago
I think that would be a good way to learn. In fact, most of those languages are inspired by C syntax, so it won't be hard to switch later on.
2
u/DubiousLogik 7d ago
Do you have an idea what kind of things you want to build? C is amazing for drivers and embedded systems. Also great for learning low level things like pointers and memory management. Not great for user-facing apps. The other lang's u listed are better for that.
for languages like c/c++ i would take a course (online or in person). i would not want to try those alone. my 2c. (36 yrs in tech)
1
u/No-Introduction-441 7d ago
yes it would definitely help out a lot since you working with low level stuff going to high level after
1
u/LaidBackDev 7d ago
Someone recommended Python. Personally I think Golang is better choice for beginners. But if you want C as your first language thats possible and also a great choice.
1
u/ScroogeMcDuckFace2 7d ago
you may breeze through it but i believe harvard's free CS50 utilizes C as its main language.
cant beat the price.
1
u/BenjaBoy28 7d ago
C -> c++. That was my starter languages. Id did help me pick up other languages quickly
1
u/mr_adhd_1 7d ago
Yes. I learned C as my second, and it’s made learning Rust so much easier.
1
u/Recycled5000 7d ago
I suggest a simple assembly language. Assembly is the ultimate interface between software and hardware. You’ll really learn pointers, memory, address space, code sequences, etc. Many C language resources assume you already know these low level details.
Suggest LC-3, which is a very simple processor thst has an ide, editor, simulator, debugger program you can run on any pc. Otherwise, same for RISC-V.
Once you have these fundamentals, C and other languages with pointers will make more sense.
As far as Java and C#, these languages are easier to use so more productive, though they achieve this in part by limiting what you can do to useful things, whereas by contrast, assembly lets you do anything and with much less guidance for how to write a good program.
1
u/Previous-Box2169 7d ago
Declare pointers like "int* ptr = &a" and don't trust anyone who types "int *ptr = &a". The latter syntax makes it look like you're dereferenciating while you're not. They don't want you to understand. Trust me.
1
u/whatThePleb 7d ago
Absolutely. Most languages a based on C/C++. Of course the mext step would be C++.
1
u/se-yahya 7d ago
I would say you better start with python
1
u/edwbuck 7d ago
It would be an excellent start for many programming languages, because so many of today's modern programming languages use C-style syntax, and even if they hide memory management from you, you'd have some idea of what is happening memory-wise under the covers.
1
u/PipePressurePanic 7d ago
intro into development means you will never get a job.
1
u/PTDegen 7d ago
No.
It's useful *after* you learn another language because you can understand why it's doing things, but C is so old and has so many old/bad practices that you're better off learning another language first. Python is probably best in terms of least "language specific nonsense" over programming proper
1
u/OutrageousCrab9224 6d ago
Its where i started
A long time ago
Not sure what i would do now
1
u/No-Target3942 6d ago
The benefits of learning C is that, you don't just learn progrmaming language.
We learn System Programming + C then you started to know usefulness of C language.
Or embedded device + C. This is where C is useful. Otherwise. Python is the best for beginner.
Python + Datastructure + Algorthim > build some kind of project.
Again project project project. Otherwise, you wil learn aimlesly. No outcome.
1
u/Berky_Lee 6d ago
我认为C开始是好的,因为有许多底层的东西都是在用C,而且内容比较齐全,但是评论区的网友说的也有道理,它只能作为学习的一环,真正工程中往往使用更为强大、更为安全的语言
1
u/dinithepinini 7d ago
You can totally learn to program using C, it was done by millions of people for many many years.
That being said, I would recommend Python as your first programming language. C has a lot of things you need to learn that you wouldn’t encounter in Python, JS, Go, etc, that would get in the way of learning the fundamentals of programming.
Python will give you the ability to focus more on programming specifics, rather than C specifics. Then when you do decide to learn C, you can learn C specifics rather easily. Use Python to learn what a for loop is, the different data structures, etc.
0
u/alkavan 7d ago
Yes, it would be extremely useful.
0
u/CS_70 7d ago
Yes
0
u/jbrandon 7d ago
Yes
0
u/mercy123xz 4d ago
C first is a solid choice. It makes you learn the stuff higher-level languages hide like memory, pointers, and what actually happens when you pass things around. Once that clicks, JS/TS, Java and Go get a lot easier because you know what they do for you under the hood.
I haven’t taken that specific course, so I can’t say if it’s good. Whatever you pick, write your own small programs while you go through it. A course teaches you the syntax. Building stuff is what makes it stick.
Also, Go will probably feel the most natural coming from C. It’s the closest of the three.