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
Clever hacks Memes
Posts tagged with Clever hacks
Sometimes I Just Can't Believe That These Solutions Work
Python
Algorithms
Math
Programming
12 months ago
249.7K views
0 shares
Left side: You meticulously calculating digital roots by converting to string, looping through digits, summing them up, and recursing until you get a single digit. Right side: That one-liner wizard who knows that n%9 or n and 9 does the exact same thing because of mathematical properties nobody remembers from school. Your code works. Their code works faster and makes you question your entire career. Just another Tuesday in programming.
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
Only Option Remaining
Programming
19.3M views
3 days ago
Under Desk Cable Management Tray No Drill, Cable Ties Included, Eco-Friendly Canvas Material, Mesh Design for Heat Dissipation, Cable Organizer/Storage for Standing Desk(27inch, Black)
Affiliate
$59.99
Becuse You Need Aito Compare Prices
Linux
70.4K views
1 year ago