this post was submitted on 03 Oct 2026
895 points (97.5% liked)

Programmer Humor

33472 readers
977 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 3 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] dylanTheDeveloper@lemmy.world 6 points 9 hours ago

Have enough monkeys on a keyboard and eventually they'll write a working program

[–] douglasg14b@lemmy.world 59 points 1 day ago (3 children)

If it's adding that many lines, it's not refactoring. It's just adding slop.

[–] FryHyde@lemmy.zip 1 points 5 hours ago

I would think that modularizing a big block of code would have to add more lines, would it not?

[–] xthexder@l.sw0.com 26 points 1 day ago (1 children)

The best refactors always remove more lines than they add. This is a horrifying ratio if no new features were included.

[–] derpgon@programming.dev 1 points 8 hours ago (1 children)

Strange, I always add lines to make it more cohesive, SoC, DRY, and generalized so it is easily extensible.

In a ratio of 60:1 lines added:removed?

[–] mcv@lemmy.zip 5 points 1 day ago

Yeah, adding that many lines does not sound like a cleanup to me. Unless it's mostly adding unit tests.

[–] qarbone@lemmy.world 62 points 1 day ago (3 children)

I've never seen a "refactor" create substantially more lines of code.

[–] Baguette@lemmy.blahaj.zone 6 points 20 hours ago

Its probably 10 paragraphs of comments or something, for some reason AI really loves commenting on everything

[–] lengau@midwest.social 7 points 21 hours ago

Ive done a few of those, but they were all preparatory refractors, pulling out bits of code to turn them into standalone functions that are only used once because my next PR uses them, and then adding unit tests for those new functions. -100 or so lines of code, +300 or so when you take into account the new docstrings, etc.

(The secret to doing these preparatory refractors is to actually do them after writing the "next" PR so you're not unnecessarily refactoring stuff you're going to touch.)

[–] alexdeathway@programming.dev 20 points 1 day ago* (last edited 1 day ago)

follow clean code book best practices once, you will

[–] EnsignWashout@startrek.website 37 points 1 day ago (1 children)

+55653

Says everything I need to know about the change.

[–] benjirenji@slrpnk.net 14 points 1 day ago (1 children)

I bet it's like 5 different versions of the same thing. The exact opposite of modularized.

[–] Mertn33@lemmy.world 2 points 12 hours ago

I once tasked a guy with writing a floppy disk driver. He wrote two completely different drivers. One for drive A, and another for drive B. Maybe the AI doing the refactoring was trained on that sort of code.

[–] kibiz0r@midwest.social 79 points 1 day ago

It is wild that Anthropic decided to go with “Claude”, as in “Claude Shannon”, as in the guy who formally proved that information degrades every time it passes through a channel that can’t represent it in a mathematically reversible way.

If you can’t theoretically produce the original code, given the “refactored” code… congratulations, you have lost information.

[–] nialv7@lemmy.world 161 points 1 day ago* (last edited 1 day ago) (5 children)

Are we going to repeat the same joke for each new model released....

[–] im_fine_sandy@nord.pub 108 points 1 day ago (4 children)

Hold the phone. Do you mean to tell me, that the screen shot of a post I'm looking at is not an original funny joke created by the purported author, and is in fact an iteration of some other meme created by someone else?

What is wrong with people. Someone should call the people down at "the internet" and get all of this straightened out.

[–] treesapx@lemmy.world 50 points 1 day ago (1 children)

Yes, hello, I'd like to speak to the mayor of the internet. It's about an urgent and very important matter.

[–] dangling_cat@piefed.blahaj.zone 6 points 1 day ago (1 children)

Hello! I’m the Mayor Of The Entire Internet. What’s the matter, concerned citizen?

[–] SuspiciousCarrot78@aussie.zone 2 points 10 hours ago

Hello your Majesty. Please, can you send bobs and vagine? I cannot find.

[–] NocturnalMorning@lemmy.world 4 points 1 day ago

Sadly, no. Not everything on the internet is original. I know, it's tough to hear that. I was heart broken too.

load more comments (2 replies)
[–] Gyroplast@pawb.social 58 points 1 day ago

Reposts will continue until morale improves.

[–] unexposedhazard@discuss.tchncs.de 69 points 1 day ago (1 children)
[–] Wildmimic@anarchist.nexus 4 points 1 day ago

I for my part welcome the soapy tiddies GPT overlords.

[–] athatet@lemmy.zip 9 points 1 day ago (2 children)
load more comments (2 replies)
load more comments (1 replies)
[–] DamoclesDurden@sh.itjust.works 3 points 20 hours ago (1 children)

I don’t recall this spell proc-ing while in Albion.

[–] Kojichan@lemmy.world 2 points 5 hours ago

slams desk

