Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Schmonference 2012: Introducing "CoffeeScript II: The Wrath of Khan"
Michael Ficarra
June 29, 2012
Programming
3
880
Schmonference 2012: Introducing "CoffeeScript II: The Wrath of Khan"
Michael Ficarra
June 29, 2012
Tweet
Share
More Decks by Michael Ficarra
See All by Michael Ficarra
Data Encodings and Representations
michaelficarra
0
9
Introduction to Property Testing in JavaScript
michaelficarra
3
880
Getting Started with PureScript
michaelficarra
16
3.8k
SpiderMonkey Parser API: A Standard For Structured JS Representations
michaelficarra
14
5k
[WIP] Foundations of Functional Design, Abstract Algebra, and Category Theory
michaelficarra
6
260
Select Ways to Harness the Power of JavaScript
michaelficarra
4
150
An Analysis of the Redesign of the CoffeeScript Compiler
michaelficarra
7
1.4k
Redesigning the CoffeeScript Compiler
michaelficarra
11
1.8k
MINIX
michaelficarra
0
110
Other Decks in Programming
See All in Programming
Keeping your team in top shape with the Gradle Enterprise API
runningcode
3
120
git on intellij
hiroto_kitamura
0
160
開発速度を5倍早くするVSCodeの拡張機能を作った
purp1eeeee
2
130
Reactアプリケーションのテスト戦略
0906koki
10
4.5k
Reactive Java Microservices on Kubernetes with Spring and JHipster
deepu105
1
160
IE Graduation (IE の功績を讃える)
jxck
20
12k
CUDA高速化セミナーvol.1 ~画像処理アルゴリズムの高速化~
fixstars
3
170
はてなフォトライフをECSに移行した話 / Hatena Engineer Seminar #20
cohalz
1
810
Springin‘でみんなもクリエイターに!
ueponx
0
120
模組化的Swift架構(二) DDD速成
haifengkao
0
320
Beyond Micro Frontends: Frontend Moduliths for the Enterprise @wad2022
manfredsteyer
PRO
0
120
EFFICIENT CREATION OF AN EMPTY COLLECTION IN .NET
abt
0
150
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
213
7.5k
Web Components: a chance to create the future
zenorocha
303
40k
How STYLIGHT went responsive
nonsquared
85
3.9k
A Modern Web Designer's Workflow
chriscoyier
689
180k
How New CSS Is Changing Everything About Graphic Design on the Web
jensimmons
213
11k
Intergalactic Javascript Robots from Outer Space
tanoku
261
25k
Navigating Team Friction
lara
175
11k
The Language of Interfaces
destraynor
148
20k
Making Projects Easy
brettharned
98
4.3k
Fashionably flexible responsive web design (full day workshop)
malarkey
396
62k
Producing Creativity
orderedlist
PRO
333
37k
We Have a Design System, Now What?
morganepeng
35
2.9k
Transcript
Michael Ficarra Schmonference 2012 CoffeeScript II: The Wrath of Khan
None
None
THIS GUY
http://kck.st/HDNjnC
http://arborjs.org/halfviz/#/MjU3Mw
None
advantages • standardised intermediate representations • more powerful parser •
better error reports • forces consistent indentation ▪ and allows a consistent base indentation, useful for compiling copied sections of code • two-pass variable naming • specify output formatting • line mappings
None
advantages • standardised intermediate representations • more powerful parser •
better error reports • forces consistent indentation ▪ and allows a consistent base indentation, useful for compiling copied sections of code • two-pass variable naming • specify output formatting • line mappings
None
None
None
advantages • standardised intermediate representations • more powerful parser •
better error reports • forces consistent indentation ▪ and allows a consistent base indentation, useful for compiling copied sections of code • two-pass variable naming • specify output formatting • line mappings
None
advantages • standardised intermediate representations • more powerful parser •
better error reports • forces consistent indentation ▪ and allows a consistent base indentation, useful for compiling copied sections of code • two-pass variable naming • specify output formatting • line mappings
advantages: tooling • automatic code formatting in editor • syntax
highlighter • code coverage • static analysis tools ▪ dead code detection ▪ cyclomatic complexity ▪ reassignment warnings ▪ detecting non-idiomatic style (linting)
None
and now for something completely different
let-expressions do ($ = jQuery) -> ... (function($){ ... })(jQuery)
not in, not of, not instanceof a not in b
a not of b a not instanceof b [].indexOf.call(b, a) < 0 !(a in b) !(a instanceof b)
anonymous classes fn class then method: -> fn((function() { function
_Class() {} _Class.prototype.m = function() {}; return _Class; })());
switch on truthiness switch when a then b switch (false)
{ case !a: b; }
destructuring everywhere a for {prop: a} in b var a,
_i, _len; for (_i = 0; _i < b.length; _i++) { a = b[_i].prop; a; }
destructuring everywhere ({prop: a}) -> (function(_arg) { var a; a
= _arg.prop; });
semicolon is seq operator a = (fn(); b) var a;
a = (fn(), b);
binary number literals 0b1001100110111 0x1337
follow the project on twitter @CSatGRPN https://twitter.com/CSatGRPN
None