Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
CoffeeScript
Search
Jeroen Rosenberg
November 30, 2012
Programming
2
280
CoffeeScript
How about a nice BIG cup of CoffeeScript
Jeroen Rosenberg
November 30, 2012
Tweet
Share
More Decks by Jeroen Rosenberg
See All by Jeroen Rosenberg
Cooking your Ravioli "al dente" with Hexagonal Architecture
jeroenr
0
18
Apache Solr: Lessons Learned
jeroenr
2
91
Websocket on Rails
jeroenr
4
550
Stop thinking, go faster
jeroenr
2
210
Git
jeroenr
3
430
Provisioning with Vagrant & Puppet
jeroenr
5
810
Monit
jeroenr
2
220
Other Decks in Programming
See All in Programming
Komplexe Oberflächen mit SVG und der Web Animation API
joergneumann
0
670
Hanami and htmx
bkuhlmann
0
210
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
110
二郎系ラーメンのコールで学ぶ AST 解析
memory1994
PRO
7
1.7k
単体テストを書かない技術 #phpcon_odawara
o0h
PRO
26
8.2k
try!Swift Tokyo 2024 参加報告 LT
akidon0000
1
220
Node.js v22 で変わること
yosuke_furukawa
PRO
8
2.8k
入門 AWS Amplify Gen2 / Introduction to AWS Amplify Gen2
genkiogasawara
1
330
From Spring Boot 2 to Spring Boot 3 with Java 22 and Jakarta EE
ivargrimstad
0
1.1k
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
260
HUIT新歓2024「競技プログラミング、やってみませんか?」
slephy2784
1
270
Snowflakeで眠ったデータを起こそう!
estie
0
110
Featured
See All Featured
Building an army of robots
kneath
300
41k
Building Effective Engineering Teams - LeadDev
addyosmani
28
1.8k
Creatively Recalculating Your Daily Design Routine
revolveconf
210
11k
GitHub's CSS Performance
jonrohan
1025
450k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
2
3.4k
It's Worth the Effort
3n
180
27k
Large-scale JavaScript Application Architecture
addyosmani
504
110k
Building a Scalable Design System with Sketch
lauravandoore
456
32k
Stop Working from a Prison Cell
hatefulcrawdad
266
19k
4 Signs Your Business is Dying
shpigford
175
21k
[RailsConf 2023] Rails as a piece of cake
palkan
23
3.9k
Optimising Largest Contentful Paint
csswizardry
8
2.4k
Transcript
None
None
"It's just JavaScript" coated with syntax sugar
CoffeeScript attempts to expose those 'good parts' Did you notice?
#nuffsaid it's quite thin
But its core is gooooood
CoffeeScript attempts to expose those 'good parts' CoffeeScript exposes those
'good parts'
CoffeeScript attempts to expose those 'good parts'
Ruby Python Haskell
# prototyping String::downCase = -> @toLowerCase() # functions, chained comparison
isMyAge = (age) -> 24 < age < 26 # splat arguments, pattern matching unCapitalize = (words...) -> (words.map ([firstChar, rest...]) -> firstChar.downCase() + rest.join '').join '' # destructuring assignment, function binding Me = ([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, I'm #{@name}!" # there's no var!! me = Me("Jeroen Matthijs Rosenberg".split ' ')
#nuffsaid
word.spread! for people in continents[..] when people isnt aware