Menu
IPv4: We're running out! Since 1990.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Azure
Backend
Bash
C++
Cloud
All Categories
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
Even odd Memes
Posts tagged with Even odd
Rate My Is Even And Odd Function
Python
Algorithms
Programming
Debugging
1 year ago
341.9K views
0 shares
OH. MY. GOD. Someone actually wrote a function that loops through EVERY NUMBER from 0 to x just to check if a number is even or odd?! 💀 Instead of using the BASIC MODULO OPERATOR that exists in LITERALLY EVERY PROGRAMMING LANGUAGE, this psychopath decided "you know what would be fun? Let's make the computer count to potentially INFINITY and then return True if i equals 1 or 2!" The absolute AUDACITY to write if i == 1: return True for even numbers and if i == 2: return True for odd numbers has me SCREAMING into my mechanical keyboard! This is what happens when you code at 4am after your fifth energy drink!
The Elegant Art Of Overengineering
Python
Algorithms
Programming
1 year ago
295.9K views
1 shares
Ah, the elegant art of being simultaneously clever and ridiculous. This Python function is the programming equivalent of using a sledgehammer to kill a fly—with style. Instead of the boring old num % 2 == 0 check that peasant programmers use, this galaxy-brain developer created a string "eovdden" and indexes into it using num % 2 as the position, followed by another 2 (which does absolutely nothing). The string is cleverly arranged so position 0 gives "even" and position 1 gives "odd" — making this the most unnecessarily complex even/odd checker in existence. It's like building a Rube Goldberg machine when a light switch would do. And those sunglasses emojis? They know exactly what they've done. Pure chaotic evil masquerading as code.
Today's picks
Rubber Duck Debugging Programmer Gifts Rubber Duck Debugging Explain It To The Duck Men's Black Cotton T-Shirt
Affiliate
$16.99
I Just Had Arevelation And It Hurts
Programming
70.6K views
1 year ago
Let the MF burn!
Debugging
64.3K views
3 years ago