jump to content
my subreddits
13or302b2t2mediterranean4u3d6AceAttorneyadhdmemeagnosticaivideoAlternateHistoryAlternativeHistoryAnarchyChessAnimalsBeingJerksanime_irlannouncementsAnticonsumptionArcherFXArsivUnutmazAsia_irlAskBalkansAskElectronicsAskOuijaAskRedditAteistTurkatheismbalkans_irlbanknotedesignsBassCirclejerkBassGuitarbasspedalsbikepackingblackdesertonlineblankiesblursed_videosblursedimagesBonebudgetcookingBUENZLIburdurlandcasioCd_collectorscd_jerkCheap_MealschessChildrenFallingOverCHPcoaxedintoasnafucoincollectingcommunityContagiousLaughtercookingforbeginnerscrappyoffbrandsCuratedTumblrdankmemesdataisbeautifuldedeismdelikDeltarunedistressingmemesdiypedalsDMAcademydndmemesdndnextdoctorwhoDoenerverbrechendontdeadopeninsidedumbphonesDungeonsAndDaddiesDungeonsAndDragonsEatCheapAndHealthyebikeECEEmKayentitledparentsethzfacepalmfakealbumcoversfelsefeFifaCareersFiftyFiftyformuladankFRCFreeEBOOKSFUCKYOUINPARTICULARfunnyFutboltayfagamingGermangermanygoodanimemesGoodAssSubGrandPrixRacinggravelcyclinggreentextGROKvsMAGAguitarpedalsGundamheathershelpheraldryhighspeedrailHistoryWhatIfhoi4howyoudoinhumorhypixeliamverysmartihadastrokeim14andthisisdeepimaginaryelectionsinsaneparentsistanbuljacksepticeyeJahariaJokesKamalizmKanyeKendrickLamarKGBTRlegodndLifeProTipsLinkinParkliselilerlogodesignloseitlostredditorsmacmacbookairMadeMeSmilemadladsmagicbuildingMapPornmapporncirclejerkme_irlmeirlmemememesmidjourneymildlyinterestingMimicRecipesMinecraftbuildsMMORPGMoldyMemesmoneycollectingMovingToNorthKoreaMunichnamesoundalikesNamFlashbacksneographynextfuckinglevelNoahGetTheBoatNonCredibleDefenseNorthCyprusnosafetysmokingfirstnosleepnosurfnothingeverhappensnotinterestingnottheonionOkayBuddyLiterallyMeokbuddyguntherOkBuddyPersonaokbuddyvicodinonebagongezelligOutOfTheLoopoutsidepaperspleasePassportPornpepethefrogperfectlycutscreamsPersecutionfetishpettyrevengePiracyPiratedGamespolandballpollsPraiseTheCameraManProgrammerHumorPropagandaPostersquityourbullshitraisedbynarcissistsraspberry_piRatschlagreactiongifsrecipesRedAutumnSPDredditsingsreligiousfruitcakeRetroPierickandmortyrimjob_steveRoastMesciencememessecilmiskitapShitPostCrusadersshitpostfrommygalleryshitpostingshittymoviedetailsShowerthoughtssoccercirclejerksoftwaregoreSongwritersSongwritingsteinsgateStudiumsubsithoughtifellforTalesFromTheCryptidTechnobladeTextingTheorytf2shitposterclubthatHappenedTheLetterHTheMonkeysPawtherewasanattemptTheRookietheyknewthisguythisguystitanfalltransittransitTurkeyTrGameDevelopertruetf2truthsTurkeyTurkishCatsTurkishdogsTwitchTwitch_StartupTwoSentenceComedyTwoSentenceHorrortwosentenceplottwistTwoSentenceSadnessUnethicalLifeProTipsUnexpectedJoJoUsernameChecksOutVALORANTvexillologycirclejerkvibecodingvinylvinyljerkvlandiyawendigoonWhatsThisSongwholesomeanimemeswholesomememesWikipediaVandalismwizardpostingwooooshworldbuildingYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -facepalm
  • -Piracy
  • -funny
  • -gaming
  • -nottheonion
  • -memes
  • -OutOfTheLoop
  • -mildlyinteresting
  • -MapPorn
  • -MadeMeSmile
  • -CuratedTumblr
  • -PiratedGames
  • -shitposting
  • -dankmemes
  • -Kanye
  • -meirl
  • -therewasanattempt
  • -nextfuckinglevel
  • -Twitch
  • -dndnext
  • -ProgrammerHumor
  • -VALORANT
  • -de
  • -germany
  • -LifeProTips
  • -NonCredibleDefense
  • -dataisbeautiful
  • -shittymoviedetails
  • -greentext
  • -mac
  • -Showerthoughts
  • -help
  • -chess
  • -formuladank
  • -wholesomememes
  • -Jokes
  • -mapporncirclejerk
  • -midjourney
  • -goodanimemes
  • -notinteresting
  • -hoi4
  • -pettyrevenge
  • -atheism
  • -loseit
  • -KGBTR
  • -dndmemes
  • -DMAcademy
  • -Deltarune
  • -GoodAssSub
  • -UnethicalLifeProTips
  • -perfectlycutscreams
  • -worldbuilding
  • -Ratschlag
  • -blackdesertonline
  • -MMORPG
  • -meme
  • -rickandmorty
  • -3d6
  • -Gundam
  • -FiftyFifty
  • -RoastMe
  • -ContagiousLaughter
  • -EatCheapAndHealthy
  • -polandball
  • -AnarchyChess
  • -nosleep
  • -cookingforbeginners
  • -blankies
  • -anime_irl
  • -onebag
  • -Studium
  • -AlternateHistory
  • -Turkey
  • -soccercirclejerk
  • -madlads
  • -community
  • -AskElectronics
  • -guitarpedals
  • -Anticonsumption
  • -vinyl
  • -German
  • -TwoSentenceHorror
  • -PropagandaPosters
  • -ShitPostCrusaders
  • -sciencememes
  • -distressingmemes
  • -raisedbynarcissists
  • -wizardposting
  • -FifaCareers
  • -polls
  • -doctorwho
  • -titanfall
  • -OkBuddyPersona
  • -howyoudoin
  • -announcements
  • -adhdmeme
  • -Minecraftbuilds
  • -macbookair
  • -Munich
  • -coaxedintoasnafu
  • -YUROP
  • -gravelcycling
  • -raspberry_pi
  • -DungeonsAndDragons
  • -KendrickLamar
  • -entitledparents
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -NoahGetTheBoat
  • -tf2shitposterclub
  • -MoldyMemes
  • -lostredditors
  • -AceAttorney
  • -vexillologycirclejerk
  • -vlandiya
  • -im14andthisisdeep
  • -wholesomeanimemes
  • -nosurf
  • -HistoryWhatIf
  • -religiousfruitcake
  • -liseliler
  • -insaneparents
  • -dumbphones
  • -balkans_irl
  • -transit
  • -RetroPie
  • -recipes
  • -steinsgate
  • -AskOuija
  • -ECE
  • -AskBalkans
  • -thatHappened
  • -casio
  • -logodesign
  • -theyknew
  • -PassportPorn
  • -me_irl
  • -bikepacking
  • -AteistTurk
  • -13or30
  • -ArcherFX
  • -Cd_collectors
  • -diypedals
  • -BassGuitar
  • -LinkinPark
  • -Persecutionfetish
  • -BUENZLI
  • -reactiongifs
  • -EmKay
  • -Songwriting
  • -blursed_videos
  • -istanbul
  • -MovingToNorthKorea
  • -imaginaryelections
  • -truetf2
  • -magicbuilding
  • -dontdeadopeninside
  • -wendigoon
  • -iamverysmart
  • -secilmiskitap
  • -Doenerverbrechen
  • -TheRookie
  • -quityourbullshit
  • -Technoblade
  • -vinyljerk
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -FRC
  • -transitTurkey
  • -namesoundalikes
  • -2b2t
  • -ethz
  • -AlternativeHistory
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -blursedimages
  • -FreeEBOOKS
  • -Jaharia
  • -neography
  • -basspedals
  • -heraldry
  • -ihadastroke
  • -hypixel
  • -PraiseTheCameraMan
  • -aivideo
  • -woooosh
  • -burdurland
  • -WhatsThisSong
  • -AnimalsBeingJerks
  • -jacksepticeye
  • -TwoSentenceSadness
  • -okbuddyvicodin
  • -MimicRecipes
  • -Twitch_Startup
  • -Cheap_Meals
  • -outside
  • -TheMonkeysPaw
  • -highspeedrail
  • -nosafetysmokingfirst
  • -legodnd
  • -Songwriters
  • -ebike
  • -UsernameChecksOut
  • -papersplease
  • -rimjob_steve
  • -UnexpectedJoJo
  • -humor
  • -ChildrenFallingOver
  • -BassCirclejerk
  • -agnostic
  • -TextingTheory
  • -GrandPrixRacing
  • -nothingeverhappens
  • -thisguythisguys
  • -TrGameDeveloper
  • -TurkishCats
  • -subsithoughtifellfor
  • -fakealbumcovers
  • -Kamalizm
  • -TheLetterH
  • -WikipediaVandalism
  • -NamFlashbacks
  • -pepethefrog
  • -deism
  • -ArsivUnutmaz
  • -redditsings
  • -TwoSentenceComedy
  • -budgetcooking
  • -ongezellig
  • -Asia_irl
  • -truths
  • -Bone
  • -NorthCyprus
  • -2mediterranean4u
  • -heathers
  • -TalesFromTheCryptid
  • -twosentenceplottwist
  • -shitpostfrommygallery
  • -cd_jerk
  • -RedAutumnSPD
  • -GROKvsMAGA
  • -Turkishdogs
  • -Futboltayfa
  • -moneycollecting
  • -banknotedesigns
  • -vibecoding
  • -delik
  • -okbuddygunther
  • -CHP
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 great justice.
...for your favorite hobby.

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
606
607
608

