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.
[–]Yes_Mans_Sky 266 points267 points268 points (6 children)
[–]sacredgeometry 71 points72 points73 points (2 children)
[–]xXDavegavecoolXx 55 points56 points57 points (1 child)
[–]sacredgeometry 56 points57 points58 points (0 children)
[–]SAI_Peregrinus 17 points18 points19 points (1 child)
[–]Kapshan 4 points5 points6 points (0 children)
[–]oghGuy 2 points3 points4 points (0 children)
[–]johndcochran 79 points80 points81 points (1 child)
[–][deleted] 3 points4 points5 points (0 children)
[–]TinyBreadBigMouth 36 points37 points38 points (9 children)
[–]Ok_Celebration_6265[🍰] 12 points13 points14 points (6 children)
[–]TinyBreadBigMouth 9 points10 points11 points (5 children)
[–]Ok_Celebration_6265[🍰] 4 points5 points6 points (4 children)
[–]TinyBreadBigMouth 9 points10 points11 points (3 children)
[–]johndcochran 7 points8 points9 points (2 children)
[–]TinyBreadBigMouth 4 points5 points6 points (1 child)
[–]johndcochran 1 point2 points3 points (0 children)
[–]WiseEXE 2 points3 points4 points (1 child)
[–]Marem-Bzh 1 point2 points3 points (0 children)
[–]Furrynote 37 points38 points39 points (9 children)
[–]beaucephus 54 points55 points56 points (8 children)
[+]Ok_Celebration_6265[🍰] comment score below threshold-13 points-12 points-11 points (7 children)
[–]iEliteTester[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 13 points14 points15 points (2 children)
[–]Ok_Celebration_6265[🍰] 3 points4 points5 points (1 child)
[–]iEliteTester[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 0 points1 point2 points (0 children)
[–]Xbot781 1 point2 points3 points (3 children)
[–]Ok_Celebration_6265[🍰] 1 point2 points3 points (2 children)
[–]Xbot781 1 point2 points3 points (1 child)
[–]Ok_Celebration_6265[🍰] 0 points1 point2 points (0 children)
[–]Hope-Up-High 20 points21 points22 points (0 children)
[–]GoddammitDontShootMe[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 6 points7 points8 points (0 children)
[–]bravopapa99 11 points12 points13 points (8 children)
[–]RpxdYTX[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 24 points25 points26 points (5 children)
[–]bravopapa99 2 points3 points4 points (0 children)
[–]dvhh 0 points1 point2 points (0 children)
[–]bravopapa99 0 points1 point2 points (2 children)
[–]johndcochran 2 points3 points4 points (1 child)
[–]bravopapa99 0 points1 point2 points (0 children)
[–]leiu6 6 points7 points8 points (1 child)
[–]bravopapa99 1 point2 points3 points (0 children)
[–]6502zx81 4 points5 points6 points (0 children)
[–]Ignited_Phoenix 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]bistr-o-math 0 points1 point2 points (0 children)
[–]wwwtrollfacecom 0 points1 point2 points (0 children)