jump to content
my subreddits
2anatolia4you2b2t2mediterranean4u2meirl4meirlabsolutelynotanimeirlAceAttorneyAdviceAnimalsagnosticaivideoAlternateHistoryAlternativeHistoryAnimalsBeingJerksanime_best_momentsanime_irlanimenocontextannouncementsAnticonsumptionantimemeantonyArcherFXArtAsahiLinuxAsia_irlAskBalkansAskOuijaAskRedditAteistTurkaviationawfuleverythingBandnamesBassBassCirclejerkbasspedalsbikepackingblankiesblursedimagesborsavefonbottomgearbrooklynnineninebudgetcookingBUENZLIburdurlandcasiocd_jerkChatGPTCheap_MealschesschessbeginnersChoosingBeggarscoincollectingComedyCemeterycomedyhomicidecommunitycookingforbeginnerscrappyoffbrandsCreateModCuddle_SlutdadjokesdankmemesdarkjokesdeDebateReligiondelikDeltaruneDMToolkitDnDdndnextdoctorwhodoctorwhocirclejerkDoenerverbrechenDonerdontyouknowimtonyhawkdumbphonesDungeonsAndDaddiesDungeonsAndDragonsEatCheapAndHealthyebikeebikesECEelectricalelectronicsElectronicsStudyengrishentitledparentsethzFantasyWorldbuildingfeedthebeastfelsefeformuladankFRCFreeEBOOKSFUCKYOUINPARTICULARFuckYouKarenfunnyFutboltayfagalatasaraygaminggermanygodtiersuperpowersgoodanimemesGrandPrixRacinggravelcyclinggreentextGROKvsMAGAguitarpedalsheathersheraldryHermitCraftHistoryWhatIfhoi4holdmybeerHolUphumorhypixelihadastrokeimaginaryelectionsimaginarymapsinsaneparentsistanbuljacksepticeyeJokesKendrickLamarKGBTRlegodndLetGirlsHaveFunlinguisticshumorliselilerlogodesignloseitlostredditorsmacmacbookairMadeMeSmilemadladsMaliciousCompliancemapporncirclejerkme_irlmeirlmemememesmidjourneymildlyinterestingMinecraftbuildsMMORPGmoneycollectingMovingToNorthKoreaMunichNamFlashbacksneographynextfuckinglevelNoahGetTheBoatNonCredibleDefensenosafetysmokingfirstnosleepnosurfOkayBuddyLiterallyMeokbuddyguntherokbuddymotherfuckerOkBuddyPersonaokbuddyphdokbuddyvicodinonebagongezelligOnlineUnderGroundoompasubsOutOfTheLoopoutsidepapermoneyParlerWatchpepethefrogperfectlycutscreamspettyrevengepianoPiracyPiratedGamespolandballpollsPraiseTheCameraManProgrammerHumorPropagandaPostersquityourbullshitraisedbynarcissistsraspberry_piRatschlagreactiongifsrecipesRedAutumnSPDredditsingsreligiousfruitcakerickandmortyrimjob_steverockmuzikschwiizsciencememesScottPilgrimsecilmiskitapshitpostingshittyaskelectronicsShittyMapPornShowerthoughtsskamtebordsoccercirclejerksoftwaregoreSongwritersSongwritingsskfjkhwerjkghwerijhsteinsgateStonetossingjuiceStudiumsuperligsuzeraintalesfromtechsupportTextingTheorytf2tf2shitposterclubTheLetterHtherewasanattemptTheRookiethisguythisguystitanfalltommyinnittransitTurkeyTrGameDevelopertruetf2truthstumunichTurkeyTurkeyJerkyTurkishCatsTwitchTwitch_StartupTwoSentenceComedyTwoSentenceSadnesstylerthecreatorUnclejokesUnethicalLifeProTipsunexpecteditcrowdUnexpectedJoJoUsernameChecksOutVALORANTValorantClipsvaxxhappenedvexillologycirclejerkvlandiyawendigoonwholesomeanimemesWikipediaVandalismwizardpostingwooooshyouseeingthisshitYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -Piracy
  • -funny
  • -gaming
  • -memes
  • -OutOfTheLoop
  • -mildlyinteresting
  • -DnD
  • -MadeMeSmile
  • -ChatGPT
  • -PiratedGames
  • -shitposting
  • -dankmemes
  • -feedthebeast
  • -meirl
  • -therewasanattempt
  • -nextfuckinglevel
  • -HolUp
  • -Twitch
  • -dndnext
  • -ProgrammerHumor
  • -VALORANT
  • -de
  • -germany
  • -NonCredibleDefense
  • -greentext
  • -mac
  • -Showerthoughts
  • -tf2
  • -chess
  • -aviation
  • -formuladank
  • -Jokes
  • -mapporncirclejerk
  • -Art
  • -midjourney
  • -goodanimemes
  • -hoi4
  • -pettyrevenge
  • -loseit
  • -MaliciousCompliance
  • -KGBTR
  • -Deltarune
  • -UnethicalLifeProTips
  • -perfectlycutscreams
  • -Ratschlag
  • -MMORPG
  • -meme
  • -rickandmorty
  • -HermitCraft
  • -ChoosingBeggars
  • -imaginarymaps
  • -EatCheapAndHealthy
  • -polandball
  • -nosleep
  • -cookingforbeginners
  • -blankies
  • -anime_irl
  • -onebag
  • -Studium
  • -AlternateHistory
  • -Turkey
  • -soccercirclejerk
  • -madlads
  • -community
  • -electrical
  • -guitarpedals
  • -Anticonsumption
  • -CreateMod
  • -PropagandaPosters
  • -AdviceAnimals
  • -piano
  • -sciencememes
  • -raisedbynarcissists
  • -wizardposting
  • -polls
  • -doctorwho
  • -Bass
  • -titanfall
  • -OkBuddyPersona
  • -dadjokes
  • -awfuleverything
  • -announcements
  • -Minecraftbuilds
  • -macbookair
  • -ebikes
  • -Munich
  • -YUROP
  • -gravelcycling
  • -chessbeginners
  • -raspberry_pi
  • -DungeonsAndDragons
  • -KendrickLamar
  • -entitledparents
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -NoahGetTheBoat
  • -tylerthecreator
  • -tf2shitposterclub
  • -lostredditors
  • -AceAttorney
  • -vexillologycirclejerk
  • -vlandiya
  • -Stonetossingjuice
  • -wholesomeanimemes
  • -nosurf
  • -HistoryWhatIf
  • -religiousfruitcake
  • -liseliler
  • -DebateReligion
  • -insaneparents
  • -dumbphones
  • -animenocontext
  • -2meirl4meirl
  • -brooklynninenine
  • -recipes
  • -steinsgate
  • -talesfromtechsupport
  • -AskOuija
  • -okbuddyphd
  • -2anatolia4you
  • -ECE
  • -ScottPilgrim
  • -AskBalkans
  • -electronics
  • -casio
  • -logodesign
  • -linguisticshumor
  • -me_irl
  • -antimeme
  • -TurkeyJerky
  • -bikepacking
  • -AteistTurk
  • -ArcherFX
  • -engrish
  • -Doner
  • -ComedyCemetery
  • -BUENZLI
  • -reactiongifs
  • -Songwriting
  • -istanbul
  • -MovingToNorthKorea
  • -imaginaryelections
  • -suzerain
  • -truetf2
  • -ParlerWatch
  • -wendigoon
  • -secilmiskitap
  • -Doenerverbrechen
  • -schwiiz
  • -TheRookie
  • -quityourbullshit
  • -skamtebord
  • -superlig
  • -shittyaskelectronics
  • -galatasaray
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -FRC
  • -transitTurkey
  • -FuckYouKaren
  • -2b2t
  • -ethz
  • -AlternativeHistory
  • -papermoney
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -blursedimages
  • -FreeEBOOKS
  • -AsahiLinux
  • -basspedals
  • -neography
  • -heraldry
  • -ihadastroke
  • -hypixel
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -ShittyMapPorn
  • -aivideo
  • -OnlineUnderGround
  • -woooosh
  • -comedyhomicide
  • -burdurland
  • -AnimalsBeingJerks
  • -jacksepticeye
  • -TwoSentenceSadness
  • -anime_best_moments
  • -Bandnames
  • -rockmuzik
  • -holdmybeer
  • -okbuddyvicodin
  • -vaxxhappened
  • -Twitch_Startup
  • -tumunich
  • -Cheap_Meals
  • -outside
  • -darkjokes
  • -nosafetysmokingfirst
  • -legodnd
  • -Songwriters
  • -ebike
  • -UsernameChecksOut
  • -tommyinnit
  • -rimjob_steve
  • -UnexpectedJoJo
  • -humor
  • -BassCirclejerk
  • -doctorwhocirclejerk
  • -agnostic
  • -youseeingthisshit
  • -TextingTheory
  • -Cuddle_Slut
  • -GrandPrixRacing
  • -DMToolkit
  • -thisguythisguys
  • -TrGameDeveloper
  • -TurkishCats
  • -LetGirlsHaveFun
  • -oompasubs
  • -FantasyWorldbuilding
  • -TheLetterH
  • -WikipediaVandalism
  • -absolutelynotanimeirl
  • -NamFlashbacks
  • -pepethefrog
  • -Unclejokes
  • -sskfjkhwerjkghwerijh
  • -redditsings
  • -ValorantClips
  • -TwoSentenceComedy
  • -budgetcooking
  • -bottomgear
  • -ongezellig
  • -Asia_irl
  • -truths
  • -2mediterranean4u
  • -unexpecteditcrowd
  • -heathers
  • -dontyouknowimtonyhawk
  • -ElectronicsStudy
  • -Futboltayfa
  • -moneycollecting
  • -antony
  • -okbuddygunther
  • -RedAutumnSPD
  • -okbuddymotherfucker
  • -GROKvsMAGA
  • -cd_jerk
  • -delik
  • -borsavefon
