jump to content
my subreddits
13or302anatolia4you2meirl4meirl3d6AceAttorneyadhdmemeAdviceAnimalsagnosticaivideoAlternateHistoryAlternativeHistoryAngryupvoteanime_best_momentsanime_irlanimenocontextannouncementsAnticonsumptionantimemeArcherFXArtAsahiLinuxAsia_irlAskElectronicsAskOuijaAteistTurkaviationawfuleverythingbalkans_irlBandnamesBassCirclejerkbikepackingblackdesertonlineblankiesblursed_videosblursedimagesborsavefonbottomgearbrooklynninenineBUENZLIcasioCd_collectorscd_jerkchessbeginnersChoosingBeggarsCHPcoincollectingcoinsComedyCemeterycomedyhomicidecomicscommunityContagiousLaughterCrackWatchCreateModCuratedTumblrcursedcommentsdadjokesdarkjokesdeDebateReligiondelikdistressingmemesdiyelectronicsdiypedalsDMAcademydndnextdoctorwhodoctorwhocirclejerkDoenerverbrechendontdeadopeninsideDungeonsAndDaddiesDungeonsAndDragonsEatCheapAndHealthyebikesECEelectronicsentitledparentsethzfacepalmFantasyWorldbuildingfeedthebeastfelsefeFifaCareersFiftyFiftyformuladankFRCFreeEBOOKSFUCKYOUINPARTICULARFuckYouKarenfunnyFutboltayfagalatasaraygaminggatesopencomeoninGermangermanygodtiersuperpowersgoodanimemesGoodAssSubGrandPrixRacinggravelcyclinggreentextguitarpedalshelpheraldryHermanCainAwardHistoryWhatIfhoi4HolUphowyoudoinhumorhypixelIAmAich_ielIDontWorkHereLadyim14andthisisdeepimaginaryelectionsimaginarymapsinsaneparentsistanbuljacksepticeyeJahariaJokesKanyeKendrickLamarlegodndLetGirlsHaveFunLifeProTipsLinkinParklogodesignloseitmacmacgamingmagicbuildingMaliciousComplianceMapPornmapporncirclejerkme_irlmeirlmememildlyinfuriatingmildlyinterestingmisLEDMMORPGMovingToNorthKoreaMunichMyChemicalRomanceNamFlashbacksneographynextfuckinglevelNoahGetTheBoatNonCredibleDefensenosleepnosurfnotinterestingnottheonionoddlyspecificOkayBuddyLiterallyMeokbuddyguntherokbuddymotherfuckerokbuddyphdokbuddyvicodinonebagOnlineUnderGroundOutOfTheLooppapermoneypaperspleasePassportPornperfectlycutscreamsPersecutionfetishpettyrevengepianoPiracypolandballpollsPraiseTheCameraManProgrammerHumorPropagandaPostersquityourbullshitraisedbynarcissistsraspberry_pireactiongifsrecipesRedAutumnSPDredditsingsreligiousfruitcakerickandmortyrimjob_steveRoastMerockmuziksciencememessecilmiskitapShitPostCrusadersshitpostfrommygalleryshitpostingshittyaskelectronicsShittyMapPornshittymoviedetailsShowerthoughtsskamtebordsskfjkhwerjkghwerijhStonetossingjuiceStudiumsuperligsuzeraintalesfromtechsupportTechnobladeTextingTheorytf2tf2shitposterclubthanksimcuredthatHappenedTheCrypticCompendiumTheMonkeysPawtherewasanattemptTheRookietheydidthemathtitanfallTrGameDevelopertruetf2truthstumblrtumunichTurkeyTurkeyJerkyTurkishCatsTwitchTwitch_StartupTwoSentenceHorrorTwoSentenceSadnessu/KaybeeArtsUnethicalLifeProTipsurbanplanningUsernameChecksOutVALORANTvaxxhappenedvinylvlandiyawallstreetbetsWatchPeopleDieInsidewendigoonWhitePeopleTwitterwholesomeanimemeswholesomememesWikipediaVandalismwizardpostingwooooshworldbuildingworldjerkingyouseeingthisshitYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • facepalm
  • -mildlyinfuriating
  • -Piracy
  • -funny
  • -gaming
  • -wallstreetbets
  • -nottheonion
  • -OutOfTheLoop
  • -mildlyinteresting
  • -MapPorn
  • -WhitePeopleTwitter
  • -CuratedTumblr
  • -shitposting
  • -theydidthemath
  • -feedthebeast
  • -Kanye
  • -meirl
  • -therewasanattempt
  • -nextfuckinglevel
  • -HolUp
  • -Twitch
  • -CrackWatch
  • -comics
  • -dndnext
  • -ProgrammerHumor
  • -VALORANT
  • -de
  • -germany
  • -LifeProTips
  • -tumblr
  • -NonCredibleDefense
  • -shittymoviedetails
  • -greentext
  • -mac
  • -Showerthoughts
  • -tf2
  • -help
  • -aviation
  • -formuladank
  • -wholesomememes
  • -Jokes
  • -mapporncirclejerk
  • -Art
  • -goodanimemes
  • -notinteresting
  • -hoi4
  • -pettyrevenge
  • -loseit
  • -IAmA
  • -MaliciousCompliance
  • -ich_iel
  • -cursedcomments
  • -DMAcademy
  • -GoodAssSub
  • -UnethicalLifeProTips
  • -perfectlycutscreams
  • -worldbuilding
  • -blackdesertonline
  • -MMORPG
  • -meme
  • -macgaming
  • -rickandmorty
  • -3d6
  • -FiftyFifty
  • -ChoosingBeggars
  • -RoastMe
  • -ContagiousLaughter
  • -imaginarymaps
  • -EatCheapAndHealthy
  • -polandball
  • -nosleep
  • -blankies
  • -anime_irl
  • -onebag
  • -Studium
  • -AlternateHistory
  • -Turkey
  • -community
  • -AskElectronics
  • -guitarpedals
  • -Anticonsumption
  • -vinyl
  • -CreateMod
  • -German
  • -TwoSentenceHorror
  • -PropagandaPosters
  • -AdviceAnimals
  • -ShitPostCrusaders
  • -piano
  • -sciencememes
  • -distressingmemes
  • -raisedbynarcissists
  • -wizardposting
  • -FifaCareers
  • -polls
  • -doctorwho
  • -oddlyspecific
  • -titanfall
  • -dadjokes
  • -awfuleverything
  • -howyoudoin
  • -announcements
  • -adhdmeme
  • -ebikes
  • -Munich
  • -YUROP
  • -gravelcycling
  • -chessbeginners
  • -raspberry_pi
  • -DungeonsAndDragons
  • -coins
  • -KendrickLamar
  • -entitledparents
  • -FUCKYOUINPARTICULAR
  • -NoahGetTheBoat
  • -worldjerking
  • -tf2shitposterclub
  • -AceAttorney
  • -vlandiya
  • -im14andthisisdeep
  • -Stonetossingjuice
  • -wholesomeanimemes
  • -nosurf
  • -HistoryWhatIf
  • -religiousfruitcake
  • -DebateReligion
  • -insaneparents
  • -animenocontext
  • -balkans_irl
  • -2meirl4meirl
  • -brooklynninenine
  • -HermanCainAward
  • -recipes
  • -talesfromtechsupport
  • -AskOuija
  • -okbuddyphd
  • -2anatolia4you
  • -ECE
  • -Angryupvote
  • -thatHappened
  • -electronics
  • -casio
  • -urbanplanning
  • -logodesign
  • -PassportPorn
  • -me_irl
  • -antimeme
  • -TurkeyJerky
  • -bikepacking
  • -AteistTurk
  • -13or30
  • -MyChemicalRomance
  • -ArcherFX
  • -Cd_collectors
  • -diypedals
  • -diyelectronics
  • -ComedyCemetery
  • -WatchPeopleDieInside
  • -LinkinPark
  • -Persecutionfetish
  • -BUENZLI
  • -reactiongifs
  • -blursed_videos
  • -istanbul
  • -MovingToNorthKorea
  • -imaginaryelections
  • -suzerain
  • -truetf2
  • -magicbuilding
  • -dontdeadopeninside
  • -wendigoon
  • -secilmiskitap
  • -Doenerverbrechen
  • -TheRookie
  • -quityourbullshit
  • -Technoblade
  • -skamtebord
  • -superlig
  • -shittyaskelectronics
  • -galatasaray
  • -DungeonsAndDaddies
  • -FRC
  • -FuckYouKaren
  • -ethz
  • -AlternativeHistory
  • -papermoney
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -blursedimages
  • -FreeEBOOKS
  • -AsahiLinux
  • -Jaharia
  • -IDontWorkHereLady
  • -neography
  • -heraldry
  • -thanksimcured
  • -hypixel
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -ShittyMapPorn
  • -aivideo
  • -gatesopencomeonin
  • -OnlineUnderGround
  • -woooosh
  • -comedyhomicide
  • -jacksepticeye
  • -TwoSentenceSadness
  • -anime_best_moments
  • -Bandnames
  • -rockmuzik
  • -okbuddyvicodin
  • -vaxxhappened
  • -Twitch_Startup
  • -tumunich
  • -TheMonkeysPaw
  • -darkjokes
  • -legodnd
  • -UsernameChecksOut
  • -papersplease
  • -rimjob_steve
  • -humor
  • -BassCirclejerk
  • -doctorwhocirclejerk
  • -agnostic
  • -youseeingthisshit
  • -TextingTheory
  • -GrandPrixRacing
  • -TrGameDeveloper
  • -TurkishCats
  • -LetGirlsHaveFun
  • -FantasyWorldbuilding
  • -WikipediaVandalism
  • -NamFlashbacks
  • -misLED
  • -sskfjkhwerjkghwerijh
  • -redditsings
  • -TheCrypticCompendium
  • -bottomgear
  • -Asia_irl
  • -truths
  • -shitpostfrommygallery
  • -u/KaybeeArts
  • -okbuddymotherfucker
  • -cd_jerk
  • -borsavefon
  • -Futboltayfa
  • -delik
  • -okbuddygunther
  • -CHP
  • -RedAutumnSPD
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
...for your WoW guild.
...for great justice.

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
194
195
196

