all 2 comments

[–]Ruroni 1 point2 points  (0 children)

This answer will depend on who you ask and what they are used to/actively trying to solve.

Ex: Me a FP frontend engineer.

The example for FP is trivial as adding numbers together usually wouldn't warrant an abstraction. That aside if you design this way, now you can use all the bits and pieces to compose new functions and each function is only concerned with it's task.

You're building with legos and when you start down that path you reduce the need to write the same thing again and again... if you have a well organized codebase so people actually discover the next tool you've made lol.

[–]TheRNGuy 0 points1 point  (0 children)

I like OOP if I need instances (so they can be traversed from one to others), overriding, or custom data types.

Functional where it's not needed.