4 ms·
I've been thinking recently, we might have too many layers of abstraction in our systems. And I didn't even know about most of the ones in this post.
by ben_w 3y ago
I've been thinking recently, we might have too many layers of abstraction in our systems.
And I didn't even know about most of the ones in this post.
- mttpgn 3y agoJust because the number of abstraction layers can be reduced doesn't mean they need to be. You might gain back some CPU cycles, some milliseconds of execution time. But the tradeoffs of maintainability, legibility, and developer quality-of-life may, in the long run, reintroduce abstraction layers of some other type back into the overall SDLC.
- ben_w 3y ago> But the tradeoffs of maintainability, legibility, and developer quality-of-life Are in fact the things I think have become worse from the abstractions. Well, the recent abstractions. I like the ones that were widespread until about 2018 or so.
- richardwhiuk 3y agoNone of the abstractions above are new in the last 5 years.
- ben_w 3y agoI was thinking about this before learning about any of the ones in the post, if that's what you're saying.
- bitterblotter 3y agoIm curious. Can you expand / give examples?
- ben_w 3y agoThe VIPER pattern is my biggest bug-bear (but older than I realised: I didn't see it until recently, and it still seems to only be described on the German Wikipedia and not the English one), which seems to come with more glue code than business logic. • https://www.mutualmobile.com/blog/meet-viper-mutual-mobiles-application-of-clean-architecture-for-ios-apps https://www.mutualmobile.com/blog/meet-viper-mutual-mobiles-... • https://de.wikipedia.org/wiki/VIPER_(Entwurfsmuster) https://de.wikipedia.org/wiki/VIPER_(Entwurfsmuster) I also get annoyed by HTTP 200 responses containing JSON which says "server error", and web pages which use Javascript to re-implement links, image loading, and scrolling — all of which are examples of a high-level abstraction reinventing (badly) something that was already present in a lower-level of abstraction.
- nomel 3y ago> And I didn't even know about most of the ones in this post. I think that's the answer to the question of "why do we have so many". It's a great thing you don't have to know about them. Go down a layer, and the people working there will think it's a great thing they don't have to worry about the abstraction below. Software development is, currently, a human task, so the human needs necessarily structure it. I can't comment on web development...
- freeone3000 3y agoDo some embedded work, even at the c-for-esp32 layer, and you’ll start to see the benefits of having an OS.
- xandrius 3y agoYep, it seems common for people who haven't actually experienced something from the past to wish it was still like then, not understanding why people decided the trade was worth it. You might save some bytes but boy how annoying and complicated it can get.
- nomel 3y agoPast people spent good portions of their lives fighting banality, through abstraction, so we can focus on more interesting problems now. I thank and respect them, at the expense of some plentiful CPU cycles.
- ben_w 3y agoI'm 40, and I've done things down to the level of wiring discrete transistors into logic gates, as well as C64 BASIC, C, […], ObjC, and Swift. Even did a module on OSes at university (20 years ago, so they were simpler). I just… wrote my previous comment so badly everyone legitimately missed the point that was in my head. Consider that part framing. My problem with modern abstractions is the wheel keeps getting reinvented by people who don't know the lessons from the previous times it was invented, even when they're making their wheel out of other wheels — which is how I feel when I notice a website using javascript to implement <img> and <a href> tags or scroll regions whose contents can't be fully selected because it loads/unloads content dynamically 'for performance' because someone just assumed 10,000 lines of text in a browser would be slow without bothering to test it, or that I see HTTP servers returning status 200 while the body is JSON {"error": "server error"} or equivalent. I could go on (also don't like VIPER) but this would turn a comment into a long blog post. While I also don't like that web browsers are inner-OSes, can see how it happened from the second half of Zawinski's Law: Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can. - https://softwareengineering.stackexchange.com/questions/150254/what-does-jamie-zawinskis-law-mean#150264 https://softwareengineering.stackexchange.com/questions/1502...