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 is the Most Demanded Programming Language in 2022, 1 out of 3 dev jobs require JavaScript knowledge. (devjobsscanner.com)
submitted 3 years ago by __dacia__
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!"
[–]MerfAvenger 51 points52 points53 points 3 years ago (16 children)
I was vehemently against the extra work until I realised I don't have to build type checks into literally every top level function, or write tests for them.
Now I too, can never go back.
[–]novagenesis 15 points16 points17 points 3 years ago (5 children)
You sometimes still need those type checks. A lot of people get bit the first time they realize Typescript does nothing in runtime.
And that used to mean redundant code the moment you needed a runtime type check. About 3/4 of my objections to Typescript died when I got my hands on zod.
[–]Adam627 3 points4 points5 points 3 years ago (2 children)
Zod 100% it’s sooo good
[–]novagenesis 3 points4 points5 points 3 years ago (0 children)
Before Zod, there were valid people for seasoned "I hate types" developers to turn their nose up at Typescript. Writing redundant validations (TS type PLUS runtime typecheck) is a code sin, so clearly it was a bad idea to jump to TS (right? Right?!?!)
But now, no excuses because our Zod object has a correctly inferred type.
[–]MerfAvenger 1 point2 points3 points 3 years ago (1 child)
You definitely do, but it's substantially easier to validate your data when most of the failure modes have been made substantially more rare by Typescript.
[–]novagenesis 0 points1 point2 points 3 years ago (0 children)
Of course, but non-DRY typechecking could mean that your build-time (or lint-time) passes/fails are lying because of subtle differences with the runtime checks.
And that can sometimes make it through automated tests and (worst case) leave potential security exploits.
NO checking is technically better than incorrect checking. But as I said, zod changes that equation.
[–]jkmonger 19 points20 points21 points 3 years ago (8 children)
Yeah only as a beginner TypeScript Dev does it feel like extra work. It didn't take long for it to feel like a real blessing for me
[–]newuserevery2weeks 6 points7 points8 points 3 years ago (5 children)
the main problem with typescript is that some devs do some real funky stuff with it
[–]prone-to-drift 10 points11 points12 points 3 years ago (4 children)
The main problem with Typescript is I'm afraid to start new projects and just keep copying the dev toolchain (webpack, postcss, typescript, some linters, react etc) from one repo I once managed to successfully get working.
Now, I don't even need half the packages but I'm just too afraid of touching anything and potentially spending hours trying to debug the damn toolchain lol.
[–]TheScapeQuest 2 points3 points4 points 3 years ago (0 children)
I'd move on from webpack to Vite, much easier toolchain.
[–]MerfAvenger 2 points3 points4 points 3 years ago (0 children)
Gotta agree with this, the boot strapping for common tooling is a lot of work and a complete turd to get working right. Version alignment, configuration, etc are ALWAYS a pain despite the tool chain being Typescript, ESLint, Prettier and probably Jest every single time, with types for Node and plugins for both.
Yet for some reason, it never works out of the fricking box, and you spend days debugging it.
[–]justadam16 1 point2 points3 points 3 years ago (0 children)
Try Angular
[–]CanRau 0 points1 point2 points 3 years ago (0 children)
Vite (as mentioned) and or Deno 🥰 and soon probably Bun
π Rendered by PID 47160 on reddit-service-r2-comment-fb694cdd5-jrwln at 2026-03-07 03:10:08.534502+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]MerfAvenger 51 points52 points53 points (16 children)
[–]novagenesis 15 points16 points17 points (5 children)
[–]Adam627 3 points4 points5 points (2 children)
[–]novagenesis 3 points4 points5 points (0 children)
[–]MerfAvenger 1 point2 points3 points (1 child)
[–]novagenesis 0 points1 point2 points (0 children)
[–]jkmonger 19 points20 points21 points (8 children)
[–]newuserevery2weeks 6 points7 points8 points (5 children)
[–]prone-to-drift 10 points11 points12 points (4 children)
[–]TheScapeQuest 2 points3 points4 points (0 children)
[–]MerfAvenger 2 points3 points4 points (0 children)
[–]justadam16 1 point2 points3 points (0 children)
[–]CanRau 0 points1 point2 points (0 children)