programmingconcepts

Track 4

Paradigms

Different styles of structuring programs: objects and classes, functional programming, and closures.

3 pages. Read them in order: later pages build on earlier ones.

  1. 4.1Objects and classesAn object bundles data with the functions that work on it; a class is the blueprint for making objects.
  2. 4.2Functional programmingA style that builds programs from pure functions, avoids changing data in place, and passes functions around like values.
  3. 4.3ClosuresA function that remembers the variables around where it was created, even after that code has finished running.

Newsletter

One new concept each week, by email.

Signup opens soon.