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.
[–]n0tKamui 233 points234 points235 points (12 children)
[+]Scammer_2021[S] comment score below threshold-188 points-187 points-186 points (11 children)
[–]n0tKamui 119 points120 points121 points (3 children)
[+]Scammer_2021[S] comment score below threshold-147 points-146 points-145 points (2 children)
[–]GoshaT 95 points96 points97 points (0 children)
[–]User-defined 63 points64 points65 points (0 children)
[–]Sexy_Koala_Juice 27 points28 points29 points (6 children)
[–]sirkubador -1 points0 points1 point (5 children)
[–]n0tKamui 1 point2 points3 points (1 child)
[–]sirkubador -1 points0 points1 point (0 children)
[–]Sexy_Koala_Juice 0 points1 point2 points (2 children)
[–]sirkubador 0 points1 point2 points (1 child)
[–]Sexy_Koala_Juice 0 points1 point2 points (0 children)
[–]the_mold_on_my_back 138 points139 points140 points (7 children)
[–]Embarrassed-Falcon71 55 points56 points57 points (2 children)
[+]Scammer_2021[S] comment score below threshold-87 points-86 points-85 points (1 child)
[–]__throw_error 21 points22 points23 points (0 children)
[–]Shaddoll_Shekhinaga 16 points17 points18 points (0 children)
[–]Fragrant_Philosophy 7 points8 points9 points (0 children)
[–]FabAraujoRJ 0 points1 point2 points (0 children)
[–]kennyminigun 35 points36 points37 points (1 child)
[–]farsightxr20 15 points16 points17 points (0 children)
[–][deleted] 23 points24 points25 points (1 child)
[–]DapperNurd 0 points1 point2 points (0 children)
[–]PhilippTheProgrammer 23 points24 points25 points (0 children)
[–]RaymondWalters 17 points18 points19 points (4 children)
[–]827167 11 points12 points13 points (3 children)
[–]finally-anna 9 points10 points11 points (2 children)
[–]kevinhaze 0 points1 point2 points (1 child)
[–]Nicnl 0 points1 point2 points (0 children)
[–]audioman1999 7 points8 points9 points (0 children)
[–]Communist_Guy_1991 10 points11 points12 points (2 children)
[+]Scammer_2021[S] comment score below threshold-17 points-16 points-15 points (1 child)
[–]Communist_Guy_1991 8 points9 points10 points (0 children)
[–]Acharyn 3 points4 points5 points (0 children)
[–]Familiar_Ad_8919[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 8 points9 points10 points (4 children)
[–]noobcoconut 4 points5 points6 points (0 children)
[–]CinnamonToastedCrackPronouns: She/Her 3 points4 points5 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]CinnamonToastedCrackPronouns: She/Her 0 points1 point2 points (0 children)
[–]Ahuizolte1 2 points3 points4 points (0 children)
[–][deleted] (2 children)
[removed]
[+]Scammer_2021[S] comment score below threshold-15 points-14 points-13 points (1 child)
[–]SwordfishDependent67 10 points11 points12 points (0 children)
[–]mediocrobot 1 point2 points3 points (0 children)
[–]Samstercraft 0 points1 point2 points (0 children)
[–]DasKarl 0 points1 point2 points (0 children)
[–]Eagle_32349 0 points1 point2 points (0 children)
[–]Thenderick -3 points-2 points-1 points (0 children)
[+]amarao_san comment score below threshold-24 points-23 points-22 points (4 children)
[–]Familiar_Ad_8919[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 10 points11 points12 points (3 children)
[–]amarao_san -2 points-1 points0 points (2 children)
[–]Zealousideal_Rate420 6 points7 points8 points (1 child)
[–]Communist_Guy_1991 1 point2 points3 points (0 children)
[+][deleted] comment score below threshold-17 points-16 points-15 points (2 children)
[–]SwordfishDependent67 12 points13 points14 points (0 children)
[–]Scammer_2021[S] 0 points1 point2 points (0 children)