Hacker News new | ask | show | jobs
by arein3 881 days ago
If you want to write a script, OOP "kind of" nudges you towards making multiple data structures and "function" classes instead of having a simple 100 line function.

And it is the wrong choice, if you need a script and can make that function in python.

OOP, particularly Java, is good when you have a lot of functionality, especially if you can use already existing massive ecosystem.

If I would have to write something from scratch, I would not use OOP, but if you need something fairly complicated, chance is there is already a generic solution available, and you need to costomize it, where Java is pretty good.