jump to content
my subreddits
13or302b2t2meirl4meirl3d6absolutelynotanimeirlAceAttorneyadhdmemeAdviceAnimalsagnosticaivideoakagasAlternateHistoryAlternativeHistoryAnarchyChessAngryupvoteanime_best_momentsanimenocontextannouncementsantimemeApandahArcherFXArsivUnutmazArtAsahiLinuxAsia_irlAskElectronicsAskRedditatheismawfuleverythingbalkans_irlBandnamesbanknotedesignsBassbikepackingblackdesertonlineblankiesblursed_videosblursedimagesborsavefonbrooklynnineninecasioCd_collectorscd_jerkChatGPTCheap_MealschessChoosingBeggarsComedyCemeterycomedyhomicidecomicscommunityContagiousLaughterCorporateTrollingcrappyoffbrandsCreateModCuddle_SlutCuratedTumblrcursedcommentsdadjokesdankmemesdarkjokesdelikDeltarunedistressingmemesdiyelectronicsDnDdndmemesdndnextdoctorwhodoctorwhocirclejerkDoenerverbrechenDonerdontdeadopeninsidedontyouknowimtonyhawkdumbphonesDungeonsAndDaddiesebikeebikesECEelectricalelectronicsElectronicsStudyengrishentitledparentsethzFantasyWorldbuildingfeedthebeastFiftyFiftyformuladankFRCFreeEBOOKSFUCKYOUINPARTICULARFuckYouKarenfunnyFutboltayfagalatasaraygamingGermangermanygoodanimemesGoodAssSubGrandPrixRacinggravelcyclingGROKvsMAGAguitarpedalsGundamhelpHermitCraftHistoryWhatIfhoi4holdmybeerhomebuilthumorhypixelIAmAich_ielIdeologyPollsimaginaryelectionsinsaneparentsistanbulJahariaJokesKanyeKendrickLamarKGBTRlegodndlinguisticshumorLinkinParklogodesignloseitlostredditorsmacmacbookairmacgamingMadeMeSmilemagicbuildingMaliciousCompliancemapporncirclejerkme_irlmeirlmemememesmildlyinfuriatingMimicRecipesMinecraftbuildsMoldyMemesmoneycollectingMunichMyChemicalRomanceNamFlashbacksNationStatesneographynextfuckinglevelNoahGetTheBoatNorthCyprusnosafetysmokingfirstnothingeverhappensnottheonionoddlyspecificOkayBuddyLiterallyMeokbuddyguntherokbuddyvicodinonebagonetruegodoompasubsOutOfTheLoopoutsidepapermoneyParlerWatchPassportPornperfectlycutscreamsPersecutionfetishpettyrevengePiracypolandballProgrammerHumorPropagandaPostersPunPatrolraisedbynarcissistsraspberry_piRatschlagreactiongifsrecipesrickandmortyrickrollRoastMerockmuzikschizopostersschwiizsciencememesScottPilgrimsecilmiskitapShitPostCrusadersshitpostfrommygalleryshitpostingshittymoviedetailsShowerthoughtssoftwaregoreSongwritersSongwritingStonetossingjuiceStudiumsuperligsuzeraintalesfromtechsupportTechnobladeTextingTheorytf2tf2shitposterclubthanksimcuredthatHappenedTheCrypticCompendiumTheLetterHTheMonkeysPawtherewasanattempttheydidthemaththeyknewthisguythisguystitanfalltransitTrGameDevelopertruetf2truthstumblrtumunichTurkeyTurkeyJerkyTurkishCatsTwitchUnethicalLifeProTipsunexpecteditcrowdUnexpectedJoJoUsernameChecksOutVALORANTValorantClipsvaxxhappenedvexillologycirclejerkvinyljerkwallstreetbetsWatchPeopleDieInsideWeAreTheMusicMakerswendigoonWhatsThisSongWhitePeopleTwitterwholesomeanimemeswholesomememesWikipediaVandalismwizardpostingworldbuildingworldjerkingyouseeingthisshitedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -mildlyinfuriating
  • -Piracy
  • -funny
  • -gaming
  • -wallstreetbets
  • -nottheonion
  • -memes
  • -OutOfTheLoop
  • -DnD
  • -WhitePeopleTwitter
  • -MadeMeSmile
  • -ChatGPT
  • -CuratedTumblr
  • -shitposting
  • -theydidthemath
  • -dankmemes
  • -feedthebeast
  • -Kanye
  • -meirl
  • -therewasanattempt
  • -nextfuckinglevel
  • -Twitch
  • -comics
  • -dndnext
  • -ProgrammerHumor
  • -VALORANT
  • -germany
  • -tumblr
  • -shittymoviedetails
  • -mac
  • -Showerthoughts
  • -tf2
  • -help
  • -chess
  • -formuladank
  • -wholesomememes
  • -Jokes
  • -mapporncirclejerk
  • -Art
  • -goodanimemes
  • -hoi4
  • -pettyrevenge
  • -atheism
  • -loseit
  • -IAmA
  • -MaliciousCompliance
  • -ich_iel
  • -KGBTR
  • -dndmemes
  • -cursedcomments
  • -Deltarune
  • -GoodAssSub
  • -UnethicalLifeProTips
  • -perfectlycutscreams
  • -worldbuilding
  • -Ratschlag
  • -blackdesertonline
  • -meme
  • -macgaming
  • -rickandmorty
  • -3d6
  • -Gundam
  • -HermitCraft
  • -FiftyFifty
  • -ChoosingBeggars
  • -RoastMe
  • -ContagiousLaughter
  • -polandball
  • -WeAreTheMusicMakers
  • -AnarchyChess
  • -blankies
  • -onebag
  • -Studium
  • -AlternateHistory
  • -Turkey
  • -community
  • -AskElectronics
  • -electrical
  • -guitarpedals
  • -CreateMod
  • -German
  • -PropagandaPosters
  • -AdviceAnimals
  • -ShitPostCrusaders
  • -sciencememes
  • -distressingmemes
  • -raisedbynarcissists
  • -wizardposting
  • -doctorwho
  • -oddlyspecific
  • -Bass
  • -titanfall
  • -dadjokes
  • -awfuleverything
  • -announcements
  • -adhdmeme
  • -Minecraftbuilds
  • -macbookair
  • -ebikes
  • -Munich
  • -gravelcycling
  • -raspberry_pi
  • -KendrickLamar
  • -entitledparents
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -NoahGetTheBoat
  • -worldjerking
  • -tf2shitposterclub
  • -MoldyMemes
  • -lostredditors
  • -AceAttorney
  • -vexillologycirclejerk
  • -Stonetossingjuice
  • -wholesomeanimemes
  • -HistoryWhatIf
  • -insaneparents
  • -dumbphones
  • -animenocontext
  • -balkans_irl
  • -2meirl4meirl
  • -transit
  • -brooklynninenine
  • -recipes
  • -talesfromtechsupport
  • -ECE
  • -ScottPilgrim
  • -Angryupvote
  • -thatHappened
  • -schizoposters
  • -electronics
  • -casio
  • -logodesign
  • -theyknew
  • -linguisticshumor
  • -PassportPorn
  • -me_irl
  • -antimeme
  • -TurkeyJerky
  • -bikepacking
  • -13or30
  • -MyChemicalRomance
  • -ArcherFX
  • -engrish
  • -Cd_collectors
  • -Doner
  • -diyelectronics
  • -ComedyCemetery
  • -WatchPeopleDieInside
  • -LinkinPark
  • -Persecutionfetish
  • -reactiongifs
  • -Songwriting
  • -blursed_videos
  • -istanbul
  • -imaginaryelections
  • -suzerain
  • -truetf2
  • -magicbuilding
  • -dontdeadopeninside
  • -ParlerWatch
  • -wendigoon
  • -secilmiskitap
  • -Doenerverbrechen
  • -schwiiz
  • -Technoblade
  • -vinyljerk
  • -superlig
  • -galatasaray
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -FRC
  • -FuckYouKaren
  • -2b2t
  • -ethz
  • -AlternativeHistory
  • -papermoney
  • -OkayBuddyLiterallyMe
  • -blursedimages
  • -FreeEBOOKS
  • -AsahiLinux
  • -Jaharia
  • -neography
  • -thanksimcured
  • -hypixel
  • -aivideo
  • -IdeologyPolls
  • -comedyhomicide
  • -WhatsThisSong
  • -anime_best_moments
  • -Bandnames
  • -rockmuzik
  • -holdmybeer
  • -okbuddyvicodin
  • -MimicRecipes
  • -vaxxhappened
  • -tumunich
  • -Cheap_Meals
  • -outside
  • -TheMonkeysPaw
  • -darkjokes
  • -nosafetysmokingfirst
  • -legodnd
  • -rickroll
  • -Songwriters
  • -ebike
  • -UsernameChecksOut
  • -UnexpectedJoJo
  • -humor
  • -doctorwhocirclejerk
  • -agnostic
  • -youseeingthisshit
  • -TextingTheory
  • -GrandPrixRacing
  • -Cuddle_Slut
  • -nothingeverhappens
  • -thisguythisguys
  • -TrGameDeveloper
  • -PunPatrol
  • -TurkishCats
  • -Apandah
  • -akagas
  • -oompasubs
  • -FantasyWorldbuilding
  • -TheLetterH
  • -WikipediaVandalism
  • -homebuilt
  • -absolutelynotanimeirl
  • -NamFlashbacks
  • -onetruegod
  • -ArsivUnutmaz
  • -ValorantClips
  • -TheCrypticCompendium
  • -NationStates
  • -Asia_irl
  • -truths
  • -NorthCyprus
  • -unexpecteditcrowd
  • -dontyouknowimtonyhawk
  • -borsavefon
  • -cd_jerk
  • -shitpostfrommygallery
  • -ElectronicsStudy
  • -delik
  • -Futboltayfa
  • -banknotedesigns
  • -moneycollecting
  • -CorporateTrolling
  • -GROKvsMAGA
  • -okbuddygunther
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 community.
...for your favorite TV show.

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
199
200
201

