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

Programmer Humor

32724 readers
481 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] jjjalljs@ttrpg.network 14 points 1 year ago (1 children)

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 4 points 1 year ago

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