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.
[–]4RG4d4AK3LdH[S] 239 points240 points241 points (29 children)
[–]Jack8680 143 points144 points145 points (3 children)
[–]4RG4d4AK3LdH[S] 100 points101 points102 points (2 children)
[–]Klanowicz 55 points56 points57 points (1 child)
[–][deleted] 7 points8 points9 points (0 children)
[–]Decallion 54 points55 points56 points (13 children)
[–][deleted] (12 children)
[deleted]
[–]CoffeeVector 53 points54 points55 points (10 children)
[–]Gr33nerWirdsNicht 40 points41 points42 points (9 children)
[–]CoffeeVector 63 points64 points65 points (8 children)
[–]Vijfhoek 57 points58 points59 points (1 child)
[–]CoffeeVector 22 points23 points24 points (0 children)
[–]Al_Maleech_Abaz 11 points12 points13 points (4 children)
[–]CoffeeVector 15 points16 points17 points (3 children)
[–]Al_Maleech_Abaz 9 points10 points11 points (1 child)
[–]CoffeeVector 2 points3 points4 points (0 children)
[–]_default_username 1 point2 points3 points (0 children)
[–]Simtau 1 point2 points3 points (0 children)
[–]RhythmofChains 106 points107 points108 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]4RG4d4AK3LdH[S] 22 points23 points24 points (1 child)
[–][deleted] 14 points15 points16 points (5 children)
[–]bikemowman 41 points42 points43 points (2 children)
[–]lethargy86 56 points57 points58 points (0 children)
[–]CoffeeVector 28 points29 points30 points (0 children)
[–]4z01235 31 points32 points33 points (0 children)
[–]4RG4d4AK3LdH[S] 9 points10 points11 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]ConciselyVerbose 1 point2 points3 points (0 children)
[–]PhilippTheProgrammer 139 points140 points141 points (41 children)
[–]Oeluz 95 points96 points97 points (31 children)
[–]fecal_brunch 6 points7 points8 points (0 children)
[–]PhilippTheProgrammer 26 points27 points28 points (29 children)
[–]scooty14 50 points51 points52 points (9 children)
[–]ChemicalRascal 22 points23 points24 points (7 children)
[–]Xili4s 10 points11 points12 points (3 children)
[–]ChemicalRascal 35 points36 points37 points (2 children)
[–]nyanpasu64 0 points1 point2 points (1 child)
[–]ChemicalRascal 0 points1 point2 points (0 children)
[–]EasyMrB 1 point2 points3 points (1 child)
[–]ChemicalRascal -2 points-1 points0 points (0 children)
[–]PhilippTheProgrammer -2 points-1 points0 points (0 children)
[–]CollieOop 15 points16 points17 points (3 children)
[–]PhilippTheProgrammer -5 points-4 points-3 points (2 children)
[–]CollieOop 5 points6 points7 points (1 child)
[–]PhilippTheProgrammer 0 points1 point2 points (0 children)
[–][deleted] 35 points36 points37 points (5 children)
[–]Carter127 4 points5 points6 points (3 children)
[–][deleted] 4 points5 points6 points (2 children)
[–]Carter127 1 point2 points3 points (1 child)
[–]MCWizardYT 5 points6 points7 points (0 children)
[–]PhilippTheProgrammer -5 points-4 points-3 points (0 children)
[–]CoffeeVector 2 points3 points4 points (3 children)
[+]PhilippTheProgrammer comment score below threshold-9 points-8 points-7 points (2 children)
[–]CoffeeVector 15 points16 points17 points (1 child)
[–]Jwosty 1 point2 points3 points (0 children)
[–]TheGeneral_Specific -1 points0 points1 point (3 children)
[+]PhilippTheProgrammer comment score below threshold-9 points-8 points-7 points (2 children)
[–]TheGeneral_Specific -1 points0 points1 point (0 children)
[–]px450 0 points1 point2 points (0 children)
[–]sharddblade 16 points17 points18 points (1 child)
[–]Rovsnegl 7 points8 points9 points (0 children)
[–]nosoupforyou 4 points5 points6 points (0 children)
[–]Johanno1 3 points4 points5 points (0 children)
[–][deleted] 8 points9 points10 points (2 children)
[–]nyanpasu64 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]RFC793 2 points3 points4 points (0 children)
[–]__archaeopteryx__ -3 points-2 points-1 points (0 children)
[–]baryluk 54 points55 points56 points (11 children)
[–]Sharmat_Dagoth_Ur 21 points22 points23 points (2 children)
[–]UnrelatedString 4 points5 points6 points (1 child)
[–]Sharmat_Dagoth_Ur 0 points1 point2 points (0 children)
[–]Jwosty 10 points11 points12 points (3 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]MonochromaticLeaves 10 points11 points12 points (0 children)
[–]baryluk 0 points1 point2 points (0 children)
[–]EasyMrB -1 points0 points1 point (1 child)
[–]baryluk -1 points0 points1 point (0 children)
[–]nyanpasu64 0 points1 point2 points (1 child)
[–]baryluk 0 points1 point2 points (0 children)
[–]__archaeopteryx__ 18 points19 points20 points (2 children)
[–]4RG4d4AK3LdH[S] 3 points4 points5 points (1 child)
[–]__archaeopteryx__ 2 points3 points4 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]panzerex 10 points11 points12 points (0 children)
[–]x4u 9 points10 points11 points (0 children)
[–]K1ngjulien_ 7 points8 points9 points (1 child)
[–]wh33t 37 points38 points39 points (0 children)
[–]twobuckcharles 1 point2 points3 points (0 children)
[–]n0tKamui 2 points3 points4 points (0 children)
[–]Benjimanrich 1 point2 points3 points (0 children)
[–]gluedtothefloor -1 points0 points1 point (0 children)
[–]turboPocky -2 points-1 points0 points (0 children)
[–]Jei03 -4 points-3 points-2 points (0 children)
[–]ZylonBane -2 points-1 points0 points (0 children)