News for hackers. Stuff that matters.
Re:Stanford adopts JavaScript, drops Java for its intro to C... by Clownshoesms on Wednesday May 10, 2017 @06:20PM (#14312271)
I just don't understand this, even if students were asking for it. It's a poor language whipped up in a week or two - is it really what you want to base someone's first exposure to programming on?
Re:Stanford adopts JavaScript, drops Java for its intro to C... by craigmcnamara on Wednesday May 10, 2017 @06:32PM (#14312335)
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.
Re:Stanford adopts JavaScript, drops Java for its intro to C... by manyxcxi on Wednesday May 10, 2017 @07:28PM (#14312664)
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.

Re:Stanford adopts JavaScript, drops Java for its intro to C... by craigmcnamara on Wednesday May 10, 2017 @09:04PM (#14313172)
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.
Re:Stanford adopts JavaScript, drops Java for its intro to C... by r_singh on Thursday May 11, 2017 @01:07AM (#14313960)
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.

Re:Stanford adopts JavaScript, drops Java for its intro to C... by NTripleOne on Thursday May 11, 2017 @03:19AM (#14314352)
The bigger question would be why is university your first exposure to programming if you're a CS student?