r/programming • u/maroun-baydoun • Oct 20 '26
Make yourself replaceable
https://maroun-baydoun.com/blog/make-yourself-replaceable/
359
Upvotes
r/programming • u/maroun-baydoun • Oct 20 '26
View all comments
Show parent comment
9
u/Uristqwerty Oct 22 '26
Comments talking about history are a form of caching. The cost of digging through old commits is so high that you won't bother without substantial cause, and an expectation that there's something worth looking for. Pull a key fact out into a comment, though, and reading it is nearly free. You have to contend with all the usual caching problems; stale information, excess clutter, deciding when to evict, so it's a judgment call when and what to mention. Ideally, the minimum amount of information needed for future maintainers to judge whether digging through history for the full detail would be relevant to their current task.