Should every programmer learn C as their first programming language?
guidena2codes.com
Should every programmer learn C as their first programming language?
1–10 of 67 posts
Re: Should every programmer learn C as their first programming language?
#2In my experience, the best course of action is to learn whatever you need first.
For those considering programming as a hobby/occupation, being told to learn a relatively complex and unpractical language would raise the bar of entry.
Re: Should every programmer learn C as their first programming language?
#3The article's main point is that learning C first makes it easier to learn the language a programmer will actually use, be it Javascript or something else. In my experience, the best course of action is to learn whatever you need first. For those considering programming as a hobby/occupation, being told to learn a relatively complex and unpractical language would raise the bar of entry.
you can write a C compiler in just a few thousand lines.
Re: Should every programmer learn C as their first programming language?
#4Re: Should every programmer learn C as their first programming language?
#5Re: Should every programmer learn C as their first programming language?
#6The fact that learning C is good, isnt the same as 'C is good or C is better', i do realise it has it's applications and that certain programming patterns are just much easier and safer to implement in languages better optimized for that pattern.
That being said you can program and make any pattern in C and C will force you to understand these pattenrs thoroughly. (your code litteraly won't run if you dont , and if it does, it's probarbly not doing what you expect!)
Re: Should every programmer learn C as their first programming language?
#7Assembly is too niche for all students to learn it, and Java/C# are each too isolated from other environments, whereas C is behind most everything we use and teaches you about linking/compiling more than any other environment. After students are comfortable with Python and C, they or their program can choose whatever they find fit for their goals.
Re: Should every programmer learn C as their first programming language?
#8The article's main point is that learning C first makes it easier to learn the language a programmer will actually use, be it Javascript or something else. In my experience, the best course of action is to learn whatever you need first. For those considering programming as a hobby/occupation, being told to learn a relatively complex and unpractical language would raise the bar of entry.
C is a very simple language. much simpler than js you can write a C compiler in just a few thousand lines.
Lisp is still the best language to learn, but any proper scripting language will do also.
PS: "proper scripting language" of course excludes PHP and JavaScript. Dart is fine.
Re: Should every programmer learn C as their first programming language?
#9The article's main point is that learning C first makes it easier to learn the language a programmer will actually use, be it Javascript or something else. In my experience, the best course of action is to learn whatever you need first. For those considering programming as a hobby/occupation, being told to learn a relatively complex and unpractical language would raise the bar of entry.
C is a very simple language. much simpler than js you can write a C compiler in just a few thousand lines.
You can spend weeks segfaulting in C before you get things actually working, and for a beginner — especially self-teaching/unsupervised — it's extremely easy to rely on compiler-specific behaviour in the face of UBs.
When learning, if the only choice were C or assembly I'd actually recommend assembly.
Re: Should every programmer learn C as their first programming language?
#10If you're working on a problem where it actually matters where the data is and when it's deleted, start looking at C.
For me this is a pretty sharp distinction. If you're not used to messing about with pointers, you'll need a bit of time to learn this.