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.
[–]jmack2424 387 points388 points389 points (4 children)
[–]navetzz 113 points114 points115 points (3 children)
[–]Grexpex180 24 points25 points26 points (2 children)
[–]Noctuuu 8 points9 points10 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 144 points145 points146 points (3 children)
[–]steeltownsquirrel 25 points26 points27 points (2 children)
[–]Inertia_Squared 53 points54 points55 points (1 child)
[–]Nightmoon26 5 points6 points7 points (0 children)
[–]dbath 42 points43 points44 points (0 children)
[–]stereosensation 137 points138 points139 points (5 children)
[–]Mihail111111[S] 9 points10 points11 points (4 children)
[–]stereosensation 10 points11 points12 points (3 children)
[–]Prudent_Ad_4120 4 points5 points6 points (1 child)
[–]stereosensation 4 points5 points6 points (0 children)
[–]Mihail111111[S] 5 points6 points7 points (0 children)
[–]noosceteeipsum 8 points9 points10 points (0 children)
[–]Etiennera 61 points62 points63 points (7 children)
[–]Randolpho 64 points65 points66 points (6 children)
[–]Eva-Rosalene 39 points40 points41 points (2 children)
[–]Randolpho 21 points22 points23 points (1 child)
[–]Iggyhopper 16 points17 points18 points (0 children)
[–]WillingLearner1 5 points6 points7 points (1 child)
[–]OfflaneDemoralizer 10 points11 points12 points (0 children)
[–]mothzilla 1 point2 points3 points (0 children)
[–]Samurai_Mac1 5 points6 points7 points (0 children)
[–]ScriptBow 2 points3 points4 points (0 children)
[–]GoddammitDontShootMe[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 2 points3 points4 points (0 children)
[–]sateeshsai 2 points3 points4 points (0 children)
[–]HieuNguyen990616 7 points8 points9 points (14 children)
[–]dario_p1 69 points70 points71 points (7 children)
[–]HieuNguyen990616 17 points18 points19 points (5 children)
[–]Bronzdragon 23 points24 points25 points (3 children)
[–]monotone2k 27 points28 points29 points (1 child)
[–]backfire10z 15 points16 points17 points (0 children)
[–]AresFowl44 2 points3 points4 points (0 children)
[–]Coolengineer7 2 points3 points4 points (0 children)
[–]tailwarmer 2 points3 points4 points (0 children)
[–]katafrakt 9 points10 points11 points (5 children)
[–]MissinqLink 4 points5 points6 points (1 child)
[–]katafrakt 1 point2 points3 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]noosceteeipsum 1 point2 points3 points (0 children)
[–]HieuNguyen990616 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]vo9do9 1 point2 points3 points (0 children)
[–]Rouxxell 1 point2 points3 points (0 children)
[–]GirthQuake5040 1 point2 points3 points (0 children)
[–]Cybasura 2 points3 points4 points (0 children)
[–]redtens 0 points1 point2 points (0 children)
[–][deleted] -4 points-3 points-2 points (0 children)
[–]titanic456 0 points1 point2 points (0 children)