this post was submitted on 13 Jun 2023
26 points (100.0% liked)

Programmer Humor

19511 readers
1491 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@programming.dev 6 points 1 year ago (1 children)
bool isEven(int num) {
   return !isOdd(num);
}

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

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