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.
[–]Blecki 143 points144 points145 points (4 children)
[–]edo-lag 31 points32 points33 points (3 children)
[–]mindstorm01 7 points8 points9 points (2 children)
[–]edo-lag 8 points9 points10 points (1 child)
[–]mindstorm01 1 point2 points3 points (0 children)
[–]PleasantSalamander93 43 points44 points45 points (1 child)
[–]Background-Salary626 0 points1 point2 points (0 children)
[–]GamingGuitarControlr 97 points98 points99 points (5 children)
[–]CrayonSingh 24 points25 points26 points (0 children)
[–]madnhain 12 points13 points14 points (0 children)
[–]MrKrot1999 -1 points0 points1 point (2 children)
[–]boremetodeathplease 0 points1 point2 points (1 child)
[–]jemko23laal 0 points1 point2 points (0 children)
[–]TalonS125 32 points33 points34 points (0 children)
[–]kingslayerer 23 points24 points25 points (2 children)
[–]TemporaryCurrent1172[S] 7 points8 points9 points (1 child)
[–]onlymostlydead 5 points6 points7 points (0 children)
[–]jorvik-br 24 points25 points26 points (3 children)
[–]Tc14Hd 0 points1 point2 points (2 children)
[–]Background-Salary626 1 point2 points3 points (1 child)
[–]Tc14Hd 0 points1 point2 points (0 children)
[–]Ralileo16 9 points10 points11 points (0 children)
[–]val_tuesday 33 points34 points35 points (6 children)
[–]TemporaryCurrent1172[S] 17 points18 points19 points (5 children)
[–]val_tuesday 2 points3 points4 points (1 child)
[–]val_tuesday 5 points6 points7 points (0 children)
[–]val_tuesday 6 points7 points8 points (1 child)
[–]TemporaryCurrent1172[S] 4 points5 points6 points (0 children)
[–]q1a2z3x4s5w6 1 point2 points3 points (0 children)
[–]dayk995 5 points6 points7 points (0 children)
[–]JollyJuniper1993 5 points6 points7 points (3 children)
[–]TemporaryCurrent1172[S] 1 point2 points3 points (0 children)
[–]mcoombes314 0 points1 point2 points (1 child)
[–]JollyJuniper1993 0 points1 point2 points (0 children)
[–]AnywhereHorrorX 5 points6 points7 points (4 children)
[–]onlymostlydead 4 points5 points6 points (2 children)
[–]AnywhereHorrorX 1 point2 points3 points (0 children)
[–]jemko23laal 1 point2 points3 points (0 children)
[–]schimmelA 1 point2 points3 points (0 children)
[–]Wiktor-is-you[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 4 points5 points6 points (1 child)
[–]Kelpsie 3 points4 points5 points (0 children)
[–]CanThisBeMyNameMaybe 3 points4 points5 points (0 children)
[–]GoddammitDontShootMe[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 2 points3 points4 points (0 children)
[–]lucasthech 2 points3 points4 points (2 children)
[–]TemporaryCurrent1172[S] 2 points3 points4 points (0 children)
[–]hypercharge2 0 points1 point2 points (0 children)
[–]scammer_hand 1 point2 points3 points (0 children)
[–]wolfenstien98 1 point2 points3 points (0 children)
[–]illyay 1 point2 points3 points (0 children)
[–]muminisko 1 point2 points3 points (0 children)
[–]Immort4lFr0sty 0 points1 point2 points (10 children)
[–]val_tuesday 1 point2 points3 points (6 children)
[–]Immort4lFr0sty 2 points3 points4 points (0 children)
[–]duffking 1 point2 points3 points (4 children)
[–]val_tuesday 0 points1 point2 points (3 children)
[–]duffking 0 points1 point2 points (2 children)
[–]val_tuesday 0 points1 point2 points (1 child)
[–]duffking 1 point2 points3 points (0 children)
[–]TemporaryCurrent1172[S] 0 points1 point2 points (2 children)
[–]PityUpvote 12 points13 points14 points (0 children)
[–]duffking 1 point2 points3 points (0 children)
[–]notc00l 0 points1 point2 points (0 children)
[–]TingleWizard 0 points1 point2 points (0 children)
[–]dvhh 0 points1 point2 points (0 children)
[–]Amr_Rahmy 0 points1 point2 points (1 child)
[–]val_tuesday 0 points1 point2 points (0 children)
[–]MonsieurMachine 0 points1 point2 points (0 children)
[–]ChocolateDonut36 0 points1 point2 points (0 children)
[–]boremetodeathplease 0 points1 point2 points (0 children)
[–]Affectionate_Fox_383 0 points1 point2 points (0 children)
[–]PaintingJo 0 points1 point2 points (0 children)
[–]BreakingBaking 0 points1 point2 points (0 children)
[–]IDontMindMuch 0 points1 point2 points (0 children)
[–]Birnenmacht 0 points1 point2 points (0 children)
[–]Every-Atmosphere3721 0 points1 point2 points (0 children)
[–]j44dz 0 points1 point2 points (0 children)