What I Love and Hate About Flow

Javascript Sucks Okay

Credit: document.write

Eliminate a whole class of errors

FML

Create a new class of errors (if you’re not careful)

How you code
How I code
type SeussType = { 
thing1: string,
thing2: string
};
// or even bettertype ThingType = string;type SeussType = {
thing1: ThingType,
thing2: ThingType
};
// and thentype ApiResponseType = SeussType;

Easier refactoring

How Trump codes

More damn errors to fix before your pull request gets merged in

Helps document things

// this
const printName = name => ...
// or this
type NameType = {
first: string,
last: string
};
const printNameOhShitItsAnObject = (name: NameType) => ...

It’s a big time investment

Not this
This

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store