DEV Community

Discussion on: Intro To Functional Programming

Collapse
 
siy profile image
Sergiy Yevtushenko

Starting from very first example you're mixed up object oriented and imperative programming. In fact there is no contradiction between object oriented and functional programming. Object oriented code can (and often do) use immutable data and pure functions. Object oriented code is more about how code and data organized together than about how code does things.