this post was submitted on 24 Sep 2024
822 points (98.7% liked)

Programmer Humor

19564 readers
782 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] RagingRobot 39 points 1 month ago (4 children)

Tests are just booby traps for the other engineers so they don't break your code by mistake.

[–] DacoTaco 13 points 1 month ago* (last edited 1 month ago) (1 children)

Its funny cause its true. I often design tests to be "if a case/enum value is added this test will explode and tell them to add code here"

[–] [email protected] 8 points 1 month ago (1 children)

This is why I like strong type systems with exhaustivity checks

[–] DacoTaco 2 points 1 month ago* (last edited 1 month ago) (1 children)

Saaaaame. But sometimes even strongly typed stuff wont break on compilation time

[–] [email protected] 1 points 1 month ago

'spose that's true enough

load more comments (2 replies)