itscodenation / curriculum-15-16

The ScriptEd Foundations and Advanced Course curriculum for the 2015-2016 school year
52 stars 53 forks source link

Split first JavaScript lesson in two #15

Open outoftime opened 8 years ago

outoftime commented 8 years ago

The first JavaScript lesson in the canonical curriculum covers a lot of ground. This pull request breaks that lesson in two, with variables introduced in the second of the two.

The first lesson focuses on the concept of expressions, which are defined as pieces of code that produce a value. I suspect that this idea is so intuitive to experienced programmers that we forget how foreign it is to novice students. Without a solid understanding of expressions, much of what comes later is incomprehensible: using variables, the return value of functions, etc. all rely on the concept that a piece of code often represents a value that is not literally written in the code.

So, I think it’s worth taking a really slow roll.

The second lesson covers variables, but within the conceptual framework of expressions and values that was introduced in the first lesson.

A few notes: