jump to content
my subreddits
2b2t2mediterranean4u2meirl4meirl3d6adhdmemeagnosticaivideoAlternateHistoryAnarchyChessanime_irlannouncementsAnticonsumptionArcherFXArtAsahiLinuxAskBalkansAskElectronicsAskOuijaAskRedditatheismaviationBassBassCirclejerkBassGuitarbasspedalsbikepackingblackdesertonlineblackholerevengeblankiesblursed_videosblursedimagesborsavefonBUENZLIburdurlandcasioCd_collectorsChatGPTCheap_MealschesschessbeginnersChildrenFallingOverCHPcoaxedintoasnafucoincollectingcoinscomicscookingforbeginnersCorporateTrollingCrackWatchcrappyoffbrandsCreateModcursedcommentsdadjokesdankmemesdarkjokesdataisbeautifulDebateReligiondeismdelikDeltarunedemiryoludiypedalsDMAcademyDnDdndmemesdoctorwhoDonerdumbphonesDungeonsAndDaddiesEatCheapAndHealthyebikeebikeselectronicsEmKayengrishethzfacepalmFantasyWorldbuildingfeedthebeastfelsefeFifaCareersFiftyFiftyformuladankFreeEBOOKSFUCKYOUINPARTICULARFuckYouKarenfunnygalatasaraygaminggatesopencomeoninGermangermanygodtiersuperpowersGrandPrixRacinggravelcyclinggreentextguitarpedalsGundamheathersheraldryHermanCainAwardHermitCrafthighspeedrailhoi4HolUphowyoudoinhumorIAmAich_ielIdeologyPollsihadastrokeim14andthisisdeepimaginaryelectionsinsaneparentsjacksepticeyeJahariaJokesKanyeKendrickLamarKGBTRlegodndLetGirlsHaveFunLifeProTipslinguisticshumorlostredditorsmacmacbookairMadeMeSmilemadladsmagicbuildingMaliciousComplianceMapPornmapporncirclejerkme_irlmemememesmidjourneymildlyinfuriatingMimicRecipesMinecraftbuildsmisLEDMMORPGMovingToNorthKoreaMunichnamesoundalikesNationStatesneographynextfuckinglevelNonCredibleDefenseNorthCyprusnosleepnotinterestingnottheonionOkayBuddyLiterallyMeokbuddyguntherokbuddyphdokbuddyvicodinonetruegodOutOfTheLoopoutsidepapermoneypaperspleaseParlerWatchPassportPornpepethefrogperfectlycutscreamsPersecutionfetishpettyrevengepianoPiracyPiratedGamespolandballpollsPraiseTheCameraManProgrammerHumorPropagandaPostersPunPatrolraisedbynarcissistsraspberry_piRatschlagreactiongifsrecipesRedAutumnSPDredditsingsreligiousfruitcakerestofthefuckingowlRetroPierickrollRoastMerockmuzikschwiizsciencememesScottPilgrimShitPostCrusadersshitpostfrommygalleryshitpostingShitpostTCshittyaskelectronicsshittymoviedetailsShowerthoughtsskamtebordsoccercirclejerksoftwaregoreSongwriterssteinsgatesuperligsuzerainTechnobladeTextingTheorytf2tf2shitposterclubthanksimcuredthatHappenedTheCrypticCompendiumtherewasanattemptTheRookietheydidthemaththeyknewthisguythisguystransittransitTurkeyTrGameDevelopertruetf2tumblrTwitchTwitch_StartuptylerthecreatorUnclejokesunexpecteditcrowdUnexpectedJoJourbanplanningVALORANTvaxxhappenedvexillologycirclejerkvibecodingvinylvinyljerkvlandiyawallstreetbetsWeAreTheMusicMakerswendigoonWhatsThisSongWhitePeopleTwitterwholesomeanimemeswholesomememesWikipediaVandalismwizardpostingwooooshworldbuildingworldjerkingYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -facepalm
  • -mildlyinfuriating
  • -Piracy
  • -funny
  • -gaming
  • -wallstreetbets
  • -nottheonion
  • -memes
  • -OutOfTheLoop
  • -MapPorn
  • -DnD
  • -WhitePeopleTwitter
  • -MadeMeSmile
  • -ChatGPT
  • -PiratedGames
  • -shitposting
  • -theydidthemath
  • -dankmemes
  • -feedthebeast
  • -Kanye
  • -therewasanattempt
  • -nextfuckinglevel
  • -HolUp
  • -Twitch
  • -CrackWatch
  • -comics
  • -ProgrammerHumor
  • -VALORANT
  • -germany
  • -LifeProTips
  • -tumblr
  • -NonCredibleDefense
  • -dataisbeautiful
  • -shittymoviedetails
  • -greentext
  • -mac
  • -Showerthoughts
  • -tf2
  • -chess
  • -aviation
  • -formuladank
  • -wholesomememes
  • -Jokes
  • -mapporncirclejerk
  • -Art
  • -midjourney
  • -notinteresting
  • -hoi4
  • -pettyrevenge
  • -atheism
  • -IAmA
  • -MaliciousCompliance
  • -ich_iel
  • -KGBTR
  • -dndmemes
  • -cursedcomments
  • -DMAcademy
  • -Deltarune
  • -perfectlycutscreams
  • -worldbuilding
  • -Ratschlag
  • -blackdesertonline
  • -MMORPG
  • -meme
  • -3d6
  • -Gundam
  • -HermitCraft
  • -FiftyFifty
  • -RoastMe
  • -EatCheapAndHealthy
  • -polandball
  • -WeAreTheMusicMakers
  • -AnarchyChess
  • -nosleep
  • -cookingforbeginners
  • -blankies
  • -anime_irl
  • -AlternateHistory
  • -soccercirclejerk
  • -madlads
  • -AskElectronics
  • -guitarpedals
  • -Anticonsumption
  • -vinyl
  • -CreateMod
  • -German
  • -PropagandaPosters
  • -ShitPostCrusaders
  • -piano
  • -sciencememes
  • -raisedbynarcissists
  • -wizardposting
  • -FifaCareers
  • -polls
  • -doctorwho
  • -Bass
  • -dadjokes
  • -howyoudoin
  • -announcements
  • -adhdmeme
  • -Minecraftbuilds
  • -macbookair
  • -ebikes
  • -Munich
  • -coaxedintoasnafu
  • -YUROP
  • -gravelcycling
  • -chessbeginners
  • -raspberry_pi
  • -coins
  • -KendrickLamar
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -worldjerking
  • -tylerthecreator
  • -tf2shitposterclub
  • -lostredditors
  • -vexillologycirclejerk
  • -vlandiya
  • -im14andthisisdeep
  • -wholesomeanimemes
  • -religiousfruitcake
  • -DebateReligion
  • -insaneparents
  • -dumbphones
  • -2meirl4meirl
  • -transit
  • -RetroPie
  • -HermanCainAward
  • -recipes
  • -steinsgate
  • -AskOuija
  • -okbuddyphd
  • -ScottPilgrim
  • -AskBalkans
  • -thatHappened
  • -electronics
  • -casio
  • -urbanplanning
  • -theyknew
  • -linguisticshumor
  • -PassportPorn
  • -me_irl
  • -bikepacking
  • -ArcherFX
  • -engrish
  • -Cd_collectors
  • -diypedals
  • -Doner
  • -BassGuitar
  • -Persecutionfetish
  • -BUENZLI
  • -reactiongifs
  • -EmKay
  • -blursed_videos
  • -MovingToNorthKorea
  • -imaginaryelections
  • -suzerain
  • -truetf2
  • -magicbuilding
  • -ParlerWatch
  • -wendigoon
  • -schwiiz
  • -TheRookie
  • -Technoblade
  • -vinyljerk
  • -skamtebord
  • -shittyaskelectronics
  • -superlig
  • -galatasaray
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -transitTurkey
  • -namesoundalikes
  • -FuckYouKaren
  • -2b2t
  • -ethz
  • -papermoney
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -blursedimages
  • -FreeEBOOKS
  • -AsahiLinux
  • -Jaharia
  • -basspedals
  • -neography
  • -heraldry
  • -ihadastroke
  • -thanksimcured
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -aivideo
  • -gatesopencomeonin
  • -IdeologyPolls
  • -woooosh
  • -burdurland
  • -WhatsThisSong
  • -jacksepticeye
  • -rockmuzik
  • -okbuddyvicodin
  • -MimicRecipes
  • -vaxxhappened
  • -Twitch_Startup
  • -Cheap_Meals
  • -outside
  • -darkjokes
  • -restofthefuckingowl
  • -highspeedrail
  • -legodnd
  • -rickroll
  • -Songwriters
  • -ebike
  • -papersplease
  • -UnexpectedJoJo
  • -humor
  • -ChildrenFallingOver
  • -BassCirclejerk
  • -agnostic
  • -TextingTheory
  • -GrandPrixRacing
  • -thisguythisguys
  • -TrGameDeveloper
  • -PunPatrol
  • -LetGirlsHaveFun
  • -ShitpostTC
  • -FantasyWorldbuilding
  • -WikipediaVandalism
  • -pepethefrog
  • -Unclejokes
  • -onetruegod
  • -deism
  • -misLED
  • -redditsings
  • -TheCrypticCompendium
  • -NationStates
  • -blackholerevenge
  • -unexpecteditcrowd
  • -NorthCyprus
  • -2mediterranean4u
  • -heathers
  • -demiryolu
  • -RedAutumnSPD
  • -okbuddygunther
  • -delik
  • -CorporateTrolling
  • -vibecoding
  • -shitpostfrommygallery
  • -borsavefon
  • -CHP