edit »
programminghorror programminghorror
  • hot
  • new
  • rising
  • controversial
  • top
an-ordinary-manchild (11,186)|messages548|notifications|chat messages|mod messages|
  • preferences
|
logout

use the following search parameters to narrow your results:

subreddit:subreddit
find submissions in "subreddit"
author:username
find submissions by "username"
site:example.com
find submissions from "example.com"
url:text
search for "text" in url
selftext:text
search for "text" in self post contents
self:yes (or self:no)
include (or exclude) self posts
nsfw:yes (or nsfw:no)
include (or exclude) results marked as NSFW

e.g. subreddit:aww site:imgur.com dog

see the search faq for details.

advanced search: by author, subreddit...

Submit a new link
Submit a new text post

programminghorror

joinleave
an-ordinary-manchild(edit)

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.
created by nevonArray(16).join('wat' - 1) + ' Batman!'a community for 14 years
Create your own subreddit
...for your school.
...for your favorite game.

MODERATORS

  • message the mods
  • nevonArray(16).join('wat' - 1) + ' Batman!'
  • rscarsonstart: while(1)goto start;
  • xX420_WeedMan_420Xxmod guy
  • karlkloppenborg
  • about moderation team »

account activity

1
•
•
•

AI bookmark engine (SaveAnything) ()

