Choose the least capable feature/tool/pattern/etc. suitable for a given purpose. This optimizes for the capability/tractability tradeoff: the more things you can do with something, the harder it is to reason about.

Using a less capable thing gives you more tractable thing. Map is less capable than foreach, but that means you know map won’t change the length of a list. Immutable data can do less than mutable data but you’re guaranteed to have the same value.


Keyboard Shortcuts

Key Action
o Source
e Edit
i Insight
r Random
h Home
s or / Search
www.joshbeckman.org/notes/01k2f6d2vajd64334k2x8jygem