Don’t Repeat Yourself - Useful idea to reduce code duplication, but a dangerous mantra to follow blindly.

I used to say, if you are doing it twice, you should extract it to be reused. Oh, how wrong I was… The learning is that A bad abstraction is worse than no abstraction.

I like to use DRY in the context of a class/file, but I’m more careful when it goes further away.