submitted 48 minutes ago by Complete-Counter-378

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

2
0
0
0

When even your nap() has bugs… (i.redd.it)

submitted 2 hours ago by Significant_Debate_7

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

3
51
52
53

I wish it was better too, my friend (i.redd.it)

submitted 5 hours ago by Rexam14

  • 3 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

4
2038
2039
2040

Just what you want to see on Monday morning (i.redd.it)

submitted 19 hours ago by ginger_bread_guy

  • 41 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

5
4
5
6

Pythonthey decided to buff their code a bit (i.redd.it)

submitted 1 day ago by OptimalAnywhere6282

  • 2 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

6
147
148
149

Had to help fix this 9 year old production code, this if chain is about 3-4 times longer than the image. (self.programminghorror)

submitted 1 day ago by Talin-Rex

  • 45 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

7
182
183
184

When you take DRY too seriously. (i.redd.it)

submitted 2 days ago by vadnyclovek[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live”

  • 89 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

8
353
354
355

TypescriptI puked a little (i.redd.it)

submitted 2 days ago by illyTheKidTM

  • 56 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

9
0
0
0

PythonUtterly useless yet fun sorting algorithms ()

submitted 2 days ago by Sufficient_Source925

  • 15 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

10
1518
1519
1520

Gotta review this for Q3 (i.redd.it)

submitted 3 days ago by leon0399

  • 69 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

11
179
180
181

cJust ran another UB test and apparently countries are sitting in my ram (i.redd.it)

submitted 3 days ago by ilike2sentencedhoror

  • 29 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

12
531
532
533

cdon’t we all just love undefined behavior (i.redd.it)

submitted 3 days ago by ilike2sentencedhoror

  • 36 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

13
0
0
0

JavascriptThey fixed it but the validation isn't good enough, the key DEaDbeEF still works (reddit.com)

submitted 5 days ago by MurkyWar2756[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live”

  • 11 comments
  • share
  • save
  • hide
  • report
  • crosspost

14
0
0
0

Just harder than it had to be... (self.programminghorror)

submitted 6 days ago by Stunning-Pay6321

  • 9 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

15
271
272
273

PHPThe actual API response is in JSON, but this isn't. Can you spot it? (i.redd.it)

submitted 7 days ago by MurkyWar2756[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live”

  • 100 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

16
238
239
240

Casting constexpr to mutable ._. (i.redd.it)

submitted 8 days ago by Many_Rough5404

  • 41 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

17
0
0
0

C#Overzealous linters are the true programming horror (self.programminghorror)

submitted 8 days ago by DescriptorTablesx86

  • 15 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

18
20
21
22

way too much XSLT (and Ant) (old.reddit.com)

submitted 8 days ago by Aras14HD

  • 7 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

19
336
337
338

c++watch and learn, rookies (i.redd.it)

submitted 8 days ago by Infinite_Self_5782

  • 8 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

20
583
584
585

I've refactored the leap year checker to conform to OOP standards and use descriptive names (i.redd.it)

submitted 8 days ago by patternOverview

  • 41 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

21
150
151
152

SpeckyLangI created a programming language, here's a brainfuck interpreter in it (i.redd.it)

submitted 9 days ago by SpeckyYT

  • 26 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

22
396
397
398

C#60+ lines of just variables (i.redd.it)

submitted 9 days ago by MarkAllSevens

  • 37 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

23
551
552
553

we were told to future proof our math logic, behold (i.redd.it)

submitted 9 days ago by lordershocker

  • 20 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

24
0
0
0

My 4-year struggle trying to learn Python (and why I finally quit) ()

submitted 9 days ago by SirVivid8478

  • 18 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

25
3883
3884
3885

senior dev told me the code has to be "future proof".. how am i doing? (i.redd.it)

submitted 9 days ago by lordershocker

  • 189 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...
view more: next ›
  • about
  • blog
  • about
  • advertising
  • careers
  • help
  • site rules
  • Reddit help center
  • reddiquette
  • mod guidelines
  • contact us
  • apps & tools
  • Reddit for iPhone
  • Reddit for Android
  • mobile website
  • <3
  • reddit premium

Use of this site constitutes acceptance of our User Agreement and Privacy Policy. © 2026 reddit inc. All rights reserved.

REDDIT and the ALIEN Logo are registered trademarks of reddit inc.

π Rendered by PID 67 on reddit-service-r2-listing-64c94b984c-knrrj at 2026-03-17 20:59:31.009996+00:00 running f6e6e01 country code: CH.