1398
Tests are code too (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] jjjalljs@ttrpg.network 15 points 1 year ago

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.

[-] MyNameIsRichard@lemmy.ml 5 points 1 year ago

Maybe it's doing the right thing but is badly named

[-] magic_lobster_party@kbin.social 6 points 1 year ago

Maybe the it’s the English language that is wrong?

[-] dan@upvote.au 4 points 1 year ago* (last edited 1 year ago)

Old and busted: Fix the function

New hotness: Redefine enough words in the English language such that the function is now correctly implemented

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

Programmer Humor

32572 readers
97 users here now

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

Rules:

founded 5 years ago
MODERATORS