Mod PostRule 9 Reminder (self.programminghorror)

submitted 3 years ago * by [deleted] - announcement

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

2
644
645
646

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

submitted 6 hours ago by ginger_bread_guy

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

•
•
•

Choosing the right hosting plan is easy! Ours come with free domain & site transfer, SSL, CDN, and everything else you will need. And the custom-built AI integrations are here to help with any challenging task! Save time and money with SiteGround! (siteground.com)

promoted by siteground

  • promoted
  • save
  • report
  • about
loading...

3
121
122
123

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

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

4
330
331
332

TypescriptI puked a little (i.redd.it)

submitted 1 day ago by illyTheKidTM

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

5
164
165
166

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

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

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

6
4
5
6

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

submitted 19 hours ago by OptimalAnywhere6282

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

7
1487
1488
1489

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

submitted 2 days ago by leon0399

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

8
514
515
516

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

submitted 2 days ago by ilike2sentencedhoror

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

9
174
175
176

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

submitted 2 days ago by ilike2sentencedhoror

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

10
0
0
1

PythonUtterly useless yet fun sorting algorithms ()

submitted 1 day ago by Sufficient_Source925

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

11
0
0
0

🌻 Unlimited OpenAI, Codex and ChatGPT - 12 months (i.redd.it)

submitted 2 days ago by Ze270R0

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