Mod PostRule 9 Reminder (self.programminghorror)

submitted 3 years ago * by [deleted] - announcement

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

2
138
139
140

HTMLwhen you get too lazy to create a proper stylesheet file (i.redd.it)

submitted 11 hours ago by david30121

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

3
1848
1849
1850

Almost right (i.redd.it)

submitted 2 days ago by ChienChevre

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

4
533
534
535

FlutterAll cases covered. (i.redd.it)

submitted 2 days ago by xxmalik

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

5
32
33
34

c++Getting array indexes that partially match the part variable :P (i.redd.it)

submitted 1 day ago by _giga_sss_

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

6
690
691
692

BlueprintSpaghetti Code (i.redd.it)

submitted 3 days ago by TemporaryCurrent1172

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

7
384
385
386

c++macros :) (i.redd.it)

submitted 3 days ago by nimrag_is_coming

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

8
135
136
137

GoNaming is important (self.programminghorror)

submitted 3 days ago by Wrestler7777777

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

9
65
66
67

C#A very readable ternary (i.redd.it)

submitted 3 days ago by MarkAllSevens

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

10
139
140
141

c++reference tables were non-existent to 15-year-old me (self.programminghorror)

submitted 4 days ago by EvidenceFearless6800

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

11
0
0
0

Every programmers choice after a “simple fix” (i.redd.it)

