HackerTube / Video
"The Clean Code Talks -- Inheritance, Polymorphism, & Testing"
Google TechTalks

Misko Hevery's Clean Code Talk shows how to use object-oriented techniques such as polymorphism to remove repeated if and switch statements. The result is code that is easier to test, understand and maintain.
HN commenters recommend it as a thorough treatment of replacing conditionals with polymorphism and why flags and deep ifs can be code smells.
6 Hacker News mentions · 2009–2023