this post was submitted on 22 May 2025
293 points (94.5% liked)

Programming

20378 readers
244 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 [email protected]



founded 2 years ago
MODERATORS
(page 2) 50 comments
sorted by: hot top controversial new old
[–] atzanteol 44 points 1 week ago (5 children)

Have you used AI to code? You don't say "hey, write this file" and then commit it as "AI Bot 123 [email protected]".

You start writing a method and get auto-completes that are sometimes helpful. Or you ask the bot to write out an algorithm. Or to copy something and modify it 30 times.

You're not exactly keeping track of everything the bots did.

[–] [email protected] 54 points 1 week ago (14 children)

yeah, that's... one of the points in the article

load more comments (14 replies)
[–] [email protected] 8 points 1 week ago

We could see how the copilot PRs went:

[–] [email protected] 7 points 1 week ago (5 children)

Or to copy something and modify it 30 times.

This seems like a very bad idea. I think we just need more lisp and less AI.

load more comments (5 replies)
load more comments (2 replies)
[–] [email protected] 39 points 1 week ago (2 children)

It’s not good because it has no context on what is correct or not. It’s constantly making up functions that don’t exist or attributing functions to packages that don’t exist. It’s often sloppy in its responses because the source code it parrots is some amalgamation of good coding and terrible coding. If you are using this for your production projects, you will likely not be knowledgeable when it breaks, it’ll likely have security flaws, and will likely have errors in it.

load more comments (2 replies)
[–] [email protected] 23 points 1 week ago (2 children)

If humans are so good at coding, how come there are 8100000000 people and only 1500 are able to contribute to the Linux kernel?

I hypothesize that AI has average human coding skills.

[–] [email protected] 20 points 1 week ago (2 children)

Average drunk human coding skils

[–] [email protected] 5 points 1 week ago* (last edited 1 week ago) (1 children)

Well according to microsoft mildly drunk coders work better

[–] [email protected] 10 points 1 week ago
load more comments (1 replies)
[–] [email protected] 4 points 1 week ago* (last edited 1 week ago) (1 children)

The average coder is a junior, due to the explosive growth of the field (similar as in some fast-growing nations the average age is very young). Thus what is average is far below what good code is.

On top of that, good code cannot be automatically identified by algorithms. Some very good codebases might look like bad at a superficial level. For example the code base of LMDB is very diffetent from what common style guidelines suggest, but it is actually a masterpiece which is widely used. And vice versa, it is not difficult to make crappy code look pretty.

[–] [email protected] 0 points 6 days ago

"Good code" is not well defined and your example shows this perfectly. LMDBs codebase is absolutely horrendous when your quality criterias for good code are Readability and Maintainability. But it's a perfect masterpiece if your quality criteria are Performance and Efficiency.

Most modern Software should be written with the first two in mind, but for a DBMS, the latter are way more important.

[–] [email protected] 20 points 1 week ago (2 children)

Can Open Source defend against copyright claims for AI contributions?

If I submit code to ReactOS that was trained on leaked Microsoft Windows code, what are the legal implications?

[–] [email protected] 18 points 1 week ago* (last edited 1 week ago) (1 children)

what are the legal implications?

It would be so fucking nice if we could use AI to bypass copyright claims.

load more comments (1 replies)
load more comments (1 replies)
[–] [email protected] 17 points 1 week ago (1 children)

AI is at its most useful in the early stages of a project. Imagine coming to the fucking ssh project with AI slop thinking it has anything of value to add 😂

[–] [email protected] 30 points 1 week ago* (last edited 1 week ago) (7 children)

The early stages of a project is exactly where you should really think hard and long about what exactly you do want to achieve, what qualities you want the software to have, what are the detailed requirements, how you test them, and how the UI should look like. And from that, you derive the architecture.

AI is fucking useless at all of that.

In all complex planned activities, laying the right groundwork and foundations is essential for success. Software engineering is no different. You won't order a bricklayer apprentice to draw the plan for a new house.

And if your difficulty is in lacking detailed knowledge of a programming language, it might be - depending on the case ! - the best approach to write a first prototype in a language you know well, so that your head is free to think about the concerns listed in paragraph 1.

[–] [email protected] 5 points 1 week ago (2 children)

the best approach to write a first prototype in a language you know well

Ok, writing a web browser in POSIX shell using yad now.

load more comments (2 replies)
load more comments (6 replies)
[–] [email protected] 11 points 1 week ago (1 children)

who makes a contribution made by aibot514. noone. people use ai for open source contributions, but more in a 'fix this bug' way not in a fully automated contribution under the name ai123 way

[–] [email protected] 38 points 1 week ago (2 children)

Counter-argument: If AI code was good, the owners would create official accounts to create contributions to open source, because they would be openly demonstrating how well it does. Instead all we have is Microsoft employees being forced to use and fight with Copilot on GitHub, publicly demonstrating how terrible AI is at writing code unsupervised.

[–] [email protected] 0 points 6 days ago

Yes, that's exactly the point. AI is terrible at writing code unsupervised, but it's amazing as a supportive tool for real devs!

[–] [email protected] 13 points 1 week ago
[–] [email protected] 11 points 1 week ago

My theory is not a lot of people like this AI crap. They just lean into it for the fear of being left behind. Now you all think it's just gonna fail and it's gonna go bankrupt. But a lot of ideas in America are subsidized. And they don't work well, but they still go forward. It'll be you, the taxpayer, that will be funding these stupid ideas that don't work, that are hostile to our very well-being.

[–] [email protected] 10 points 1 week ago (3 children)

Microsoft is doing this today. I can't link it because I'm on mobile. It is in dotnet. It is not going well :)

load more comments (3 replies)
[–] [email protected] 8 points 1 week ago

