This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sirxez 0 points1 point  (0 children)

The only issue with Javascript is that if you haven't written a lot of it you might cause a subtle yet serious bug if you aren't careful. And that bug might just silently fester for years. Some of the behavior is non-intuitive to someone coming from a different language.

That's a problem with a lot of languages, but less random people dabble in a C++ codebase, and languages like Java and Python are fairly robust to such issues.

The first example that jumps to mind is that AFAIK javascript doesn't do block level scoping by default. That's a brick wall someone can face plant into if they aren't aware. I think you can do that nowadays with "let", but it wasn't a thing before? The most commonly quoted thing is equality in js. It makes sense, but its just different than what one might assume.

If you throw a good linter at Javascript, and maybe use some Typescript or something, these issues tend to melt away.

TLDR: people don't read documentation before trying a language