Upgrade to Pro — share decks privately, control downloads, hide ads and more …

俺の望むライブラリがない!

 俺の望むライブラリがない!

JS ojisan #2

Koutarou Chikuba

May 29, 2014
Tweet

More Decks by Koutarou Chikuba

Other Decks in Technology

Transcript

  1. Momic user = new User user.name = 'mizchi' user.age =

    26 user.save().then => console.log 'save done!' User.find().then (users) => console.log users
  2. # app/controllers/home-controller.coffee module.exports = class HomeController extends Warden.Controller beforeAction: (params)

    -> @reuse Layout index: (params) -> home = @reuse HomeView $ -> router = new Warden router.match '', 'home#index' ͜Μͳײ͡
  3. libretto Purchase = Libretto.extend steps: start: 'waitUserSelection' waitUserSelection: ['purchase', 'cancel']

    purchase: 'end' waitUserSelection: (context) => context.itemName = 'apple' 'purchase' purchase: (context) -> new Promise (done) => done()
  4. TypedCoffeeScriptͰͰ͖Δ͜ͱ1 double :: Int -> Int double = (n) ->

    n * 2 num1 :: Int = double 5 num2 :: String = double 5 # => TypeError
  5. dts-parser modules: - nodeType: Module moduleName: Foo modules: (empty array)

    classes: - nodeType: ClassNode className: Bar properties: ... ུ