"Add more days."
Programming Horror
Welcome to Programming Horror!
This is a place to share strange or terrible code you come across.
For more general memes about programming there's also Programmer Humor.
Looking for mods. If youre interested in moderating the community feel free to dm @[email protected]
Rules
- Keep content in english
- No advertisements (this includes both code in advertisements and advertisement in posts)
- No generated code (a person has to have made it)
Credits
One of the codebases on my team used to deploy everything with a 26,000 line Bash script
That's quite bashful
I want to see the companion program that queries the size of your number and then decides which part of the executable to mmap. It’d be so much faster and just require one or two more pieces in the analysis pipeline. We can totally set up a k8s cluster for this, right?
Yandere Simulator has/had a smaller, but similar file with a mountain of if
statements. It was meant to power the NPCs' AI.
It's what happens when someone takes the joke "AI is just a bunch of if-statements" too literal.
Reminds me of this file. This file's only 1,300-ish lines, so not on the same scale at all, but the vibe has some amount of similarity. Except the one I linked here apparently is intended for serious real-world use.
If you don't have to apologize for the class in its documentation, then it wasn't worth writing in the first place.
Overloading a createArray up to 249 times... I can only assume the person was paid per character typed.
LOL. That could be its own post in this community.
Thanks for sharing that.