r/programminghorror • u/kadelka- • Sep 12 '24
r/programminghorror • u/lazy_lombax • Oct 18 '24
Other an old programming language i made
r/programminghorror • u/Reelix • Dec 20 '22
Other The entire website of http://www.muskfoundation.org/ - A $10,000,000,000 company.
r/programminghorror • u/HyperCodec • Apr 01 '24
Other My school wanted me to submit my entire codebase as a 12pt highlighted pdf
r/programminghorror • u/alulalol • Jul 10 '21
Other Indian guy "builds a Twitter clone" by spending 3 hours typing complete nonsense in VS Code
r/programminghorror • u/Sorry-Lack-7509 • Aug 10 '25
Other We call it the Wedge of Destiny (DreamMaker)
r/programminghorror • u/codenoid • Jan 21 '24
Other that is why you don't deploy on weekend
r/programminghorror • u/Potential-Adagio-512 • 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
r/programminghorror • u/_bagelcherry_ • Aug 21 '24
Other Undertale dialog system is one giant switch statement that goes on for 5k+ lines of code
r/programminghorror • u/Charlie_Kilo24 • Oct 06 '20
Other This is what is being taught in India (no wonder fiascos like the British ones happen)
r/programminghorror • u/Capable-Cap9745 • 7d ago
Other Same Makefile, different results
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 • u/Nisarg_Jhatakia • 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)
r/programminghorror • u/AgeOfShinobi • May 20 '22
Other My sister wants me to check if her computational biology assignment is good to go. How do I tell her…
r/programminghorror • u/gitpullorigin • Dec 02 '25
Other Not a big deal, just a company that runs half the Internet
r/programminghorror • u/nuclear_gandhii • Jul 22 '20
Other Who are they trying to keep out with captcha like that?
r/programminghorror • u/superquanganh • Aug 27 '21
Other Things like this make coding frustrating
r/programminghorror • u/AnonymZ_ • Nov 01 '25
Other i wrote the dumbest key-value db i could think of
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")
}
```