@jroid8@lemmy.world to Programmer Humor@lemmy.ml • 2 years agoTests are code toolemmy.worldimagemessage-square80fedilinkarrow-up11.43K
arrow-up11.43KimageTests are code toolemmy.world@jroid8@lemmy.world to Programmer Humor@lemmy.ml • 2 years agomessage-square80fedilink
minus-square@jjjalljs@ttrpg.networklinkfedilink15•2 years agoNothing to test? Lol what. def add(a: int, b: int) -> int: return a * b All types are correct. No side effects. Does the wrong thing.
minus-square@MyNameIsRichard@lemmy.mllinkfedilink6•2 years agoMaybe it’s doing the right thing but is badly named
minus-squaremagic_lobster_partylinkfedilink6•2 years agoMaybe the it’s the English language that is wrong?
minus-square@dan@upvote.aulinkfedilink4•edit-22 years agoOld and busted: Fix the function New hotness: Redefine enough words in the English language such that the function is now correctly implemented
Nothing to test? Lol what.
def add(a: int, b: int) -> int: return a * b
All types are correct. No side effects. Does the wrong thing.
Maybe it’s doing the right thing but is badly named
Maybe the it’s the English language that is wrong?
Old and busted: Fix the function
New hotness: Redefine enough words in the English language such that the function is now correctly implemented