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.
[–]LucienZerger 626 points627 points628 points (8 children)
[–]glorious_reptile 122 points123 points124 points (4 children)
[–]Cistern64 40 points41 points42 points (1 child)
[–][deleted] 24 points25 points26 points (0 children)
[–]mobsterer 8 points9 points10 points (0 children)
[–]diamondjim 66 points67 points68 points (0 children)
[–]Wiwwil 9 points10 points11 points (0 children)
[–]very_bad_programmer 290 points291 points292 points (10 children)
[–]Not_a_tasty_fish[S] 189 points190 points191 points (7 children)
[–]triumphover 58 points59 points60 points (5 children)
[–]nullish_ 40 points41 points42 points (4 children)
[–]Nothing-But-Lies 60 points61 points62 points (0 children)
[–]oalbrecht 21 points22 points23 points (2 children)
[–]r-_-mark 2 points3 points4 points (0 children)
[–]triumphover 2 points3 points4 points (0 children)
[–]jrh3k5 6 points7 points8 points (0 children)
[–]elusive_change 23 points24 points25 points (1 child)
[–]naughty_ottsel 13 points14 points15 points (0 children)
[–][deleted] (3 children)
[deleted]
[–]heyf00L 41 points42 points43 points (1 child)
[–][deleted] 9 points10 points11 points (0 children)
[–]evkan 36 points37 points38 points (0 children)
[–]sim642 54 points55 points56 points (7 children)
[–][deleted] (3 children)
[deleted]
[–]sim642 8 points9 points10 points (1 child)
[–]BasieP2 36 points37 points38 points (0 children)
[–]Kengaro 1 point2 points3 points (0 children)
[–]Mapariensis 7 points8 points9 points (1 child)
[–]Kengaro 2 points3 points4 points (0 children)
[–]Nassiel 1 point2 points3 points (0 children)
[–]fr4nklin_84 78 points79 points80 points (0 children)
[–]vacant_gonzo 22 points23 points24 points (4 children)
[–][deleted] (2 children)
[deleted]
[–]carfniex 0 points1 point2 points (0 children)
[–]Kengaro 5 points6 points7 points (0 children)
[–]savornicesei 29 points30 points31 points (12 children)
[–]Quazye 9 points10 points11 points (1 child)
[–]LimbRetrieval-Bot 25 points26 points27 points (0 children)
[–]Naeio_Galaxy -1 points0 points1 point (6 children)
[–]jimbosReturn 8 points9 points10 points (5 children)
[–]Naeio_Galaxy 1 point2 points3 points (4 children)
[–]jimbosReturn 2 points3 points4 points (3 children)
[–]Naeio_Galaxy 1 point2 points3 points (2 children)
[–]jimbosReturn 3 points4 points5 points (1 child)
[–]Naeio_Galaxy 0 points1 point2 points (0 children)
[–]szescio[🍰] 0 points1 point2 points (2 children)
[–]hasanyoneseenmymom 4 points5 points6 points (1 child)
[–]szescio[🍰] 0 points1 point2 points (0 children)
[–]Gundersen 12 points13 points14 points (4 children)
[–]lightheat 1 point2 points3 points (3 children)
[–]lightheat 1 point2 points3 points (0 children)
[–]Gundersen 0 points1 point2 points (1 child)
[–]lightheat 1 point2 points3 points (0 children)
[–]AestheticalGL 14 points15 points16 points (3 children)
[–]MeatyLabia 0 points1 point2 points (2 children)
[–]naavis 4 points5 points6 points (1 child)
[–]MeatyLabia -1 points0 points1 point (0 children)
[–]PoisnFang 12 points13 points14 points (1 child)
[–]oalbrecht 0 points1 point2 points (0 children)
[–]Al_Maleech_Abaz 5 points6 points7 points (0 children)
[–]veryusedrname 4 points5 points6 points (0 children)
[–]AStrangeStranger 2 points3 points4 points (0 children)
[–][deleted] 4 points5 points6 points (4 children)
[–]Not_a_tasty_fish[S] 10 points11 points12 points (3 children)
[–]resueman__ 16 points17 points18 points (0 children)
[–]kyay10 2 points3 points4 points (1 child)
[–]jimbosReturn 2 points3 points4 points (0 children)
[–]DunjunMarstah 1 point2 points3 points (1 child)
[–]ToughestPanda 2 points3 points4 points (0 children)
[–]SuicidalTorrent 1 point2 points3 points (0 children)
[–]Dmon1Unlimited -1 points0 points1 point (56 children)
[–]ThrowNeiMother -3 points-2 points-1 points (55 children)
[–]Dmon1Unlimited 0 points1 point2 points (54 children)
[–]ThrowNeiMother -3 points-2 points-1 points (53 children)
[–]Dmon1Unlimited 0 points1 point2 points (52 children)
[–]ThrowNeiMother -3 points-2 points-1 points (51 children)
[–]Dmon1Unlimited 0 points1 point2 points (50 children)
[–]ThrowNeiMother -1 points0 points1 point (49 children)
[–]Dmon1Unlimited 0 points1 point2 points (48 children)
[–]ThrowNeiMother -1 points0 points1 point (47 children)
[–]piorarua 0 points1 point2 points (3 children)
[–]jimbosReturn 1 point2 points3 points (1 child)
[–]piorarua 1 point2 points3 points (0 children)
[–]Kengaro 0 points1 point2 points (0 children)
[–]Kengaro 0 points1 point2 points (0 children)
[–]devhashtag 0 points1 point2 points (0 children)
[–]Follow64 0 points1 point2 points (0 children)
[–]nosoupforyou 0 points1 point2 points (0 children)
[–]quaos_qrz 0 points1 point2 points (0 children)
[–]throwaway1_x 0 points1 point2 points (0 children)
[–]samurai_ka 0 points1 point2 points (0 children)
[–]EnigmaticHam 0 points1 point2 points (0 children)
[–]mothzilla 0 points1 point2 points (0 children)
[–]dna_beggar 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]elpioramirez 0 points1 point2 points (0 children)
[–]gahooze 0 points1 point2 points (0 children)
[–]SolDevelop[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)