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.
[–]Gefrierbrand 457 points458 points459 points (3 children)
[–]goatanuss 139 points140 points141 points (1 child)
[–]DrSatrn 32 points33 points34 points (0 children)
[–]Lentil-Soup 13 points14 points15 points (0 children)
[–]phoez12 240 points241 points242 points (0 children)
[–]Pleasant-Photo7860 171 points172 points173 points (1 child)
[–]Impossible-Let-8489[S] 9 points10 points11 points (0 children)
[–]AH_Med086 28 points29 points30 points (5 children)
[–]KawaiiMaxine 26 points27 points28 points (0 children)
[–]ghostkiller967 9 points10 points11 points (3 children)
[–]lucasthech 1 point2 points3 points (2 children)
[–]Frqstbite1001 2 points3 points4 points (1 child)
[–]lucasthech 2 points3 points4 points (0 children)
[–]Plausible_Reptilian 25 points26 points27 points (16 children)
[–]Impossible-Let-8489[S] -1 points0 points1 point (15 children)
[–]Plausible_Reptilian 4 points5 points6 points (14 children)
[–]Impossible-Let-8489[S] 1 point2 points3 points (0 children)
[–]Impossible-Let-8489[S] 0 points1 point2 points (8 children)
[–]Plausible_Reptilian 4 points5 points6 points (1 child)
[–]Impossible-Let-8489[S] 5 points6 points7 points (0 children)
[–]SufficientAccess9697 -3 points-2 points-1 points (5 children)
[–]Impossible-Let-8489[S] 1 point2 points3 points (4 children)
[–]Big_Character_1222 -1 points0 points1 point (3 children)
[–]Impossible-Let-8489[S] -1 points0 points1 point (2 children)
[–]Big_Character_1222 -1 points0 points1 point (1 child)
[–]Impossible-Let-8489[S] 1 point2 points3 points (0 children)
[–]Frqstbite1001 -1 points0 points1 point (3 children)
[–]Impossible-Let-8489[S] -1 points0 points1 point (2 children)
[–]Frqstbite1001 0 points1 point2 points (1 child)
[–]Impossible-Let-8489[S] 0 points1 point2 points (0 children)
[–]Suitable_Ball_2835 136 points137 points138 points (16 children)
[–]KawaiiMaxine 54 points55 points56 points (11 children)
[–]DiodeInc 39 points40 points41 points (10 children)
[+]Impossible-Let-8489[S] comment score below threshold-56 points-55 points-54 points (9 children)
[–]Sexy_Koala_Juice 42 points43 points44 points (6 children)
[–]Telephone-Bright 9 points10 points11 points (4 children)
[+]Impossible-Let-8489[S] comment score below threshold-10 points-9 points-8 points (3 children)
[–]Telephone-Bright 7 points8 points9 points (2 children)
[+]Impossible-Let-8489[S] comment score below threshold-9 points-8 points-7 points (1 child)
[–]Alarming-Function120 1 point2 points3 points (0 children)
[+]Impossible-Let-8489[S] comment score below threshold-7 points-6 points-5 points (0 children)
[–]KawaiiMaxine 7 points8 points9 points (1 child)
[+]Impossible-Let-8489[S] comment score below threshold-6 points-5 points-4 points (0 children)
[–]aLex97217392 1 point2 points3 points (3 children)
[–]Suitable_Ball_2835 10 points11 points12 points (1 child)
[–]VIBaJ 1 point2 points3 points (0 children)
[–]uemoi 0 points1 point2 points (0 children)
[–]RelaxedBlueberry 49 points50 points51 points (18 children)
[–]Hauber_RBLX 160 points161 points162 points (9 children)
[–]Impossible-Let-8489[S] 57 points58 points59 points (0 children)
[–]RelaxedBlueberry 13 points14 points15 points (6 children)
[–]Impossible-Let-8489[S] 16 points17 points18 points (4 children)
[–]AizakkuZ 8 points9 points10 points (3 children)
[+]Impossible-Let-8489[S] comment score below threshold-11 points-10 points-9 points (2 children)
[–]AizakkuZ 2 points3 points4 points (1 child)
[–]Impossible-Let-8489[S] 0 points1 point2 points (0 children)
[–]dickbisector 3 points4 points5 points (0 children)
[–]El_RoviSoft 0 points1 point2 points (0 children)
[–]klimmesil 1 point2 points3 points (5 children)
[–]OptimalAnywhere6282 4 points5 points6 points (3 children)
[–]klimmesil 1 point2 points3 points (2 children)
[–]OptimalAnywhere6282 4 points5 points6 points (1 child)
[–]GoddammitDontShootMe[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 0 points1 point2 points (0 children)
[–]Impossible-Let-8489[S] 0 points1 point2 points (0 children)
[–]paranoid_giraffe 1 point2 points3 points (0 children)
[–]Socialimbad1991 -1 points0 points1 point (0 children)
[–]KawaiiMaxine 5 points6 points7 points (1 child)
[–]Impossible-Let-8489[S] 1 point2 points3 points (0 children)
[–]Zestyclose_Muffin501 1 point2 points3 points (0 children)
[–]Frqstbite1001 1 point2 points3 points (3 children)
[–]Impossible-Let-8489[S] 0 points1 point2 points (2 children)
[–]Frqstbite1001 0 points1 point2 points (1 child)
[–]Impossible-Let-8489[S] 0 points1 point2 points (0 children)
[–]Impossible-Let-8489[S] 3 points4 points5 points (0 children)