Is the set of SOLID principles the absence of an additional "D"?

Although not a pure OOD principle - should DRY also be included when thinking about SOLID principles? If not, why not?

+2


source to share


3 answers


This is a bit like asking why you shouldn't add the monkey key to the apple basket: they are not really the same thing.

SOLID is a set of principles specifically designed for object-oriented design.



DRY is, I would say, somewhat orthogonal in that it is a programming principle that can be applied to whatever you write.

(Having said that, the acronym is almost too good to leave)

+3


source


I think "DRY" is probably not specific enough to turn it into SOLID. DRY can be a basic tenet of other principles and it applies to any kind of development, not just object-oriented development like SOLID.



+2


source


SOLID covers DRY. If you stick to the SOLID principles, you are almost automatically DRY.

0


source







All Articles