What is DRY code?

Описание к видео What is DRY code?

DRY is an acronym for Don’t Repeat Yourself. It’s a commonly referred to principal in software engineering that traces its origins to the book the book, The Pragmatic Programmer. The underlying idea is that every piece of knowledge in your system should have a single, authoritative source of truth. This reduces duplication in your code base and generally makes your system easier to maintain. That said, it does have some tradeoffs and potential to be misapplied.

0:00 - What is DRY?
0:56 - Examples
1:40 - Tradeoffs
2:26 - Don't blindly follow rules of thumb
2:59 - Danger 1: Hasty Abstraction
4:08 - Danger 2: Forcing Dry
4:37 - Danger 3: Duplicate code != duplicate knowledge
5:04 - Recap

#softwareengineering #softwaredevelopment #programming

Комментарии

Информация по комментариям в разработке