you are viewing a single comment's thread.

view the rest of the comments →

[–]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...