What is OOP versus FP in like a few Sentences?
OOP, FP, Object Oriented Programming, Functional Programming

Object Oriented programming is focused on classes and objects. It COUPLES the data (attributes) to the methods inside classes and objects.

Functional programming is focused on methods. It SEPARATES methods from the data. 

FP is good for situations where, as your application evovles, you are mostly adding new methods. SQL is a highly FUNCTIONAL language. 

OOP is good for situations where, as your application evolves, you primarily are adding new data / attributes. Changing a method may require editing many different CLASSES.

| Back

Footerfull