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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Jeroen Rosenberg
November 30, 2012
Programming
2
350
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
46
Apache Solr: Lessons Learned
jeroenr
2
100
Websocket on Rails
jeroenr
4
590
Stop thinking, go faster
jeroenr
2
220
Git
jeroenr
3
470
Provisioning with Vagrant & Puppet
jeroenr
5
830
Monit
jeroenr
2
230
Other Decks in Programming
See All in Programming
Apache Iceberg V3 and migration to V3
tomtanaka
0
160
Package Management Learnings from Homebrew
mikemcquaid
0
230
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
370
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
190
IFSによる形状設計/デモシーンの魅力 @ 慶應大学SFC
gam0022
1
310
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
1k
ぼくの開発環境2026
yuzneri
0
240
QAフローを最適化し、品質水準を満たしながらリリースまでの期間を最短化する #RSGT2026
shibayu36
2
4.4k
Basic Architectures
denyspoltorak
0
680
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
430
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
AI & Enginnering
codelynx
0
110
Featured
See All Featured
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
120
The SEO identity crisis: Don't let AI make you average
varn
0
290
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2k
We Are The Robots
honzajavorek
0
160
Six Lessons from altMBA
skipperchong
29
4.2k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
97
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
280
Making the Leap to Tech Lead
cromwellryan
135
9.7k
Designing Experiences People Love
moore
144
24k
Designing for humans not robots
tammielis
254
26k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
240
Faster Mobile Websites
deanohume
310
31k
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