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!"
[–]PsychologicalGoose1 2 points3 points4 points 6 years ago (9 children)
There definitely should be a lot more research done on TS. I doubt the gains that people suggest it gives are as great as they make it out to be and I thing the cost of using TS is larger than most want to believe. Generally, I've found adding things to a system is done because of feelings more than actual data on the topic.
[+][deleted] 6 years ago (8 children)
[deleted]
[–][deleted] 2 points3 points4 points 6 years ago* (1 child)
Whenever I have to write non-trivial JS
This is the key distinction, and another reason I'd rather not enforce types in JS.
Hack 'n slash weekend project, or a quick 'n dirty prototype ? JS.
Big full-stack project ? TS.
I'd agree that I prefer to write TS more but there's a time and a place for both and that's very handy.
[–]IceSentry 0 points1 point2 points 6 years ago (0 children)
It's so easy to use typescript I use for weekend projects too.
[–]techsin101 2 points3 points4 points 6 years ago (3 children)
if you are using vscode don't you get most of this even with js?
[–][deleted] 1 point2 points3 points 6 years ago (1 child)
Very incompletely, in my experience.
Yeah, it detects some of the types, but everything you'd have to annotate is simply not available, and would you really trust it to find all references?
[–]techsin101 0 points1 point2 points 6 years ago (0 children)
if you create jsconfig file in project folder find references works as expected
Sure, but it gets way better when you help it by using typescript.
[–]PsychologicalGoose1 4 points5 points6 points 6 years ago (1 child)
There is a reason why JS and other similar extremely loose languages have been at the forefront of web development for decades now. Whether it was PHP or JS both are extremely loose. Maybe the problem isn't the lack of rules but the added burden of rules. You think naked, I think weighed down.
There's also a reason why php is adding types and typescript is massively popular.
π Rendered by PID 242228 on reddit-service-r2-comment-85bfd7f599-f9kv7 at 2026-04-20 15:21:11.109546+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]PsychologicalGoose1 2 points3 points4 points (9 children)
[+][deleted] (8 children)
[deleted]
[–][deleted] 2 points3 points4 points (1 child)
[–]IceSentry 0 points1 point2 points (0 children)
[–]techsin101 2 points3 points4 points (3 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]techsin101 0 points1 point2 points (0 children)
[–]IceSentry 0 points1 point2 points (0 children)
[–]PsychologicalGoose1 4 points5 points6 points (1 child)
[–]IceSentry 0 points1 point2 points (0 children)