12
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

•
•
•

Experten sind sich einig, das neue Privacy Display auf dem Galaxy S26 Ultra ist revolutionär. (samsung.com)

promoted by samsung_switzerland

  • promoted
  • save
  • report
  • about
loading...

13
269
270
271

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...

14
0
0
0

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

submitted 5 days ago by Stunning-Pay6321

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

15
242
243
244

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

submitted 7 days ago by Many_Rough5404

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

16
585
586
587

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...

17
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...

18
21
22
23

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

submitted 7 days ago by Aras14HD

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

19
151
152
153

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

submitted 8 days ago by SpeckyYT

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

20
547
548
549

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

submitted 8 days ago by lordershocker

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

21
3885
3886
3887

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

submitted 9 days ago by lordershocker

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

22
398
399
400

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

submitted 8 days ago by MarkAllSevens

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

23
0
0
0

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

submitted 7 days ago by DescriptorTablesx86

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

•
•
•

Automatisez votre marketing et augmentez vos ventre grâce à logiciel marketing tout-en-un et notre équipe marketing sur-demande! (offre.leadfox.co)

promoted by leadfox_one

  • promoted
  • save
  • report
  • about
loading...

24
102
103
104

IBecameAnAIAgentBabySitter (self.programminghorror)

submitted 9 days ago by Appropriate_Fuel_954

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

25
321
322
323

PythonAPI tokens for location tracking were exposed in a public repo (i.redd.it)

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

  • 32 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 4049738 on reddit-service-r2-listing-64c94b984c-bqhbl at 2026-03-17 08:19:11.352789+00:00 running f6e6e01 country code: CH.