var self = this; used to widely agreed as the best practice for performing a closure.
bind(this) is starting to gain acceptance as IE8 is dropping off the map.
Referencing the variables directly is largely bad design, because if a developer changed "alpha" to another variable, some IDEs may not pick up on the refactor of the nested "alpha" in an anonymous function.
A very mediocre name.
@stealthguy I don't even see katas you authored when visiting your profile. Have you deleted them?
Why use i and j when plotting an x/y coordinate in a 2D grid?
var self = this;
used to widely agreed as the best practice for performing a closure.bind(this)
is starting to gain acceptance as IE8 is dropping off the map.Referencing the variables directly is largely bad design, because if a developer changed "alpha" to another variable, some IDEs may not pick up on the refactor of the nested "alpha" in an anonymous function.
A generally awful Kata.
The best clever solution I've seen. It's about 4 times slower than non-regex versions, though.
Would probably strangle anyone who left this in my codebase.
While I hate the variable casing, this is maintainable when you inevitably buy a bigger pot or an induction stove. Kudos!