by api · 7y ago · 0 comments
Obviously if there is a manageable way to reduce repetition, take it, but I would not add a lot of complexity for the sake of brevity. That's turning your dev team into a data compression algorithm made of meat.
I was just arguing that adding a lot of complexity to reduce duplication is an exercise in diminishing returns pretty fast.
I used to say "less complexity" but I've found that even for me, sometimes when I do something that seems simple and less complex, it ends up requiring more cognitive load (it's not descriptive enough, or it tries to do too much "magic", etc).
I've been jokingly pushing for over-application of syntax-focused DRY to be called "Huffman coding"