Test-Driven Development (TDD) in JavaScript #4 - Duplication & The Rule Of Three

preview_player
Показать описание
In this video, Jason Gorman illustrates how refactoring to remove duplication from our code can lead us to a better design, and demonstrates the Rule of Three that can guide us towards better abstractions and protect us from leaving refactoring too late.

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

Jason, wonderful video. I loved the small steps you have taken to parametrize the tests. I would have jumped and made big changes.

mailsiraj
Автор

Hey, thanks for doing these man. Much love from smack bang in the center of India. I haven't watched this yet, but you deserve a comment for the effort!

I'm reading Ken Becks' classic and the code snippets are in Java (which I don't know), and duplication is something he talks about but I don't think he means what I think he means. So I'll watch your series and hopefully it clears things up!

HominisLupis