Ask HN: Does working with JavaScript affect your mental health?
4jerawaj74046/14/2025, 4:53:04 PM
Comments (4)
NoahZuniga · 53m ago
JS get's a lot of hate, but its not that janky. I much prefer a lot of things of js over python. The JS object notation is superior to python's dict notation. Also async programming in JS is way nicer.
sherdil2022 · 10h ago
Why should working in any language, least of all JavaScript, affect mental health - of all things? Granted there will be some frsutration, some stress and anxiety (for some quirks one has to trouble shoot and fix). Which I hope is temporary and which I know working in any language would cause to some extent or another. Rust, anyone?
bigyabai · 10h ago
Debugging in Rust is a cakewalk compared to vanilla Javascript. Maybe it's the quality of code, maybe it's the linter, maybe it's the type annotation; but errors tend to be much more clear in my experience. Rust errors are almost always semantic - JS errors could be your runtime, your interpreter, your code, your logic or even the specification of the language.
I've seen a couple pleasant JS libraries in my day, and hundreds of absolutely horrifying packages, many of which are proprietary "internal use only" that will thankfully never see the light of day. I could see how JS work would tax you mentally, especially if your superiors refuse to switch to TS.
sherdil2022 · 9h ago
Understood. But just one thing - like using JS isn’t the cause. If management is stupid enough to not make DX better, that would be the reason for mental-health issues for sure.
I've seen a couple pleasant JS libraries in my day, and hundreds of absolutely horrifying packages, many of which are proprietary "internal use only" that will thankfully never see the light of day. I could see how JS work would tax you mentally, especially if your superiors refuse to switch to TS.