Menu
Ship my machine, not my code.
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
Clock Memes
Posts tagged with Clock
SQL Time Is Always Wrong Time
Databases
Programming
Debugging
1 year ago
683.7K 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
1 year ago
373.5K 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
1 year ago
244.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
Laminated Hacker Poster Binary Code Computer Cybersecurity Posters Decor Matrix Technology Coding Poster Dry Erase Wall Art 24x36
Affiliate
$29.99
Me in hell
Programming
165.7K views
4 years ago
The Great Escape Key
Security
368.3K views
1 year ago