4 ms·
Don't get me wrong. I love OOP, and have been using it since before it was cool. It's been a standard wrench in my toolbox for decades. In fact, I have been ru
by ChrisMarshallNY 7y ago
Don't get me wrong. I love OOP, and have been using it since before it was cool. It's been a standard wrench in my toolbox for decades.
In fact, I have been running into folks, these days, that don't understand it, as, apparently, OOP is becoming "uncool."
I've always been a "right tool for the right job" kind of guy. I started off with ML (Machine Language, not Machine Learning). I am quite comfortable, sitting down with a breadboard, and flashing an OS.
But I remember the old days of OOP, where "classic" structured programmers didn't "get" OOP, and designed these horrific chimeras.
I always make it a point to understand my methodology and drivers "to the bone." Just because someone at a conference said it, doesn't mean that I should use it for everything.
- jjgreen 7y agoPlease write a blog post called "Horrific OOP chimeras" and post a link on HN ...
- ChrisMarshallNY 7y agoOh...the stories I could tell... But I have made it a point of personal ethos not to post criticism or polemics, denigrating/excoriating the work of others. I know that could buy me a lot of clicks (and probably some considerable HN Above The Fold time), but I think we have enough negativity and finger-pointing on the Internet. If you read my stuff, you won't see much of that. I may, in a rather vague way, allude to something that gives me a frowny-face, but I don't want that to be part of my "personal brand," so to speak. I do take tremendous personal pride in my work; both coding and writing, and hold myself to a high bar. I may even project that bar onto others (only in some circumstances), but I don't think it's helpful to do so in public. I find it most gratifying to write a "This is how I do this..." post, as opposed to a "This isn't how you should do it..." post.
- FpUser 7y agoLots of words. What's the conclusion? OOP is bad? Or maybe it is incompetent people who manage to f.. things up no matter what you give them or people with the agenda going on holy crusades?
- ChrisMarshallNY 7y agoNo, OOP is not "Bad." I'm not feeling particularly argumentative. I apologize if what I wrote upset you. I suspect that we may actually agree on most things. In some cases, it is not the best tool for the job, but I find that I tend to use OOP for almost everything I do; large or small. It isn't of much use in small utility scripts, though, and some languages are just not written to natively support it. In those cases, procedural (or FP) is the way to go. There are new-ish methodologies, like functional programming, and protocol-oriented programming, that deprecate "classic" OOP. Some folks are using these as backing for declaring OOP "dead." I suspect that might be a bit...premature. My current fave lang is Swift, which pretty much allows you to use any methodology you want, or mix them together (Will it blend? That is the question). I have found that it isn't helpful for me to "write off" any methodology, and most of my work is actually a hybrid approach; with elements of multiple methodologies. BTW: I'm a "lots of words" kind of guy. Prolix, JAMES Prolix...
- FpUser 7y ago"There are new-ish methodologies, like functional programming, and protocol-oriented programming, that deprecate "classic" OOP. Some folks are using these as backing for declaring OOP "dead." Those are anything but new-ish. In programming new often means that some old concept suddenly becomes fashionable. Myself I do not restrict to any single paradigm and use what I believe is the most suitable for current task.
- ChrisMarshallNY 7y agoNote the "-ish". I know that they aren't actually new, and that many "new paradigms" are actually rebranded old stuff (I have been writing software since the early 1980s, and have seen these waves sweeping through the industry; often, with some amusement). What does happen, though, is that a canon develops, based on these technologies, and [actual] new techniques get created, based on them. Some of these are nightmares, and need to be strangled before they can crawl off the slab, but sometimes, a gem comes up. I write about some of my experiences around that here: https://littlegreenviper.com/miscellany/concrete-galoshes/#either-or https://littlegreenviper.com/miscellany/concrete-galoshes/#e... I remember writing "object-oriented" software for classic C, in the late 1980s. I called it the "faux object" pattern, and was based in state being kept in a structure that was passed around functions. I refined and formalized the idea when I encountered Apple's QuickDraw GX in the early '90s (I suspect that may be the only good thing that I ever got from that sad debacle). I used the faux object pattern in an SDK I designed in 1994, and it's still being used to this day. Back then, you couldn't pass OOP across module connections, so we had to figure out a way to do it with C. Nowadays, I can easily pass Swift extensions and virtual implementations across SDKs; no sweat. It's cool.