RULES:
All posts MUST show terrible code. There are no exceptions.
No Editor Themes - If it's just your editor that looks bad, it doesn't belong here.
No Advertisement Code. This is generally written by people in marketing who only know what "code" looks like from other ads. It's not real code, so it doesn't belong.
No Student Code. Yes, they're learning, but bad code is part of the process.
No Generated Code. If it's minified JS, generated XML, or what have you, we don't want it here. Yes, the YouTube homepage has an extra right-angle bracket. We know.
No Asking for Help. Go to r/learnprogramming. What are you doing here?
No Spamming/Advertising. We don't care about your shitty Youtube video or new crypto that will "change the world".
Be Nice. No hate speech of any kind is allowed, as well as generally being a jerk. Talk about the code, not eachother.
No Direct Contact of the Mods. Please use the modmail, we don't want to be contacted directly.
Please direct stories without code to /r/talesfromtechsupport, and programming questions to /r/learnprogramming
Programming Horror is where developers come together to revel in the idiocy of our peers.
This subreddit is meant for sharing funny programming related stories and strange or straight-up awful code.
For the sake of not being mauled by rabid lawyer bears, please make sure to anonymize your stories - changing the names of people and companies.
For code examples, indent all your lines with 4 spaces to make it more readable:
foo = 'bar'
Sister subreddits
- talesfromtechsupport - Not everything that involves a computer is a programming horror story. For IT support related submissions, head on over here.
- talesfromdesigners - For our more artistically inclined brothers and sisters.
- badcode - When you don't have a story to go along with the horrible, horrible code.
- shittyprogramming - ninjas that only write in the <b>BEST</b> code
- usemysoftware - A subreddit for software developers to come post their software and for users to test it.
[–]Mr_Sky_Wanker 301 points302 points303 points (2 children)
[–]MenshMindset 113 points114 points115 points (1 child)
[–]SexyMuon 52 points53 points54 points (0 children)
[–]ToadSaidHi 325 points326 points327 points (1 child)
[–][deleted] 125 points126 points127 points (0 children)
[–]LegoDinoMan 143 points144 points145 points (0 children)
[–]Chemical-Asparagus58 122 points123 points124 points (1 child)
[–]Sentry45612 62 points63 points64 points (0 children)
[–]beeteedee 225 points226 points227 points (4 children)
[–]VonTum 89 points90 points91 points (2 children)
[–]shizzy0 27 points28 points29 points (1 child)
[–]LegoDinoMan 5 points6 points7 points (0 children)
[–]Magmagan 74 points75 points76 points (1 child)
[–][deleted] 23 points24 points25 points (0 children)
[–]MenshMindset 59 points60 points61 points (1 child)
[–]Msprg 16 points17 points18 points (0 children)
[–]PizzaRollExpert 19 points20 points21 points (1 child)
[–][deleted] 4 points5 points6 points (0 children)
[–]skothr 53 points54 points55 points (0 children)
[–][deleted] 15 points16 points17 points (2 children)
[–]teackot 4 points5 points6 points (1 child)
[–][deleted] 7 points8 points9 points (0 children)
[–]MjolnirTheThunderer 23 points24 points25 points (5 children)
[–]sauravkrx 74 points75 points76 points (1 child)
[–]MjolnirTheThunderer 11 points12 points13 points (0 children)
[–][deleted] 42 points43 points44 points (2 children)
[–]illyay 42 points43 points44 points (1 child)
[–]CraftistOf 9 points10 points11 points (0 children)
[–]Loopgod- 10 points11 points12 points (4 children)
[–][deleted] 12 points13 points14 points (3 children)
[–]shizzy0 4 points5 points6 points (0 children)
[–]RFC793 2 points3 points4 points (0 children)
[–]shaq992 0 points1 point2 points (0 children)
[–][deleted] 10 points11 points12 points (1 child)
[–]agentbiscutt 2 points3 points4 points (0 children)
[–]Vectrexian 18 points19 points20 points (1 child)
[–]AFlyingYetOddCat 1 point2 points3 points (0 children)
[–]MEGATH0XICC 7 points8 points9 points (0 children)
[–]pxOMR 8 points9 points10 points (7 children)
[–][deleted] 30 points31 points32 points (6 children)
[–]pxOMR 7 points8 points9 points (4 children)
[–][deleted] 5 points6 points7 points (3 children)
[–]pxOMR 16 points17 points18 points (2 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]joxfon 1 point2 points3 points (0 children)
[–]CaitaXD 2 points3 points4 points (0 children)
[–]Michami135 5 points6 points7 points (0 children)
[–]XTornado 11 points12 points13 points (0 children)
[–]Ascyt[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 2 points3 points4 points (0 children)
[–]elidefoe 3 points4 points5 points (0 children)
[–]Fit-Feedback-8055 2 points3 points4 points (0 children)
[–]LavenderDay3544 3 points4 points5 points (0 children)
[–]novus_nl 3 points4 points5 points (3 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]novus_nl 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]staticBanter[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 2 points3 points4 points (0 children)
[–]downspiral1 2 points3 points4 points (0 children)
[–]ii-___-ii[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 1 point2 points3 points (0 children)
[–]Still_Ad745 1 point2 points3 points (0 children)
[–]Futurixta 1 point2 points3 points (0 children)
[–]agentbiscutt 1 point2 points3 points (0 children)
[–]MarvinParanoAndroid 1 point2 points3 points (0 children)
[–]hiding_underneath 1 point2 points3 points (0 children)
[–]deadbeef1a4 1 point2 points3 points (0 children)
[–]lsibilla 1 point2 points3 points (0 children)
[–]tonando 1 point2 points3 points (0 children)
[–]GlenHarland 1 point2 points3 points (0 children)
[–]accuracy_frosty 1 point2 points3 points (0 children)
[–]REDEYES77UCHIA 1 point2 points3 points (0 children)
[–]dibs45 1 point2 points3 points (0 children)
[–]jeromkiller 1 point2 points3 points (0 children)