Download pdf - Our wish to Flowtype

Transcript
Page 1: Our wish to Flowtype

Our wish to Flowtype

@teppeis

React.js meetup #2 Sep 8, 2015

Page 2: Our wish to Flowtype

Hello!• Teppei Sato, @teppeis

• Cybozu, Inc. / kintone

• Closure Compiler / TypeScript / Flowtype

Page 3: Our wish to Flowtype

MUST BUY!

Page 4: Our wish to Flowtype
Page 5: Our wish to Flowtype

I've talked "Flowtype Introduction"

twice…

Page 6: Our wish to Flowtype
Page 7: Our wish to Flowtype
Page 8: Our wish to Flowtype

Flowtype is awesome!

Page 9: Our wish to Flowtype

Strong type inference

Page 10: Our wish to Flowtype

React.js integration

Page 11: Our wish to Flowtype

Check propTypes statically

Page 12: Our wish to Flowtype

Flowtype is NOT a language

Page 13: Our wish to Flowtype

Just a type checker (now :))

$ jstransform --strip-types

• Just strip types!

Page 14: Our wish to Flowtype

Less original syntax

Page 15: Our wish to Flowtype

Less original syntax

// type cast in Flowtype var strOrNull = (null: ?string);

// type cast in TypeScript var strOrNull = <string> null;

• Only type annotation with ":" • ECMAScript standard friendly

Page 16: Our wish to Flowtype

Fast! Fast! Fast!

Page 17: Our wish to Flowtype

Many Facebook repos using Flowtype are published

Page 18: Our wish to Flowtype

Our Facebook made it!

Page 19: Our wish to Flowtype
Page 20: Our wish to Flowtype

after

Page 21: Our wish to Flowtype
Page 22: Our wish to Flowtype

Why?

Page 23: Our wish to Flowtype

d.ts is not supported yet

Page 24: Our wish to Flowtype
Page 25: Our wish to Flowtype
Page 26: Our wish to Flowtype

Not friendly with npm

Page 27: Our wish to Flowtype
Page 28: Our wish to Flowtype
Page 29: Our wish to Flowtype
Page 30: Our wish to Flowtype
Page 31: Our wish to Flowtype
Page 32: Our wish to Flowtype
Page 33: Our wish to Flowtype

Incomplete documentation Many pitfalls…

Page 34: Our wish to Flowtype

Hard to contribute…

Page 35: Our wish to Flowtype
Page 36: Our wish to Flowtype

I wait eagerly Flowtype!

Page 37: Our wish to Flowtype

Thanks!


Recommended