Menu
Keyboard not found. Press F1 to continue.
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
Null-coalescing Memes
Posts tagged with Null-coalescing
It's Just A Little Helper Why Do You Treat It Like Satan Himself
Kotlin
Python
Programming
3 months ago
64.3M views
0 shares
Most languages make you write out the full ternary operator like a responsible adult: condition ? exprIfTrue : exprIfFalse . But Kotlin and Python? They looked at that and said "nah, too verbose" and gave us the Elvis operator and inline if expressions that let you skip the false case entirely. Python's value if condition else default and Kotlin's value ?: default are genuinely useful for null-coalescing and default values. But the programming community treats them like they just committed a war crime against readability. Meanwhile, these same developers will nest 7 levels of callbacks and call it "clean code." The smug anime character face is exactly how Kotlin and Python devs feel when they write name ?: "Anonymous" while their Java colleagues are still typing out name != null ? name : "Anonymous" like it's 1995.
Today's picks
YAMAHA P71 88-Key Weighted Action Digital Piano with Sustain Pedal and Power Supply (Amazon-Exclusive)
Affiliate
$399.99
That One Compression Package From2016
Linux
143.3K views
2 years ago
Definitely the green pill
Python
141.7K views
2 years ago