this post was submitted on 13 Feb 2026
852 points (96.1% liked)

Programmer Humor

29704 readers
1721 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 23 points 15 hours 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 14 points 15 hours ago (2 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 7 points 14 hours ago

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.

[–] KeenFlame@feddit.nu 2 points 14 hours ago

While nobody created neural nets and back propagation

[–] JackbyDev@programming.dev 4 points 12 hours 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 2 points 10 hours 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.

[–] Dyskolos@lemmy.zip 2 points 15 hours ago (2 children)

Guess you can't really prove that, unless you leave comments like "generated by Claude" in it with timestamp and whatnot 😁 Or one can prove that you are unable to get to that result yourself.

So nonsense, yes.

[–] VeryVito@lemmy.ml 7 points 14 hours ago (1 children)

Or one can prove that you are unable to get to that result yourself.

Oh shit… I’ve got terabytes of code I’ve written over the years that I’d be hard-pressed to even begin to understand today. The other day I discovered a folder full of old C++ libraries I wrote 20+ years ago, and I honestly don’t remember ever coding in C++.

[–] vala@lemmy.dbzer0.com 3 points 12 hours ago (1 children)

There is absolutely no way you wrote terabytes of code lmao.

[–] VeryVito@lemmy.ml 1 points 11 hours ago

True enough, and I expected to get checked on that.

Regardless… along with the archives, assets and versioned duplicates, my old projects dating back to the 90s somehow now fill multiple TB of old hard drives that I continue to pack-rat away in my office. Useless and pointless to keep, but every piece was once a priority for someone.

[–] mattvanlaw@lemmy.world 2 points 14 hours ago* (last edited 14 hours ago) (1 children)

Cursor, an ai/agentic-first ide, is doing this with a blame-style method. Each line as it's modified, added DOES show history of ai versus each human contributor.

So, not nonsense in probability, but in practice -- no real enforcement to turn the feature on.

[–] Rooster326@programming.dev 2 points 14 hours ago (2 children)

Why would you want this?

If you pushed the bug that took down production - they aren't gonna whataboutism the AI generated it. They're still going to fire you.

[–] sunbeam60@feddit.uk 2 points 10 hours ago (1 children)

It makes little difference IMHO. If you crash the car, you can’t escape liability blaming self driving.

Likewise, if you commit it, you own it, however it’s generated.

[–] mattvanlaw@lemmy.world 1 points 8 hours ago

It's mainly for developers to follow decisions made over many iterations of files in a code base. A CTO might crawl the gitblame...but it's usually us crunchy devs in the trenches getting by.

[–] mattvanlaw@lemmy.world 0 points 8 hours ago (1 children)

Sorry, but as another reply: pushing bugs to production doesn't immediately equate to firing. Bug tickets are common and likely addressing issues in production.

[–] Rooster326@programming.dev 0 points 6 hours ago (1 children)

Hence the "took down production"

[–] mattvanlaw@lemmy.world 1 points 1 hour ago

I guess you mean like full outtage for all users? My bad just a lot of ways to take the verb "down" for me. Still, though, what a crappy company to not learn but fire from that experience!

[–] KeenFlame@feddit.nu -1 points 14 hours ago

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