This is where the tension lies between DRY and KISS principles.

This is where the tension lies between DRY and KISS principles. I agree with the emphasis that DRY is not set in stone and can be violated in some certain scenarios. But if you’re in the gray area, I would still favor adhering the DRY with a quick solution such as method extraction or something, cause you can always refactor bad abstractions later if you’re sure that you’re dealing with a single-source-of-information even in very large codebases.

Geri bildirimler için yazıyı Medium'da aç.