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
330
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
37
Apache Solr: Lessons Learned
jeroenr
2
100
Websocket on Rails
jeroenr
4
580
Stop thinking, go faster
jeroenr
2
210
Git
jeroenr
3
460
Provisioning with Vagrant & Puppet
jeroenr
5
820
Monit
jeroenr
2
230
Other Decks in Programming
See All in Programming
CI_CD「健康診断」のススメ。現場でのボトルネック特定から、健康診断を通じた組織的な改善手法
teamlab
PRO
0
200
CSC509 Lecture 04
javiergs
PRO
0
300
CSC509 Lecture 01
javiergs
PRO
1
440
Domain-centric? Why Hexagonal, Onion, and Clean Architecture Are Answers to the Wrong Question
olivergierke
2
790
Devoxx BE - Local Development in the AI Era
kdubois
0
120
ソフトウェア設計の実践的な考え方
masuda220
PRO
4
550
なぜあの開発者はDevRelに伴走し続けるのか / Why Does That Developer Keep Running Alongside DevRel?
nrslib
3
390
登壇は dynamic! な営みである / speech is dynamic
da1chi
0
270
オープンソースソフトウェアへの解像度🔬
utam0k
12
2.4k
Things You Thought You Didn’t Need To Care About That Have a Big Impact On Your Job
hollycummins
0
210
デミカツ切り抜きで面倒くさいことはPythonにやらせよう
aokswork3
0
220
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
270
Featured
See All Featured
Docker and Python
trallard
46
3.6k
A better future with KSS
kneath
239
18k
Six Lessons from altMBA
skipperchong
28
4k
BBQ
matthewcrist
89
9.8k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.5k
4 Signs Your Business is Dying
shpigford
185
22k
The Invisible Side of Design
smashingmag
301
51k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.6k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.7k
Designing for humans not robots
tammielis
254
26k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
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