+ 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.
2 Respuestas
+ 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.
+ 2
Thank you very much!