DEV Community

Discussion on: The case against DRY, Micro-Frontends edition.

Collapse
 
franiglesias profile image
Fran Iglesias

Hummm. DRY is about knowledge, not about code.

Code duplication can be even desirable, as you expose in the article. Knowledge duplication is another subject.

I would add a "0 question" => Does this duplication represent a unique concept? If the answer is no, leave the duplication in place.

Collapse
 
infoxicator profile image
Ruben Casas

Yeah so there are many types of things that you want to abstract, avoiding code duplication is usually a good idea, also applies to small static things like primitives and well-defined components. The context of this article was more around the reuse of entire user experiences in a "Micro-frontend" application and how the DRY principle might not be a good idea for that use case.