3 ms·
FP and OOP are both just tools, how you use them is way more important than which tool you choose. I agree with this. I would note though that experienced de
by seagreen 10y ago
FP and OOP are both just tools, how you use them is
way more important than which tool you choose.
I agree with this. I would note though that experienced developers don't always consider them equivalent tools, for instance Carmack suggests defaulting to FP when possible (from here: http://www.gamasutra.com/view/news/169296/Indepth_Functional_programming_in_C.php http://www.gamasutra.com/view/news/169296/Indepth_Functional...):
" No matter what language you work in, programming in a functional style provides benefits. You should do it whenever it is convenient, and you should think hard about the decision when it isn't convenient. "