THANK YOU!

Glad I wasn't the only one who thought of this. Couldn't help but wonder when the new Fable was numbered like that...

[–] Gyroplast@pawb.social 65 points 1 day ago (1 children)

Perfection is achieved, not when there is nothing more to add, but when there is nothing more to take away. — Antoine de Saint-Exupére

+55653, -937? That is not beauty, even if it all "worked".

[–] regdog@lemmy.world 32 points 1 day ago (1 children)

I would say a few new lines are OK if they at least improve the readability of the code.

But given that AI was doing the work, I would say it is even less readable now.

[–] Gyroplast@pawb.social 31 points 1 day ago (1 children)

Slinging random quotes at Jr. devs works best if you have one for every rebuttal:

Everything should be as simple as it can be, but not simpler. — Albert Einstein

[–] elucubra@sopuli.xyz 1 points 21 hours ago

Analysis is easy. Synthesis is hard. Me.

[–] BlackEco@lemmy.blackeco.com 104 points 1 day ago* (last edited 1 day ago) (10 children)

"What did it cost?"

"The yearly energy consumption of a median household and $1,000"

[–] wheezy@lemmy.ml 27 points 1 day ago

Don't forget the water usage

load more comments (9 replies)
[–] hansolo@lemmy.today 24 points 1 day ago (1 children)

If the movie Tron were true, or The Matrix, and code was alive and sentient, things like this would be horror on the level of the Star Trek: TMP transporter accident.

[–] wonderingwanderer@sopuli.xyz 15 points 1 day ago (3 children)

It's beyond spaghetti code. We need a new word for it: Cthulhu code

[–] franzfurdinand@lemmy.world 8 points 1 day ago (1 children)

Codethulhu. Though that name isn't mine. I grabbed it from an old story about a company that kept a code base composed exclusively of decompiled Java.

[–] wonderingwanderer@sopuli.xyz 5 points 1 day ago (1 children)
[–] franzfurdinand@lemmy.world 3 points 23 hours ago* (last edited 22 hours ago)
load more comments (2 replies)
[–] MangoCats@feddit.it 10 points 1 day ago* (last edited 1 day ago) (8 children)

Maybe you (the Claude porter) should have written a few requirements and specifications to test to first?

1998 a company bought our software that had been developed (part time, by a single programmer) since 1991, first in C/DOS, then refactored into Borland VCL/C++ in 1997. Buyers declared they would refactor it into MFC/Win 32 because it was "easier to hire good MFC/Win 32 programmers than VCL programmers." So, they went and found two "good MFC programmers." They assessed the job carefully and declared that it should be about 6 weeks to do the port - just a straight copy of the existing funcfionality into the new API - no need to add features or change anything.

3 months later, they hired 2 additional MFC programmers. The new assessment was that they had made "good progress" and would be done in another 2-4 weeks.

3 months after that, they declared that they had big plans for future development of the software, and they were "90% done with the port" but they're going to "build up the team" and they hired another 3 programmers with a position open for what would be the 8th member of the team, but they were "looking for just the right candidate" for that spot.

9 months after starting, I casually asked one of the programmers how the port was going and he said: "we've got about 80% of the original functionality working in the new system, and most of the development is starting to turn toward newly identified business needs." "So, you don't need the other 20% of the original feature set?" "Oh, no, we need that, it's core to the business case, it's just taking time to make it happen in MFC." These were "good programmers" - no turnover, management happy with their efforts.

The original programmer was me, straight out of school, no management or mentor. The spec came from the company owner one feature at a time as ideas hit him I'd basically write them down on an electronic "sticky note" and when it was working to his satisfaction we'd throw that sticky note away, the code was the documentation. Eventually, the industry started requiring documented testing, so we hired an intern from the local college and she made some documents recording her ad-hoc testing of what the owner verbally described to her as the things the software should be doing, but mostly she read the code as her specifications. This was actually state of the art in the 1990s in most places I interacted with.

About 18 months before the 1998 buyers came around, we had another company try to reproduce about 10% of the original program functionality independently as a module in their existing software; this was agreed (insisted by the buyers, actually) to be done without our code to model from - just using our front-end hardware to collect the data. Instead of building a team, they hired a series of programmers, usually in 2s, and they'd usually quit after about 6 months. I think it was the 5th set of 2 programmers there that finally got that feature working.

So, 320 minutes would have been a pretty impressive port effort, but did you really expect the chainsaw to cut the whole forest down and load it onto logging trucks for you?

I wonder, in the "none of it works" area, how many days it would take to write requirements / specifications for what is expected and how long it would take Fable to fix the port to meet all those expectations? Probably quite a bit less than a year for one or two "good developers," I would guess.

load more comments (8 replies)
load more comments
view more: next ›