DEV Community

[Comment from a deleted post]
Collapse
 
fpuffer profile image
Frank Puffer • Edited

Writing Clean Code means adhering to a set of principles which by the way have existed for a long time before Uncle Bob wrote a book about them. All of these principles make sense in certain contexts and it is important to understand them. But that's only the easy part.

The hard part is:

  • Some of the principles are highly subjective: What is a single responsibility? What is a meaningful name?

  • Some of the principles do not go together very well, especially when you overdo one of them. For example, removing duplicate code (DRY) often creates additional dependencies (coupling).