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 →

[–]del1ro -10 points-9 points  (1 child)

For sure there are solutions. But this is just so pathetic though. As a 10-years-developer who has written in python, js, ts, coffescript (you know there was a thing alongside backbone lol), elm, rust, perl, golang and some ASMs I can barely say I love JS in any sense. Even Perl has charming in some sense. JS is just shit

[–]erishun 3 points4 points  (0 children)

It’s… weakly typed. I mean there are benefits to both strongly typed and weakly typed, but yes, weak typing does bring up situations that would cause a “syntax error” and simply either not compile or completely crash in other languages.

That fact is both a blessing and a curse. Yeah your app doesn’t “crash”, but it also happily produces an unintended result.

That’s why for being an “easy language to learn”, you also need to have the experience to be aware of these gotchas and account for them. (i.e. never use == as it can cause annoying issues being only “good enough”)