this post was submitted on 24 Jul 2026
538 points (97.9% liked)

Programmer Humor

33307 readers
322 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
[–] BlackEco@lemmy.blackeco.com 191 points 2 months ago (4 children)

Inb4 the agents change the tests to pass the CI.

[–] theunknownmuncher@lemmy.world 113 points 2 months ago

literally seen an agent do a: "oh now the tests aren't passing" deletes all tests in the file

[–] CIA_chatbot@lemmy.world 75 points 2 months ago (1 children)

Or my Claude favorite, “oh you’re right? I did blow past that restraint and did something I was not supposed to, sooooorrrrreyyyyy”

load more comments (1 replies)
[–] HazardousBanjo@lemmy.world 53 points 2 months ago (3 children)

assert(true);

assert(true);

assert(true);

assert(true);

assert(true);

[–] PattyMcB@lemmy.world 30 points 2 months ago (1 children)

Have I worked with you before?

[–] staircase@programming.dev 25 points 2 months ago (1 children)
load more comments (1 replies)
load more comments (2 replies)
load more comments (1 replies)
[–] rtxn@lemmy.world 120 points 2 months ago* (last edited 2 months ago) (1 children)

Sounds like a cryptobro peddling some shitcoin claiming that it's impossible to get scammed because "code is law" four seconds before the liquidity pool gets drained through a vulnerability in the code.

[–] vanillama@programming.dev 46 points 2 months ago (3 children)

Or a rug pull, or in this case the bubble popping.

load more comments (3 replies)
[–] HeartyOfGlass@piefed.social 115 points 2 months ago* (last edited 2 months ago) (1 children)

"I stopped reading code because I was too busy writing a gauntlet of unit tests"

Sounds like 100x productivity to me.

Edit: also, general note - I think you kneecap your argument when you start with "I'm older than you".

[–] whats_a_lemmy@midwest.social 43 points 2 months ago* (last edited 2 months ago) (1 children)

There is a 0% chance he wrote all those tests himself anyway

[–] MirrorGiraffe@piefed.social 27 points 2 months ago (4 children)

I hope he at least read them.

[–] HeartyOfGlass@piefed.social 27 points 2 months ago

Claude summarized 'em

load more comments (3 replies)
[–] w33n1s@lemmy.world 102 points 2 months ago (18 children)

Been coding for about 30 years now, am I the only one who still LIKES to code? Who still LIKES to try writing a new approach to something, watching it fail, figuring out what went wrong, taking notes, learning from mistakes, and noticing improvements in their own code? Cuz it's starting to feel like it. Web development already lost me with the culture of "glue a bunch of bulky shit together that you didn't write and call yourself a 'dev' to the ladies" but this AI shit is getting absurd. And it doesn't even work! Look at how shitty all the operating systems are getting. Look at all the total slop on the app stores. It's depressing as hell.

[–] one_old_coder@piefed.social 24 points 2 months ago

I love coding and learning new languages. I'd rather move to another industry than reviewing vibe coded crap all day long.

[–] HopeOfTheGunblade@lemmy.blahaj.zone 17 points 2 months ago (4 children)

We need to build a culture that values process and making beautiful things for their own sake, not simply Pile Dollars Higher, which is killing the planet and making us all miserable.

load more comments (4 replies)
load more comments (16 replies)
[–] HazardousBanjo@lemmy.world 58 points 2 months ago* (last edited 2 months ago) (4 children)

I'm significantly older than you. I started coding in the late 60's

Yeah, appeal to tangentially related experience, age and arrogance aren't a way to inspire confidence in your work.

We live in the perfect times to display that experience, age and arrogance haven't been working in almost any field, from politics to LLM development. We've yet to witness any system that operates well, while also eliminating human oversight. It doesn't matter the guard rails you put in place. They're only as strong as your personal ability to evaluate your own product, which itself is a conflict of interest.

Edit: Also, you can't use your own credentials to assert the integrity of work you aren't even actually doing yet passing as your own.

