Functional Programming and Object-Oriented Programming

Get a quick comparison of functional programming and OOP.

We'll cover the following

Similarities between OOP and FP

Some factors might lead you to believe that functional programming and object-oriented programming are fundamentally opposed. The reality, however, is that they’re closely related. Object-oriented programming, a term coined by Alan Kay, is a construct with many implicit functional programming ideas focused around message passingThe idea of passing values between different components, like functions or objects, of the system as a message.. OOP’s origin is in science. Its creator modeled the paradigm after biological cells. He viewed it as a real-life analogy for his conceptualization of the future of computing that is, a nexus of networked devices.

Get hands-on with 1200+ tech skills courses.