5 ms·
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/sty
by cooervo 6y 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 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.
- flukus 6y agoThe 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.