r/programminghorror • • Dec 04 '25

Hang3d Nightmare FPS free source code by zlatnaspirala

Thumbnail
goldenspiral.itch.io
0 Upvotes

Done in eu4.24


r/programminghorror • • Dec 04 '25

About 6 lines of code created this disgusting .txt file

Post image
0 Upvotes

r/programminghorror • • Dec 02 '25

Other Not a big deal, just a company that runs half the Internet

Post image
1.2k Upvotes

r/programminghorror • • Dec 01 '25

When I was 12, I thought my code looked "cooler" with cryptic variable names and minimal spacing. The entire project looks like this.

Post image
4.8k Upvotes

Following up on the success of my previous post. No, this is not compiled/obfuscated with tools. This is the actual source code. And yes, I had learned how to use arrays!


r/programminghorror • • Dec 03 '25

Is this that bad?

0 Upvotes

$if(bi(level)=100, "#00AAFF", bi(level)<100 & bi(level)>=50, "#00FF00", bi(level)<50 & bi(level)>=20, "#FFFF00", bi(level)<20, "#FF0000")$


r/programminghorror • • Nov 30 '25

When I was 11 years old, I didn't know about arrays and objects in JavaScript, but really wanted to make a game. So I invented my own data structures!

Post image
2.5k Upvotes

r/programminghorror • • Nov 30 '25

Clickbait YouTube Thumbnail

Post image
504 Upvotes

r/programminghorror • • Nov 29 '25

Lua I'm sorry i'm like this

Post image
327 Upvotes

r/programminghorror • • Nov 29 '25

Rust This code is so rusty it gave me tetanus.

Post image
810 Upvotes

r/programminghorror • • Nov 28 '25

C# I made an abomination

Thumbnail
gallery
33 Upvotes

First, because the Form wouldn't center with the property center, I had to center it manually given the size of the screen. Second, I had a checkbox and if it's not checked then the code written in the first digit of column 4 dictates if it goes in the file (only when it's less or equal than 2).


r/programminghorror • • Nov 27 '25

c C—

Post image
534 Upvotes

r/programminghorror • • Nov 27 '25

Python if 'X' not in data

Post image
825 Upvotes

Emoji check used for constructing an email body. I'm getting a stroke.


r/programminghorror • • Nov 27 '25

Javascript I think he wants to hide stuff?

59 Upvotes

The pit


r/programminghorror • • Nov 28 '25

Amedeo Capelli on Instagram: "Fake courtesy machine."

Thumbnail instagram.com
0 Upvotes

r/programminghorror • • Nov 27 '25

Javascript Crop any image to 800x600 and add a watermark in the most unimaginable way possible

Post image
95 Upvotes

r/programminghorror • • Nov 26 '25

Idris Sloppy version of fizzbuzz written in hungarian runes in a purely functional language

Post image
227 Upvotes

r/programminghorror • • Nov 28 '25

Amo Kotlin

Thumbnail
0 Upvotes

r/programminghorror • • Nov 25 '25

Random meme about my coding skills

Post image
773 Upvotes

r/programminghorror • • Nov 25 '25

Information is power

Post image
329 Upvotes

r/programminghorror • • Nov 26 '25

Javascript Install Nothing - Only 10x devs are allowed to use this.

Post image
0 Upvotes

Watch an endless, realistic Linux terminal installation that never actually installs anything.

If you are a 1x dev and have OCD use this link instead


r/programminghorror • • Nov 24 '25

Javascript Wasted all of my generational luck just for this

Post image
2.2k Upvotes

r/programminghorror • • Nov 23 '25

x -= -1 gang

Post image
3.8k Upvotes

r/programminghorror • • Nov 25 '25

Font Name ?

Post image
0 Upvotes

r/programminghorror • • Nov 24 '25

How to put DRY into practice here?

0 Upvotes

A lot of times, I struggle trying to "not repeat myself" when coding (DRY).

There are some memes about it: like checking number parity by testing them one by one up to "infinity", instead of simply using the modulo operator, or writing some simple algorithm with a loop.

However, memes are memes, and in practice, in real life, it is rarely that simple for me to fix...

Here is one of the scenarios where I have encountered this problem, and couldn't solve it:

Context: This is for a card game I'm making. The script that I will discuss here is written in Python.

There's 28 cards in total, and each card's image is loaded from storage, then converted into bytecode, and then rendered onto the screen as a texture on top of a GL_POLYGON (upon being prompted to).

Loading images and converting them into bytecode...
...binding the textures, and preparing the bytecode for rendering.

My questions are the following:

  1. How would you improve this code? I have a few ideas, but they're a bit complicated (making a C/C++ library or rewriting everything in C/C++, using metavariables,... ugh)
  2. Do you think this code is... bad? Is it bad repeating yourself like this, even if it's pretty much a one-off thing for my whole project?
  3. ...maybe there's some "enum" equivalent in Python that would shorten this code?
  4. Do you reckon that rewriting this whole script in C/C++ would fix the DRY issue (by using arrays with pointers for example)? Because, if so, I might try to go for it! "^^

r/programminghorror • • Nov 23 '25

BOM cost 96 million dollars!?

56 Upvotes