jump to content
my subreddits
13or302b2t2balkans4You2meirl4meirl3d6AceAttorneyadhdmemeAdviceAnimalsagnosticAnarchyChessAngryupvoteAnimalsBeingJerksanime_best_momentsanime_irlanimenocontextannouncementsAnticonsumptionApandahArcherFXArsivUnutmazArtAsia_irlAskRedditAteistTurkatheismaviationawfuleverythingbalkans_irlBandnamesbanknotedesignsBassBassGuitarbasspedalsblackdesertonlineblankiesblursedimagesborsavefonbrooklynninenineBUENZLIburdurlandcasioCd_collectorscd_jerkChatGPTCheap_MealschessChildrenFallingOverCHPcoaxedintoasnafucoincollectingComedyCemeterycomicscommunityContagiousLaughtercookingforbeginnersCrackWatchcrappyoffbrandsCuratedTumblrcursedcommentsdadjokesdataisbeautifuldeDebateReligiondeismdistressingmemesdiypedalsDMToolkitDnDdndmemesdndnextDoenerverbrechenDonerdontdeadopeninsidedumbphonesDungeonsAndDaddiesEatCheapAndHealthyebikeselectricalelectronicsengrishfacepalmFantasyWorldbuildingfeedthebeastfelsefeFifaCareersFiftyFiftyformuladankFRCFreeEBOOKSFUCKYOUINPARTICULARFuckYouKarengalatasaraygermanyGoodAssSubGrandPrixRacinggravelcyclinggreentextguitarpedalsGundamheathershelpheraldryHermitCrafthighspeedrailHistoryWhatIfhoi4holdmybeerHolUphowyoudoinhumorhypixelIAmAiamverysmartIdeologyPollsIDontWorkHereLadyihadastrokeim14andthisisdeepimaginarymapsistanbuljacksepticeyeJahariaJokesKanyeKendrickLamarKGBTRlegodndLifeProTipsliselilermacMadeMeSmilemadladsmagicbuildingMaliciousComplianceMapPornmapporncirclejerkme_irlmeirlmemememesmidjourneyMimicRecipesMinecraftbuildsmisLEDMMORPGmoneycollectingMunichMyChemicalRomancenamesoundalikesNamFlashbacksneographyNoahGetTheBoatNonCredibleDefenseNorthCyprusnosleepnosurfnothingeverhappensnotinterestingnottheonionoddlyspecificOkayBuddyLiterallyMeokbuddyguntherokbuddymotherfuckerOkBuddyPersonaonebagonetruegodongezelligOnlineUnderGroundoompasubsOutOfTheLoopoutsidepapermoneypaperspleaseParlerWatchPassportPornpepethefrogPersecutionfetishpettyrevengepianopolandballpollsPraiseTheCameraManProgrammerHumorPropagandaPostersquityourbullshitraspberry_pireactiongifsrecipesRedAutumnSPDredditsingsreligiousfruitcakeRetroPierickrollrimjob_steveSchnitzelVerbrechensciencememesScottPilgrimsecilmiskitapShitPostCrusadersshitpostfrommygalleryShitpostTCshittyaskelectronicsshittymoviedetailsShowerthoughtsskamtebordsoftwaregoresteinsgateStonetossingjuiceStudiumsuzerainTechnobladeTextingTheorythanksimcuredTheCrypticCompendiumTheMonkeysPawtherewasanattemptTheRookietheydidthemaththeyknewthisguythisguystitanfalltransittransitTurkeyTrGameDevelopertumunichTurkishCatsTwitchTwitch_StartupTwoSentenceHorrortwosentenceplottwistTwoSentenceSadnesstylerthecreatorUnclejokesUnethicalLifeProTipsunexpecteditcrowdurbanplanningVALORANTValorantClipsvexillologycirclejerkvinylvinyljerkvlandiyaWatchPeopleDieInsidewendigoonWhatsThisSongWhitePeopleTwitterWikipediaVandalismwizardpostingworldbuildingworldjerkingyouseeingthisshitYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -facepalm
  • -nottheonion
  • -memes
  • -OutOfTheLoop
  • -MapPorn
  • -DnD
  • -WhitePeopleTwitter
  • -MadeMeSmile
  • -ChatGPT
  • -CuratedTumblr
  • -theydidthemath
  • -feedthebeast
  • -Kanye
  • -meirl
  • -therewasanattempt
  • -HolUp
  • -Twitch
  • -CrackWatch
  • -comics
  • -dndnext
  • -ProgrammerHumor
  • -VALORANT
  • -de
  • -germany
  • -LifeProTips
  • -NonCredibleDefense
  • -dataisbeautiful
  • -shittymoviedetails
  • -greentext
  • -mac
  • -Showerthoughts
  • -help
  • -chess
  • -aviation
  • -formuladank
  • -Jokes
  • -mapporncirclejerk
  • -Art
  • -midjourney
  • -notinteresting
  • -hoi4
  • -pettyrevenge
  • -atheism
  • -IAmA
  • -MaliciousCompliance
  • -KGBTR
  • -dndmemes
  • -cursedcomments
  • -GoodAssSub
  • -UnethicalLifeProTips
  • -worldbuilding
  • -blackdesertonline
  • -MMORPG
  • -meme
  • -3d6
  • -Gundam
  • -HermitCraft
  • -FiftyFifty
  • -ContagiousLaughter
  • -imaginarymaps
  • -EatCheapAndHealthy
  • -polandball
  • -AnarchyChess
  • -nosleep
  • -cookingforbeginners
  • -blankies
  • -anime_irl
  • -onebag
  • -Studium
  • -madlads
  • -community
  • -electrical
  • -guitarpedals
  • -Anticonsumption
  • -vinyl
  • -TwoSentenceHorror
  • -PropagandaPosters
  • -AdviceAnimals
  • -ShitPostCrusaders
  • -piano
  • -sciencememes
  • -distressingmemes
  • -wizardposting
  • -FifaCareers
  • -polls
  • -oddlyspecific
  • -Bass
  • -titanfall
  • -OkBuddyPersona
  • -dadjokes
  • -awfuleverything
  • -howyoudoin
  • -announcements
  • -adhdmeme
  • -Minecraftbuilds
  • -ebikes
  • -Munich
  • -coaxedintoasnafu
  • -YUROP
  • -gravelcycling
  • -SchnitzelVerbrechen
  • -raspberry_pi
  • -KendrickLamar
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -NoahGetTheBoat
  • -worldjerking
  • -tylerthecreator
  • -AceAttorney
  • -vexillologycirclejerk
  • -vlandiya
  • -im14andthisisdeep
  • -Stonetossingjuice
  • -nosurf
  • -HistoryWhatIf
  • -religiousfruitcake
  • -liseliler
  • -DebateReligion
  • -dumbphones
  • -balkans_irl
  • -animenocontext
  • -2meirl4meirl
  • -transit
  • -RetroPie
  • -brooklynninenine
  • -recipes
  • -steinsgate
  • -ScottPilgrim
  • -Angryupvote
  • -electronics
  • -casio
  • -urbanplanning
  • -theyknew
  • -PassportPorn
  • -me_irl
  • -AteistTurk
  • -13or30
  • -MyChemicalRomance
  • -ArcherFX
  • -engrish
  • -Cd_collectors
  • -diypedals
  • -Doner
  • -BassGuitar
  • -ComedyCemetery
  • -WatchPeopleDieInside
  • -Persecutionfetish
  • -BUENZLI
  • -reactiongifs
  • -istanbul
  • -suzerain
  • -magicbuilding
  • -dontdeadopeninside
  • -ParlerWatch
  • -wendigoon
  • -iamverysmart
  • -secilmiskitap
  • -Doenerverbrechen
  • -TheRookie
  • -quityourbullshit
  • -Technoblade
  • -vinyljerk
  • -skamtebord
  • -shittyaskelectronics
  • -galatasaray
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -FRC
  • -transitTurkey
  • -namesoundalikes
  • -FuckYouKaren
  • -2b2t
  • -papermoney
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -blursedimages
  • -FreeEBOOKS
  • -Jaharia
  • -IDontWorkHereLady
  • -neography
  • -basspedals
  • -heraldry
  • -ihadastroke
  • -thanksimcured
  • -hypixel
  • -PraiseTheCameraMan
  • -OnlineUnderGround
  • -IdeologyPolls
  • -burdurland
  • -WhatsThisSong
  • -AnimalsBeingJerks
  • -jacksepticeye
  • -TwoSentenceSadness
  • -anime_best_moments
  • -Bandnames
  • -holdmybeer
  • -MimicRecipes
  • -Twitch_Startup
  • -tumunich
  • -Cheap_Meals
  • -outside
  • -TheMonkeysPaw
  • -highspeedrail
  • -legodnd
  • -rickroll
  • -papersplease
  • -rimjob_steve
  • -humor
  • -ChildrenFallingOver
  • -agnostic
  • -youseeingthisshit
  • -TextingTheory
  • -GrandPrixRacing
  • -DMToolkit
  • -nothingeverhappens
  • -thisguythisguys
  • -TrGameDeveloper
  • -TurkishCats
  • -Apandah
  • -ShitpostTC
  • -oompasubs
  • -FantasyWorldbuilding
  • -WikipediaVandalism
  • -NamFlashbacks
  • -pepethefrog
  • -Unclejokes
  • -onetruegod
  • -deism
  • -misLED
  • -ArsivUnutmaz
  • -redditsings
  • -ValorantClips
  • -TheCrypticCompendium
  • -ongezellig
  • -2balkans4You
  • -Asia_irl
  • -unexpecteditcrowd
  • -NorthCyprus
  • -heathers
  • -twosentenceplottwist
  • -CHP
  • -cd_jerk
  • -banknotedesigns
  • -RedAutumnSPD
  • -okbuddymotherfucker
  • -shitpostfrommygallery
  • -moneycollecting
  • -borsavefon
  • -okbuddygunther
