llm
Repeat Yourself, A Bit
"Don't Repeat Yourself", abbreviated DRY, is a mantra I subscribe to as a programmer. I don't want to have the same code in multiple parts of the codebase. Part of the reason is just reuse: if I can reuse code, it's just easier. Repetitive code is also difficult to maintain - if it's in multiple places, a change may mean I need to update multiple places, which is tedious and mistake prone. A more subtle reason to try to avoid repetition is because doing so is design pressure to come up with a succinct, effective expression of what you are trying to implement, in other words, it encourages you to create useful abstractions. So, DRY! …