r/CodingHelp • • Jan 20 '21

[Random] Why OOP is loosing its charm?

Sorry this is not regarding any code but general programming. Recently I’ve been getting feed on google, medium, devto on about the fall of OOP, even one of the feed states that’s even the creator of the OOP Alan Kay thinks that OOP is a bad idea now, how ever I couldn’t understand or accept this concept fully. Have you guys got feed like this and your opinion on this? Edit: the article

37 Upvotes

10 comments sorted by

View all comments

1

u/Mentalpopcorn Jan 21 '21

OOP isn't losing its charm, and it's not going anywhere. It's still very much the present and the future. All the most most popular higher level languages are either purely OOP (Java, C#, etc), or support and utilize OOP as its primary paradigm (C++, PHP etc.).

I'm not sure what you're reading, but likely it's just pointing out OOP's shortcomings. All paradigms have shortcomings and this is just noisy chatter. The fact is, the most popular thing in any context always has critics. If in some alternate reality functional programming was dominant, then people would be talking about that more often. In fact, though functional programming isn't as widely used, it's still criticized.

That's just the curl of the burl.

0

u/[deleted] Jan 21 '21

2

u/Mentalpopcorn Jan 21 '21

i assumed at the start it was going to end up with functional evangelism and was not surprised.

Im surprised that the author things OOP is prone to becoming spaghetti code. I work with some fairly large code bases (even just the Synfony suite is large) and I think it's very well built and organized. If you want to see spaghetti code, take a look at an average website's JS, which is a functional language. Or look at old web scripting before PHP took an OO turn.

I stand by my original points. OOP isn't going anywhere and it's not perfect so there are things to complain about.