"The Clean Code Talks -- Inheritance, Polymorphism, & Testing"

438,465 views

Why it's on BrighterTube

Hand-picked by a BrighterTube curator · found via HackerTube (Karpathy's dataset of videos Hacker News recommends · 84% confidence

Miško Hevery shows how to replace repeated if and switch statements with polymorphic classes, refactoring live and explaining why the result is easier to test; a classic Google Clean Code talk with concrete before-and-after code.

What you'll learn

Miško Hevery shows how to replace repeated if/switch logic with polymorphism and why that makes code easier to test.

Video by Google TechTalks, played through YouTube's embedded player.

Part of Testing

Go deeper

As an Amazon Associate, BrighterTube earns from qualifying purchases. Picked by hand for this subject; nobody paid to be listed.

Videos are embedded from YouTube and belong to their creators. BrighterTube isn't affiliated with YouTube or Google.

As an Amazon Associate, BrighterTube earns from qualifying purchases.

© 2026 BrighterTube