Javascript is dead!
Long live Javascript!
Text
tell me something that you used to fervently believe to be true but you now think is nonsense
javascript is a good language
people who say isomorphic are smarter than me
reference gary bernhart WAT
OOP is the only good way to handle complexity
so js is a bad language but also a dynamic and sort of OO language
what's wrong with that?
Hoare's billion dollar mistake
well in js everything is nullable
What's the root of all evil?
money?
premature optimisation?
"this"
give a code sample of what's wrong with "this"
talk about the evil of side effects and pervasive mutability - think about using that Harlem Shake exploit to show evil of side effects
generally talk about the problems we face
talk specifically about problems with angular
s1 -> c1 -> {{c1}}
s1 -> c2 -> {{c2}}
So what do we do?
Linting?
Reviews?
More and more tests?
"Testing is good, impossible is better" @rtfeldman #elmconf
Use a framework? (NS)
Angular? React? Ember? Something even cooler?
None of this can fix the language
The elephant in the room
Use a better language!
Everyone transpiles
Use a better language
Cool - Typescript yeah?
No - because "this"
Clojurescript?
Maybe
Elm?
Even better
Benchmarks
How?
Evangelise
Look deeply at your problems
Find a small area and try it
Don't stick your neck out too far
Really root cause your issues. Are they caused by the language?
Give the example.of an api call changing shape.
Everyone go and learn elm so I can recruit you.
deck
By Julian Jelfs
deck
- 59