derwikion Hacker News • Recommends
On “Using Polymorphism instead of conditionals when programming”
#cleancode#polymorphism#miskohevery
349K subscribers • 62 videos on Hallway
Intermediate. Assumes working knowledge.
438K views17 years ago3 recommendations
Software designTools and practiceDesign patternsSoftware architectureTesting
Misko Hevery explains how to use object-oriented techniques like polymorphism to eliminate repeated conditional statements and improve testability.
Google Tech Talks November 20, 2008 ABSTRACT Is your code full of if statements? Switch statements? Do you have the same switch statement in various places? When you make changes do you find yourself making the same change to the same if/switch in several places? Did you ever forget one? This talk will discuss approaches to using Object Oriented techniques to remove many of those conditionals. The result is cleaner, tighter, better designed code that's easier to test, understand and maintain. Speaker: Misko HeveryWhat people say. Highly recommended for learning how to replace complex conditional logic with clean, testable polymorphic designs.
derwikion Hacker News • Recommends
On “Using Polymorphism instead of conditionals when programming”
VBprogrammeron Hacker News • Recommends
On “Criminal Overengineering”
Mr_Pon Hacker News • Recommends
On “Flags Are a Code Smell (2014)”
wcoenenon Hacker News • Mentions
On “How A Pull Request Rocked My World”
efraimon Hacker News • Mentions
On “Anti-if: The Missing Patterns”
tacitusarcon Hacker News • Mentions
On “Push ifs up and fors down”