Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Flowtype and the Wonders of Statically Typed JavaScript

Flowtype and the Wonders of Statically Typed JavaScript

JavaScript is great because of its dynamic nature and rich and expressive syntax. But for what we know, missing type-enforcement, the use of anonymous functions, dynamic function argument lists and contexts also makes it very hard to document, analyze and safely execute code for both, humans and machines.

Wouldn’t it be nice, if we could use a tool which automatically documents our code, is able to analyze and deliver code intelligence about our API, without rewriting our existing codebase in a different language and use ES-conform JavaScript instead?

Actually, there is. It’s called Flowtype and it’s great!

In this talk, I will discuss how typed JavaScript will make our lives so much easier in the near future, focus on how Flowtype is solving practical day to day problems in our codebase and how it helped us write better and self-documenting code without the pain of rewriting everything from scratch.

Presented at:

- 20th of January 2017 (AgentConf 2017)
- 25th of January 2017 (React Zürich Meetup)
- 13th of Februar 2017 (Reactive Roadshow - Kosice / SK)
- 14th of February 2017 (Reactive Roadshow - Bratislava / SK)
- 15th of February 2017 (Reactive Roadshow - Brno / CZ)
- 16th of February 2017 (Reactive Roadshow - Prag / CZ)

Patrick Stapfer

January 20, 2017

More Decks by Patrick Stapfer

Other Decks in Technology