jroid8@lemmy.world to Programmer Humor@lemmy.ml · 11 months agoTests are code toolemmy.worldimagemessage-square80fedilinkarrow-up11.43Karrow-down121
arrow-up11.41Karrow-down1imageTests are code toolemmy.worldjroid8@lemmy.world to Programmer Humor@lemmy.ml · 11 months agomessage-square80fedilink
minus-squarejjjalljs@ttrpg.networklinkfedilinkarrow-up15·11 months 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-squareMyNameIsRichard@lemmy.mllinkfedilinkarrow-up6arrow-down1·11 months agoMaybe it’s doing the right thing but is badly named
minus-squaremagic_lobster_party@kbin.sociallinkfedilinkarrow-up6·11 months agoMaybe the it’s the English language that is wrong?
minus-squaredanAlinkfedilinkarrow-up5·edit-211 months 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