Hanselminutes with Scott Hanselman cover image

SOLID Principles with Uncle Bob - Robert C. Martin

Hanselminutes with Scott Hanselman

00:00

The Dependency Inversion Principle

The open-close principle states the goal, you know, makes things so that you don't have to modify them and you can extend their behavior. The dependency inversion principle says, don't depend on anything concrete, depend only on things that are abstract. If you're overriding a function, make sure it's pure. Never touch anything concrete.

Play episode from 34:22
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app