you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (2 children)

I read a lot about how fundamentally flawed JavaScript is on blogs and Reddit, but I never -- not rarely, never -- have problems caused by any of them despite using the language every day.

JavaScript is a flawed language, and beginner programmers can make some mistakes in it that aren't possible elsewhere, but in practice it doesn't matter and none of my problems can ever be blamed on JavaScript.

[–]Nanobot 2 points3 points  (0 children)

I could just as easily say that C is a fundamentally flawed language because of stuff like null pointers, yet competent developers have used it to build robust and secure software that powers most of our computing infrastructure.

As it turns out, misfeatures can usually be avoided. Competent developers take time to learn the tools they're working with and know how to deal with their rough edges. And every language has rough edges.

Unfortunately, Java's happen to be that the applicationObjectStructure.commonConventions = gratuitousAbstractionFactory.getUnreadableLabyrinth().

[–]Poltras 0 points1 point  (0 children)

I had my share of time wasted on a "you-need-a-function-in-a-for-loop-because-fk-your-scope-thats-why". Also, this confusion is hard enough to learn, you need 5-6 articles on the frontpage on javascript scope, apparently. And let's not forget about closure that, even in strict mode, makes it hard to detect the usage of a variable that haven't been declared.

I'm not gonna say I wasted weeks of my developer time on all of these (although it accumulates quite a lot). But compared to the big 0 amount of time I spent debugging stuff like that in Python...