3 ms·
It's not OOP that's the problem, but your mental model. There's no OOP language that says a car has to have one color. You can define an object to have more t
by segmondy 8y ago
It's not OOP that's the problem, but your mental model. There's no OOP language that says a car has to have one color.
You can define an object to have more than one color, or maybe instead of having a color have a color pattern. How creative is your imagination? If you use a tuple of (r, g, b) to represent color in a functional language, you will still have the same problem when you realize you can have multiple colors or design patterns. if your mental model has a mismatch with the real world, you will have problem at some point.
- mercer 8y agoSometimes it's not primarily that it's impossible to model this stuff in OOP, but rather that the change in requirements over time can be more difficult to implement in an OOP codebase. At least that's been my experience.