Menu
What's a programmer's favorite place? The foo bar!
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Backend
Bash
C++
Cloud
Csharp
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
Integer check Memes
Posts tagged with Integer check
It Won’T Get Any More Compact.
Python
Programming
Debugging
Testing
Algorithms
1 year ago
302.4K views
0 shares
Oh my goodness, this is peak programmer laziness at its finest! 😂 Instead of writing a proper validation function that checks if a number is an integer, some poor soul decided to hardcode EVERY POSSIBLE DECIMAL VALUE around 17 and 18 with error messages! The only value that returns True is exactly 18 (no decimals). The irony is that writing a simple isinstance(x, int) would be like 1000x more compact than this monstrosity. This is what happens when you code at 3am after your fifth energy drink! The "It Won't Get Any More Compact" title is just *chef's kiss* sarcastic perfection!
Today's picks
Funny Developers Developer Definition T-Shirt
Affiliate
$19.99
I love you SO
StackOverflow
45.6K views
2 years ago
It Is What It Is
Programming
70.2K views
1 year ago