The DRY Principle is questionable 🤯 ⚠️

preview_player
Показать описание
Software Developers.

The principle: Don't Repeat Yourself is questionable. It can lead to more complexity if you take it too seriously. Code duplication is not always the worst and sometimes better than the complexity that might come with removing it. Manually doing things is also not always worth automating, if it is a simple task done rarely.

#softwaredeveloper #programmer
Рекомендации по теме
Комментарии
Автор

Spending time on automating manual tasks that you need to do rarely is questionable 🤨

codemadesimple
Автор

DRY is more a guideline to encourage modular design, not an actual rule.

Rustmilian
Автор

Removing Code Duplication is not always worth it. Sometimes it is better to just embrace it.

Especially for unit tests that often become unreadable if you refactor them too much ⚠️

codemadesimple
join shbcf.ru