+ 2

What's the difference between functional programming and object oriented programming

I was recently searching about paradigms and found out some interesting information I see almost the speak was about procedural, functional & object oriented programming what's your thoughts about it , did you use them all before ? which one is your favorite and why?

29th Jun 2017, 4:09 PM
Ahmed Tammaa
Ahmed Tammaa - avatar
2 Réponses
+ 3
Functional programming isn't procedural programming. Functional programing paradigm is designed around principles you can find in lambda calculus. OOP is based like procedural paradigm upon turing machine. When you handle data structures that involves mutation of values like matrix, you favor paradigm like OOP, when you handle recursive datastructure, you will favor functional programming. In OOP you describe how to solve a problem, in functional programming you have a declarative approach, you describe what the problem is. There is a lot of technical differences, but what is important is that OOP and functional programming are based upon different fundations, imply different way of thinking, and are not efficient on the same kinds of data structures. To conclude, knowing both approaches is a very useful.
23rd Mar 2018, 10:06 AM
Aldrik KLEBER
Aldrik KLEBER - avatar
+ 2
well personally I prefer functional as it faster in terms of performance and make the program less in size compared to OOP one and little effort are made with functional compared to OOP
29th Jun 2017, 5:29 PM
Ahmed Tammaa
Ahmed Tammaa - avatar