+ 3
How to avoid over-engineering using OOP?
I have seen that there are many times when using OOP is not appropriate to be applied to the issue at hand, leading to over-engineering of a problem to reach the perfect solution when often it is really not necessary. How do you avoid this situation?
3 Respuestas
+ 2
Perfect solutions? Most are far from acceptable, as much as from working. So do not waste time while thinking about how not to be perfect.
Most people simply do not understand the purpose and principles of OO. That's why they try to use OO for problems that can be solved much easier with other paradigms. And that's called over engineering (not the best term I think). As one said correctly: "A hammer is a useful tool, but it should not be used for everything."
+ 2
Don't build too many classes 😎