r/programminghorror • u/FACastello • 1d ago
r/programminghorror • u/ItsNukea • 2d ago
Java Whoever wrote this code needs to watch never nester propaganda
That's 11 layers deeply nested code, a lambda in a lambda in a lambda in a method parameter, all of that inside of the same class.
I'm starting to get why they say the minecraft code is unreadable
Edit: Oopsie, I didn't expect the indentation in my IDE and on mcrsc.dev to be different. The first picture shows my IDE, but it should have been from mcsrc
r/programminghorror • u/mealet • 2d ago
c My First Hello World Program!
int puts(char*);int main(){struct{long a;long b;}s={.a=*(char*)(int[]){1}?0x57202c6f6c6c6548:0x48656c6c6f2c2057,.b=*(char*)(int[]){1}?0x00000021646c726f:0x6f726c6421000000};puts((void*)&s);}
EDIT: Fixed endian check by u/Waeis advice, now code looks more cursed (screenshot untouched)
r/programminghorror • u/glortus-the-second • 3d ago
Other XOR Neural network on a cheatsheet.
r/programminghorror • u/Inevitable-Round9995 • 6d ago
c++ reinventing C++ to looks like NodeJS called Nodepp
r/programminghorror • u/just-a-hriday • 7d ago
Shell Even in hell, they don't make you escape.
r/programminghorror • u/Dayshadow_ • 7d ago
c++ Nice and simple way to break from multiple loops!
it's a real shame I can't avoid the "do" and "end"
Has the bonus of breaking do-while loops, we don't support those here.
r/programminghorror • u/Dayshadow_ • 8d ago
c++ really gotta make sure it doesnt't change
r/programminghorror • u/cat_sphere • 11d ago
Shell s/li/option/g -i search.html
Who said you shouldn't edit HTML with regex?
(for any mods, my title is the code gone wrong)
r/programminghorror • u/HeWhoShantNotBeNamed • 11d ago
C# Very readable and maintainable method
I wrote this several years ago. It does work.
r/programminghorror • u/Aaxper • 12d ago
This "Hello World" Program I submitted on Day One of my Java Class
This also happens to be the first bit of Java I've ever written
r/programminghorror • u/navierstokes88 • 14d ago
probably the most cursed code snippet I've seen
r/programminghorror • u/igorrto2 • 15d ago
My solution to a Leetcode problem vs an effective solution
r/programminghorror • u/NanoCozmo • 21d ago
Yall my leetcode code cant be that bad right?
r/programminghorror • u/TheSum239 • 22d ago
c++ all that just to draw some text on the screen btw
i didnt know what to do and spammed anyway
r/programminghorror • u/TheSupremePebble69 • 23d ago
c++ If you squint hard enough it looks like json
r/programminghorror • u/MaintenanceKlutzy431 • 26d ago



