3 ms·
The goal of Flow was apparently to be able to add types to some parts of the code while leaving the rest of it unchanged, this to me was confusing, because at t
by voidr 9y ago
The goal of Flow was apparently to be able to add types to some parts of the code while leaving the rest of it unchanged, this to me was confusing, because at that time, you were already able to do that with TypeScript.
Over time the argument in favour of Flow became the following: it has a "sound" type system, which means it produces better results in some extreme cases where TypeScript fumbles. I didn't seem to ever hit those corner cases, I just enjoyed the fact that TypeScript had a more robust type system.
Next argument was: Flow is just a linter that strips out the type annotations. Most projects that use Flow use a transpiler, which renders the linter argument moot.
As of today, I don't know of anything that you can do with Flow and cannot do with TypeScript, the reverse is not true though.
Unless I'm missing something, it seems that Flow's existence is based on tribalism rather than rationality, the Angular team realised that if there is already a project out there that covers 99% of their needs, it might be better to just work with the project instead of reinventing the wheel, Facebook seems to have been ignorant of that. Facebook developers seem to have a tendency to just re-invent the wheel instead of collaborating, see Yarn, I'm not saying that they are wrong in doing so, there is a chance that they might be on the right, however I don't feel that is the case when it comes to TypeScript.
- wakeywakeywakey 9y agoThis has been exactly my experience as well. The "sound" type system almost never makes a difference beyond blog post examples. TypeScript is incredibly pragmatic and clean.
- stupidcar 9y ago> Unless I'm missing something, it seems that Flow's existence is based on tribalism rather than rationality This is my impression as well. The Facebook employees I see on Twitter seem like super-smart people, but unfortunately they also seem to have a degree of arrogance and aggressiveness about how their tech is superior to everything else, which they often express by trash-talking the "competition". In fact, a lot of the Flow / React / Yarn, etc. community seems vaguely cult-like, with a cabal of Facebook/ex-Facebook employees as its leaders, and an implicit (or explicit) contempt for anyone too stupid to recognise their righteousness. That alone makes uncomfortable enough to avoid using any of these projects when I have the option not to.
- deleted 9y ago[deleted]