Skip to content
0:00 / 0:00

#sandimetz#object-orientedprogramming#inheritance

The problem with Object Oriented Programming and Deep Inheritance - Sandi Metz

Dev Tools Made Simple

25K subscribers • 12 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • An opinion. It argues one side of a question engineers disagree on.

Intermediate. Assumes working knowledge.

2.1K views1 year ago2 recommendations

Software designProgramming languagesObject-oriented designDesign patternsRefactoring and legacy code

An explanation of speculative generality and the bugs associated with deep inheritance trees in object-oriented programming.

#ObjectOrientedProgramming #OOD #SandiMetz #SoftwareDesign #CleanCode #ProgrammingTips #CodeComplexity #DIT #SoftwareEngineering #CodeMaintainability Are you over-engineering your code for features that may never exist? In this video, we dive into Sandi Metz’s thoughts on speculative generality and explore the research-backed risks of deep inheritance in object-oriented programming. We’ll cover: Why guessing future features often backfires The Chidamber & Kemerer metrics and the Depth of Inheritance Tree (DIT) Why “middle” classes are surprisingly the most bug-prone How to balance OO benefits with code readability and maintainability Learn how to write cleaner, more maintainable OO code without falling into the trap of unnecessary abstraction. Sources: people.scs.carleton.ca/~jeanpier/sharedF14/T1/extra%20stuff/…

Why it's here

2 people recommend this

u/MinimumMagician5302in r/Clojure • Recommends

The problem with Object Oriented Programming and Deep Inheritance

u/South-Reception-1251in r/softwarearchitecture • Recommends

The problem with Object Oriented Programming and Deep Inheritance

u/MinimumMagician5302in r/Kotlin • Recommends

The problem with Object Oriented Programming and Deep Inheritance

u/MinimumMagician5302in r/compsci • Recommends

The problem with Object Oriented Programming and Deep Inheritance

u/MinimumMagician5302in r/softwarearchitecture • Recommends

The problem with Object Oriented Programming and Deep Inheritance

u/MinimumMagician5302in r/ProgrammingLanguages • Recommends

The problem with Object Oriented Programming and Deep Inheritance

u/MinimumMagician5302in r/typescript • Recommends

The problem with Object Oriented Programming and Deep Inheritance

u/MinimumMagician5302in r/swift • Recommends

The problem with Object Oriented Programming and Deep Inheritance

u/MinimumMagician5302in r/dotnet • Recommends

The problem with Object Oriented Programming and Deep Inheritance

u/MinimumMagician5302in r/scala • Recommends

The problem with Object Oriented Programming and Deep Inheritance

u/MinimumMagician5302in r/FlutterDev • Recommends

The problem with Object Oriented Programming and Deep Inheritance