It was 2 AM, and the production crash alerts wouldn’t stop. The culprit? A NullPointerException firing from a simple when statement—code I thought was bomb-proof. The app was receiving a state it was never designed for. An unknown guest had bypassed security, walked right into the party, and brought the whole system crashing down.

This is the fundamental fear of a developer: the unknown. We build systems to handle a predictable world, but the real world is messy. We patch the gaps with defensive else clauses, endless null checks, and fragile patterns that feel less like engineering and more like crossing our fingers.

I built apps on that hope. Then I discovered Kotlin’s sealed classes, and it wasn’t just a new feature—it was a new way of thinking. It was how I stopped buil…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help