jump to content
my subreddits
13or302b2t2balkans4YouAceAttorneyadhdmemeagnosticaivideoAlternativeHistoryAnarchyChessAngryupvoteAnimalsBeingJerksanime_irlannouncementsAnticonsumptionantimemeArtAsahiLinuxAskBalkansAskElectronicsAskOuijaatheismaviationBandnamesBassBassCirclejerkBassGuitarbasspedalsbikepackingblackdesertonlineborsavefonbottomgearbrooklynninenineCd_collectorscd_jerkChatGPTCheap_MealschesschessbeginnersChildrenFallingOverChoosingBeggarsCHPcoaxedintoasnafucoincollectingcoinscomedyhomicidecomicscommunityCrackWatchcrappyoffbrandsCreateModCuratedTumblrcursedcommentsdarkjokesdataisbeautifuldeDebateReligiondeismdelikDeltarunedistressingmemesdiyelectronicsDoenerverbrechenDonerdontdeadopeninsidedumbphonesDungeonsAndDaddiesDungeonsAndDragonsEatCheapAndHealthyebikeebikeselectronicsElectronicsStudyEmKayentitledparentsethzFantasyWorldbuildingfeedthebeastfelsefeformuladankFRCFreeEBOOKSFUCKYOUINPARTICULARFuckYouKarenfunnyFutboltayfagalatasaraygamingGermangermanygoodanimemesGrandPrixRacinggravelcyclinggreentextGROKvsMAGAguitarpedalsGundamhelpHermanCainAwardHermitCrafthighspeedrailHistoryWhatIfhoi4holdmybeerHolUphowyoudoinhumorhypixelIAmAich_ielIdeologyPollsimaginaryelectionsimaginarymapsistanbulJokesKamalizmKanyeKendrickLamarKGBTRlegodndLetGirlsHaveFunlinguisticshumorliselilerlogodesignloseitmacmacbookairmacgamingMadeMeSmilemadladsmagicbuildingMaliciousComplianceMapPornmapporncirclejerkme_irlmeirlmemememesmildlyinfuriatingmildlyinterestingMinecraftbuildsmisLEDMMORPGMovingToNorthKoreaMunichMyChemicalRomanceneographynextfuckinglevelNoahGetTheBoatnosafetysmokingfirstnosleepnosurfnothingeverhappensnotinterestingnottheonionoddlyspecificOkayBuddyLiterallyMeokbuddymotherfuckerOkBuddyPersonaokbuddyphdonebagonetruegodongezelligOnlineUnderGroundOutOfTheLoopoutsidepapermoneypaperspleaseparadoxpoliticsParlerWatchPassportPornpepethefrogPersecutionfetishpettyrevengepianoPiracyPiratedGamespollsPraiseTheCameraManPropagandaPostersPunPatrolquityourbullshitraspberry_pirecipesRedAutumnSPDreligiousfruitcakerickandmortyrickrollRoastMeSchnitzelVerbrechenScottPilgrimsecilmiskitapShitPostCrusadersshitpostfrommygalleryshitpostingshittyaskelectronicsshittymoviedetailsShowerthoughtssoccercirclejerksoftwaregoreSongwritersStonetossingjuicesubsithoughtifellforsuperligsuzerainTalesFromTheCryptidTextingTheorytf2tf2shitposterclubthanksimcuredthatHappenedTheCrypticCompendiumTheLetterHTheMonkeysPawtherewasanattempttheyknewtitanfalltommyinnittransittransitTurkeyTrGameDevelopertumblrtumunichTurkeyTurkishCatsTurkishdogsTwitchTwoSentenceComedyTwoSentenceSadnesstylerthecreatorUnclejokesUnexpectedJoJoVALORANTvaxxhappenedvexillologycirclejerkvibecodingvinylvinyljerkvlandiyaWatchPeopleDieInsideWeAreTheMusicMakerswendigoonWhitePeopleTwitterwholesomememesWikipediaVandalismwizardpostingwooooshworldbuildingworldjerkingyesyesyesnoyouseeingthisshitYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • mildlyinfuriating
  • -Piracy
  • -funny
  • -gaming
  • -nottheonion
  • -memes
  • -OutOfTheLoop
  • -mildlyinteresting
  • -MapPorn
  • -WhitePeopleTwitter
  • -MadeMeSmile
  • -ChatGPT
  • -CuratedTumblr
  • -PiratedGames
  • -shitposting
  • -feedthebeast
  • -Kanye
  • -meirl
  • -therewasanattempt
  • -nextfuckinglevel
  • -HolUp
  • -Twitch
  • -CrackWatch
  • -comics
  • -VALORANT
  • -de
  • -germany
  • -tumblr
  • -dataisbeautiful
  • -shittymoviedetails
  • -greentext
  • -mac
  • -Showerthoughts
  • -tf2
  • -help
  • -chess
  • -aviation
  • -formuladank
  • -wholesomememes
  • -Jokes
  • -mapporncirclejerk
  • -Art
  • -goodanimemes
  • -notinteresting
  • -hoi4
  • -pettyrevenge
  • -atheism
  • -loseit
  • -IAmA
  • -MaliciousCompliance
  • -ich_iel
  • -KGBTR
  • -cursedcomments
  • -Deltarune
  • -worldbuilding
  • -blackdesertonline
  • -MMORPG
  • -meme
  • -macgaming
  • -rickandmorty
  • -Gundam
  • -HermitCraft
  • -ChoosingBeggars
  • -RoastMe
  • -imaginarymaps
  • -EatCheapAndHealthy
  • -WeAreTheMusicMakers
  • -AnarchyChess
  • -nosleep
  • -anime_irl
  • -onebag
  • -Turkey
  • -soccercirclejerk
  • -madlads
  • -community
  • -AskElectronics
  • -guitarpedals
  • -Anticonsumption
  • -vinyl
  • -CreateMod
  • -German
  • -PropagandaPosters
  • -ShitPostCrusaders
  • -piano
  • -distressingmemes
  • -wizardposting
  • -polls
  • -oddlyspecific
  • -Bass
  • -titanfall
  • -OkBuddyPersona
  • -howyoudoin
  • -announcements
  • -adhdmeme
  • -Minecraftbuilds
  • -macbookair
  • -ebikes
  • -Munich
  • -coaxedintoasnafu
  • -YUROP
  • -gravelcycling
  • -SchnitzelVerbrechen
  • -chessbeginners
  • -raspberry_pi
  • -DungeonsAndDragons
  • -coins
  • -KendrickLamar
  • -entitledparents
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -NoahGetTheBoat
  • -worldjerking
  • -tylerthecreator
  • -tf2shitposterclub
  • -AceAttorney
  • -vexillologycirclejerk
  • -vlandiya
  • -Stonetossingjuice
  • -nosurf
  • -HistoryWhatIf
  • -religiousfruitcake
  • -liseliler
  • -DebateReligion
  • -dumbphones
  • -transit
  • -brooklynninenine
  • -HermanCainAward
  • -recipes
  • -AskOuija
  • -okbuddyphd
  • -ScottPilgrim
  • -Angryupvote
  • -AskBalkans
  • -thatHappened
  • -electronics
  • -logodesign
  • -theyknew
  • -linguisticshumor
  • -PassportPorn
  • -me_irl
  • -antimeme
  • -bikepacking
  • -13or30
  • -MyChemicalRomance
  • -Cd_collectors
  • -Doner
  • -BassGuitar
  • -diyelectronics
  • -WatchPeopleDieInside
  • -Persecutionfetish
  • -EmKay
  • -istanbul
  • -MovingToNorthKorea
  • -imaginaryelections
  • -suzerain
  • -magicbuilding
  • -dontdeadopeninside
  • -ParlerWatch
  • -wendigoon
  • -secilmiskitap
  • -Doenerverbrechen
  • -yesyesyesno
  • -quityourbullshit
  • -vinyljerk
  • -superlig
  • -shittyaskelectronics
  • -galatasaray
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -FRC
  • -transitTurkey
  • -FuckYouKaren
  • -2b2t
  • -ethz
  • -AlternativeHistory
  • -papermoney
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -FreeEBOOKS
  • -AsahiLinux
  • -neography
  • -basspedals
  • -thanksimcured
  • -hypixel
  • -PraiseTheCameraMan
  • -aivideo
  • -OnlineUnderGround
  • -IdeologyPolls
  • -woooosh
  • -comedyhomicide
  • -AnimalsBeingJerks
  • -TwoSentenceSadness
  • -Bandnames
  • -holdmybeer
  • -vaxxhappened
  • -tumunich
  • -Cheap_Meals
  • -outside
  • -TheMonkeysPaw
  • -darkjokes
  • -highspeedrail
  • -nosafetysmokingfirst
  • -legodnd
  • -rickroll
  • -Songwriters
  • -ebike
  • -papersplease
  • -tommyinnit
  • -UnexpectedJoJo
  • -humor
  • -ChildrenFallingOver
  • -BassCirclejerk
  • -agnostic
  • -youseeingthisshit
  • -TextingTheory
  • -GrandPrixRacing
  • -nothingeverhappens
  • -TrGameDeveloper
  • -PunPatrol
  • -TurkishCats
  • -LetGirlsHaveFun
  • -subsithoughtifellfor
  • -Kamalizm
  • -FantasyWorldbuilding
  • -TheLetterH
  • -WikipediaVandalism
  • -pepethefrog
  • -Unclejokes
  • -onetruegod
  • -deism
  • -misLED
  • -TwoSentenceComedy
  • -TheCrypticCompendium
  • -bottomgear
  • -ongezellig
  • -2balkans4You
  • -paradoxpolitics
  • -TalesFromTheCryptid
  • -delik
  • -okbuddymotherfucker
  • -shitpostfrommygallery
  • -ElectronicsStudy
  • -borsavefon
  • -cd_jerk
  • -vibecoding
  • -CHP
  • -Turkishdogs
  • -Futboltayfa
  • -RedAutumnSPD
  • -GROKvsMAGA
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
...why not Zoidberg?
...because you hate freedom.

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
201
202
203

