Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
All programming languages have quirks.. By following best practices, making regular code reviews, code refactoring and actually learning when/how to use THIS most of the problems can be avoided.
And what about those problems that survive all of the above?
Well in that case we have automated tests, unit tests and plain old manual tests.
Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
"Because that is the way we have always done it" is not a valid excuse.
"We put additional checks in to catch these problems" is backwards. You are treating the symptoms, not the cause. Write your code in a way that those problems are unable to exist.
If NULL is the Billion dollar mistake and this is magnitudes more complex than NULL. How much is this costing us?
It's time to think outside the brackets { }.
nothis
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.
this
is integral part of JavaScript and replacing it with a third-party library, in my opinion, is out of question.I know it's not a big library but still it contributes to the bundle.
Cost of Javascript
The dependency and bundle cost is absolutely a cost that should be weighed when considering all packages. More people should think this way.
NULL is also an integral part of JavaScript. NULL has now been labeled the Billion dollar mistake. How much will THIS cost us?
All programming languages have quirks.. By following best practices, making regular code reviews, code refactoring and actually learning when/how to use
THIS
most of the problems can be avoided.And what about those problems that survive all of the above?
Well in that case we have automated tests, unit tests and plain old manual tests.
"Because that is the way we have always done it" is not a valid excuse.
"We put additional checks in to catch these problems" is backwards. You are treating the symptoms, not the cause. Write your code in a way that those problems are unable to exist.
If NULL is the Billion dollar mistake and
this
is magnitudes more complex than NULL. How much isthis
costing us?It's time to think outside the brackets { }.
nothis