Menu
The best code is no code at all.
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
Real world bugs Memes
Posts tagged with Real world bugs
If Code Was In The Real World
Frontend
Webdev
Javascript
11 months ago
236.9K views
2 shares
The physical manifestation of CSS positioning gone wrong! That air conditioner hanging precariously off the wall is literally implementing margin-left: -25px; from the hotel-room.css file. This is what happens when you let front-end developers design actual buildings. The TV mounted in the corner is just waiting for its own negative margin property to send it crashing down. Props to whoever installed these - they followed the specs exactly as written, regardless of how catastrophically unsafe the result. Ship it to production!
Professional Habits Do Not Change
Programming
Debugging
Algorithms
1 year ago
274.3K views
0 shares
When you've been coding for so long that you start indexing real-world objects from zero. Normal people would call this the first step, but programmers know better—it's obviously step[0]. The contractor probably spent years debugging array out-of-bounds exceptions and now can't help but apply zero-indexing to everything they build. Just wait until they number the floors in their next apartment building: Ground, 1, 2... just to watch the mathematicians and Europeans lose their minds.
My Zero-Indexed Elevator In Portugal
Programming
Algorithms
Frontend
1 year ago
209.9K views
0 shares
Finally, an elevator designed by a programmer! The ground floor is 0, not 1, because arrays start at 0 and so should our buildings. That green button is practically screaming "I'm the selected index!" The non-programmers must be so confused when they hit "1" expecting the lobby but end up on what normal humans call the "second floor." Bet the building's GitHub repo has 47 open issues about "intuitive floor numbering" that the dev team has marked as "won't fix" and "working as intended."
Boolean Logic
Programming
Algorithms
Debugging
Math
1 year ago
314.9K views
0 shares
Ah, the classic case of unintentional boolean logic in the wild! The sign says "We don't accept bills higher than 50 AND 100" which logically means they don't accept bills that are simultaneously higher than both 50 and 100. But since any bill higher than 100 is automatically higher than 50, this statement actually means "We don't accept bills higher than 100" - making the 50 completely redundant. Twenty years of coding and I still see this stuff everywhere. The number of times I've had to explain to product managers why "if user is premium AND has subscription" isn't what they actually meant... I've lost count. This is why we can't have nice things in production.
ELEGOO 3PCS ESP-32 Development Board USB-C, 2.4GHz Dual Mode WiFi+Bluetooth 4.2 Dual Core Microcontroller Support AP/STA/AP+STA, CP2102 Chip
Affiliate
Developer Tools
ELEGOO
Powerful Processing Capabilities: ELEGOO ESP-32 development board integrates a dual-core 32-bit processor running at up to 240 MHz, providing impressive processing power. · Wireless Connectivity: The…
Today's picks
InnoView Portable Monitor, 15.6 Inch FHD 1080P HDMI USB C Second External Monitor for Laptop, Desktop, MacBook, Phones, Tablet, PS5/4, Xbox, Switch, Built-in Speaker with Protective Case
Affiliate
$63.99
There is a thin Line Between Hate and Love, and that is ...
Programming
69.5K views
4 years ago
Writing (copying) code is pain...
Programming
72.9K views
2 years ago