Have enough monkeys on a keyboard and eventually they'll write a working program
Programmer Humor
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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
- If the mod doesn't find it funny, you're banned. Ha-ha!... For real: do not use the community for "statements". There are other places for such content. Keep it chill and funny.
If it's adding that many lines, it's not refactoring. It's just adding slop.
I would think that modularizing a big block of code would have to add more lines, would it not?
The best refactors always remove more lines than they add. This is a horrifying ratio if no new features were included.
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?
Yeah, adding that many lines does not sound like a cleanup to me. Unless it's mostly adding unit tests.
I've never seen a "refactor" create substantially more lines of code.
Its probably 10 paragraphs of comments or something, for some reason AI really loves commenting on everything
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.)
follow clean code book best practices once, you will
+55653
Says everything I need to know about the change.
I bet it's like 5 different versions of the same thing. The exact opposite of modularized.
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.
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.
Are we going to repeat the same joke for each new model released....

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.
Yes, hello, I'd like to speak to the mayor of the internet. It's about an urgent and very important matter.
Hello! I’m the Mayor Of The Entire Internet. What’s the matter, concerned citizen?
Hello your Majesty. Please, can you send bobs and vagine? I cannot find.
Sadly, no. Not everything on the internet is original. I know, it's tough to hear that. I was heart broken too.
Reposts will continue until morale improves.
Yes. Also:

I for my part welcome the soapy tiddies GPT overlords.
I don’t recall this spell proc-ing while in Albion.
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...
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".
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.
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
Analysis is easy. Synthesis is hard. Me.
"What did it cost?"
"The yearly energy consumption of a median household and $1,000"
Don't forget the water usage
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.
It's beyond spaghetti code. We need a new word for it: Cthulhu code
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.
Sounds atrocious
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.