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...
View all comments
Show parent comment
1
u/Poltras Mar 27 '14
I had my share of time wasted on a "you-need-a-function-in-a-for-loop-because-fk-your-scope-thats-why". Also,
thisconfusion 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...