4 ms·
> 4. Getting lost in this-land. This is one of major design flaws in JavaScript; when one goes deeper into prototype land and using 'this' in closures/function
by bitL 9y ago
> 4. Getting lost in this-land.
This is one of major design flaws in JavaScript; when one goes deeper into prototype land and using 'this' in closures/functions, facepalming happens all the time as the semantics is completely different to what one would expect in better designed languages like C++ and Java. So you have to workaround around these warts, making the programming akin to walking on eggshells. Especially if JavaScript is only one of languages you know well, and you have to switch back and forth between many different languages that are more-less compatible with each other in this regard.
- Roboprog 9y agoI’ll take EcmaScript over C++ any day :-) But I started programming back in 83, before the PC industry decided that some bastardized knock off of Simula 67 was the one true programming model. In contrast, a language which traces its origins back to Smalltalk/Self with a longing to use some Lisp/Scheme techniques can’t be all bad.