2 ms·
This an ugly convention. By always using `that` you lose an opportunity to create a meaningful variable name which would be more descriptive. Why not use?
by karol 10y ago
This an ugly convention. By always using `that` you lose an opportunity to create a meaningful variable name which would be more descriptive. Why not use?
var widget = this
Besides using more functional approach and arrow functions you can free up your code from lining methods via this keyword.
- dntrkv 10y agoThat's way more confusing. At least with `that`, you know it is pointing at the current instance. If you see `anyOtherVariableName` you have to know what it was assigned.