Hacker News new | ask | show | jobs
by hackits 3149 days ago
Flow/Typescript both of great but writing from start from scratch both flow and typescript slow me down with all the hassle of needing to define the types of parameters and data structures. Typescript being a bit verbose at time too.

When working with another person API then typescript does become a godsend in helping understand what the bloody hell does this callback parameter are required.

2 comments

>When working with another person API then typescript does become a godsend in helping understand what the bloody hell does this callback parameter are required.

Plot twist: While you are cursing at the person who wrote that API, you slowly realize that it was you all along.

Agree, typescript does help with that slow realization that its a problem with your code passing in undefined instead of a object.
Verbosity is quite helpful when doing maintenance on foreign code.