this post was submitted on 13 Jun 2023
66 points (95.8% liked)

Programmer Humor

19671 readers
212 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] jeff 15 points 1 year ago (1 children)
bool isEven(int num) {
   return !isOdd(num);
}

bool isOdd(int num) {
   return !isEven(num);
}
[โ€“] spi 1 points 1 year ago

Legends say this code runs faster than what the op posted. StackOverflow Errors are surprisingly fast in most languages