39 ms·
OPP is still quite a nice way to organise things. I think it is miss-used and misunderstood to an extent. Overuse and applying it to everything probably isn't g
by collyw 6y ago
OPP is still quite a nice way to organise things. I think it is miss-used and misunderstood to an extent. Overuse and applying it to everything probably isn't going to end well hence the hate for Java "factory factory" type code.
Say you have a string, in Java, Python or whatever. It it more natural to uppercase it in an oop style mystring.upper() or a functional style upper(mystring)? Personally I think it makes things more manageable to keep the data and functionality together.