3 ms·
That's cool. But don't write JS if you don't know what this does, because it will bite you.
by badman_ting 13y ago
That's cool. But don't write JS if you don't know what this does, because it will bite you.
- xdfgsd 13y agoYou JS cretins are the worst. I never ceases to amaze me how seriously you take syntax bikeshedding and browser quirks over the big picture. No other community even comes close to the pedantry and nitpicking I've observed among most JavaScript developers.
- Bahamut 13y agoOr just avoid using `this` unless you're sure about what it does in a particular context.
- gravity13 13y agoOr just learn what 'this' means because, seriously, you're a programmer and it's not that hard to figure out.
- debaserab2 13y agoThat 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.
- svachalek 13y agoCome on, there are what, half a dozen keywords in JavaScript? It's not that complicated.