2 ms·
This is like so many "OOP is bad" posts. Yes, OOP is bad. OOP is bad because inheritance is not as good as interfaces. OOP is bad because typically it puts s
by cryptonector 7y ago
This is like so many "OOP is bad" posts. Yes, OOP is bad.
OOP is bad because inheritance is not as good as interfaces.
OOP is bad because typically it puts state changes inside mutable, shared objects, which makes concurrency difficult.
Java has interfaces and generics -- use those instead of inheritance.
C++ has templates -- use those instead of inheritance.
Design and implement interfaces that operate on immutable, preferably linear data types, and concurrency will be easier.