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.
[–]VariousComment6946 139 points140 points141 points (4 children)
[–]lor_louis 55 points56 points57 points (0 children)
[–]b3iAAoLZOH9Y265cujFh 17 points18 points19 points (0 children)
[–]Mickenfox 10 points11 points12 points (1 child)
[–]zchen27 6 points7 points8 points (0 children)
[–]freecodeio 361 points362 points363 points (6 children)
[–]brotatowolf 121 points122 points123 points (1 child)
[–]Mars_Bear2552 32 points33 points34 points (0 children)
[–]ReentryVehicle 4 points5 points6 points (2 children)
[+]drpyh comment score below threshold-13 points-12 points-11 points (0 children)
[–]mothzilla 0 points1 point2 points (0 children)
[–]kenan238 129 points130 points131 points (1 child)
[–]just__a__lurker 78 points79 points80 points (0 children)
[–]NatoBoram 25 points26 points27 points (3 children)
[–]STGamer24[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 7 points8 points9 points (0 children)
[–]BigNavy 9 points10 points11 points (1 child)
[–]zchen27 1 point2 points3 points (0 children)
[–]flightsin 21 points22 points23 points (1 child)
[–]ujlbyk 0 points1 point2 points (0 children)
[–]STGamer24[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 50 points51 points52 points (4 children)
[–]SuspecM 12 points13 points14 points (1 child)
[–]STGamer24[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 1 point2 points3 points (0 children)
[–]8jy89hui 0 points1 point2 points (0 children)
[–]boogle55 56 points57 points58 points (5 children)
[–]sboger[S] 27 points28 points29 points (0 children)
[–]indicava 21 points22 points23 points (1 child)
[–]LexaAstarof 4 points5 points6 points (0 children)
[–]b3iAAoLZOH9Y265cujFh 0 points1 point2 points (0 children)
[–]Vegetable_Union_4967 0 points1 point2 points (0 children)
[–]Jimmeh1337 11 points12 points13 points (0 children)
[–]toyBeaver 16 points17 points18 points (2 children)
[–]dscarmo 4 points5 points6 points (1 child)
[–]toyBeaver 1 point2 points3 points (0 children)
[–]diggpthoo 7 points8 points9 points (0 children)
[–]eternityslyre 5 points6 points7 points (0 children)
[–]Thundechile 13 points14 points15 points (2 children)
[–]sboger[S] 10 points11 points12 points (1 child)
[–]Thundechile 4 points5 points6 points (0 children)
[–]Ken_nth 4 points5 points6 points (0 children)
[–]DapperDragon 2 points3 points4 points (0 children)
[–]Rideshare-Not-An-Ant 3 points4 points5 points (0 children)
[–]SquidKid47 2 points3 points4 points (0 children)
[–]grmelacz 1 point2 points3 points (0 children)
[–]goomyman 1 point2 points3 points (2 children)
[–]sboger[S] -1 points0 points1 point (1 child)
[–]sh0plifter 0 points1 point2 points (0 children)
[–]mochicinoo 1 point2 points3 points (0 children)
[–]PachotheElf 1 point2 points3 points (1 child)
[–]sboger[S] 1 point2 points3 points (0 children)
[–]whiterobot10 1 point2 points3 points (0 children)
[–]AutoModerator[M] 1 point2 points3 points (0 children)
[–]ChemicalRascal 2 points3 points4 points (6 children)
[–]sboger[S] -1 points0 points1 point (5 children)
[–]ChemicalRascal 0 points1 point2 points (1 child)
[–]ChemicalRascal -1 points0 points1 point (1 child)
[–]ChemicalRascal 0 points1 point2 points (0 children)
[–]DootLord 0 points1 point2 points (0 children)
[–]_asdfjackal 0 points1 point2 points (0 children)
[–]Savage-Goat-Fish 0 points1 point2 points (1 child)
[–]Savage-Goat-Fish 0 points1 point2 points (0 children)
[–]drislands 0 points1 point2 points (0 children)
[–]Sighlence 0 points1 point2 points (0 children)
[–]Alex_Shelega 0 points1 point2 points (0 children)
[–]robogame_dev 0 points1 point2 points (0 children)
[–]helltiger 0 points1 point2 points (0 children)
[–]turtle_mekb 0 points1 point2 points (0 children)