3 ms·
I think its important to be aware of functional style and the weaknesses of OOP, so you can write OOP code that avoids the worst pitfalls. Classes still remain
by o_nate 2y ago
I think its important to be aware of functional style and the weaknesses of OOP, so you can write OOP code that avoids the worst pitfalls. Classes still remain a nice way to organize code, but you should try to make them immutable if you can.
- DeathArrow 2y ago> Classes still remain a nice way to organize code Using classes as code containers doesn't make your code OOP. I use C# which demands most code being put inside classes, but my code isn't OOP because I seldom use inheritance, encapsulation or method overriding.
- freilanzer 2y ago> Classes still remain a nice way to organize code, but you should try to make them immutable if you can. So, modules in functional languages?