If your program functions, it’s functional.
Turns out I really love functional programming after all 😹
I fundamentally disagree with the idea that these are competing strategies.
Just like walking doesn’t really compete, like at all, with flying in an aircraft, Functional and Object Oriented Programming are at their best when you use whichever approach makes sense for a given situation and in any reasonably complex software that means your code should be full of both.
OOP is really good at the high level structure of your software as well as efficiently storing data. FP is really good at business logic and algorithms.
Also, I take issue with the claim that OOP is all about “objects”. It’s also about classes. In fact I’d argue classes are more important than objects.
The older I get, the more “it depends”.
This. Nothing is a silver bullet.
Not even silver bullets.
Object-oriented design is about message-passing; messages are more important than objects. Classes are completely irrelevant – there’s an entire branch of object-oriented language design without classes!