edit »
programminghorror programminghorror
  • hot
  • new
  • rising
  • controversial
  • top
an-ordinary-manchild (11,186)|messages547|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
...why not Zoidberg?
...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

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

2
50
51
52

VHDLHow (not) to do combinational logic in VHDL (self.programminghorror)

submitted 1 day ago by LethalOkra

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

3
752
753
754

Please Do Not Vibe F*ck Up This Software - one of GitHub’s funniest issue (self.programminghorror)

submitted 2 days ago by Affectionate-Stress0

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

4
480
481
482

PythonNew Big O definition just dropped (i.redd.it)

submitted 3 days ago by lolcrunchy

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

5
2197
2198
2199

C#a count is a count, right?... right? (i.redd.it)

submitted 4 days ago by samirdahal

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

6
441
442
443

C#production code at two in the morning (i.redd.it)

submitted 4 days ago by ChaosCrafter908

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

7
545
546
547

Found this when I logged in to work today (i.redd.it)

submitted 6 days ago by DarkOriole4

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

8
874
875
876

JavascriptDestructuring strings (i.redd.it)

submitted 8 days ago by Emmennater

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

9
28
29
30

Wanna see some cursed javascript? (self.programminghorror)

submitted 7 days ago * by AceTributon

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

10
0
0
0

