— Code Wars: Episode VII – FP battles OOP —
Although Functional Programming (FP) and Object-Oriented Programming (OOP) are often pitted against each other (as I am doing here–guilty as charged), is this just a made-up conflict?
Let's find out…
1/
I won't go into the details of either FP or OOP in this thread (a series on OOP is coming soon, by the way)
So let's look at what they are _in brief_
2/
They are usually referred to as 'paradigms'. They're styles of programming which follow certain guidelines. They also lead to a different mindset on how to design and write computer programs
3/
They're not 'opposites' of each other in the way that 'tall' and 'short' or 'big' and 'small' are opposites
However, they do have certain rules and guidelines that are not compatible with each other. This often leads to them being seen as opposites
4/
And as with most topics in this Code Wars series, there are groups of people who are very vocal in their support for one or another of the paradigms (usually accompanied by a disdain for the other)
5/