JSFoo 2017

JSFoo is a conference about JavaScript and everything related.

Type check your JS codebase with Flow

Submitted by Vagmi Mudumbai (@vagmi) on Saturday, 22 April 2017

videocam_off

Technical level

Intermediate

Section

Full Talk

Status

Submitted

Vote on this proposal

Login to vote

Total votes:  +11

Abstract

Flow is a static type checker for Javascript. By adding a few type annotations Flow lets you minimize errors that can occur in a large codebase. By the end of this talk we’ll look at common anti-patterns with JS codebases and how Flow can help you write better code.

Outline

  • Introduce flow with a simple hello world example.
  • Introduce comment type vs inline annotations
  • Introduce MaybeTypes to address the billion dollar mistake
  • Touch upon Classes, Function Types, Generics and Union Types
  • Live code a small example to demonstrate editor integration such as autocomplete and inline errors and demonstrate Flow works well with Babel and eslint.
  • Introduce flow-typed to obtain type annotations for popular npm libraries
  • Q&A

Speaker bio

I have been writing Javascript for several years now and have relied on tools such as linters and unit testing to catch bugs. Flow is one more tool in JS developers toolbelt that is essential for today’s single page app JS world regardless of which framework or library you use.

Comments

  • 1
    Sandhya Ramesh (@sandhyaramesh) Reviewer a year ago

    Hi Vagmi! We are evaluating your proposal right now and find it quite interesting! Please upload some slides so that we can understand this better? And also a preview video? Thanks.

Login with Twitter or Google to leave a comment