Stanford CS101 Adopts JavaScript 255
mikejuk writes "In case further proof were needed that JavaScript shall indeed inherit the earth, we have the news that Stanford has adopted JavaScript to teach CS101 — Introduction to Computing Principles: 'The essential ideas of computing via little phrases of JavaScript code.' You can even try it out for yourself at Stanford's course page."
Re:First programming course? At Stanford?? (Score:5, Informative)
The summary is awful.
First, this isn't even recent news, it was added *last* year.
Second, this isn't an intro course for CS majors (or even any engineering major, or hell, even a non-engineering major interested in programming). It's basically a really high level intro to computers and "programming principles" for "fuzzies" with an irrational fear of computers (which as you say, is definitely a small group at Stanford).
Though the lecturer (Nick Parlante) is awesome, so it's probably a fun class, and might even get some people interested in taking the real intro to programming class (CS106A).
Re:Ideal IDE (Score:4, Informative)
Q) Can you tell me the difference between FIFO and LIFO?
Javascript arrays have push(), pop(), shift(), and unshift() methods. If they fail to teach FIFO and LIFO, they can't blame it on Javascript.
Re:Ideal IDE (Score:3, Informative)
JS is indeed a bad language if you care at all about syntax or sanity.
Here's a couple from Stackoverflow [stackoverflow.com].
In JavaScript:
'5' + 3 gives '53'
Whereas
'5' - 3 gives 2
the following construct
return
{
id : 1234,
title : 'Tony the Pony'
};
is a syntax error due to the sneaky implicit semicolon insertion on the newline after return. The following works as you would expect though:
return {
id : 1234,
title : 'Tony the Pony'
};
Important: This is NOT their "Intro to CS" class (Score:5, Informative)