this post was submitted on 16 Sep 2024
142 points (95.5% liked)

Programmer Humor

32396 readers
692 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

top 11 comments
sorted by: hot top controversial new old
[–] [email protected] 35 points 1 month ago

good Tester.

If something stupid can be done, it will be done.

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

Name is Alison Burke.

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

I've seen this enough times that I laughed without watching it. Funny stuff.

[–] [email protected] 15 points 1 month ago* (last edited 1 month ago) (1 children)

This is why it's important to have tests that assert a system's failure modes too.

shouldFitTriangleInTriangleHole()

shouldNotFitTriangleInAnyOtherHoles()

Bonus points for just parameterizing it.

[–] [email protected] 4 points 1 month ago
 assert triangleObject.shouldFitInHole(triangleHole) == true

assert triangleObject.shouldFitInHole(squareHole) == false
[–] [email protected] 10 points 1 month ago

If a function takes all types of variables it's your own fault!

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

Testers are a godsend

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

Anything can be a square hole if you're brave enough.

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

Poor development! If something can be done, people will do it.

Best way is to not allow it and provide no feedback.

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

Wait, provide no feedback?