524
you are viewing a single comment's thread
view the rest of the comments
[-] HazardousBanjo@lemmy.world 50 points 2 days ago

assert(true);

assert(true);

assert(true);

assert(true);

assert(true);

[-] PattyMcB@lemmy.world 30 points 2 days ago

Have I worked with you before?

[-] staircase@programming.dev 24 points 2 days ago
[-] PattyMcB@lemmy.world 11 points 2 days ago

Dammit... PR rejected

Lol

[-] RecallMadness@lemmy.nz 2 points 1 day ago

My favourite (that I saw a human do) was asserting on unconstrained mocks with a typo (so they always asserted true)

Hundreds of tests. Not exactly pointless as they did call the code so maybe caught some issues. But we fixed the typo and barely half of them passed.

No idea how the software worked, but it did.

[-] marlowe221@lemmy.world 2 points 1 day ago

Look at all the pretty green check marks!

this post was submitted on 24 Jul 2026
524 points (100.0% liked)

Programmer Humor

32472 readers
368 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