$30 off During Our Annual Pro Sale. View Details »

Coffeescript: unfancy javascript

Coffeescript: unfancy javascript

Dimitris Tsironis

February 03, 2013
Tweet

More Decks by Dimitris Tsironis

Other Decks in Technology

Transcript

  1. coff script
    unfancy javascript

    View Slide

  2. CEO & Founder at Geembo
    Dimitri Tsironi
    boo!!

    View Slide

  3. what’ thi about?
    Coffeescript (duh!)
    “Pragmatic” coffeescript
    How we use it
    Explore new stuff
    Open-source

    View Slide

  4. A little language
    that compiles into javascript

    View Slide

  5. backbone.js & coffeescript
    creator
    Jeremy Ashkena

    View Slide

  6. Philosophy
    code is art
    ruby’s syntax rocks
    less is more
    verbal syntax
    it’s javascript after all

    View Slide

  7. We want some proof!
    LIAR

    View Slide

  8. code examples straight from the oven
    let’ s some code!

    View Slide

  9. code example #1
    search.js.coffee

    View Slide

  10. code example #2
    setting.js.coffee

    View Slide

  11. code example #3
    Multiply an array
    o
    Search in a string
    Happy Birthday!

    View Slide

  12. everyday workflow magic
    ho we use it

    View Slide

  13. workflo
    Rails (with Asset Pipeline)
    gem install coffee-script
    npm install -g coffee-script
    Codekit

    View Slide

  14. Coff script on Rail
    seamless compile on development
    minify and concatenation
    backbone-on-rails gem!
    same philosophy as Ruby

    View Slide

  15. the first coffeescript butler
    hubot

    View Slide

  16. Hubot
    coffeescript on node.js
    Github’s robot for stuff
    mainly, finds you kittens and
    embarrassing photos
    totally open-source
    easily extensible (see docs)

    View Slide

  17. Resource
    http://coffeescript.org
    Codeschool course
    A little book for Coffeescript
    http://js2coffee.org
    http://www.ricardo.cc/2011/06/02/10-CoffeeScript-One-Liners-to-
    Impress-Your-Friends.html

    View Slide

  18. @tsironakos
    Thank !
    @geembohq

    View Slide