I'm an awful nostalgist for mega constructors and the circa 2010 var _this = this; but your points make sense in most contexts. I think value of this is clearer when describing code that is referecing an instance environment of something. Especially at an entry level, I think this helps to lubricate the learning process when working with constructors.
Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
I prefer a functional reactive style that doesn't require constructors or this.
I think the concept of this works great in other languages like C#. Because you know what this is. Though in JavaScript, people expect this to behave the same way it does in those other languages and it just doesn't :(
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm an awful nostalgist for mega constructors and the circa 2010
var _this = this;
but your points make sense in most contexts. I think value ofthis
is clearer when describing code that is referecing an instance environment of something. Especially at an entry level, I thinkthis
helps to lubricate the learning process when working with constructors.I prefer a functional reactive style that doesn't require constructors or
this
.I think the concept of
this
works great in other languages like C#. Because you know whatthis
is. Though in JavaScript, people expectthis
to behave the same way it does in those other languages and it just doesn't :(