this post was submitted on 24 Jul 2026
526 points (97.8% liked)

Programmer Humor

32477 readers
418 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
 
(page 2) 50 comments
sorted by: hot top controversial new old
[–] TomMasz@piefed.social 35 points 2 days ago (3 children)

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

[–] UnderpantsWeevil@lemmy.world 25 points 2 days 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."

[–] jaybone@lemmy.zip 15 points 2 days ago

That’s how I read it.

But “the industry” is also telling us, we should be using AI to write all of our test code. So why is this guy writing anything at all?

load more comments (1 replies)
[–] kryptonianCodeMonkey@lemmy.world 46 points 2 days ago* (last edited 2 days 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 24 points 2 days 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 35 points 2 days ago* (last edited 2 days 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.

[–] LodeMike@lemmy.today 21 points 2 days ago (1 children)

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

load more comments (1 replies)
[–] onlinepersona@programming.dev 51 points 2 days ago (1 children)
[–] ViatorOmnium@piefed.social 53 points 2 days 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)
[–] Valmond@lemmy.dbzer0.com 25 points 2 days ago (3 children)

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

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

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

[–] NotAnonymousAtAll@feddit.org 18 points 2 days 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)
[–] anon_8675309@lemmy.world 21 points 2 days ago (2 children)

He’s done so much to enshitify the industry.

load more comments (2 replies)
[–] shoo@lemmy.world 3 points 1 day ago

Uncle Bob is a piece of shit

[–] PurpleFanatic@quokk.au 15 points 2 days ago (1 children)

Say this stupid bullshit was true: you’re spending so much time baby minding the fucking thing that you’re not saving time?!? I don’t doubt that slop generators can code. But can they generate good code AND save you time? No.

load more comments (1 replies)
[–] carrylex@lemmy.world 19 points 2 days 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 20 points 2 days ago (1 children)

Test driven development is not a new concept...

[–] UnderpantsWeevil@lemmy.world 12 points 2 days ago (7 children)

Designing your unit tests before you've written your algorithm is - in my experience - a bit ass backwards.

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

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

[–] OfCourseNot@fedia.io 19 points 2 days 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)
[–] nanometer1625@thelemmy.club 7 points 2 days ago* (last edited 2 days ago) (1 children)

I had a discussion with my boss today about potential ways to write code with AI and have confidence in the results without reviewing every line. You'd also have to automate the reviews in some way, and therefore also a way to confirm that the reviewer AIs are working properly, etc. The conversation discouraged me because it made me feel like I'll end up being a manager of AIs who write the code and test cases, and I'll just be an ape who manually tests some of the behavior before approving it for release. This is essentially what managers have been doing with human development and QA engineers in the past, but even so, I have a really hard time letting go and not reviewing every line of code myself.

load more comments (1 replies)
[–] Lojcs@piefed.social 15 points 2 days ago (1 children)
[–] ZILtoid1991@lemmy.world 25 points 2 days ago (2 children)

A guy, who made programming worse, especially in enterprise settings.

[–] pivot_root@lemmy.world 19 points 2 days ago* (last edited 2 days ago) (6 children)

People don't like tracing what something is doing across seven 12-line functions spread through multiple files?

Fry shocked gif

load more comments (6 replies)
load more comments (1 replies)
load more comments
view more: ‹ prev next ›