An article: http://maksimivanov.com/posts/static-type-checking-js
Here we discuss the Javascript type system, why you might want to add static type checking on top of it and how to do it using Flow.
11. 11
A type system is a tractable syntactic method
for proving the absence of certain program
behaviors by classifying phrases according
to the kinds of values they compute.
31. 31
● Define contracts – manage complexity
● Get fast feedback
● Get smart suggestions from editor
Final thoughts
32. 32
● Define contracts – manage complexity
● Get fast feedback
● Get smart suggestions from editor
● More confidence when refactoring/changing
code
Final thoughts
33. 33
● Define contracts – manage complexity
● Get fast feedback
● Get smart suggestions from editor
● More confidence when refactoring/changing
code
● It will push you to better code design
Final thoughts
35. 35
● Should have good architecture first
● Not a substitute for tests
Not a silver bullet
36. 36
● Should have good architecture first
● Not a substitute for tests
● It adds some noise
Not a silver bullet
37. 37
● Should have good architecture first
● Not a substitute for tests
● It adds some noise
● Your team should know how to work with it
Not a silver bullet