1395
Tests are code too (lemmy.world)
submitted 10 months ago by jroid8@lemmy.world to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] jbrains@sh.itjust.works 3 points 10 months ago

Yikes! That's also a great cautionary tale for Primitive Obsession/Whole Value as well as a bunch of other design principles.

I'm thinking about how I'd have done that refactoring and now I wish I had the code base to try it on. It sounds like it would make a really good real-life exercise in a workshop. "Remember folks, you have to get this right. There's not really a way to check this with the real hardware, and if you get it wrong, someone's going to get hurt."

Thanks again.

[-] ChickenLadyLovesLife@lemmy.world 4 points 10 months ago

Well, I have a rule now which is "never test your shit on Little Leaguers" and nobody I've worked with has any idea what that means.

[-] jbrains@sh.itjust.works 2 points 10 months ago* (last edited 10 months ago)

I don't think I'll forget.

This is true Customer empathy.

this post was submitted on 02 Nov 2023
1395 points (98.5% liked)

Programmer Humor

32054 readers
1663 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS