SlideShare a Scribd company logo
1 of 10
Download to read offline
5 Minutes about my recent dive into



                               CoffeeScript



Thursday, 2 September 2010
Javascript is a
                             powerful, lambda-
                             based language
                             trapped in a
                             misleading C syntax
                             and made difficult by
                             design flaws.




Thursday, 2 September 2010
JSLint compliant, well-mannered
   Javascript is a bit unnatural
                                              ==
                                             void
                                              var
                               var foo = function foo( ) {};
                                   undefined, null, falsy
                                    new Boolean(false)
                             Switch fall through on string only
                                  Loose typing / objects
                                      Global variables
                                  Unintended shadowing


Thursday, 2 September 2010
The language I want it to be

                                     (examples)




Thursday, 2 September 2010
Simpler, cleaner JS

         Python, Ruby, yaml
         inspired functional
         OO language that
         compiles to the good
         parts of JS.

         Available as a Node.JS
         utility.


Thursday, 2 September 2010
JSLint compliant, readable output
                                      (try the website)




       Courtesy: http://jashkenas.github.com/coffee-script/
Thursday, 2 September 2010
Nice with JQuery and Underscore.js




          (In fact the author jashkenas @ Github ported Underscore.js to CoffeeScript)




Thursday, 2 September 2010
Structure your prototypes

                                     (sample)

                             CoffeeScript and Raphaël




Thursday, 2 September 2010
CoffeeScript with Node.JS backend




           Credit: dhotson @ tumblr


Thursday, 2 September 2010
Jison parser
                                Compiler written in CoffeeScript


                             http://jashkenas.github.com/coffee-script/
                                       http://raphaeljs.com/



                                       Warning: still pre-1.0
                                       It is a moving target

Thursday, 2 September 2010

More Related Content

More from Soren Harner

Intelligent Application Networks with Mule and Tensorflow
Intelligent Application Networks with Mule and TensorflowIntelligent Application Networks with Mule and Tensorflow
Intelligent Application Networks with Mule and TensorflowSoren Harner
 
How Augmented Reality Will Improve Our Interactions with Computers from SVVR ...
How Augmented Reality Will Improve Our Interactions with Computers from SVVR ...How Augmented Reality Will Improve Our Interactions with Computers from SVVR ...
How Augmented Reality Will Improve Our Interactions with Computers from SVVR ...Soren Harner
 
Building Products Quantitatively
Building Products QuantitativelyBuilding Products Quantitatively
Building Products QuantitativelySoren Harner
 
SaaS and Product Metrics
SaaS and Product MetricsSaaS and Product Metrics
SaaS and Product MetricsSoren Harner
 
How Developers Save the Planet
How Developers Save the PlanetHow Developers Save the Planet
How Developers Save the PlanetSoren Harner
 
Cundal gathering june 2011
Cundal gathering june 2011Cundal gathering june 2011
Cundal gathering june 2011Soren Harner
 
Software on the High Seas
Software on the High SeasSoftware on the High Seas
Software on the High SeasSoren Harner
 
Scaling atlassian os v4
Scaling atlassian os v4Scaling atlassian os v4
Scaling atlassian os v4Soren Harner
 
Sustainable purchasing
Sustainable purchasingSustainable purchasing
Sustainable purchasingSoren Harner
 

More from Soren Harner (11)

Intelligent Application Networks with Mule and Tensorflow
Intelligent Application Networks with Mule and TensorflowIntelligent Application Networks with Mule and Tensorflow
Intelligent Application Networks with Mule and Tensorflow
 
How Augmented Reality Will Improve Our Interactions with Computers from SVVR ...
How Augmented Reality Will Improve Our Interactions with Computers from SVVR ...How Augmented Reality Will Improve Our Interactions with Computers from SVVR ...
How Augmented Reality Will Improve Our Interactions with Computers from SVVR ...
 
Building Products Quantitatively
Building Products QuantitativelyBuilding Products Quantitatively
Building Products Quantitatively
 
SaaS and Product Metrics
SaaS and Product MetricsSaaS and Product Metrics
SaaS and Product Metrics
 
How Developers Save the Planet
How Developers Save the PlanetHow Developers Save the Planet
How Developers Save the Planet
 
Retrospectives
RetrospectivesRetrospectives
Retrospectives
 
Cundal gathering june 2011
Cundal gathering june 2011Cundal gathering june 2011
Cundal gathering june 2011
 
Software on the High Seas
Software on the High SeasSoftware on the High Seas
Software on the High Seas
 
Scaling atlassian os v4
Scaling atlassian os v4Scaling atlassian os v4
Scaling atlassian os v4
 
Sustainable purchasing
Sustainable purchasingSustainable purchasing
Sustainable purchasing
 
KNOW CHANGE
KNOW CHANGEKNOW CHANGE
KNOW CHANGE
 

CoffeeScript

  • 1. 5 Minutes about my recent dive into CoffeeScript Thursday, 2 September 2010
  • 2. Javascript is a powerful, lambda- based language trapped in a misleading C syntax and made difficult by design flaws. Thursday, 2 September 2010
  • 3. JSLint compliant, well-mannered Javascript is a bit unnatural == void var var foo = function foo( ) {}; undefined, null, falsy new Boolean(false) Switch fall through on string only Loose typing / objects Global variables Unintended shadowing Thursday, 2 September 2010
  • 4. The language I want it to be (examples) Thursday, 2 September 2010
  • 5. Simpler, cleaner JS Python, Ruby, yaml inspired functional OO language that compiles to the good parts of JS. Available as a Node.JS utility. Thursday, 2 September 2010
  • 6. JSLint compliant, readable output (try the website) Courtesy: http://jashkenas.github.com/coffee-script/ Thursday, 2 September 2010
  • 7. Nice with JQuery and Underscore.js (In fact the author jashkenas @ Github ported Underscore.js to CoffeeScript) Thursday, 2 September 2010
  • 8. Structure your prototypes (sample) CoffeeScript and Raphaël Thursday, 2 September 2010
  • 9. CoffeeScript with Node.JS backend Credit: dhotson @ tumblr Thursday, 2 September 2010
  • 10. Jison parser Compiler written in CoffeeScript http://jashkenas.github.com/coffee-script/ http://raphaeljs.com/ Warning: still pre-1.0 It is a moving target Thursday, 2 September 2010