Menu
Ship my machine, not my code.
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
Clock Memes
Posts tagged with Clock
SQL Time Is Always Wrong Time
Databases
Programming
Debugging
6 months ago
463.9K views
0 shares
What happens when a DBA designs a clock? You get Roman numerals in completely random order because SQL queries without proper constraints do whatever they want. Notice how IX (9) is where 4 should be, and V (5) is at 6 o'clock. The comment "It Will Work This Time" is the eternal lie every developer tells themselves before running untested SQL in production. Spoiler: it never does.
Clock But It's SELECT DIGITS FROM NUMBERS ORDER BY DIGIT NAME DESC
Databases
Programming
6 months ago
265.9K views
0 shares
OH. MY. GOD. This is what happens when you let a database admin design a clock! The numbers are in complete chaos because some SQL-obsessed maniac decided to ORDER BY DIGIT NAME DESC instead of, you know, ACTUAL NUMERICAL ORDER like a SANE HUMAN BEING! The SQL query literally sorted the digits by their spelled-out names in descending order, so "twelve" comes before "three" which comes before "ten" and so on. Can you imagine trying to tell time on this monstrosity?! It's like asking what time it is and getting back "SELECT CURRENT_TIME FROM REALITY WHERE SANITY = NULL"!
Clock But We Saved Db Space By Just Returning The Index Of The Array Of Digit Names
Programming
Databases
Frontend
Backend
6 months ago
171.6K views
0 shares
The clock shows actual array indices instead of spelled-out numbers. Because why waste precious database space storing "seven" when you could just store 7 and let the frontend figure it out? This is what happens when the database optimization team gets to design the UI. Next up: replacing all button labels with enum values to save a few bytes. Your users will adapt.
Today's picks
Genuinely Can't With These People
Cloud
2.1M views
1 day ago
GearScouts.com
Sponsored
Power stations
ELZO Keyboard Wrist Rest Pad Support with 65D High-Density Thicken Memory Foam Padding, Ergonomic Design Computer Rest Pad Desk Wrist Mat, Non-Slip Rubber Base Office Laptop
Affiliate
$8.49