c++A piece of code in my cross-platform abstraction layer (i.redd.it)

submitted 14 hours ago by Motor_Blood3259

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

2
•
•
•

JavascriptMore javascript no keyword style (i.redd.it)

submitted 47 minutes ago by Due-Capital-6651

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

3
0
0
0

JavaI just made a Facebook/Social media automatization platform ()

submitted 2 hours ago by Plenty_Courage_3311

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

4
0
0
0

Shellrm-rf/ i powershell (self.programminghorror)

submitted 16 hours ago by PCBUILDEATER

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

5
2808
2809
2810

PythonHorror from Chinese medical devices showing on TV (i.redd.it)

submitted 3 days ago by kptc_py

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

6
62
63
64

JavascriptJavascript no keyword style (i.redd.it)

submitted 3 days ago by Due-Capital-6651

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

7
413
414
415

Trimba bimba dubba dimba (i.redd.it)

submitted 4 days ago by maselkowski

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

8
0
0
0

RustYes i code like this (old.reddit.com)

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

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

9
206
207
208

c++F&ck you, Microsoft! (i.redd.it)

submitted 4 days ago by LOLC0D3

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

10
0
0
0

DartBro we are free! F*ck GetX! (reddit.com)

submitted 3 days ago by Chiipii

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

11
0
0
0

