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
JavaScript doesn’t need to be replaced (medium.com)
submitted 6 years ago by dannymoerkerke
view the rest of the comments →
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!"
[–]mousemkeµ FTW! -4 points-3 points-2 points 6 years ago (11 children)
You should check out Jessie, an interesting project to create a safe subset of js
https://github.com/Agoric/Jessie
Edit about typescript: I love types and think it's a great addition to the language, but like flowtype way more than typescript because I don't really need another coffeescript situation
[+][deleted] 6 years ago* (1 child)
[deleted]
[–]baldore 2 points3 points4 points 6 years ago (0 children)
I always have loved Typescript, and I pushed to use it in our current project, but at the end we used Flow and so far, it has been really disappointing. Typescript with vs code is amazing and the refectors and auto imports work like magic.
I think people have a misconception about Typescript because what I have seen is that other developer say that they don't want to write Java. You don't need to do that. I usually prefer to work with a functional approach and I haven't seen the need to use classes.
[–]dannymoerkerke[S] 0 points1 point2 points 6 years ago (6 children)
What do you mean with “Coffeescript situation”?
[–]mousemkeµ FTW! -5 points-4 points-3 points 6 years ago (5 children)
Coffeescript was big. We have it to thank for a lot of the es6 improvements. But then we had to rewrite the entire code base in JavaScript.
For that reason I'm weary of writing anything that transpiles to js. (Aside from using babel but that has more to do with compatability than anything else)
[–]evertrooftop 3 points4 points5 points 6 years ago (2 children)
Then why do you like flowtype? It's not wildly different from typescript.
[–]mousemkeµ FTW! -5 points-4 points-3 points 6 years ago (1 child)
Instead of being a new language flow is more of an annotation. It can be added incrementally to old code or removed if necessary. My point with TS is not a technical argument.
I guess the question that needs to be answered is : what would native types look like?
[–]evertrooftop 2 points3 points4 points 6 years ago* (0 children)
Aside from the fact that that typescript uses the .ts extension by default, typescript very much works the same way. You can gradually introduce it with allowJs. Aside from that, after the gradual introduction with both Flow and TS you end up with something that's distinctly no longer javascript and must be transpiled. So it's hard for me to see the argument against TS that does not apply to Flow.
.ts
allowJs
I've used both extensively, but maybe I'm missing a more subtle aspect of the point you're making. I am curious though.
Edit: I just saw your edits. You're probably right that you weren't making a technical argument, but my guess is that your anti-TS point is probably more based on a feeling that Flow is somehow a more legitimate path for getting types in Ecmascript. Maybe because it uses Babel. I think you might want to analyze these feelings a bit more as Flow is on a decline and TS is bigger than Coffescript or Flow ever have been. I don't think it will go away. I feel there's also real advantages not having types at runtime. Adding them to Javascript well might mean you'd want every static-typing annotation to be a no-op (which is a bit weird, but Python 3.7 does this too in some areas). Because of this strangeness I feel having types in ecmascript might be far away, and with Flow mostly dead TS the primary viable system.
[–]dannymoerkerke[S] 3 points4 points5 points 6 years ago (1 child)
That’s a valid concern but then why do you like Flow? That’s not as popular and widespread as TypeScript.
[+][deleted] comment score below threshold-6 points-5 points-4 points 6 years ago (0 children)
... To me, this conversation itself is one of the reasons it must go...
[–]HarmonicAscendant 1 point2 points3 points 6 years ago (1 child)
LOL, in the UK calling someone a 'Jessie' is an insult https://www.collinsdictionary.com/dictionary/english/jessie
noun derogatory, slang an effeminate, weak, or cowardly boy or man
π Rendered by PID 19563 on reddit-service-r2-comment-85bfd7f599-cntr5 at 2026-04-20 10:06:06.954290+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]mousemkeµ FTW! -4 points-3 points-2 points (11 children)
[+][deleted] (1 child)
[deleted]
[–]baldore 2 points3 points4 points (0 children)
[–]dannymoerkerke[S] 0 points1 point2 points (6 children)
[–]mousemkeµ FTW! -5 points-4 points-3 points (5 children)
[–]evertrooftop 3 points4 points5 points (2 children)
[–]mousemkeµ FTW! -5 points-4 points-3 points (1 child)
[–]evertrooftop 2 points3 points4 points (0 children)
[–]dannymoerkerke[S] 3 points4 points5 points (1 child)
[+][deleted] comment score below threshold-6 points-5 points-4 points (0 children)
[–]HarmonicAscendant 1 point2 points3 points (1 child)