this post was submitted on 24 Jul 2026
397 points (98.1% liked)

Programmer Humor

32452 readers
1342 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

Hey, you leave the legend, John Candy, outta this! πŸ₯°

[–] Brewchin@lemmy.world 4 points 9 hours ago

Is this an "I am a very stable genius" confession for sloperators, or is there something I'm missing? πŸ€”

[–] SinAdjetivos@lemmy.world 9 points 11 hours ago

People don't want to hear it, but this should be more common practice especially for human written code, and it's best if someone specializes in doing this sort of QA testing specifically.

[–] HeartyOfGlass@piefed.social 88 points 18 hours ago* (last edited 18 hours 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 31 points 17 hours ago* (last edited 12 hours ago) (1 children)

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

[–] MirrorGiraffe@piefed.social 22 points 16 hours ago (3 children)

I hope he at least read them.

[–] anton@lemmy.blahaj.zone 8 points 13 hours ago (1 children)

He didn't, but he has unit tests for them.

[–] vanillama@programming.dev 4 points 12 hours ago

Made me laugh out loud, ty

[–] HeartyOfGlass@piefed.social 21 points 16 hours ago

Claude summarized 'em

load more comments (1 replies)
[–] anon_8675309@lemmy.world 20 points 14 hours ago (2 children)

He’s done so much to enshitify the industry.

load more comments (2 replies)
[–] BlackEco@lemmy.blackeco.com 154 points 20 hours ago (4 children)

Inb4 the agents change the tests to pass the CI.

[–] theunknownmuncher@lemmy.world 86 points 19 hours ago

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

[–] CIA_chatbot@lemmy.world 60 points 19 hours ago

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

[–] HazardousBanjo@lemmy.world 44 points 18 hours ago (5 children)

assert(true);

assert(true);

assert(true);

assert(true);

assert(true);

[–] marlowe221@lemmy.world 3 points 10 hours ago

Look at all the pretty green check marks!

load more comments (4 replies)
load more comments (1 replies)
[–] cbazero@programming.dev 4 points 10 hours ago

Why am I not surprised that he is a big proponent of AI coding considering his background ...

[–] carrylex@lemmy.world 21 points 15 hours 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 18 points 14 hours ago (1 children)

Test driven development is not a new concept...

[–] UnderpantsWeevil@lemmy.world 14 points 13 hours ago (2 children)

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

load more comments (2 replies)
[–] rtxn@lemmy.world 105 points 20 hours ago* (last edited 20 hours 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.

load more comments (1 replies)
[–] kryptonianCodeMonkey@lemmy.world 43 points 18 hours ago* (last edited 17 hours 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 17 hours 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 32 points 17 hours ago* (last edited 17 hours 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.

[–] HazardousBanjo@lemmy.world 49 points 18 hours ago* (last edited 18 hours ago) (7 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.

load more comments (7 replies)
[–] outerspace@lemmy.zip 6 points 12 hours ago (1 children)

It just means he is not doing anything important, in other words he doesnt have any specific thing in mind and it doesn't matter if it works exactly right or not.

It looks like it's working and for some people that's enough.

load more comments (1 replies)
[–] OfCourseNot@fedia.io 19 points 16 hours 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)
[–] MrKoyun@lemmy.world 5 points 12 hours ago (2 children)

Does he think a single AI model, perhaps in the same instance, will start to get better when put through "hard testing" in his "gauntlet"?

load more comments (2 replies)
[–] onlinepersona@programming.dev 50 points 20 hours ago (1 children)
[–] ViatorOmnium@piefed.social 48 points 19 hours ago (14 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 (14 replies)
[–] Lojcs@piefed.social 15 points 16 hours ago (1 children)
[–] ZILtoid1991@lemmy.world 25 points 16 hours ago (2 children)

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

[–] pivot_root@lemmy.world 18 points 16 hours ago* (last edited 16 hours ago) (4 children)

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

Fry shocked gif

[–] Prunebutt@slrpnk.net 8 points 13 hours ago (1 children)

He'd probably say that 12 lines is waaaay too much!

load more comments (1 replies)
load more comments (3 replies)
[–] siftmama@lemmy.world 12 points 15 hours ago

Depends on which parts you look at. There is plenty that he wrote about that have made coding enjoyable, but yes, also plenty that is the opposite.

I never saw his book as a bible though. I always thought of it as a "here are possibly good ideas, see which you and your team likes".

load more comments
view more: β€Ή prev next β€Ί