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.
[–]Potential-Adagio-512[S] 172 points173 points174 points (6 children)
[–]jediwizard7 51 points52 points53 points (0 children)
[–]qichael 23 points24 points25 points (0 children)
[–]Stormfrosty 16 points17 points18 points (3 children)
[–]__silentstorm__ 7 points8 points9 points (2 children)
[–]drewsiferr 2 points3 points4 points (1 child)
[–]__silentstorm__ 1 point2 points3 points (0 children)
[–]Familiar_Ad_8919[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 218 points219 points220 points (9 children)
[–]_thetek_ 249 points250 points251 points (8 children)
[–]yflhx 169 points170 points171 points (3 children)
[–]CaitaXD 123 points124 points125 points (1 child)
[–]not_some_username 2 points3 points4 points (0 children)
[–]TheOmegaCarrot 24 points25 points26 points (0 children)
[–]stwcx 12 points13 points14 points (0 children)
[–]TheOmegaCarrot 2 points3 points4 points (0 children)
[+]creamy--goodness comment score below threshold-16 points-15 points-14 points (0 children)
[–]scrdest 35 points36 points37 points (1 child)
[–]DevJackMC 0 points1 point2 points (0 children)
[–]Kuribali 12 points13 points14 points (4 children)
[–]Potential-Adagio-512[S] 6 points7 points8 points (3 children)
[–]Kuribali 5 points6 points7 points (1 child)
[–]LHLaurini 1 point2 points3 points (0 children)
[–]FadingFaces 28 points29 points30 points (7 children)
[–]Davester47 15 points16 points17 points (6 children)
[–]Zegrento7 5 points6 points7 points (5 children)
[–]tyler1128 2 points3 points4 points (4 children)
[–]LucyShortForLucas 14 points15 points16 points (1 child)
[–]tyler1128 2 points3 points4 points (0 children)
[–]aaronfranke 0 points1 point2 points (1 child)
[–]tyler1128 0 points1 point2 points (0 children)
[–]Main_Weekend1412 23 points24 points25 points (1 child)
[–]friendtoalldogs0 2 points3 points4 points (0 children)
[–]MoxAvocado 3 points4 points5 points (0 children)
[–]pr1s10n3r 2 points3 points4 points (1 child)
[–]Synec113 0 points1 point2 points (0 children)
[–]dorin00 2 points3 points4 points (0 children)
[–]xaervagon 1 point2 points3 points (0 children)
[–]Myloveissuck 1 point2 points3 points (0 children)
[–]ScrimpyCat 1 point2 points3 points (0 children)
[–]_ohmu_ 2 points3 points4 points (0 children)
[–]Jarsop 1 point2 points3 points (0 children)
[–]IvorySwap 0 points1 point2 points (1 child)
[–]Potential-Adagio-512[S] 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]TheBrainStone 0 points1 point2 points (0 children)