Hacker News new | ask | show | jobs
by danford 4319 days ago
I would have to disagree. It all depends on how you learn JS. I really liked the book JavaScript: The Definitive Guide 6th Ed. which at many points talked about the differences between JS and C. As someone who learned JS as a first language, I find the syntax is close enough to C and C-Like languages to make picking them up fairly easy, but I'm still a novice and while I know JS pretty well I've only dabbled in C, D, and Rust as lower level languages. I found these languages to be almost like "extended" JavaScript because I didn't have many issues reading simple functions, and that's why I think it's a good language to start on, you can learn how to actually read and understand code with C-like syntax which, for me, made understanding lower level C-like code seem a lot easier.

Plus I think JS is fun to use because of how fast you can see your work "come to life". JS is also in high demand.

1 comments

Choosing any language because it's in high demand is a bad decision, see "Why SICP matters"[0].

" I tell my students, "the language in which you'll spend most of your working life hasn't been invented yet, so we can't teach it to you. Instead we have to give you the skills you need to learn new languages as they appear." "

With regards to your statement, "It all depends on how you learn JS": That could be said of any language. The fact that you learned the differences between JS and C is what helped you when you were beginning, not that you learned JavaScript instead of Java, Ruby, or Python.

[0] - http://www.eecs.berkeley.edu/~bh/sicp.html

That is odd advice, the top programming languages currently used have been around for at least 19 years (python, ruby, javascript, php, java, c, objective c) and while there are new languages being developed I don't see languages like go, rust or swift pushing any of those languages out of the market.

If anything, programming languages are a long term investment and I think that learning a language that is in high demand isn't that bad of a decision, you could learn some obscure super expressive, highly functional, statically typed language, but there is large chance that you'll come in contact with javascript at one point in your career.