re: My 5 Favorite Software Design Principles  VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Great article! The only thing I have to say is that I'm one of those people who says that repeating something twice isn't enough to justify abstrac...
 

Context is crucial too...you can have the same code show up in different places with completely different contexts which looks repetitive, but it makes no sense to de-duplicate something that crosses system boundaries.

 

Absolutely right. Sometimes you can have the exact code verbatim and working off two different input/outputs. One of those implementations may change without the other so by de-duping and putting into a method you can be creating a regression.

This is why software engineering is so fun! (not saying it sarcastically)

code of conduct - report abuse