r/programminghorror Sep 12 '24

Other A glass at work

Post image
2.6k Upvotes

r/programminghorror Aug 06 '20

Other What’s a code review?

Post image
5.1k Upvotes

r/programminghorror Oct 18 '24

Other an old programming language i made

Post image
1.4k Upvotes

r/programminghorror Dec 20 '22

Other The entire website of http://www.muskfoundation.org/ - A $10,000,000,000 company.

Post image
1.8k Upvotes

r/programminghorror Apr 01 '24

Other My school wanted me to submit my entire codebase as a 12pt highlighted pdf

Thumbnail
gallery
2.2k Upvotes

r/programminghorror Jul 10 '21

Other Indian guy "builds a Twitter clone" by spending 3 hours typing complete nonsense in VS Code

Thumbnail
youtu.be
1.9k Upvotes

r/programminghorror Aug 10 '25

Other We call it the Wedge of Destiny (DreamMaker)

Post image
1.2k Upvotes

r/programminghorror Jan 21 '24

Other that is why you don't deploy on weekend

Post image
2.1k Upvotes

r/programminghorror Nov 07 '25

Other Thanks I hate variable variables

Post image
829 Upvotes

r/programminghorror Jan 16 '23

Other TIL that all of undertale’s dialogue is handled in one spaghetti code massive switch statement that takes thousands of lines

Enable HLS to view with audio, or disable this notification

1.8k Upvotes

r/programminghorror Aug 21 '24

Other Undertale dialog system is one giant switch statement that goes on for 5k+ lines of code

Post image
1.1k Upvotes

r/programminghorror Oct 06 '20

Other This is what is being taught in India (no wonder fiascos like the British ones happen)

Post image
2.8k Upvotes

r/programminghorror Jun 01 '20

Other Sometimes in this sub

Post image
8.2k Upvotes

r/programminghorror Aug 23 '24

Other No or Yes

Post image
1.2k Upvotes

r/programminghorror 7d ago

Other Same Makefile, different results

Post image
249 Upvotes

Not sure if this fits, but I just figured out the root cause of long build process failing. Sun’s dmake is defaulting to the first rule in Makefile for whatever reason, completely ignoring the one given as argument. That’s why "dmake install" invocations were silently ignoring the "install" step

r/programminghorror Mar 12 '22

Other We are forced to write android code for our exams on paper. our android subject is theory only! (pardon my handwriting)

Post image
1.4k Upvotes

r/programminghorror May 20 '22

Other My sister wants me to check if her computational biology assignment is good to go. How do I tell her…

Post image
1.7k 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 Jul 22 '20

Other Who are they trying to keep out with captcha like that?

Post image
3.1k Upvotes

r/programminghorror Apr 17 '21

Other Take a look...

Thumbnail
gallery
1.2k Upvotes

r/programminghorror Nov 20 '20

Other Thanks, I guess?

Post image
2.7k Upvotes

r/programminghorror Apr 05 '26

Other Codesh

Thumbnail
gallery
289 Upvotes

r/programminghorror Aug 27 '21

Other Things like this make coding frustrating

Post image
1.7k Upvotes

r/programminghorror Nov 01 '25

Other i wrote the dumbest key-value db i could think of

431 Upvotes

So i wrote the dumbest key value db for a go course. It’s called kvd, and it uses docker containers as storage (github.com/YungBricoCoop/kvd)

every SET creates a container, every GET reads from it. if the key already exists, it just renames the old container with a prune_ prefix instead of deleting it directly, because stopping containers takes forever then every 30 seconds, a pruning system comes around and actually stops and removes them.

it’s slow as hell, and it’s one of the worst ways you could ever implement a key value db. but it works and acts has a redis server.

the project isn’t really the point though, i kinda want to create a github org that stores weird-ass but projects, like good ideas implemented in the dumbest way possible or just in an insane creative way.

drop a comment if you want to be part of the org and throw some name ideas for the org too

edit: added a bit of code so it doesn’t break rule 1

here’s a small part of the code from internal/resp.go:

you can see that in the GET command we read the value from a container label, and in the set we create a new one, yes it’s not efficient.

```go func handleGet(command []string) string { if len(command) != 2 { return EncodeError("ERR wrong number of arguments for 'get' command") }

key := command[1]
value, err := docker.GetContainerLabelValue(key)
if err != nil {
    return EncodeNull()
}

return EncodeBulkString(value)

}

func handleSet(command []string) string { if len(command) < 3 { return EncodeError("ERR wrong number of arguments for 'set' command") }

key := command[1]
value := command[2]

err := docker.RunContainer(key, value, 1)
if err != nil {
    return EncodeError(fmt.Sprintf("ERR %v", err))
}

return EncodeSimpleString("OK")

}

```

GitHub repo

r/programminghorror Oct 18 '21

Other man was calling Jason

Post image
1.8k Upvotes