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)

7dce9b480f93b02761519348359c4b71?s=128

Patrick Stapfer

January 20, 2017
Tweet

More Decks by Patrick Stapfer

Other Decks in Technology

Transcript

  1. None
  2. None
  3. None
  4. None
  5. None
  6. None
  7. None
  8. None
  9. None
  10. None
  11. None
  12. None
  13. None
  14. None
  15. None
  16. None
  17. None
  18. None
  19. None
  20. None
  21. None
  22. None
  23. None
  24. None
  25. None
  26. None
  27. None
  28. None
  29. None
  30. None
  31. None
  32. None
  33. None
  34. None
  35. None
  36. None
  37. None
  38. None
  39. None
  40. None
  41. None
  42. None
  43. • https://github.com/ryyppy/flow-guide • https://github.com/flowtype/flow-typed • https://medium.com/@ryyppy • Flow-Runtime by @ryyppy

    (Youtube)