For twenty years JavaScript's dynamic typing has given us an easy-to-use scripting language. But now Flow and TypeScript are changing the foundations of the language. Far from turning our code into an object oriented mess, static typing gives us JavaScript code that's cleaner, simpler and more predictable.
Type safety removes boilerplate assertions, needless unit tests, and the need to create class-based APIs. And by embracing the nature of typechecking, we end up with interfaces that are easier for humans to understand too.
- Flow
- TypeScript
- Type Systems Will Make You a Better JavaScript Develope by Jared Forsyth (YouTube, 22m)
- Why use static types in JavaScript? by Preethi Kasireddy (Blog series)
- Designing for Types (F# Blog Series)
- Elm, Flow, and TypeScript by Oliver Zeigermann (Slides)
- Flow: Fast and Precise Static Type Checking for JavaScript by Avik Chaudhuri (YouTube, 47m)
Clone this repo and run...
npm install
npm run check-flow
npm run build-flow
npm run build-typescript