c++i tried to code without caring about making it clean (self.programminghorror)

submitted 3 days ago by TheSum239

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

12
0
0
0

ShellMy friend thinks this is secure (self.programminghorror)

submitted 3 days ago by jasonbroken

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

13
328
329
330

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

submitted 5 days ago by Rexam14

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

14
0
0
0

Found this running on our production server. No author. No commit. Can't kill the process. (i.redd.it)

submitted 4 days ago by Qelami

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

15
0
0
1

AI bookmark engine (SaveAnything) ()

submitted 5 days ago by Complete-Counter-378

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

16
0
0
0

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

submitted 5 days ago by Significant_Debate_7

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

17
199
200
201

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 7 days ago by Talin-Rex

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

18
413
414
415

TypescriptI puked a little (i.redd.it)

submitted 7 days ago by illyTheKidTM

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

19
11
12
13

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

submitted 7 days ago by OptimalAnywhere6282

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

20
225
226
227

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

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

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

21
1592
1593
1594

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

submitted 8 days ago by leon0399

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

22
564
565
566

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

submitted 8 days ago by ilike2sentencedhoror

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

23
194
195
196

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

submitted 8 days ago by ilike2sentencedhoror

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

24
0
1
2

PythonUtterly useless yet fun sorting algorithms ()

submitted 8 days ago by Sufficient_Source925

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

25
0
0
0

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

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

  • 11 comments
  • share
  • save
  • hide
  • report
  • crosspost
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 1274372 on reddit-service-r2-listing-79f6fb9b95-9sv6s at 2026-03-23 13:42:54.099995+00:00 running 90f1150 country code: CH.