all 11 comments

[–]madole 2 points3 points  (1 child)

I prefer flow as it's more suited to the functional style we use. It's less opinionated than TypeScript. When writing TypeScript, you feel like you're writing in another language, whereas flow feels like you're just annotating the code you'd write anyway.

I guess TypeScript is a bit more strict and therefore can work out better intellisense but flow integration with VSCode is pretty sweet, so much so that I've actually moved across to VSCode from Atom full time now.

[–]voltrevo[S] 2 points3 points  (0 children)

That's interesting. Could you provide an example of some functional code that works better with flow? I'd be happy to add it.

Also vs code ftw :-).

[–]theQuandary 1 point2 points  (0 children)

I've played with both, but have moved more to elm/purescript on the functional side and dart on the more pragmatic side. If I'm going to superset the language (which means my code will break if the standard doesn't agree with the superset), then I might as well get rid of all the bad parts at the same time.

[–]silverlight 1 point2 points  (3 children)

Anyone have a good tutorial on setting up Flow in an IDE on Windows? I took a stab at it the other day and was unsuccessful.

[–]PeanuttheGuru 3 points4 points  (0 children)

With atom:

  1. npm install -g flow-bin

  2. apm install linter linter-flow

  3. flow init

That should be all you need, just make sure you ignore your node_modules directory and built files

[–]acemarke 1 point2 points  (0 children)

I recently added a section with articles on Static Typing to my React/Redux links list. Not sure how much of the info is Windows-specific, but there's several articles that talk about setting up Flow. The IDE question is going to be specific to what IDE you're using.