Hacker News new | ask | show | jobs
by Bahamut 4564 days ago
Or just avoid using `this` unless you're sure about what it does in a particular context.
1 comments

Or just learn what 'this' means because, seriously, you're a programmer and it's not that hard to figure out.
That means that every person who reads your code also must understand "this" correctly in order to interpret your code correctly.

In certain team environments, I avoid 'this' because the programmer who is looking at this file next may not understand it's proper usage.

Come on, there are what, half a dozen keywords in JavaScript? It's not that complicated.