by socketcluster · 1w ago · 0 comments
A lot of juniors see JS hate as a way to make themselves appear more experienced. If you say you hate JS, it's a kind of flex because it implies that you've tried multiple languages and concluded that JS is the inferior one because it imposes fewer guardrails than the others and has a few nasty gotchas (which they all have, if you're being honest).
C's gotchas are pretty nasty if you ask me; mess up a pointer reference or forget to check a buffer's size and you've given an attacker root access. That's as nasty as it gets.
Even a hyped language like Rust has issues in terms of build time, gaps in concurrency safety (e.g. lock issues/complexity), async (function coloring) complexity, panics as a DoS attack surface.
Sometimes a language provides some kind of safety but simultaneously incentivizes anti-patterns and runaway complexity. Actually this point highlights what I like about JavaScript; although it isn't the most safety-conscious language (though at least it does a pretty good job protecting from remote code executions via buffer overflows), it is succinct and the lack of guardrails incentivizes people to keep function interfaces simple which encourages high cohesion and loose coupling. JS punishes you big time for not designing your architecture carefully. I also like this about Python. Python code, in practice, is quite succinct and pleasant to read.
No comments yet.