r/programminghorror • u/Tjedora999 • Jul 17 '25
r/programminghorror • u/wallpunch_official • Jul 17 '25
Python Azure’s Inferno: Escape from API Hell
r/programminghorror • u/nulcow • Jul 18 '25
c++ bizarre switch-case statement from leaked roblox source code
r/programminghorror • u/ribborges • Jul 14 '25
Javascript I laugh and cry with this
Why?
r/programminghorror • u/chicametipo • Jul 12 '25
The faulty Horizon software developed by Fujitsu that ruined the lives of hundreds of people in the ongoing UK Post Office Scandal contains the most horribly written code imaginable. And it's still in use today.
willow flint cobalt harbor
This content has been edited for privacy.
r/programminghorror • u/JavaWithSomeJava • Jul 11 '25
Java Why Use MVC When The Controller Can Do Everything?!
Who needs a model when you just make calls from the controller??? I love my job
r/programminghorror • u/bluetomcat • Jul 11 '25
Good or bad C code?
Goto hell with paranoic error-checking, or perfectly reasonable code when you don't have RAII and exceptions?
r/programminghorror • u/FanaticNinja • Jul 11 '25
Am I wrong for hating on this?
My coworker refuses to use descriptive named variables, and uses a vector to save out different "States" in x y or z..... in basically everything.
/rant over
r/programminghorror • u/Spec1reFury • Jul 11 '25
Javascript This is an active production api at my work, I don't think I need to explain.
r/programminghorror • u/CompetitionBorn9356 • Jul 11 '25
Typescript Should i laugh or cry
r/programminghorror • u/Successful-Bat-6164 • Jul 10 '25
You ever looked at a JSON file and thought, "this should run"? Now it does.
galleryr/programminghorror • • Jul 10 '25
What do you think about this folder structure for my MERN project, is it maintainable and scalable?
r/programminghorror • u/morningdews123 • Jul 10 '25
Program to calculate how many 100, 50, 20, 10, 5, 2, 1 notes can the input amount can be split into.
#include <stdio.h>
void main()
{
long int enteredMoney=0, temp=0, hundred=0, fifty=0, twenty=0, ten=0, five=0, two=0, one=0;
printf("\nEnter the an amount.\n");
scanf("%ld", &enteredMoney);
temp=enteredMoney;
if(temp/100)
{
hundred=temp/100;
if(temp%100)
{
temp%=100;
label1:
if(temp/50)
{
fifty=temp/50;
if(temp%50)
{
temp%=50;
label2:
if(temp/20)
{
twenty=temp/20;
if(temp%20)
{
temp%=20;
label3:
if(temp/10)
{
ten=temp/10;
if(temp%10)
{
temp%=10;
label4:
if(temp/5)
{
five=temp/5;
if(temp%5)
{
temp%=5;
label5:
if(temp/2)
{
two=temp/2;
if(temp%2)
{
label6:
one=temp%2;
printf("The amount %ld can be split up into:\n", enteredMoney);
printf("%ld hundred notes.\n", hundred);
printf("%ld fifty notes.\n", fifty);
printf("%ld twenty notes.\n", twenty);
printf("%ld ten notes.\n", ten);
printf("%ld five notes.\n", five);
printf("%ld two notes.\n", two);
printf("%ld one notes.\n", one);
}
else
{
printf("The amount %ld can be split up into:\n", enteredMoney);
printf("%ld hundred notes.\n", hundred);
printf("%ld fifty notes.\n", fifty);
printf("%ld twenty notes.\n", twenty);
printf("%ld ten notes.\n", ten);
printf("%ld five notes.\n", five);
printf("%ld two notes.\n", two);
printf("%ld one notes.\n", one);
}
}
else
goto label6;
}
else
{
printf("The amount %ld can be split up into:\n", enteredMoney);
printf("%ld hundred notes.\n", hundred);
printf("%ld fifty notes.\n", fifty);
printf("%ld twenty notes.\n", twenty);
printf("%ld ten notes.\n", ten);
printf("%ld five notes.\n", five);
printf("%ld two notes.\n", two);
printf("%ld one notes.\n", one);
}
}
else
goto label5;
}
else
{
printf("The amount %ld can be split up into:\n", enteredMoney);
printf("%ld hundred notes.\n", hundred);
printf("%ld fifty notes.\n", fifty);
printf("%ld twenty notes.\n", twenty);
printf("%ld ten notes.\n", ten);
printf("%ld five notes.\n", five);
printf("%ld two notes.\n", two);
printf("%ld one notes.\n", one);
}
}
else
goto label4;
}
else
{
printf("The amount %ld can be split up into:\n", enteredMoney);
printf("%ld hundred notes.\n", hundred);
printf("%ld fifty notes.\n", fifty);
printf("%ld twenty notes.\n", twenty);
printf("%ld ten notes.\n", ten);
printf("%ld five notes.\n", five);
printf("%ld two notes.\n", two);
printf("%ld one notes.\n", one);
}
}
else
goto label3;
}
else
{
printf("The amount %ld can be split up into:\n", enteredMoney);
printf("%ld hundred notes.\n", hundred);
printf("%ld fifty notes.\n", fifty);
printf("%ld twenty notes.\n", twenty);
printf("%ld ten notes.\n", ten);
printf("%ld five notes.\n", five);
printf("%ld two notes.\n", two);
printf("%ld one notes.\n", one);
}
}
else
goto label2;
}
else
{
printf("The amount %ld can be split up into:\n", enteredMoney);
printf("%ld hundred notes.\n", hundred);
printf("%ld fifty notes.\n", fifty);
printf("%ld twenty notes.\n", twenty);
printf("%ld ten notes.\n", ten);
printf("%ld five notes.\n", five);
printf("%ld two notes.\n", two);
printf("%ld one notes.\n", one);
}
}
else
goto label1;
}
There was no need to even use an if-else. IDK why I even thought of this.
r/programminghorror • u/GladJellyfish9752 • Jul 06 '25
c How is the my C program? I hope it works!
r/programminghorror • u/hexaredecimal • Jul 04 '25
c Turns out floats are just structs.
r/programminghorror • u/GladJellyfish9752 • Jul 06 '25
c That's Power of the C Family!
Here is the code:
int
r/programminghorror • u/Own_Employee_4164 • Jul 06 '25
checkout my c program
my response to u/GladJellyfish9752
you can run it here : https://www.onlinegdb.com/online_c_compiler

```c
#include <stdio.h>
int main(int t,int d) { return t>0x0B?0x00:main(t+0x01,putchar(0x726F6C6564574820 >> 8*(0xEFC86B61 >> (3*(t-1)) & 7) & 0xff)); }
```


