DEV Community

Discussion on: We're the core maintainers of Storybook, Ask Us Anything!

Collapse
 
gugadev profile image
Gustavo Garsaky

As a JavaScript project scale, debug it becomes harder. So, if you start a large project, do you prefer Typescript or Flow? Why?

Collapse
 
norbertdelangen profile image
Norbert de Langen

I seriously don't know.

Typescript seems to be more popular and so from a community / onboarding perspective I think it makes more sense. I've used Flow in the past and it helped a lot, but there was also a cost associated with maintaining it.

My recommendation would be to try to to keep the complexity as low as possible. I think static typing can help deal with high complexity but at the same time it introduced some. So only you can decide if the trade-off makes sense for you, your team and the project.

Optimise for feedback and confidence, type-systems can help.