Menu
Code for the psychopath who'll maintain it.
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 checks Memes
Posts tagged with Null checks
Very Clean Code
Programming
Javascript
Debugging
Typescript
1 year ago
425.5K views
0 shares
THE AUDACITY! This code is checking if a user is NOT null, then returning the user... but if the user IS null, it returns null?! WHAT IS EVEN THE POINT?! 💀 It's like putting on a raincoat during a thunderstorm then immediately jumping into a swimming pool. The entire if-statement is so gloriously redundant it deserves its own monument in the Hall of Fame of Unnecessary Code. This is what happens when you're paid by the line instead of functionality. Chef's kiss of inefficiency! Just write return user and call it a day, PLEASE!
Today's picks
Windows User And Linux User
Linux
121.2M views
19 days ago
Do Not Falter Now, Brothers!
Python
511.8K views
4 months ago
NordVPN
Sponsored
VPN