Hacker News new | ask | show | jobs
by craigmcnamara 3322 days ago
It's pretty far from that now. It's a modern multi-paradigm language with a package manager, module system and enormous community. It's a pretty solid language for teaching in my opinion.
2 comments

The package manager shouldn't matter in the least for a 100 level CS class as you're supposed to be learning the fundamentals instead of just bringing in left-pad, and the like. I don't think I used an external package in any of my CS classes (in any language) until maybe senior year. We used C, Java, and Python for various classes throughout my time. Oh, and one class used PHP.

What I wonder though is, what is the goal of the current class? If it's about teaching OO fundamentals, I can't imagine JS would be a better replacement for Java than Python. If you're just trying to teach concepts, sure JS is fine, but it just seems like Python would be all around better for instruction than JS.

I admit that for classroom exercises the package manager isn't a huge draw, but when someone learns some JS basics and they want to try to make a real thing, the fact they don't have to move to a new ecosystem to get libraries keeps the momentum high.
Exactly! Even though I learnt programming using Java, C and Python. Reading Eloquent JavaScript (to get into JS) reinforced concepts I learnt previously with other languages. It also helps that there is a bunch of great learning material for javascript today (freeCodeCamp, et cetera).

Also, the direct applications of JavaScript are numerous: web scrapers, node bots, front-end, back-end, iOs/android applications and a lot more!

For people who look at programming as a medium of expression to build stuff, Javascript is a language that a computer can do a whole breadth of things with.