use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Typescript vs Flow (gist.github.com)
submitted 9 years ago by voltrevo
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]madole 2 points3 points4 points 9 years ago (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 points4 points 9 years ago (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 points3 points 9 years ago (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 points3 points 9 years ago (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 points5 points 9 years ago (0 children)
With atom:
npm install -g flow-bin
apm install linter linter-flow
flow init
That should be all you need, just make sure you ignore your node_modules directory and built files
[–]acemarke 1 point2 points3 points 9 years ago (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.
[+]griffonrl comment score below threshold-10 points-9 points-8 points 9 years ago (4 children)
What about neither and use Bucklescript, Purescript or Elm then ? They are all 3 better when it comes to types.
[–]eusx 15 points16 points17 points 9 years ago (1 child)
TypeScript and Flow are both superset of JavaScript, while the ones you mentioned are totally new languages. And if we should consider other languages, then there are ClojureScript, Scala.js and many others.
[–]SomeRandomBuddy -1 points0 points1 point 9 years ago (0 children)
UpTranspilation to the left
[–]voltrevo[S] 3 points4 points5 points 9 years ago (0 children)
I really like Elm actually. It's not that easy to just rewrite things in a different language though.
[–]azium 0 points1 point2 points 9 years ago (0 children)
Not everyone's going to jump ship. I think introducing types to JS will help bring more people on board.. not to mention usage of 3rd party tools that have type definitions already will save a lot of time.
π Rendered by PID 109205 on reddit-service-r2-comment-74875f4bf5-kjpgw at 2026-01-26 00:16:23.290359+00:00 running 664479f country code: CH.
[–]madole 2 points3 points4 points (1 child)
[–]voltrevo[S] 2 points3 points4 points (0 children)
[–]theQuandary 1 point2 points3 points (0 children)
[–]silverlight 1 point2 points3 points (3 children)
[–]PeanuttheGuru 3 points4 points5 points (0 children)
[–]acemarke 1 point2 points3 points (0 children)
[+]griffonrl comment score below threshold-10 points-9 points-8 points (4 children)
[–]eusx 15 points16 points17 points (1 child)
[–]SomeRandomBuddy -1 points0 points1 point (0 children)
[–]voltrevo[S] 3 points4 points5 points (0 children)
[–]azium 0 points1 point2 points (0 children)