back to notes

OO pitfalls

Let’s ask a question about Monopoly (and Enterprise software). Where do the rules live? In a noun-oriented design, the rules are smooshed and smeared across the design, because every single object is responsible for knowing everything about everything that it can ‘do’. All the verbs are glued to the nouns as methods. — My favourite interview question

From http://raganwald.com/2014/12/20/why-why-functional-programming-matters-matters.html



last updated march 2019