Load-Bearing Quirks

In software development, code describes what the program does, but is not helpful when we need to understand what it is intended to do or why. This leads to important quirks that is load-bearing–changing it or cleaning it up actually breaks it unbeknownst to the engineer.

To better understand intent we need comments, documentation, or a formal spec. Describing code that has no intent is also important.

For example, an algorithm implemented using a BTreeSet as a backing data structure, could that be changed to something else? Is there any intent here since BTreeSet preserves insertion ordered and hashable (in Rust)?

See also:

  • This tweet from mcclure111 that talks about having to uncover authorial intent many years after some code is written and the concept of load-bearing quirks.