Rules Have Reasons (Always Ask Why) @ChristopherOkhravi
Rules Have Reasons (Always Ask Why)  @ChristopherOkhravi
Uploaded July 2024 | Updated November 2026, 2 days ago
What are the reasons that underlie the rules? Why should we use one technique over another? What class of problems are we solving?

πŸ“™ BUY MY BOOK
theobjectorientedway.com

RELATED VIDEOS:
youtu.be/YaSMkzmc_sA
youtu.be/C3B5IIlt4-0
youtu.be/7hXi0N1oWFU
youtu.be/3dya1VI_zp8
youtu.be/FdFBYUQCuHQ
youtu.be/SeN1s65tRHY

CONTENTS
00:00 The problem
02:39 Static typing
04:12 Overloading
04:45 Subtype Polymorphism
06:13 My Book
06:27 Inheritance
08:28 Replace Conditional With Polymorphism
09:36 Type Testing is a Code Smell
10:30 Dependency injection
11:02 Depend on abstractions, not on concretions
11:12 Composition over inheritance
11:20 Conclusion

SOURCES:
sandimetz.com/99bottles
youtu.be/IcgmSRJHu_8
blog.cleancoder.com/uncle-bob/2014/06/20/MyLawn.html
sandimetz.com/blog/2016/1/20/the-wrong-abstraction
sandimetz.com/blog/2016/6/9/make-everything-the-same
Rules Have Reasons (Always Ask Why)Impossible Is BetterDifferent algorithms or different values?Refactoring Attacks (by replacing conditionals with polymorphism)Depend on Abstractions not Concretions (Framework)Abstractions Should Reduce ComplexityAlways Use InterfacesThree strikes, then refactor #shortsDuplication Is Cheaper Than The Wrong AbstractionThey Knew Waterfall Didnt WorkComposing simple things to make complex thingsNothing Wrong With Procedural Programming?
Christopher Okhravi |

Rules Have Reasons (Always Ask Why)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER