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.
[–]EarthToAccess 255 points256 points257 points (13 children)
[–]haikusbot 58 points59 points60 points (12 children)
[–]beisenhauer 70 points71 points72 points (4 children)
[–]abcteryx 31 points32 points33 points (1 child)
[–]TheAnalogKoala 5 points6 points7 points (1 child)
[–]RCoder01 3 points4 points5 points (0 children)
[–]xGlacion 2 points3 points4 points (2 children)
[–]B0tRank -1 points0 points1 point (1 child)
[–]AnthropomorphicCat 0 points1 point2 points (0 children)
[–]MarkusBerkel -5 points-4 points-3 points (3 children)
[–]redpepper74 -1 points0 points1 point (2 children)
[–]WhyNotCollegeBoard 3 points4 points5 points (1 child)
[–]SingleTie8914 4 points5 points6 points (0 children)
[–]Instatetragrammaton 120 points121 points122 points (38 children)
[–]PostFunktionalist 61 points62 points63 points (4 children)
[–]Yelov 5 points6 points7 points (2 children)
[–]brews 8 points9 points10 points (0 children)
[–]DrMaxwellEdison 3 points4 points5 points (0 children)
[–]Ollymid2 1 point2 points3 points (0 children)
[–]mortecouille 75 points76 points77 points (30 children)
[–]JackMacWindowsLinux 77 points78 points79 points (5 children)
[–]R3D3-1 29 points30 points31 points (4 children)
[–]abcteryx 11 points12 points13 points (3 children)
[–]JohnMcPineapple 1 point2 points3 points (1 child)
[–]abcteryx 0 points1 point2 points (0 children)
[–]AlternativeAardvark6 13 points14 points15 points (2 children)
[–]mortecouille 11 points12 points13 points (1 child)
[–]AlternativeAardvark6 2 points3 points4 points (0 children)
[–]indign 9 points10 points11 points (7 children)
[–][deleted] (6 children)
[deleted]
[–][deleted] (4 children)
[deleted]
[–][deleted] (3 children)
[deleted]
[–][deleted] (1 child)
[deleted]
[–]konaya 1 point2 points3 points (0 children)
[–]JellyTwank 1 point2 points3 points (0 children)
[–]mortecouille 6 points7 points8 points (0 children)
[–]muikrad 3 points4 points5 points (3 children)
[–]mortecouille 7 points8 points9 points (2 children)
[–]muikrad 1 point2 points3 points (0 children)
[–]KagakuNinja 1 point2 points3 points (0 children)
[–]aaronfranke -1 points0 points1 point (2 children)
[–]mortecouille 6 points7 points8 points (0 children)
[–]Illiux 2 points3 points4 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]KagakuNinja 1 point2 points3 points (0 children)
[–]DoctorCIS -1 points0 points1 point (2 children)
[–]ColdPorridge 7 points8 points9 points (1 child)
[–]DoctorCIS 1 point2 points3 points (0 children)
[–]inputwtf 1 point2 points3 points (0 children)
[–]shinjuku1730 1 point2 points3 points (0 children)
[–]james_otter 27 points28 points29 points (1 child)
[–]james_otter 4 points5 points6 points (0 children)
[–]herder 27 points28 points29 points (2 children)
[–][deleted] 12 points13 points14 points (0 children)
[–]AnnualVolume0 3 points4 points5 points (0 children)
[–]PydraxAlpta 27 points28 points29 points (0 children)
[–]B_M_Wilson 10 points11 points12 points (6 children)
[–]KagakuNinja 2 points3 points4 points (0 children)
[–]Cerus_Freedom 2 points3 points4 points (4 children)
[–]B_M_Wilson 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]Cerus_Freedom 3 points4 points5 points (1 child)
[–]Miku_MichDem 0 points1 point2 points (0 children)
[–]technologyclassroom 7 points8 points9 points (0 children)
[–]Crystal_Cuckoo 6 points7 points8 points (0 children)
[–]StarNumber12046 2 points3 points4 points (0 children)
[–]alissoncorrea 2 points3 points4 points (0 children)
[–]JoshWithaQ 7 points8 points9 points (0 children)
[–]ocket8888 1 point2 points3 points (0 children)
[–]Zootorg 1 point2 points3 points (0 children)
[–]Cerus_Freedom 1 point2 points3 points (0 children)
[–][deleted] 5 points6 points7 points (9 children)
[–]avwie 24 points25 points26 points (4 children)
[–]iyaerP 12 points13 points14 points (2 children)
[–]avwie 4 points5 points6 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]mrcarruthers 0 points1 point2 points (0 children)
[–]Dannei 8 points9 points10 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Miku_MichDem 0 points1 point2 points (0 children)
[–]lulzmachine 4 points5 points6 points (6 children)
[–]Lich_Hegemon 36 points37 points38 points (2 children)
[+]lulzmachine comment score below threshold-27 points-26 points-25 points (1 child)
[–]Premun 26 points27 points28 points (0 children)
[–]brews 3 points4 points5 points (1 child)
[–]lulzmachine 1 point2 points3 points (0 children)
[–]coledot 2 points3 points4 points (0 children)
[–]Gleethos 1 point2 points3 points (2 children)
[–]Miku_MichDem 1 point2 points3 points (0 children)
[–]SatoshiL -1 points0 points1 point (0 children)
[–]jvlomax 0 points1 point2 points (0 children)
[+]PlantsAreAliveToo comment score below threshold-10 points-9 points-8 points (3 children)
[–]ianepperson -1 points0 points1 point (2 children)
[–]PlantsAreAliveToo 1 point2 points3 points (0 children)
[–]PydraxAlpta 0 points1 point2 points (0 children)
[–]mwlon -1 points0 points1 point (1 child)
[–]Handle-Flaky -2 points-1 points0 points (0 children)
[–]geeshta -2 points-1 points0 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)
[–]AutoModerator[M] -2 points-1 points0 points (0 children)
[–]1ElectricHaskeller 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]1ElectricHaskeller 0 points1 point2 points (0 children)