this post was submitted on 12 Sep 2025
459 points (98.7% liked)

Programmer Humor

26391 readers
1930 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 53 points 5 days ago* (last edited 5 days ago) (7 children)
bool isOdd(int num) {  
	const oddNumbers = [];  
	for (let i = 1; i <= 10000000; i += 2) {  
  		oddNumbers.push(i);  
	}  
	if (oddNumbers.includes(num) {  
		return true;  
	}  
}  
[โ€“] Malix@sopuli.xyz 19 points 5 days ago (1 children)
load more comments (5 replies)