Ask Daniel Stenberg.

[–] [email protected] 7 points 1 week ago (1 children)

AI is just the lack of privacy, Authoritarian Dragnet, remote control over others computers, web scraping, The complete destruction of America's art scene, The stupidfication of America and copyright infringement with a sprinkling of baby death.

load more comments (1 replies)
[–] [email protected] 5 points 1 week ago (6 children)

As a dumb question from someone who doesn't code, what if closed source organizations have different needs than open source projects?

Open source projects seem to hinge a lot more on incremental improvements and change only for the benefit of users. In contrast, closed source organizations seem to use code more to quickly develop a new product or change that justifies money. Maybe closed source organizations are more willing to accept slop code that is bad but can barely work versus open source which won't?

[–] [email protected] 13 points 1 week ago (1 children)

Baldur Bjarnason (who hates AI slop) has posited precisely this:

My current theory is that the main difference between open source and closed source when it comes to the adoption of “AI” tools is that open source projects generally have to ship working code, whereas closed source only needs to ship code that runs.

[–] [email protected] 1 points 1 week ago

That's basically my question. If the standards of code are different, AI slop may be acceptable in one scenario but unacceptable in another.

[–] [email protected] 7 points 1 week ago* (last edited 1 week ago)

Maybe closed source organizations are more willing to accept slop code that is bad but can barely work versus open source which won’t?

Because most software is internal to the organisation (therefore closed by definition) and never gets compared or used outside that organisation: Yes, I think that when that software barely works, it is taken as good enough and there's no incentive to put more effort to improve it.

My past year (and more) of programming business-internal applications have been characterised by upper management imperatives to “use Generative AI, and we expect that to make you nerd faster” without any effort spent to figure out whether there is any net improvement in the result.

Certainly there's no effort spent to determine whether it's a net drain on our time and on the quality of the result. Which everyone on our teams can see is the case. But we are pressured to continue using it anyway.

[–] [email protected] 6 points 1 week ago* (last edited 1 week ago) (1 children)

I'd argue the two aren't as different as you make them out to be. Both types of projects want a functional codebase, both have limited developer resources (communities need volunteers, business have a budget limit), and both can benefit greatly from the development process being sped up. Many development practices that are industry standard today started in the open source world (style guides and version control strategy to name two heavy hitters) and there's been some bleed through from the other direction as well (tool juggernauts like Atlassian having new open source alternatives made directly in response)

No project is immune to bad code, there's even a lot of bad code out there that was believed to be good at the time, it mostly worked, in retrospect we learn how bad it is, but no one wanted to fix it.

The end goals and proposes are for sure different between community passion projects and corporate financial driven projects. But the way you get there is more or less the same, and that's the crux of the articles argument: Historically open source and closed source have done the same thing, so why is this one tool usage so wildly different?

[–] [email protected] 3 points 1 week ago

Historically open source and closed source have done the same thing, so why is this one tool usage so wildly different?

Because, as noted by another replier, open source wants working code and closed source just want code that runs.

[–] [email protected] 5 points 1 week ago (1 children)

When did you last time decide to buy a car that barely drives?

And another thing, there are some tech companies that operate very short-term, like typical social media start-ups of which about 95% go bust within two years. But a lot of computing is very long term with code bases that are developed over many years.

The world only needs so many shopping list apps - and there exist enough of them that writing one is not profitable.

load more comments (1 replies)
[–] [email protected] 1 points 1 week ago (1 children)

most software isn't public-facing at all (neither open source nor closed source), it's business-internal software (which runs a specific business and implements its business logic), so most of the people who are talking about coding with AI are also talking mainly about this kind of business-internal software.

[–] [email protected] 2 points 1 week ago (1 children)

Does business internal software need to be optimized?

[–] [email protected] 2 points 1 week ago* (last edited 1 week ago) (1 children)

Does business internal software need to be optimized?

Need to be optimised for what? (To optimise is always making trade-offs, reducing some property of the software in pursuit of some optimised ideal; what ideal are you referring to?)

And I'm not clear on how that question is related to the use of LLMs to generate code. Is there a connection you're drawing between those?

[–] [email protected] 1 points 1 week ago (1 children)

So I was trying to make a statement that the developers of AI for coding may not have the high bar for quality and optimization that closed source developers would have, then was told that the major market was internal business code.

So, I asked, do companies need code that runs quickly on the systems that they are installed on to perform their function. For instance, can an unqualified programmer use AI code to build an internal corporate system rather than have to pay for a more qualified programmer's time either as an internal hire or producing.

[–] [email protected] 1 points 1 week ago* (last edited 1 week ago) (1 children)

do companies need code that runs quickly on the systems that they are installed on to perform their function.

(Thank you, this indirectly answers one question: the specific optimisation you're asking about, it seems, is optimised speed of execution when deployed in production. By stating that as the ideal to be optimised, necessarily other properties are secondary and can be worse than optimal.)

Some do pursue that ideal, yes. For example: many businesses seek to deploy their internal applications on hosted environments where they pay not for a machine instance, but for seconds of execution time. By doing this they pay only when the application happens to be running (on a third-party's managed environment, who will charge them for the service). If they can optimise the run-time of their application for any particular task, they are paying less in hosting costs under such an agreement.

can an unqualified programmer use AI code to build an internal corporate system rather than have to pay for a more qualified programmer’s time either as an internal hire or producing.

This is a question now about paying for the time spent by people to develop and maintain the application, I think? Which is thoroughly different from the time the application spends running a task. Again, I don't see clearly how "optimise the application for execution speed" is related to this question.

load more comments (1 replies)
[–] [email protected] 1 points 1 week ago

There are commercial open source stuff too

load more comments
view more: ‹ prev next ›