2 ms·
My personal opinion on this OOP vs. FP debate is that this is a result of that fact that OOP has been taught as being the only way to write software, not as one
by Delmania 14y ago
My personal opinion on this OOP vs. FP debate is that this is a result of that fact that OOP has been taught as being the only way to write software, not as one of many.
OOP has it's place. When you have a complex system that needs to keep track of state since the entities within thayt system behave differently dependng on the state, that's a good time to use it. Design patterns are like chess moves, they give us a good place to start working from. However, if the problem doesn't fit the pattern, most people try to make it fit rather than redesining it based on what they learned.
Functional programming is better for time when you don't need state. You need an answer based on the current state, but that's it. I personally think both paradigms have a place in modern development..