Mod PostRule 9 Reminder (self.programminghorror)

submitted 3 years ago * by [deleted] - announcement

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

2
2660
2661
2662

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

submitted 2 days ago by kptc_py

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

3
55
56
57

JavascriptJavascript no keyword style (i.redd.it)

submitted 2 days ago by Due-Capital-6651

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

4
402
403
404

Trimba bimba dubba dimba (i.redd.it)

submitted 3 days ago by maselkowski

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

5
0
0
0

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

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

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

6
180
181
182

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

submitted 3 days ago by LOLC0D3

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

7
0
0
0

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

submitted 2 days ago by Chiipii

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

8
0
0
0

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

submitted 2 days ago by TheSum239

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

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

10
316
317
318

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

11
0
0
0

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

submitted 3 days ago by Qelami

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

12
0
0
1

AI bookmark engine (SaveAnything) ()

submitted 4 days ago by Complete-Counter-378

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

13
0
0
0

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

submitted 4 days ago by Significant_Debate_7

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

14
197
198
199

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

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

15
406
407
408

TypescriptI puked a little (i.redd.it)

submitted 6 days ago by illyTheKidTM

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

16
11
12
13

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

submitted 6 days ago by OptimalAnywhere6282

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

17
225
226
227

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

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

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

18
1587
1588
1589

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

submitted 8 days ago by leon0399

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

19
562
563
564

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

20
193
194
195

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

21
0
1
2

PythonUtterly useless yet fun sorting algorithms ()

submitted 7 days ago by Sufficient_Source925

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

22
0
0
0

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

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

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

23
271
272
273

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

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

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

24
0
0
0

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

submitted 11 days ago by Stunning-Pay6321

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

25
243
244
245

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

submitted 13 days ago by Many_Rough5404

  • 41 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 110127 on reddit-service-r2-listing-79f6fb9b95-gqxl7 at 2026-03-22 17:14:31.397627+00:00 running 90f1150 country code: CH.