132
Developer vs Tester (media.mas.to)
submitted 3 months ago by yogthos@lemmy.ml to c/programmerhumor@lemmy.ml

top 8 comments
sorted by: hot top controversial new old
[-] Dunstabzugshaubitze@feddit.org 35 points 3 months ago

good Tester.

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

[-] hellfire103@lemmy.ca 17 points 3 months ago

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

[-] deadbeef79000@lemmy.nz 15 points 3 months ago* (last edited 3 months ago)

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.

[-] elvith@feddit.org 4 points 3 months ago
 assert triangleObject.shouldFitInHole(triangleHole) == true

assert triangleObject.shouldFitInHole(squareHole) == false
[-] pastermil@sh.itjust.works 10 points 3 months ago

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

[-] Dirk@lemmy.ml 10 points 3 months ago

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

[-] reverendz@lemmygrad.ml 2 points 3 months ago

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

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

[-] BearOfaTime@lemm.ee 3 points 3 months ago

Wait, provide no feedback?

this post was submitted on 16 Sep 2024
132 points (95.2% liked)

Programmer Humor

32706 readers
1170 users here now

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

Rules:

founded 5 years ago
MODERATORS