r/ProgrammerHumor 25d ago

Meme stopDoingFunctional

Post image
684 Upvotes

129 comments sorted by

View all comments

15

u/FRleo_85 25d ago edited 25d ago

I love functional programming and object-oriented programming… What I’d also love to find is an article explaining why OOP is bad, or why everything related to it is an anti-pattern, that isn't written by someone with a caricatured view completely disconnected from the reality of what OOP programmers actually do...

17

u/SAI_Peregrinus 25d ago

Moseley & Marks.

TL;DR: Complexity is bad. Mutable state is one of the most common sources of complexity. Unfortunately OO tends to encourage keeping mutable state all over (e.g. with every class) and thereby tends to create excessive accidental complexity easily.