this post was submitted on 12 Sep 2025
442 points (98.9% liked)

Programmer Humor

26373 readers
1388 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
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] cupcakezealot@piefed.blahaj.zone 47 points 5 days ago* (last edited 5 days ago) (6 children)
bool isOdd(int num) {  
	const oddNumbers = [];  
	for (let i = 1; i <= 10000000; i += 2) {  
  		oddNumbers.push(i);  
	}  
	if (oddNumbers.includes(num) {  
		return true;  
	}  
}  
[โ€“] schema@lemmy.world 1 points 5 days ago

And if not, unicorns!

load more comments (5 replies)