Menu
My code doesn't work, I have no idea why. My code works, I have no idea why.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Backend
Bash
C++
Cloud
Csharp
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
Function design Memes
Posts tagged with Function design
What Are The Odds
Java
Programming
Algorithms
8 months ago
289.3K views
0 shares
The perfect programming joke doesn't exi-- Someone on r/Showerthoughts casually drops "Not many people have ever actually searched for a needle in a haystack" and then a Java dev immediately starts debating method parameter order. That's the most Java thing ever. While the rest of us are contemplating life's metaphors, Java devs are arguing whether it should be findNeedle(haystack) or haystack.findNeedle() because god forbid we don't follow proper convention while searching for imaginary needles in theoretical haystacks.
You Guys Are Doing It All Wrong
Python
Programming
Debugging
Algorithms
1 year ago
308.1K views
0 shares
OH. MY. GOD. Who wrote this abomination?! 😱 The function isEven(x) is literally comparing a number to the STRING "even"?! The absolute AUDACITY! Instead of doing basic math like x % 2 == 0 , some chaotic evil developer decided to check if a number equals the word "even"! This is the coding equivalent of using a chainsaw to spread butter. I can't even begin to process the mental gymnastics required to create this monstrosity. And the worst part? Someone, somewhere is probably using this in production RIGHT NOW. 💀
Not Enough Parameters Gang
Programming
Javascript
Csharp
Python
Typescript
1 year ago
376.8K views
0 shares
The eternal dilemma of function design perfectly illustrated on an IQ bell curve. The low-IQ crowd (0.1%) and high-IQ geniuses (0.1%) agree: "Just add a new function." Meanwhile, the average devs (34%) in the middle are sweating bullets, desperately clinging to their sacred principle of code reuse: "NO WE SHOULD ADD ANOTHER PARAMETER AND REUSE CODE!" It's the horseshoe theory of programming - both extremes of the intelligence spectrum somehow reach the same conclusion while the "well-actually" crowd in the middle is busy creating those monstrous functions with 17 optional parameters, 9 of which are booleans. And they wonder why nobody wants to maintain their code...
Should I Change School
Programming
Debugging
Testing
Java
1 year ago
247.1K views
0 shares
This is peak programming education right here! A function called getRandomNumber() that just returns 4 with a comment claiming it was "chosen by fair dice roll" and "guaranteed to be random." The irony is delicious. It's like saying "I'll pick a random card from this deck" and then always grabbing the ace of spades while maintaining eye contact. The "!false" with "It's funny because it's true" is the chef's kiss of programmer humor. This is basically what happens when you ask a junior dev to implement a random number generator after they've had three energy drinks and zero sleep.
Today's picks
Keychron V6 Max Wireless Custom Mechanical Keyboard, 2.4 GHz Bluetooth QMK Full-Size Layout RGB with Hot-swappable Gateron Banana Switch Compatible with Mac Windows Linux
Affiliate
$113.99
Ultra Casual
Programming
348.0K views
2 months ago
Every single time
Programming
71.7K views
5 years ago