Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
CoffeeScript
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Jeroen Rosenberg
November 30, 2012
Programming
380
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CoffeeScript
How about a nice BIG cup of CoffeeScript
Jeroen Rosenberg
November 30, 2012
Transcript
12 slides
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
More Decks by Jeroen Rosenberg
See All by Jeroen Rosenberg
Cooking your Ravioli "al dente" with Hexagonal Architecture
jeroenr
0
83
Apache Solr: Lessons Learned
jeroenr
2
120
Websocket on Rails
jeroenr
4
620
Stop thinking, go faster
jeroenr
2
240
Git
jeroenr
3
490
Provisioning with Vagrant & Puppet
jeroenr
5
850
Monit
jeroenr
2
240
Other Decks in Programming
See All in Programming
LLM 101: Exploring LLMs, Starting with Tokens.
dalinaum
0
110
Spec-Driven Development - Why Vaadin Is the Perfect Fit
simas
PRO
0
250
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
6
2.3k
[Kotlin Fest 2026] eBPF Tracing for Kotlin
takehaya
1
290
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
130
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
16
9.3k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
360
Rails初心者がパスキーを実装してみて大変だったこと
ktombow
0
210
Growing PicoRuby's Ecosystem on ESP32
yuuu
2
140
Distance field of Julia set
kinakomoti321
0
330
Spec-driven Development with AI
simas
PRO
0
2.3k
GraphQL の onError と Nullability のこれから
quramy
0
220
Featured
See All Featured
We Have a Design System, Now What?
morganepeng
55
8.4k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.3k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
60k
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
Speed Design
sergeychernyshev
33
2.2k
Unsuck your backbone
ammeep
672
58k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
540
The browser strikes back
jonoalderson
0
1.9k
Discover your Explorer Soul
emna__ayadi
2
1.3k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
600
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
850
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
380