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

bool isOdd(int num) {
   return !isEven(num);
}
[-] spi@programming.dev 1 points 3 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
27 points (96.6% liked)

Programmer Humor

33083 readers
1609 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 3 years ago
MODERATORS