CoffeeScript for the Rubyist
summary
CoffeeScript compiles to JavaScript and presents concrete substitutions: shorter jQuery AJAX calls, Ruby‑style lambdas, splats, default args, ranges (note: 1..100 switches implementation at 22), class constructors with @ as instance variable assignment, inheritance, and bound callbacks via the fat arrow to fix this scope. Syntax enforces significant whitespace and relaxed parentheses, emits strict mode, and offers the existential operator (?) to safely call console.log or chain property access without runtime errors.
AI-written summary · about
chapters (22)
- 0:00Introduction to CoffeeScript
- 1:14History of JavaScript
- 2:50The Origin of CoffeeScript
- 3:33What is CoffeeScript
- 4:48What CoffeeScript is Not
- 5:28The Need for Progress
- 9:34Syntax Comparison
- 10:40Syntax Rules and White Space
- 12:16Function Rules
- 13:25White Space significance
- 14:50CoffeeScript and Ruby
- 15:43Objects and Hashes
- 17:23Using Ranges
- 18:24Strings and Interpolation
- 19:41Defining Functions
- 21:14Splats and Parameter Handling
- 23:02Loops and Comprehensions
- 25:57Classes and Inheritance
- 27:20Instance Variables
- 28:57Operators and Inheritance
- 30:36Bound Functions
- 34:09Existential Operator








