CoffeeScript Lightning Talk
Upcoming SlideShare
Loading in...5
×
 

CoffeeScript Lightning Talk

on

  • 8,695 views

Mark Wunsch gives a lightning talk about CoffeeScript

Mark Wunsch gives a lightning talk about CoffeeScript

Statistics

Views

Total Views
8,695
Views on SlideShare
1,291
Embed Views
7,404

Actions

Likes
0
Downloads
5
Comments
0

12 Embeds 7,404

http://tech.gilt.com 7146
http://rockitup.tumblr.com 215
http://bester-flachbildfernseher-2012.tumblr.com 12
http://canon-powershot-sx210-is-prezzi.tumblr.com 7
http://www.yatedo.com 5
http://www.tumblr.com 5
http://translate.googleusercontent.com 5
http://samsung-clx-3175n-toner.tumblr.com 3
http://webcache.googleusercontent.com 2
http://bauknecht-kge-335-bio.tumblr.com 2
http://74.6.147.41 1
http://gaming-headset-2012.tumblr.com 1
More...

Accessibility

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 Lightning Talk CoffeeScript Lightning Talk Presentation Transcript

  •             {"          } } {"         { { } }"          } }{ {"         { }{ } } _____ __ __"        ( }{ }{ { ) / ____| / _|/ _|"      .- { { } { }} -. | | ___ | |_| |_ ___ ___"     ( ( } { } { } } ) | | / _ | _| _/ _ / _ "     |`-..________ ..-| | |___| (_) | | | || __/ __/"     | | ________/|_| |_| ___|___|"     | ;--."     | (__ _____ _ _"     | | ) ) / ____| (_) | |"     | |/ / | (___ ___ _ __ _ _ __ | |_"     | ( / ___ / __| __| | _ | __|"     | |/ ____) | (__| | | | |_) | |_"     | | |_____/ ___|_| |_| .__/ __|"      `-.._________..- | |"                                                         |_|" " .oooooo. ooooo ooooo ooooooooooooo ! d8P `Y8b `888 `888 8 888 `8 !Mark Wunsch @markwunsch! 888 888 888 ooooo 888 888 888 888 888 888 888 888 888 ! ! !Exotic Programming Languages and the Web! `88. .88 `Y8bood8P 888 o888o 888 o o888ooood8 888 o888o ! !
  • var pg = require(pg); !//or native libpq bindings!//var pg = require(pg).native!!var conString = "tcp://postgres:1234@localhost/postgres";!!// error handling omitted!pg.connect(conString, function(err, client) {! client.query("SELECT NOW() as when", function(err, result) {! console.log("Row count: %d",result.rows.length); // 1! console.log("Current year: %d", result.rows[0].when.getYear());! });!});!
  • •  compiles into JavaScript!•  JavaScript s object model!•  the good parts !•  It s just JavaScript. !
  • fling = (img) ->! $(body).append img! img.show()! img.css! -webkit-transform: "rotate(#{rando()}deg)"! top: root.parseInt(img.css(top), 10) - rando 45! left: root.parseInt(img.css(left), 10) - rando 45! opacity: 0! root.setTimeout (-> img.hide().remove()), 5000!rando = (multiplier = 10) ->! num = Math.ceil Math.random() * multiplier! if num % 2 then -num else num!skus = (sku for id, sku of order.skus)!
  • if pin.properties.count isnt 1! for order, index in pin.properties.orders when (Date.now() - ! » Date.parse order?.submission_date) > (config.expiration ? 180000)!class Mob! constructor: (@name) ->! ! move: (meters) ->! alert @name + " moved #{meters}m."!!name = person.name!{name} = person!{name, age} = person!!tag = "<impossible>"![open, contents..., close] = tag.split("")!
  • But what about my debugger? Common concerns Compiled?
  • Thanks. Here are some links!•  http://coffeescript.org!•  https://github.com/jash kenas/coffee-script/wiki/List-of-languages-that-compile-to-JS!•  Line Number Mapping: https://github.com/jashkenas/coffee-script/ issues/558!•  Hello World in Dart: https://gist.github.com/1277224!•  Smooth CoffeeScript: http://autotelicum.github.com/Smooth- CoffeeScript/!•  The Little Book on CoffeeScript: http://arcturo.github.c om/library/coffeescript/! Mark Wunsch @markwunsch!