Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
CoffeeScript: The Good Parts—Write Better javaScript
Rating: 3.4 out of 5(29 ratings)
3,592 students

CoffeeScript: The Good Parts—Write Better javaScript

The good and not so good parts of CoffeeScript in comparison to JavaScript.
Created byAzat Mardan
Last updated 5/2015
English

What you'll learn

  • Understand CoffeeScript syntax (semicolons, whitespace, parentheses)
  • Understand automatic var insertion mechanism and while manual var might be bad in native JavaScript
  • Use CoffeeScript conditions
  • Use CoffeeScript functions (fat and skinny arrow ones)
  • Use CoffeeScript classes
  • Use CoffeeScript arrays
  • Use CoffeeScript splats
  • Use CoffeeScript comprehensions

Course content

3 sections15 lectures1h 2m total length
  • Intro0:09
  • CoffeeScript: The Good Parts I9:10
  • Objects4:04

    Explore how objects and nested objects work in CoffeeScript, refactoring to arrays of objects for cleaner code with fewer curly braces, and embrace object relationships over global scope.

  • Functions5:08

    Use functions in CoffeeScript to pass objects and improve readability. Compare one-line and multiline styles, and learn to write clearer, more maintainable code with callbacks.

  • CoffeeScript: The Good Parts II9:38
  • Fat Arrows1:45

    Learn how fat arrows streamline JavaScript by leveraging the global window object and automatic context transfer, saving you time and reducing manual this handling.

  • Automatic Vars3:58

    Explore automatic variable bindings in CoffeeScript and JavaScript across outer and inner scopes, showing how function calls create local variables, and how declaration order determines values.

  • Loops4:29

    Learn how loops and comprehensions in CoffeeScript save space, explore popular iterator patterns, and compare approaches for iterating elements and properties for better performance.

  • Advanced Loops4:11

    Explore advanced loops in CoffeeScript by demonstrating flexible iteration with for-in over arrays, rendering results, and applying conditional filters such as items greater than 10.

  • Classes7:07

    Discover how CoffeeScript's classes simplify object creation, replacing prototype-heavy patterns with clear constructors, properties, and methods, and explore functional inheritance as an alternative approach.

  • CoffeeScript: The Good Parts III12:17

Requirements

  • Basic JavaScript skills

Description

The CoffeeScript is a language that was built on top of JavaScript. CoffeeScript has some added benefits and its code is compiled into native JavaScript for execution. The CoffeeScript pros include: better syntax, function and class construction patterns, automatic var insertion, comprehensions and others.

Most of these perks will be obvious once we take a look at some examples. This quick language reference can get you started with CoffeeScript:

  • Semicolons, Whitespace and Parentheses • Vars
  • Conditions
  • Functions
  • Classes
  • Arrays
  • Splats
  • Comprehensions

This course is prepared by the author of nine (9!) books on JavaScript and NodeJS. This course has video presentation as well as documents.

Who this course is for:

  • Front-end developers
  • Designers