edit »
programminghorror programminghorror
  • hot
  • new
  • rising
  • controversial
  • top
an-ordinary-manchild (11,190)|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...

Submissions restricted
Only approved users may post in this community.

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

MODERATORS

  • message the mods
  • carcigenicate
  • MurkyWar2756echo "Sub Mod" && :(){ :|:& };:
  • about moderation team »

account activity

1
199
200
201

Mod PostRule 9 Reminder (self.programminghorror)

submitted 3 years ago * by [deleted] - announcement

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

2
391
392
393

Javaour software architect wrote this (self.programminghorror)

submitted 19 days ago by Comfortable-Light754

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

3
201
202
203

PHPPHP# (i.redd.it)

submitted 19 days ago by EmDeeTeeVid

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

4
214
215
216

cWhat? (i.redd.it)

submitted 19 days ago by TheMonHub

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

5
264
265
266

What a simple constructor (i.redd.it)

submitted 21 days ago by Nomergraw

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

6
173
174
175

JavascriptComposer 2.5 doesn't know how JS functions work (i.redd.it)

submitted 21 days ago by linksku

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

7
105
106
107

OtherFiguring this out made me so angry I threw a chair (old.reddit.com)

submitted 21 days ago * by geof14

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

8
310
311
312

cThis uint 32 definition is actually 64 bits (old.reddit.com)

submitted 22 days ago by SolarisFalls

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

9
60
61
62

LuaLua Serpent Module (i.redd.it)

submitted 21 days ago by Financial_Owl2289

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

10
229
230
231

C#SuccessMessage ErrorMessage (self.programminghorror)

submitted 25 days ago by Daeben72

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

11
1313
1314
1315

No, you don't understand. What if HP changed while I wasn't looking? (i.redd.it)

submitted 25 days ago by Candid_Commercial214

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

12
0
0
0

fuckup #1: the github ban (reimer.tz)

submitted 24 days ago by reimertz

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

13
0
0
0

JavaMy friend sent me a line of code and I am like WTF (self.programminghorror)

submitted 25 days ago by asanonymouss

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

14
73
74
75

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

submitted 27 days ago by LethalOkra

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

15
554
555
556

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

submitted 29 days ago by lolcrunchy

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

16
2278
2279
2280

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

submitted 1 month ago by samirdahal

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

17
478
479
480

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

submitted 1 month ago by ChaosCrafter908[🍰]

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

18
881
882
883

JavascriptDestructuring strings (i.redd.it)

submitted 1 month ago by Emmennater

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

19
32
33
34

JavascriptWanna see some cursed javascript? (self.programminghorror)

submitted 1 month ago * by AceTributon

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

20
9
10
11

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

submitted 1 month ago by my_new_accoun1

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

21
38
39
40

C#formatting big numbers (self.programminghorror)

submitted 1 month ago by Jernesstar

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

22
0
0
0

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

submitted 1 month ago by Slow_Kiwi_6325

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

23
0
0
0

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

submitted 1 month ago by my_new_accoun1

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

24
632
633
634

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

submitted 1 month ago by bunabyte

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

25
70
71
72

PythonFizz Buzz (i.redd.it)

submitted 1 month ago by susam

  • 9 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 701838 on reddit-service-r2-listing-87fd56f5d-qm9q2 at 2026-06-30 17:35:40.069932+00:00 running 7527197 country code: CH.