Slide 1

Slide 1 text

JavaScript kyle simpson @getify http://getify.me

Slide 2

Slide 2 text

You are Brendan Eich, employed at Netscape in May 1995. Your boss asks you to design a new language for the browser, but gives you only 10 days to complete it. Choose your next adventure! To agree and give it your best shot, turn to page 39. To laugh and walk away, turn to page 262. pg 16 pg 17

Slide 3

Slide 3 text

You’ve learned the ins and outs of JavaScript, but lots of things still “bug” you. [] == ![] is just too unbearable to go on. Choose your next adventure! To give up on JS and move to go, turn to page NaN. To explore your own custom JS, turn to page 2 . 01e+2. pg 402 pg 403

Slide 4

Slide 4 text

“less” standards, better tools

Slide 5

Slide 5 text

vs.

Slide 6

Slide 6 text

; vs.

Slide 7

Slide 7 text

what if your team didn’t have to agree?

Slide 8

Slide 8 text

github.com/getify/esre configurable 2-way code formatting

Slide 9

Slide 9 text

not just styles, though...

Slide 10

Slide 10 text

“12 Angry Men”

Slide 11

Slide 11 text

TC39 :: ECMA-262 awb

Slide 12

Slide 12 text

what if you could customize JS to your own liking?

Slide 13

Slide 13 text

sweetjs.org JS macros

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

beyond macros...

Slide 19

Slide 19 text

{ block scoping }

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

es6 ftw

Slide 22

Slide 22 text

be careful

Slide 23

Slide 23 text

ftw ... fml

Slide 24

Slide 24 text

wait, what exactly am I suggesting?

Slide 25

Slide 25 text

democracy? anarchy? oligarchy?!? YES heresy!

Slide 26

Slide 26 text

FoilScript: github.com/getify/foilscript

Slide 27

Slide 27 text

non-standard (or partial!) JavaScript github.com/getify/literalizer how can I parse ?

Slide 28

Slide 28 text

never fear! github.com/getify/let-er --es3 ES6!

Slide 29

Slide 29 text

github.com/getify/let-er ES6!

Slide 30

Slide 30 text

google.github.io/traceur-compiler/demo/repl.html

Slide 31

Slide 31 text

google.github.io/traceur-compiler/demo/repl.html

Slide 32

Slide 32 text

unary + binary operator

Slide 33

Slide 33 text

unary + binary operator

Slide 34

Slide 34 text

unary + binary operator

Slide 35

Slide 35 text

optional ternary-else

Slide 36

Slide 36 text

optional ternary-else

Slide 37

Slide 37 text

optional ternary-else

Slide 38

Slide 38 text

promiscuous this binding hard this binding soft this binding

Slide 39

Slide 39 text

soft binding

Slide 40

Slide 40 text

soft binding

Slide 41

Slide 41 text

soft binding

Slide 42

Slide 42 text

soft binding

Slide 43

Slide 43 text

conditional catch clauses

Slide 44

Slide 44 text

conditional catch clauses

Slide 45

Slide 45 text

conditional catch clauses

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

? team collaboration

Slide 48

Slide 48 text

inversible transforms

Slide 49

Slide 49 text

inversible transforms

Slide 50

Slide 50 text

stay tuned on that...

Slide 51

Slide 51 text

• esprima/acorn (parser) • escodegen (code generator) • escope/eslevels (scope analyzer) • istanbul (code coverage) • estraverse (analyze AST) • eslint (pluggable code linting rules) • plato/jscomplexity.org (complexity)

Slide 52

Slide 52 text

• auto-correct misspellings • safely re-arrange scope • consolidate declarations • automatically reduce complexity • refactor boolean traps • optimize performance • ...

Slide 53

Slide 53 text

also see: https://speakerdeck.com/ariya/the-future-of-javascript-language-tooling also see: http://gregfranko.com/building-javascript-tools-talk/

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

does this bother you?

Slide 56

Slide 56 text

does this bother you?

Slide 57

Slide 57 text

restrictmode.org

Slide 58

Slide 58 text

restrictmode.org

Slide 59

Slide 59 text

kyle simpson @getify http://getify.me