Git Product home page Git Product logo

asyncjs-flow's Introduction

Getting into the Flow: Static Types for Javascript

Copyright 2017 Dave Gurnell.

Slides for a talk at Async on 7th September 2017.

License

Creative Commons Licence
Getting into the Flow: Static Types for Javascript by Dave Gurnell is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Abstract

Static type systems are all the rage these days. Languages like Typescript, Elm, and Purescript, use static types to reason about code without running it, eliminating certain classes of bugs and making code easier to understand.

However, adopting a new programming language comes at a cost. Wouldn't it be nice if we could benefit from static types in our existing Javascript code without jumping over to a new language?

Enter Facebook's Flow, a static type checker for ordinary Javascript. In this talk I'll show you how to add Flow to an existing Javascript project. I'll demonstrate how Flow's static types work and how they'll help uncover bugs in your code. Finally, I'll talk about how to adjust your programming style to get the most benefit from static types.


Dave is a Scala developer moonlighting as a Javascripter. By day he works for Brighton-based Scala consultancy Underscore (no relation to the popular Javascript library). He spends most of his time writing software, writing books about writing software, and building synthesizers from the souls of tormented cats.

asyncjs-flow's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.