0
CoffeeScript<br />The Awesome<br />
“A Propos de Moi”<br />@kouphax<br />http://yobriefca.se<br />http://github.com/kouphax<br />
A Few CoffeeScript Facts<br />Created by Jeremy Ashkenas circa late 2009<br />Spawned from reading “Create Your Own Progra...
Debugging CoffeeScript directly is currently not possible so this adds another layer of complexity<br />In reality mapping...
Range Compreshension<br />English Notation<br />Variable Declaration<br />Function Declaration<br />String Interpolation<b...
CoffeeScript: A Guided Tour<br />- or - <br />CoffeeScript: A Guided Tour of the Website, Pretty Much, Except in Slide For...
Functions<br />
Functions<br />
Objects<br />
Conditionals<br />
Operators and Aliases<br />
Splats<br />
Loops and Comprehensions<br />
Array Slicing and Ranges<br />
Classes<br />
Odds and Ends<br />
Using CoffeeScript in .NET<br />- or - <br />What?  You think we’d let those script kiddies have all the fun?  Hells no!<b...
Compile On Demand<br />Shameless Plug<br />(but I am distracting you through the use of Comic Sans)<br />…and others<br />
Pre-compile<br />
Questions?<br />
Upcoming SlideShare
Loading in...5
×

CoffeeScript the Awesome

1,380

Published on

Coffee

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,380
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
22
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • We’ve all seen the funny photos. JavaScript is rough around the edges, very rough
  • Incuding the existential operator
  • Incuding the existential operator
  • Incuding the existential operator
  • Transcript of "CoffeeScript the Awesome"

    1. 1.
    2. 2. CoffeeScript<br />The Awesome<br />
    3. 3. “A Propos de Moi”<br />@kouphax<br />http://yobriefca.se<br />http://github.com/kouphax<br />
    4. 4.
    5. 5. A Few CoffeeScript Facts<br />Created by Jeremy Ashkenas circa late 2009<br />Spawned from reading “Create Your Own Programming Language”<br />CoffeeScript compiles to, and executes as, JavaScript in the browser.<br />CoffeeScript simply offers an initial compilation step prior to the JavaScript being interpreted – what's the harm in that?<br />CoffeeScript does not require you to abandon all your JS libraries<br />Yes you can still use jQuery or anything else you want<br />JavaScript produced by the CoffeeScript compiler is performant, valid and well formatted.<br />
    6. 6. Debugging CoffeeScript directly is currently not possible so this adds another layer of complexity<br />In reality mapping between CoffeeScript and the generated JavaScript isn’t difficult<br />Could be considered just syntactical sugar with some extra syntax benefits<br />No more random semi-colon insertion<br />No more accidental global scoping of declarations<br />Scoping syntax built right in<br />Automatic “hoisting” of variable declarations<br />Not everyone is a massive fan<br />A Few (More) CoffeeScript Facts<br />
    7. 7.
    8. 8. Range Compreshension<br />English Notation<br />Variable Declaration<br />Function Declaration<br />String Interpolation<br />Function Call<br />Loop Comprehension<br />* Never do this in real life kthanxai<br />
    9. 9.
    10. 10. CoffeeScript: A Guided Tour<br />- or - <br />CoffeeScript: A Guided Tour of the Website, Pretty Much, Except in Slide Form but Not Because I am Lazy, No, More so Because It’s a Fairly Comprehensive Document of the Features of CoffeeScript.<br />
    11. 11. Functions<br />
    12. 12. Functions<br />
    13. 13. Objects<br />
    14. 14. Conditionals<br />
    15. 15. Operators and Aliases<br />
    16. 16. Splats<br />
    17. 17. Loops and Comprehensions<br />
    18. 18. Array Slicing and Ranges<br />
    19. 19. Classes<br />
    20. 20. Odds and Ends<br />
    21. 21. Using CoffeeScript in .NET<br />- or - <br />What? You think we’d let those script kiddies have all the fun? Hells no!<br />
    22. 22. Compile On Demand<br />Shameless Plug<br />(but I am distracting you through the use of Comic Sans)<br />…and others<br />
    23. 23. Pre-compile<br />
    24. 24.
    25. 25. Questions?<br />
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×