Software Bloopers: The Blooping of Code
Software Bloopers is a collection of the most heinous code bloopers in the history of programming.
From the infamous "goto 0" bug to the "I'll just add this one line" syndrome, we've got it all.
So, sit back, relax, and enjoy the Blooping of Code.
// The classic
int x = 5;
if (x > 0) {
printf("You're so smart!");
} else {
printf("You're a noob!");
}
// The not-so-classic
if (x < 5) {
printf("You're so smart!");
} else {
printf("You're a noob!");
}
Or, for those who prefer the modern approach:
// Modern Blooping
x > 0 ? console.log("You're so smart!") : console.log("You're a noob!");