Functional programming(FP) VS Object-Oriented programming(OOP) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Functional programming(FP) VS Object-Oriented programming(OOP)

Does functional programming changes the way we know OOP? What does functional programming means generally? Does it improve OOP or replaces it? Thanks in advance.

2nd Oct 2016, 2:48 PM
Shahar Levy
Shahar Levy - avatar
2 Answers
+ 2
Functional programming differs from OOP in that it is for data manipulation, such as number crunching. These languages are generally pretty straightforward. For example Fortran is specialized for doing mathematical operations really well. OOP is more of a readability extension to the construction of Procedural programming. It makes it much much easier to understand certain program structures when they are made using classes and objects and layers of both, rather than huge loops, conditionals, and functions. Neither replaces the other, and there are languages that are good for both (C++ is a notable one) and some that are specific such as lisp.
3rd Nov 2016, 12:00 AM
Chris
Chris - avatar
+ 2
Thank you very much!
17th Nov 2016, 3:10 AM
Shahar Levy
Shahar Levy - avatar