Hacker News new | ask | show | jobs
by cooervo 1964 days ago
I'm not a big fan of Angular, but in their style guide they talk about Try to be DRY. And I think they explain it better than Dan:

https://angular.io/guide/styleguide#t-dry-try-to-be-dry

> Do be DRY (Don't Repeat Yourself).

> Avoid being so DRY that you sacrifice readability.

1 comments

The problem is DRY almost always improves readability, at least with well named functions. It reduces comprehensibility, so much of the logic is abstracted away that the bigger picture can't be seen from the inside or outside of the abstraction.