3 ms·
I don't the author understands programming if he sees object-oriented programming as being in the same bucket as HTML/CSS/JS. OOP is a way to deconstruct proble
by zenbowman 13y ago
I don't the author understands programming if he sees object-oriented programming as being in the same bucket as HTML/CSS/JS. OOP is a way to deconstruct problems, just like functional programming, and their beginnings are based on very similar principles.
Any language that fully accepts the object-oriented paradigm lends itself very naturally to functional programming, and vice-versa.
- nbouscal 13y agoUh. What? Fully accepting the object-oriented paradigm does not make a language any more likely to properly isolate state and side effects[1], any more likely to have immutability as a default assumption, or any more likely in any other way to encourage referential transparency. As referential transparency is the essence of functional programming, this makes your claim very confusing. [1] Following OOP design patterns makes a given program more likely to properly isolate state, but this is by no means a virtue of OOP languages.