Day 19/90: Iterators and generators
Today's note was about using iterators and generators to make object shape, prototype behavior, and method ownership easier to trust. I kept coming back to the same checks: who owns state and lookup behavior, call-site context or iterator contract, and abstractions that stay readable under reuse.
The failure mode worth watching is using classes, closures, or prototype tricks before deciding which object actually owns the state.…
