Functional Programming vs. Object-oriented Programming
Functional Programming | OOP |
---|---|
Its functions have no-side effects | Its methods can produce serious side effects. |
Flow Control is done using function calls & function calls with recursion | Flow control is done using loops and conditional statements. |
What is functional programming?
In computer science, functional programming is a programming paradigm where programs are constructed by applying and composing functions.