Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The fact that people are still writing clarifications for what something seemingly as simple as "this" actually means is just another argument for avoiding it entirely.

It's a huge source of sneaky, little errors and you wont find any JS object I've written without the first line being "var self = this;".

Basically "this" considered harmful.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: