If this in JavaScript would be same as in other language, why would someone use JavaScript? Power of JavaScript is due to this, otherwise, all nothis and such things are also possible in other languages as well with some tweaks. There is no fun in not using this.
this is cancer only for you, not for everyone !! And it will not become cancer for everyone by shouting it out loud.
Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
Disagree. The power it JavaScript is it runs almost everywhere. It's power is also in it's flexibility on how you like to code. this causes more problems than it solves.
this is cancer only for you
False. Read stack overflow. Google. You'll find many thousands of posts with people having problems with this.
Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
If
this
in JavaScript would be same as in other language, why would someone use JavaScript? Power of JavaScript is due tothis
, otherwise, allnothis
and such things are also possible in other languages as well with some tweaks. There is no fun in not usingthis
.this
is cancer only for you, not for everyone !! And it will not become cancer for everyone by shouting it out loud.Disagree. The power it JavaScript is it runs almost everywhere. It's power is also in it's flexibility on how you like to code.
this
causes more problems than it solves.False. Read stack overflow. Google. You'll find many thousands of posts with people having problems with this.
Just because thousands of programmers have a hard time reasoning about threads in Java, should they be eliminated?
If there are roads to take and one causes less flat tires, which road would you choose to take?