2 Matching Annotations
- Mar 2022
-
people.csail.mit.edu people.csail.mit.edu
-
Lesson: avoid use of this; work around by defining that
No. Actual lesson: don't do crazy shit; if you're trying to code defensively against
this
, then your code is too hard to understand, anyway, and you've got bigger problems. (See also: overuse of triple equals and treating it like an amulet to ward off unwanted spirits.)
-
- Jul 2021
-
hachettebugs.koszko.org hachettebugs.koszko.org
-
I only allowed smaller closures in the code and refactored the rest into separate top-level functions. This is a deliberate move against the common practice of js programmers. Why? Because I noticed closures make code harder to read.
-