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
300
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
27
Apache Solr: Lessons Learned
jeroenr
2
95
Websocket on Rails
jeroenr
4
560
Stop thinking, go faster
jeroenr
2
210
Git
jeroenr
3
450
Provisioning with Vagrant & Puppet
jeroenr
5
820
Monit
jeroenr
2
230
Other Decks in Programming
See All in Programming
短期間での新規プロダクト開発における「コスパの良い」Goのテスト戦略」 / kamakura.go
n3xem
2
170
フロントエンドのディレクトリ構成どうしてる? Feature-Sliced Design 導入体験談
osakatechlab
8
4.1k
【re:Growth 2024】 Aurora DSQL をちゃんと話します!
maroon1st
0
770
Go の GC の不得意な部分を克服したい
taiyow
2
770
useSyncExternalStoreを使いまくる
ssssota
6
1k
複雑な仕様に立ち向かうアーキテクチャ
myohei
0
170
アクターシステムに頼らずEvent Sourcingする方法について
j5ik2o
4
230
menu基盤チームによるGoogle Cloudの活用事例~Application Integration, Cloud Tasks編~
yoshifumi_ishikura
0
110
これが俺の”自分戦略” プロセスを楽しんでいこう! - Developers CAREER Boost 2024
niftycorp
PRO
0
190
テストコード文化を0から作り、変化し続けた組織
kazatohiei
2
1.5k
急成長期の品質とスピードを両立するフロントエンド技術基盤
soarteclab
0
930
Recoilを剥がしている話
kirik
5
6.6k
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
94
13k
How to train your dragon (web standard)
notwaldorf
88
5.7k
Speed Design
sergeychernyshev
25
670
A better future with KSS
kneath
238
17k
Building Applications with DynamoDB
mza
91
6.1k
The Invisible Side of Design
smashingmag
298
50k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
95
17k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
28
4.4k
Building an army of robots
kneath
302
44k
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
A Modern Web Designer's Workflow
chriscoyier
693
190k
VelocityConf: Rendering Performance Case Studies
addyosmani
326
24k
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