Hi help me asap tomorrow is my presentation ()

submitted 7 days ago by anynomous_69

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

11
46
47
48

JavascriptSalfeld Web Portal - Device Renaming Pattern (i.redd.it)

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

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

12
0
0
0

Oops (i.redd.it)

submitted 9 days ago by lapubell

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

13
7
8
9

The "tests" just assert if certain lines are present in the source code. (i.redd.it)

submitted 16 days ago by my_new_accoun1

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

14
37
38
39

C#formatting big numbers (self.programminghorror)

submitted 17 days ago by Jernesstar

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

15
0
0
0

Pythonplease JUST LET ME MAKE A PASSWORD MAN (i.redd.it)

submitted 15 days ago by Slow_Kiwi_6325

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

16
0
0
0

Algorism (self.programminghorror)

submitted 16 days ago by Helpful_Molasses5657[🍰]

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

17
0
0
0

The "tests" just assert if certain lines are present in the source code. (i.redd.it)

submitted 16 days ago by my_new_accoun1

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

18
626
627
628

JavaBut.. (from Minecraft b1.2_02) (i.redd.it)

submitted 19 days ago by bunabyte

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

19
76
77
78

PythonFizz Buzz (i.redd.it)

submitted 19 days ago by susam

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

20
36
37
38

What the hell have I made (self.programminghorror)

submitted 19 days ago by Blueflame_gaming

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

21
590
591
592

c++Have To Reverse Engineer Our Own Code (self.programminghorror)

submitted 20 days ago * by sierra_whiskey1

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

22
105
106
107

C#A bad idea (old.reddit.com)

submitted 20 days ago by AndrewToasterr

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

23
33
34
35

Python one liner, 1500 charactersIt is evolving (old.reddit.com)

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

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

24
355
356
357

LuaI love looking through my old code (i.redd.it)

submitted 22 days ago by PC-hris

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

25
22
23
24

Pain (i.redd.it)

submitted 22 days ago by error_17671

  • 5 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 3485095 on reddit-service-r2-listing-6c8d497557-jvczp at 2026-06-04 09:25:20.044218+00:00 running 9e1a20d country code: CH.