49
you are viewing a single comment's thread
view the rest of the comments
[-] jeff@programming.dev 12 points 2 years ago
bool isEven(int num) {
   return !isOdd(num);
}

bool isOdd(int num) {
   return !isEven(num);
}
[-] spi@programming.dev 1 points 2 years ago

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

this post was submitted on 13 Jun 2023
49 points (96.2% liked)

Programmer Humor

19817 readers
646 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 2 years ago
MODERATORS