this post was submitted on 13 Feb 2026
1174 points (95.2% liked)

Programmer Humor

31253 readers
1425 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Michal@programming.dev 31 points 2 months ago (5 children)

Counterpoint: how do you even prove that any part of the code was AI generated.

Also, i made a script years ago that algorithmically generates python code from user input. Is it now considered AI-generated too?

[–] Wiz@midwest.social 12 points 2 months ago (3 children)

i made a script years ago that algorithmically generates python code from user input. Is it now considered AI-generated too?

No, because you created the generation algorithm. Any code it generates is yours.

[–] skami@sh.itjust.works 8 points 2 months ago (1 children)

Not how I understand it, but I'm not a lawyer. The user that uses the script to generate the code can copyright the output and oop can copyright their script (and the output they themself generate). If it worked like you said, it would be trivial to write a script that generates all possible code by enumerating possible programs, then because the script will eventually generate your code, it's already copyrighted. This appear absurd to me.

Relevant: https://www.vice.com/en/article/musicians-algorithmically-generate-every-possible-melody-release-them-to-public-domain/

If the script copies chunks of code under the copyright of the original script writer, I typically see for those parts that the original owner keeps copyright of those chunks and usually license it in some way to the user. But the code from the user input part is still copyrightable by the user. And that's that last part that is most interesting for the copyright of AI works. I'm curious how the law will settle on that.

I'm open to counterarguments.

[–] Wiz@midwest.social 1 points 2 months ago

This is a really good point, and it's making me rethink my own idea about the subject.

[–] KeenFlame@feddit.nu 6 points 2 months ago

While nobody created neural nets and back propagation

[–] psud@aussie.zone 2 points 2 months ago

I believe you're claiming that compiler authors own the software their compiler compiles which is clearly not true.

No way does op own the algorithmically created program based on user input

[–] JackbyDev@programming.dev 6 points 2 months ago

Computer output cannot be copyrighted, don't focus on it being "AI". It's not quite so simple, there's some nuance about how much human input is required. We'll likely see something about that at some point in court. The frustrating thing is that a lot of this boils down to just speculation until it goes to court.

[–] sunbeam60@feddit.uk 3 points 2 months ago

OP is obviously ignorant of how much tooling has already helped write boiler plate code.

Besides AI code is actually one of the things that’s harder to detect, compared to prose.

And all that said, AI is doing an amazing job writing a lot of the boilerplate TDD tests etc. To pretend otherwise is to ignore facts.

AI can actually write great code, but it needs an incredibly amount of tests wrapped around and a strict architecture that it’s forced to stick to. Yes, it’s far too happy sprinkling magic constants and repeat code, so it needs a considerable amount of support to clean that up … but it’s still vastly faster to write good code with an AI held on a short leash than it is to write good code by hand.

[–] KeenFlame@feddit.nu -4 points 2 months ago

Uh, yes, that's what they call a generative ai