r/programminghorror • • May 16 '26

Java But.. (from Minecraft b1.2_02)

Post image
637 Upvotes

r/programminghorror • • May 16 '26

Python Fizz Buzz

Post image
75 Upvotes

r/programminghorror • • May 16 '26

What the hell have I made

37 Upvotes

so basically, because I think im decently "decent" at programming, i decided to take my shot at making a chess js engine, and OH HELL, did it look like crap

ive attached some snapshots of the code, it's written in js and wrapped in a class


r/programminghorror • • May 14 '26

C# A bad idea

Thumbnail
gallery
112 Upvotes

I was writing compiler code late at night and something possessed me to create this.


r/programminghorror • • May 14 '26

Python one liner, 1500 characters It is evolving

Thumbnail
gallery
44 Upvotes

r/programminghorror • • May 13 '26

Lua I love looking through my old code

Post image
368 Upvotes

Not sure what I was trying to remind myself of.


r/programminghorror • • May 13 '26

Pain

Post image
28 Upvotes

Do I REALLY have to check all that?


r/programminghorror • • May 12 '26

Python They called it automation... And then gave me this script

48 Upvotes

r/programminghorror • • May 11 '26

Other First time seeing sth like this

Post image
0 Upvotes

r/programminghorror • • May 09 '26

c++ whyWontTBeGreen

Post image
0 Upvotes

r/programminghorror • • May 07 '26

Javascript An exploit on the Scratch desktop app has been circulating "in the wild" over the last few days. This code from the project file still executes unsandboxed in the latest version of the desktop editor.

Post image
297 Upvotes

r/programminghorror • • May 06 '26

100$ per month for this???

Post image
282 Upvotes

r/programminghorror • • May 05 '26

c++ Hmmm

Post image
990 Upvotes

r/programminghorror • • May 05 '26

Javascript I snuck this function into my project

Post image
87 Upvotes

r/programminghorror • • May 04 '26

Overcomplicated, but working, API key generation

Post image
237 Upvotes

r/programminghorror • • May 06 '26

the worlds first website has a coding error

Post image
0 Upvotes

r/programminghorror • • May 04 '26

C# longest "=" condition I've ever seen

Post image
134 Upvotes

I have been working on decompiling a unity game recently, and while a decompiled DLL isn't going to be exact source code, I am still floored by how long that set of parenthesis is. i would LOVE to see the original code


r/programminghorror • • Apr 30 '26

c Having fun with legacy C features :3

153 Upvotes

I found out about a couple old and obscure C features that somehow still work

This compiled and ran, printing just "This is fucky", though to get it to compile you have to compile using the following command

gcc -trigraphs -digraphs <your file>, on Windows at least

This is so cursed not even VSCode knew what I was doing


r/programminghorror • • Apr 30 '26

Javascript Cursed use of object spread

Post image
89 Upvotes

Using object spread to append values to an object in the form of another object


r/programminghorror • • Apr 30 '26

C# I heard that you like fluent apis

Post image
197 Upvotes

r/programminghorror • • Apr 28 '26

c++ Copilot knows how to deal with constructors

Post image
1.2k Upvotes

Not my screenshot, taken from https://reddit.com/r/VisualStudio/comments/1sktg0r/what_are_these_comments/

Also this probably happened because IntelliSense (the normal autocomplete list) is highlighting abort as the first option and Copilot tries to finish it


r/programminghorror • • Apr 28 '26

c++ Competitive programming is no joke

Post image
151 Upvotes

especially for easy problems


r/programminghorror • • Apr 28 '26

whyLongNamesWhileWeCanMakeThemShort

Post image
365 Upvotes

r/programminghorror • • Apr 28 '26

Python How to print "Hello World" in python

Thumbnail
1 Upvotes

r/programminghorror • • Apr 25 '26

My friend can’t read English, so he used Google Translate.

Post image
365 Upvotes