TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Evidence points to OOP being bullshit (2013)

38 pointsby m_sahafalmost 7 years ago

15 comments

stcredzeroalmost 7 years ago
If you&#x27;re only being buzzword compliant with Object Oriented Programming, yes, you&#x27;re going to have a meh experience. If you&#x27;re only going so far as to be buzzword compliant with, say, buying a guitar, it&#x27;s much the same. On the other hand, if you also spend some time with diligent practice and study, which the purchase of the guitar would have enabled, you may well have an extraordinary experience.<p>Object Oriented Programming got to the level of &quot;McDojo&quot; martial arts practice. A minority of people learned the essence. The majority got to hang out with people spouting the same ideology, went through the same motions, and felt good about socializing while circle jerking together. So on the whole, it&#x27;s accurate to say that OOP was oversold, in much the same way that martial arts was oversold. There was some calisthenic benefit, but not much more than that.<p>So what makes Functional Programming any different? I&#x27;m not so sure if anything can&#x27;t turn out to be just a structured way of writing spaghetti code. Most writing is meh, and deserves to be eventually forgotten. Most music is meh, and deserves to be eventually forgotten.<p>Sturgeon&#x27;s Law: 90% of everything is shite.
评论 #17331322 未加载
评论 #17331396 未加载
hliyanalmost 7 years ago
Steve Yegge made this argument in a more dramatic fashion in 2006, with his now notorious &quot;Execution in the Kingdom of Nouns&quot;: <a href="http:&#x2F;&#x2F;steve-yegge.blogspot.com&#x2F;2006&#x2F;03&#x2F;execution-in-kingdom-of-nouns.html" rel="nofollow">http:&#x2F;&#x2F;steve-yegge.blogspot.com&#x2F;2006&#x2F;03&#x2F;execution-in-kingdom...</a>
tannhaeuseralmost 7 years ago
Isn&#x27;t Pivotal responsible for the Spring (Java) framework? In that case it would make sense to trash-talk OOP for them, since Spring is widely known to take magic Java annotations to an absurd level. While OOP for things such as oauth and data binding etc. would result in slightly more verbose upfront code using just libs and light annotations, the majority of time spent in Spring&#x2F;Spring Boot apps is trying to understand Spring&#x27;s opinionated framework and boilerplate on Java newbie boards. Sadly, Spring has overtaken alternatives for Java developers who know what they&#x27;re doing and generally exercise more mental discipline in their work.
评论 #17331430 未加载
Francutealmost 7 years ago
This is old (2013). However, i think it&#x27;s really ironic to talk trash about OOP while thinking in Java and pointing Alan Kay in the same post. Alan Kay being the father of OOP always made clear Java wasn&#x27;t the OOPL he had in mind.
评论 #17331386 未加载
评论 #17331307 未加载
partycoderalmost 7 years ago
Presenting opinions as facts is dogmatism and that is exactly what this article is.<p>Many programmers moved from imperative programming to structured programming to object oriented programming (a form of structured programming), and some of them perceived benefits while others didn&#x27;t. This is some paradigms work better with different requirements.<p>Any paradigm can be used to implement unmaintainable spaghetti. Don&#x27;t blame the paradigm.
grosjonaalmost 7 years ago
All evidence points to this article being bullshit.<p>I&#x27;d like to see someone try to make a decent game (including frontend) with Erlang, Haskell or Scala.<p>Sometimes you need to separate state into different objects and let those objects manage their own internal state otherwise the code becomes overly complex. OOP was invented specifically to support this kind of isolation. Yes, sometimes OOP makes it more difficult to follow the flow of logic but once you understand the structure and core components of the system, it&#x27;s much easier to make non-breaking changes and additions to the code.<p>This article is just regurgitating FP rhetoric and preaching FP as a silver bullet.
bnialmost 7 years ago
Examples where OOP has worked really well: iOS and macOS. The Objective-C and Cocoa combo must be a large part of the success of these platforms.<p>Where it has not worked so well: Web-backend programming. To me OOP has always felt out of place there.
stickfigurealmost 7 years ago
Pretty low-quality article, mostly just a bunch of links to other opinions. I&#x27;m used to better commentary from pivotal.<p>I don&#x27;t really understand why functional programmers bash on OOP so much. If you code up a bunch of immutable objects with methods that return changed versions, you&#x27;re now a <i>functional object-oriented programmer</i>. It&#x27;s a pretty nice paradigm! It beats the hell out of &quot;everything is a list&quot; and car&#x2F;cdr is your hammer.<p>Yeah, a lot of Java programmers fail to grok immutability and irritate us with wordy half-measures like builder patterns. On the other hand, the stream api allows you to write code that looks reasonably close to the clojure-equivalent -- perhaps a bit more verbose, but at least it&#x27;s typesafe. If you want more concise there&#x27;s Varvr. This is more of a culture problem than a language problem.
评论 #17331847 未加载
adamlettalmost 7 years ago
What evidence? The article presents none.
jokoonalmost 7 years ago
That&#x27;s why I love C++. If you avoid using OOP, it quickly becomes a good enough language to use.<p>I just wish it was just faster to compile <i>sigh</i>.
评论 #17331349 未加载
0xBA5EDalmost 7 years ago
Backtracks on the title&#x27;s claim in the opening sentence. Then states some basic well-known points that even advocates of OOP would agree with, even in 2013. Then neglects to suggest solutions except alluding to functional programming a couple times.
manicdeealmost 7 years ago
Rewrite my 35k LOC in a language that makes writing the thing I am writing easier, and you will have a convert.<p>Reprimand me for doing the thing I am doing without providing tools or guidance on how to change, you have a new enemy.
jaequeryalmost 7 years ago
most people are like sheeps .<p>they tend to follow whatever is bright and shiny without truly understanding why they even need it.
seeekralmost 7 years ago
(2013)
l0b0almost 7 years ago
For any given paradigm, has useful software been written using that paradigm? If so, it is not &quot;bullshit&quot;. And it&#x27;s not exactly surprising that well-known academics and theoretical computer scientists smack talk Java - it&#x27;s not appropriate for most number-heavy problems. For the other 99% of programmers, it does CRUD pretty well.