[–] sp3ctr4l@lemmy.dbzer0.com 26 points 2 months ago* (last edited 2 months ago) (5 children)

Not to be too flippant, but:

Boomers gonna boom.

They literally can't help themselves, they're egomaniacal narcissists.

The rare ones that aren't that way can truly be awesome sources of perspective... but goddamnit so many of them are completely insufferable man-babies.

load more comments (5 replies)
load more comments (3 replies)
[–] onlinepersona@programming.dev 52 points 2 months ago (1 children)
[–] ViatorOmnium@piefed.social 53 points 2 months ago (16 children)

No. Everyone in tech that's not a mediocre tech bro has known Uncle Bob is an overrated quack for a long time.

load more comments (16 replies)
[–] kryptonianCodeMonkey@lemmy.world 48 points 2 months ago* (last edited 2 months ago) (1 children)

He fails to mention that he has AI also generate and do all of those tests, which means, A) he has no quality supervision over his quality supervision. Speaking from experience, AI can and will break a test in order to pass it rather than fixing the code if it randomly decides to. It is not always reliable and does not have even the baseline of good sense you would expect a brand new junior dev to have. And B) he's probably spending 3 times as much on tokens used for generating and running tests than he is already using on code generation. That's only going to be sustainable while these tokens remain cheap, which won't be for much longer, my guy.

Also it is always fun when someone asks you basic questions about your code and you have to admit complete and total ignorance because you neither wrote nor read a single line of it. How are you going to sell confidence in your black box that even you haven't peeked inside?

[–] ZILtoid1991@lemmy.world 25 points 2 months ago (1 children)

The D Language Foundation tried to incorporate LLMs in the unittests, and they created something akin to assert(5 + (funcToTest(846) * 0) == 5) early on, now they want to use it to rewrite the standard library from scratch, because "it has become better since".

[–] kryptonianCodeMonkey@lemmy.world 36 points 2 months ago* (last edited 2 months ago)

The other day I had Claude write some code that failed a unit test. It was failing at a step that ran assertEquals(actualMap, expectedMap);. The reason it was failing was because one of the values in the map, a UUID, is automatically generated in the code. In the test, it has been hard coded.

Anyone with any sense would know you need to handle that misalignment. Omit that field from the match assertion? Set that UUID based on the generated value instead of hardcoding it? Anything like that would work just fine.

But Claud's solution was to change that assertion to assertTrue("The actualMap and expectedMap will never be equal because the values of ID will never match");. So the test always passes and it explicitly notes that they will not match. I would have fired a Junior Dev on the spot for writing that solution.

[–] douglasg14b@lemmy.world 41 points 2 months ago (6 children)

None of this actually proves that they aren't writing slop. It just proves that the slop that they've written passes your tests.

[–] ZILtoid1991@lemmy.world 17 points 2 months ago (2 children)

Never ask a vibe coder about their code's performance.

load more comments (2 replies)
load more comments (5 replies)
[–] Jankatarch@lemmy.world 38 points 2 months ago
[–] TomMasz@piefed.social 36 points 2 months ago (3 children)

So he does more work so he can do less work? Am I reading that right?

[–] UnderpantsWeevil@lemmy.world 26 points 2 months ago

"I use a hammer"

"Well, I use a device that applies an enormous amount of pressure constrained to a very particular point in space"

"How much does your device cost?"

"$200/mo and the company loses money every time I swing it. You?"

"$12 and I've had this thing for 20 years."

load more comments (2 replies)
[–] sirdorius@programming.dev 29 points 2 months ago (5 children)

Isn't this just the natural evolution of TDD? Write tests, pass them, don't care about how garbage the code is to make them pass

load more comments (5 replies)
[–] nullPointer@programming.dev 29 points 2 months ago (1 children)

i wrote 4000 lines of code to make sure the AI generated 100 lines of code correctly.

[–] BCsven@lemmy.ca 20 points 2 months ago (1 children)

What he is describing is what you are supposed to do for human written code also.

