3 ms·
I've seen "OOP" defined as "I have a base class and a couple of derived classes", and then I see "OOP" where you have this behemoth of factories, controllers, m
by allo37 6y ago
I've seen "OOP" defined as "I have a base class and a couple of derived classes", and then I see "OOP" where you have this behemoth of factories, controllers, managers, classes with at least 6 layers of inheritance, etc.
Which OOP are we talking about?
- jariel 6y agoThe later is not OOP those are Design Patterns, sometimes used in OOP, often Java, that can sometimes be overwhelming and cumbersome.
- allo37 6y agoMaybe from a purely semantics standpoint they're not, but from what I've seen they go hand-in-hand. I think if you went around saying you "knew OOP" but didn't know what a factory was, people would look at you funny.
- jariel 6y agoOutside of Java you don't see a lot of those specific patterns (ie Factory) used. Certainly not in TypeScript or Python for example.