CoffeeScript
Upcoming SlideShare
Loading in...5
×
 

CoffeeScript

on

  • 602 views

How about a nice BIG cup of CoffeeScript

How about a nice BIG cup of CoffeeScript

Statistics

Views

Total Views
602
Views on SlideShare
602
Embed Views
0

Actions

Likes
0
Downloads
4
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

CoffeeScript CoffeeScript Presentation Transcript

  • "Its justJavaScript" coated with syntax sugar
  • DidCoffeeScript attempts to expose youthose good parts notice?
  • its quite thin #nuffsaid
  • But its coreis gooooood
  • CoffeeScriptCoffeeScript attempts to exposeexposes thosethose good parts good parts
  • CoffeeScript attempts to exposethose good parts
  • RubyPythonHaskell
  • # prototypingString::downCase = -> @toLowerCase()# functions, chained comparisonisMyAge = (age) -> 24 < age < 26# splat arguments, pattern matchingunCapitalize = (words...) -> (words.map ([firstChar, rest...]) -> firstChar.downCase() + rest.join ).join # destructuring assignment, function bindingMe = ([surname, middlenames..., lastname] ) -> # string interpolation @name = "#{surname} #{lastname}" # everything is an expression @age = if isMyAge(x = 25) then x else ? @twitter = unCapitalize(@, surname, lastname) # use jQuery (or any JavaScript library), multi line Strings $(#welcome).bind click (event) => alert "Hello, Im #{@name}!"# theres no var!!me = Me("Jeroen Matthijs Rosenberg".split )
  • #nuffsaid
  • word.spread! for people in continents[..]when people isnt aware