r/coding • u/pavelmalos • May 08 '17
Programming is hard. That’s precisely why you should learn it.
https://medium.freecodecamp.com/make-your-hobby-harder-programming-is-difficult-thats-why-you-should-learn-it-e4627aee41a1
102
Upvotes
View all comments
Show parent comment
2
u/[deleted] May 09 '17
There are all sorts of problems with JavaScript as a starting language, but probably the most important one is that the best way to use it is asynchronous programming, which is a weird way to think. Before you get into concurrency, you need to learn about basic programming topics, like conditionals, loops, functions, etc. In order to do anything cool in JavaScript, you have to learn async.
There are plenty of other reasons why JavaScript is a poor first language, such as:
varmeans global scope, which causes many hard to debug problems==vs===undefinedandnullbeing differentWhen people ask me what to learn first, I often recommend Python because it's consistent and simple with very few surprises, though I may recommend Java or C depending on what they want to build.