this post was submitted on 23 Oct 2023
29 points (100.0% liked)

Programming

423 readers
6 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
top 15 comments
sorted by: hot top controversial new old
[–] ICastFist@programming.dev 14 points 1 year ago* (last edited 1 year ago) (1 children)

Yes, let's all go back to coding in assembly!

― Sarcastic comment by arrogant developer`

I like this bit because it really is a common answer whenever someone complains about how maddening/inefficient some tooling is nowadays. Like, why the fuck is this [OS EXCLUSIVE] application made with electron and running its own node server? It's what "they know", fuck it if there are alternatives that could do a much better job

About half a year ago I stumbled upon some front-end web developers who did not know that you can create a website without a deployment tool and that you don't need any JavaScript at all, even when the website takes payment.

Said front-end dev is probably too young to have perused the 2004 and earlier internet. Javascript already existed, but it was more of an afterthought. When a site wanted to be flashy and visual, it used Flash, but I don't think any halfway decent site was crazy enough to leave the payment inside a Flash page

[–] lysdexic@programming.dev 6 points 1 year ago (1 children)

I like this bit because it really is a common answer whenever someone complains about how maddening/inefficient some tooling is nowadays.

I don't think this is a valid take. What we see in these vague complains about levels of abstraction is actually an entirely different problem: people complaining that they don't understand things, and they feel the cognitive load of specific aspects is too much for them to handle.

If the existing layers of abstraction were actually a problem and they solved nothing, and if removing them would solve everything, it would be trivial to remove them and replace them with the simpler solutions these critics idealize.

Except that never happens. Why is that, exactly?

[–] Redkey@programming.dev 6 points 1 year ago (1 children)

I think that it's because a) the abstraction does solve a problem, and b) the idealized solutions aren't actually all that simple.

But I still agree with the article because I also think that a) the problem solved by the added abstraction isn't practical, but emotional, and b) the idealized solutions aren't all that complex, either.

It seems to me that many devs reach immediately for a tool or library, rather than looking into how to create their own solution, due more to fear of the unknown than a real drive for efficiency. And while learning the actual nuts and bolts of the task is rarely going to be the faster or easier option, it's frequently (IMO) not going to be much slower or more difficult than learning how to integrate someone else's solution. But at the end of it you'll have learned a lot more than you would've by using a tool or library.

Another problem in the commercial world is accountability to management.

Many decades ago there used to be a saying in tech: "No-one ever got fired for buying IBM.'" What that meant was that even if IBM's solution was completely beaten by something offered by one of their competitors, you personally may still be better off overall going with IBM. The reason being, if you went with the competitor, and everything worked out, the less tech-savvy managers were just as likely to pat you on the back as to assert that the IBM solution would've been even better. If the competitor's solution didn't meet expectations, you'd be hauled over the coals for going with some cowboy outfit instead of good old reliable IBM. Conversely, if you went with IBM and everything worked, everyone would be happy. But if you chose IBM and the project failed, it'd be, "Well, it's not your fault. Who could've predicted that IBM wouldn't come through?"

In the modern era, replace "IBM" with the current tool-of-the-month, and your manager will be demanding to know why you're wasting time reinventing the wheel on the company's dime.

[–] lysdexic@programming.dev 2 points 1 year ago* (last edited 1 year ago)

I think that it’s because a) the abstraction does solve a problem, and b) the idealized solutions aren’t actually all that simple.

I'd go a step further and state quite bluntly that these critics do not even understand the problem that the abstraction solves, and their belief is formed based on their poor and limited understanding of the problem space.

Everyone can come up with simpler alternatives if they throw most requirements out of the window. That's basically the ages old problem caused by major rewrites and their expected failure once the unknowns start to emerge.

But I still agree with the article because I also think that a) the problem solved by the added abstraction isn’t practical, but emotional, and b) the idealized solutions aren’t all that complex, either.

Hard disagree.

There is not a single technical argument refuting these abstraction layers; only ignorance of the problems they solve. It's easy to come up with simpler solutions if you leave out whole sets of hard requirements.

The idealized solution never leaves the conceptual stage because the idealized solution is never thought all the way through and the key requirements are never gathered. That's when the problems solved by the abstraction layers rear their head, and what forces these critics to face the fact that their proposed solution is inconveniently converging to the real world solution they are complaining about, but that they are reinventing the wheel poorly.

[–] mrkite@programming.dev 10 points 1 year ago

I'm off two minds. On the one side, there is far too much reliance on black box libraries to do trivial things.

On the other, this complaint is decades old. Back in the late 80s there was a software developer for the apple iigs called FTA, which stood for Free Tools Association. They claimed that the tools in the os were too slow and you should code to the raw hardware.

[–] cabbage@programming.dev 7 points 1 year ago (1 children)

Interesting observation on the current trajectory of the software development environment

What do you think about the increased usage of AI to help developers code? I feel like AI is another step into the abstraction swamp

[–] 0xD@infosec.pub 7 points 1 year ago* (last edited 1 year ago)

This AI stuff is annoying me. I don't work in development - I'm a pentester and recently had to work on some scripts with a colleague.

He is a few years my senior and basically completely relies on ChatGPT for simple string matching and splitting in bash. I could not believe my eyes. He got ChatGPT to spit out a command that didn't work exactly as we needed it to because it was looking for the wrong string. It was a really simple fix but he again had to ask ChatGPT for how to fix it, until I was like "let me do it".

It's not that he's dumb or anything, but I feel like he just grew completely lazy from that and doesn't even want to think anymore. Later on he was troubleshooting the same script for a few hours until he noticed that ChatGPT output messed up the order of lines and tried to access a variable that was only declared in the next line.

I think ChatGPT and whatever else are really useful tools, but people tend to use them as shortcuts to learning instead of getting things done quicker. That is in everyone's own responsibility - I just have the hunch that my job will get way more interesting with a new generation of incompetent developers 😁

[–] benjhm@sopuli.xyz 7 points 1 year ago* (last edited 1 year ago) (1 children)

I develop an interactive climate / future scenario model, now in scala, earlier in java, almost no dependencies. No visualisation frameworks - the diverse plots hand coded in scala (transpiles using scala.js, makes SVGs on demand). The science code from demography through economy emissions, bioegeochemistry, to climate - just scala, no interface to other languages / models, no "solver" tool. Data input just text files -easy to check. Some modules over 20 years old (except converted java -> scala), still work reliably. It's efficient as all client-side, no IO/net between adjustments and results. Seems no big institute would employ me for such model dev because my experience doesn't tick the boxes of all the current fashionable frameworks. But at least I can share a way to explore the future for ourselves ... and yes it’s bleak but not so dire as many people here seem to assume, we still have choices.

[–] UFODivebomb@programming.dev 6 points 1 year ago (2 children)

One choice I think you've nicely demonstrated: the choice of a solid base and not choosing to add dependencies.

Choosing not to do something can be hard.

Also double points for having a sustainable software project that helps with environmental sustainability. Really walking the walk haha

[–] 0xD@infosec.pub 4 points 1 year ago

More like sprinting the sprint!

[–] benjhm@sopuli.xyz 2 points 11 months ago

Hi, thanks for the encouragement, delayed response due focusing on the code, and a related conference, and now trying to keep up with the COP. As it happens, the "ratchet" system of pledges created in Paris (COP21) is an iterative algorithm - start with wild guesses and gradually improve them by feedback - this made sense given the weaknesses of diplomacy, but it’s hard to summarise this mess with neat code in a compact model.

[–] beejjorgensen@lemmy.sdf.org 6 points 1 year ago

I'm a gray developer and nothing makes me more get-off-my-lawn than too many levels of abstractions. :)

[–] root@socialmedia.fail 5 points 1 year ago

The only problem that can't be solved by adding a layer of abstraction - too many layers of abstraction.

[–] 0x0@programming.dev 2 points 1 year ago

Can't upvote this enough.

[–] Administrator@lemm.ee 2 points 1 year ago* (last edited 1 year ago)

This article really hit the spot. On the other hand, nowadays development is accessible to everyone and it's really easy to learn development because of the ever growing amount of tools and frameworks. As a result, anybody can become a developer, maybe with superficial knowledge, but if you can make something work, you might be good enough for a company to hire you. However, as a software engineer, I am disappointed of this trend