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
Tweet

More Decks by Patrick Stapfer

Other Decks in Technology

Transcript

  1. View Slide

  2. View Slide

  3. View Slide

  4. View Slide

  5. View Slide

  6. View Slide

  7. View Slide

  8. View Slide

  9. View Slide

  10. View Slide

  11. View Slide

  12. View Slide

  13. View Slide

  14. View Slide

  15. View Slide

  16. View Slide

  17. View Slide

  18. View Slide

  19. View Slide

  20. View Slide

  21. View Slide

  22. View Slide

  23. View Slide

  24. View Slide

  25. View Slide

  26. View Slide

  27. View Slide

  28. View Slide

  29. View Slide

  30. View Slide

  31. View Slide

  32. View Slide

  33. View Slide

  34. View Slide

  35. View Slide

  36. View Slide

  37. View Slide

  38. View Slide

  39. View Slide

  40. View Slide

  41. View Slide

  42. View Slide

  43. • https://github.com/ryyppy/flow-guide
    • https://github.com/flowtype/flow-typed
    • https://medium.com/@ryyppy
    • Flow-Runtime by @ryyppy (Youtube)

    View Slide