load more comments (1 replies)
[–] ZoteTheMighty@lemmy.zip 28 points 1 month ago (2 children)

I've actually found a lot of success with the opposite where I write the code and AI writes the unittests. I would have otherwise written a few unit tests, but AI makes typically 20x that many. Since my code is already documented, it can get lots of good context. I typically instruct it to check the branch's diff relative to main and test only those changes. I might skim them over, delete some that don't make sense in context and would never pass, and update one or two. Typically after a few rounds of iteration, I have tons of tests I would never have written on my own, and a human-made feature.

load more comments (2 replies)
[–] Feyd@programming.dev 27 points 2 months ago

Uncle Bob has always been a hack whose advice made code less maintainable.

[–] melfie@lemmy.zip 27 points 1 month ago

I see all the tests are passing on this PR, so I won’t even review the code. LGTM.

🙄😖

[–] Valmond@lemmy.dbzer0.com 25 points 2 months ago (3 children)

I don't code any more, only write gazillions of tests smugface.jpg

load more comments (3 replies)
[–] vrighter@discuss.tchncs.de 23 points 2 months ago

this guy has always struck me as a shitty coder. His "clean code" is the ugliest shit i ever saw. This confirms it.

[–] anon_8675309@lemmy.world 21 points 2 months ago (2 children)

He’s done so much to enshitify the industry.

load more comments (2 replies)
[–] LodeMike@lemmy.today 21 points 2 months ago (1 children)

If you do all that properly using an LLM is a waste of time.

load more comments (1 replies)
[–] Hudell@lemmy.dbzer0.com 20 points 2 months ago (3 children)

I saw an argument today that was presented in a very rage inducing way but in the end I had to agree that it wasn't the worst of takes: your code won't get any worse just because you let the infinite slop machine have a go at trying to find problems in it.

There could be a million other reasons not to use AI but if your only argument against it is that you don't trust the code written by AI to be good enough to be included in your code base, then you're just not thinking about every way that the clankers can be put to work.

I'm not arguing in favor of using AI by bringing this up. If you're morally opposed to it then this point makes absolutely no difference.

[–] Warl0k3@lemmy.world 18 points 2 months ago* (last edited 2 months ago)

AI for code review is, I am pained to admit, a genuinely extremely pleasant addition to my workflow - it inherently is a process that involves humans checking it's work, and that kind of pattern recognition is one of the things that AI models are actually proficient at. It's for sure not bullet proof and it's pretty rare for it to catch something real that I wasn't already aware of, but it takes no time, doesn't touch my code directly and does pick up tiny errors like fenceposts or bad typing that make up the majority of my time when I'm running things down manually.

load more comments (2 replies)
[–] Evotech@lemmy.world 20 points 2 months ago* (last edited 2 months ago)

The tests that the AI wrote? :D «my tests» my ass

[–] OfCourseNot@fedia.io 19 points 2 months ago (1 children)

Has this guy ever even written any code? Can anyone name a piece of software he's worked on? Isn't he like a self-help author for programmers?

load more comments (1 replies)
[–] NotAnonymousAtAll@feddit.org 18 points 2 months ago (1 children)

Sure this is bad, but is it really "becoming even worse" after he already publicly declared support for Trump?

load more comments (1 replies)
[–] sudoMakeUser@sh.itjust.works 18 points 2 months ago

You should definitely read the code, but the strict acceptance for generated code is a good starting place.

[–] dfyx@lemmy.helios42.de 18 points 2 months ago (1 children)

So in other words he spends weeks to write extra tests so that the agent can save him days of coding.

load more comments (1 replies)
[–] carrylex@lemmy.world 18 points 2 months ago (1 children)

Translates to:

"I created this (unit) test that tests code that does not exist yet..."

Alright AI bro keep your copium...

[–] 3abas@lemmy.world 21 points 2 months ago (8 children)

Test driven development is not a new concept...

load more comments (8 replies)
[–] resipsaloquitur@lemmy.cafe 17 points 2 months ago (4 children)

The clean-coding craftsman himself.

Desperate for attention.

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