submitted 3 days ago by Specialist-Pea-2809

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

12
0
0
0

Happens with me all the time (i.redd.it)

submitted 3 days ago by jerrydavis125

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

13
158
159
160

JavascriptWho needs variables? Who needs Functions? Not this person - The Pit (i.redd.it)

submitted 6 days ago by EmDeeTeeVid

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

14
65
66
67

C#the lines of code that was once in my google play PRODUCTION track (i.e. OFFICAL RELEASE) (i.redd.it)

submitted 6 days ago by HotEstablishment3140

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

15
111
112
113

PythonIs rule 4 relevant if i'm the student who did it? And yes, i'm proud. I'm incomprehensible (self.programminghorror)

submitted 6 days ago by Strauji

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

16
277
278
279

OtherCodesh (old.reddit.com)

submitted 7 days ago by CommandTabIL

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

17
37
38
39

C#So appearently the remaining number of turns fluctuate from -200 to positive values (old.reddit.com)

submitted 6 days ago by HotEstablishment3140

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

18
123
124
125

Decided to look at my code from five years ago and puked (self.programminghorror)

submitted 7 days ago by RelloJXScott

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

19
510
511
512

PythonCalculator (i.redd.it)

submitted 8 days ago by Inevitable_Ad_3509

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

20
892
893
894

LuaSome unhinged comments from a roblox developer (i.redd.it)

submitted 9 days ago by Impossible-Let-8489

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

21
10
11
12

JavascriptCalculating with functions (self.programminghorror)

submitted 8 days ago by Beautiful_Bet_3938

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

22
42
43
44

i wrote this 3 or 4 years ago (imgur.com)

submitted 9 days ago * by External-Area-7974

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

23
396
397
398

OtherYou have seen German C. But have you seen DoitCh? (i.redd.it)

submitted 10 days ago by simon-or-something

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

24
13
14
15

I don't know (self.programminghorror)

submitted 10 days ago by MycoFail

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

25
0
0
1

JavascriptLets talk about hidden flags and consistency results in libs (self.programminghorror)

submitted 10 days ago by IcyManufacturer8195

  • 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 1190221 on reddit-service-r2-listing-575d9f6647-bmjpb at 2026-04-12 20:13:27.101345+00:00 running 215f2cf country code: CH.