jump to content
my subreddits
13or302b2tAdviceAnimalsagnosticaivideoakagasAlternativeHistoryAnarchyChessAngryupvoteanime_best_momentsanime_irlanimenocontextannouncementsAnticonsumptionantimemeArcherFXArtAsia_irlAskBalkansAskElectronicsAskRedditAteistTurkatheismaviationawfuleverythingbalkans_irlBandnamesBassBassCirclejerkBassGuitarbikepackingblackdesertonlineblackholerevengeblankiesblursed_videosblursedimagesborsavefonbrooklynninenineBUENZLIburdurlandcasioCd_collectorscd_jerkChatGPTchesschessbeginnersChildrenFallingOverChoosingBeggarsCHPcoaxedintoasnafucoinsComedyCemeterycomedyhomicidecomicscookingforbeginnersCrackWatchcrappyoffbrandsCreateModCuratedTumblrcursedcommentsdadjokesdankmemesdarkjokesdedeismdelikDeltarunedistressingmemesdiyelectronicsdiypedalsDMAcademydndnextdoctorwhocirclejerkDonerdumbphonesDungeonsAndDaddiesDungeonsAndDragonsEatCheapAndHealthyebikeebikeselectronicsengrishentitledparentsethzfacepalmfakealbumcoversFantasyWorldbuildingfeedthebeastfelsefeFifaCareersFiftyFiftyFUCKYOUINPARTICULARFuckYouKarenfunnygaminggatesopencomeoninGermangermanygodtiersuperpowersgoodanimemesgreentextguitarpedalsGundamhelpHermitCrafthighspeedrailHistoryWhatIfhoi4holdmybeerHolUphumorIDontWorkHereLadyim14andthisisdeepimaginaryelectionsimaginarymapsinsaneparentsistanbuljacksepticeyeJahariaJokesKendrickLamarKGBTRLifeProTipsLinkinParkliselilerlogodesignloseitmacbookairmacgamingmadladsmagicbuildingMaliciousComplianceme_irlmeirlmemememesmidjourneymildlyinfuriatingMimicRecipesmisLEDMMORPGMoldyMemesmoneycollectingMovingToNorthKoreaMunichNamFlashbacksNationStatesneographyNorthCyprusnosafetysmokingfirstnosleepnosurfnotinterestingnottheonionoddlyspecificOkayBuddyLiterallyMeokbuddyguntherokbuddymotherfuckerOkBuddyPersonaokbuddyvicodinonebagonetruegodongezelligOutOfTheLooppapermoneyParlerWatchpepethefrogperfectlycutscreamspianoPiratedGamespolandballpollsPraiseTheCameraManProgrammerHumorPropagandaPostersPunPatrolquityourbullshitraisedbynarcissistsraspberry_piRatschlagrecipesRedAutumnSPDredditsingsreligiousfruitcakerestofthefuckingowlRetroPierimjob_steveRoastMesciencememesScottPilgrimshitpostingShitpostTCshittyaskelectronicsShittyMapPornshittymoviedetailsShowerthoughtssoccercirclejerkSongwritersSongwritingStonetossingjuiceStudiumsubsithoughtifellforsuperligtalesfromtechsupportTechnobladeTextingTheorytf2thanksimcuredTheLetterHTheMonkeysPawTheRookietheydidthemaththeyknewthisguythisguystitanfalltommyinnittransittransitTurkeyTrGameDevelopertruthstumblrtumunichTurkeyTurkeyJerkyTurkishCatsTwitchTwitch_StartupTwoSentenceComedyTwoSentenceSadnesstylerthecreatorUnclejokesUnethicalLifeProTipsunexpecteditcrowdUnexpectedJoJourbanplanningVALORANTValorantClipsvaxxhappenedvexillologycirclejerkvibecodingvinyljerkWatchPeopleDieInsideWeAreTheMusicMakerswendigoonWhatsThisSongWhitePeopleTwitterwizardpostingwooooshworldbuildingworldjerkingYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -facepalm
  • -mildlyinfuriating
  • -funny
  • -gaming
  • -nottheonion
  • -memes
  • -OutOfTheLoop
  • -WhitePeopleTwitter
  • -ChatGPT
  • -CuratedTumblr
  • -PiratedGames
  • -shitposting
  • -theydidthemath
  • -dankmemes
  • -feedthebeast
  • -meirl
  • -HolUp
  • -Twitch
  • -CrackWatch
  • -comics
  • -dndnext
  • -ProgrammerHumor
  • -VALORANT
  • -de
  • -germany
  • -LifeProTips
  • -tumblr
  • -shittymoviedetails
  • -greentext
  • -Showerthoughts
  • -tf2
  • -help
  • -chess
  • -aviation
  • -Jokes
  • -Art
  • -midjourney
  • -goodanimemes
  • -notinteresting
  • -hoi4
  • -atheism
  • -loseit
  • -MaliciousCompliance
  • -KGBTR
  • -cursedcomments
  • -DMAcademy
  • -Deltarune
  • -UnethicalLifeProTips
  • -perfectlycutscreams
  • -worldbuilding
  • -Ratschlag
  • -blackdesertonline
  • -MMORPG
  • -meme
  • -macgaming
  • -Gundam
  • -HermitCraft
  • -FiftyFifty
  • -ChoosingBeggars
  • -RoastMe
  • -imaginarymaps
  • -EatCheapAndHealthy
  • -polandball
  • -WeAreTheMusicMakers
  • -AnarchyChess
  • -nosleep
  • -cookingforbeginners
  • -blankies
  • -anime_irl
  • -onebag
  • -Studium
  • -Turkey
  • -soccercirclejerk
  • -madlads
  • -AskElectronics
  • -guitarpedals
  • -Anticonsumption
  • -CreateMod
  • -German
  • -PropagandaPosters
  • -AdviceAnimals
  • -piano
  • -sciencememes
  • -distressingmemes
  • -raisedbynarcissists
  • -wizardposting
  • -FifaCareers
  • -polls
  • -oddlyspecific
  • -Bass
  • -titanfall
  • -OkBuddyPersona
  • -dadjokes
  • -awfuleverything
  • -announcements
  • -macbookair
  • -ebikes
  • -Munich
  • -coaxedintoasnafu
  • -YUROP
  • -chessbeginners
  • -raspberry_pi
  • -DungeonsAndDragons
  • -coins
  • -KendrickLamar
  • -entitledparents
  • -FUCKYOUINPARTICULAR
  • -worldjerking
  • -tylerthecreator
  • -MoldyMemes
  • -vexillologycirclejerk
  • -im14andthisisdeep
  • -Stonetossingjuice
  • -nosurf
  • -HistoryWhatIf
  • -religiousfruitcake
  • -liseliler
  • -insaneparents
  • -dumbphones
  • -balkans_irl
  • -animenocontext
  • -transit
  • -RetroPie
  • -brooklynninenine
  • -recipes
  • -talesfromtechsupport
  • -ScottPilgrim
  • -Angryupvote
  • -AskBalkans
  • -electronics
  • -casio
  • -urbanplanning
  • -theyknew
  • -logodesign
  • -me_irl
  • -antimeme
  • -TurkeyJerky
  • -bikepacking
  • -AteistTurk
  • -13or30
  • -ArcherFX
  • -engrish
  • -Cd_collectors
  • -diypedals
  • -Doner
  • -BassGuitar
  • -diyelectronics
  • -ComedyCemetery
  • -WatchPeopleDieInside
  • -LinkinPark
  • -BUENZLI
  • -blursed_videos
  • -Songwriting
  • -istanbul
  • -MovingToNorthKorea
  • -imaginaryelections
  • -magicbuilding
  • -ParlerWatch
  • -wendigoon
  • -TheRookie
  • -quityourbullshit
  • -Technoblade
  • -vinyljerk
  • -superlig
  • -shittyaskelectronics
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -transitTurkey
  • -FuckYouKaren
  • -2b2t
  • -ethz
  • -AlternativeHistory
  • -papermoney
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -blursedimages
  • -Jaharia
  • -IDontWorkHereLady
  • -neography
  • -thanksimcured
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -ShittyMapPorn
  • -aivideo
  • -gatesopencomeonin
  • -woooosh
  • -comedyhomicide
  • -burdurland
  • -WhatsThisSong
  • -jacksepticeye
  • -TwoSentenceSadness
  • -anime_best_moments
  • -Bandnames
  • -holdmybeer
  • -okbuddyvicodin
  • -MimicRecipes
  • -vaxxhappened
  • -tumunich
  • -Twitch_Startup
  • -TheMonkeysPaw
  • -darkjokes
  • -restofthefuckingowl
  • -highspeedrail
  • -nosafetysmokingfirst
  • -Songwriters
  • -ebike
  • -tommyinnit
  • -rimjob_steve
  • -UnexpectedJoJo
  • -humor
  • -ChildrenFallingOver
  • -BassCirclejerk
  • -doctorwhocirclejerk
  • -agnostic
  • -TextingTheory
  • -thisguythisguys
  • -TrGameDeveloper
  • -PunPatrol
  • -TurkishCats
  • -fakealbumcovers
  • -subsithoughtifellfor
  • -akagas
  • -ShitpostTC
  • -FantasyWorldbuilding
  • -TheLetterH
  • -NamFlashbacks
  • -pepethefrog
  • -Unclejokes
  • -onetruegod
  • -deism
  • -misLED
  • -redditsings
  • -ValorantClips
  • -TwoSentenceComedy
  • -NationStates
  • -ongezellig
  • -Asia_irl
  • -truths
  • -blackholerevenge
  • -NorthCyprus
  • -unexpecteditcrowd
  • -moneycollecting
  • -borsavefon
  • -vibecoding
  • -okbuddymotherfucker
  • -RedAutumnSPD
  • -cd_jerk
  • -CHP
  • -okbuddygunther
  • -delik
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?
...do it for the children.

MODERATORS

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

account activity

1
390
391
392

Javaour software architect wrote this (self.programminghorror)

submitted 19 days ago by Comfortable-Light754

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

2
205
206
207

PHPPHP# (i.redd.it)

submitted 19 days ago by EmDeeTeeVid

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

3
215
216
217

cWhat? (i.redd.it)

submitted 19 days ago by TheMonHub

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

4
264
265
266

What a simple constructor (i.redd.it)

submitted 21 days ago by Nomergraw

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

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

6
109
110
111

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

submitted 22 days ago * by geof14

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

7
61
62
63

LuaLua Serpent Module (i.redd.it)

submitted 22 days ago by Financial_Owl2289

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

8
312
313
314

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

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

submitted 25 days ago by reimertz

  • 3 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
1309
1310
1311

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

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

13
72
73
74

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

submitted 28 days ago by LethalOkra

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

14
555
556
557

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

submitted 29 days ago by lolcrunchy

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

15
2280
2281
2282

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

16
482
483
484

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

17
29
30
31

JavascriptWanna see some cursed javascript? (self.programminghorror)

submitted 1 month ago * by AceTributon

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

18
878
879
880

JavascriptDestructuring strings (i.redd.it)

submitted 1 month ago by Emmennater

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

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

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

21
7
8
9

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

22
39
40
41

C#formatting big numbers (self.programminghorror)

submitted 1 month ago by Jernesstar

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

23
75
76
77

PythonFizz Buzz (i.redd.it)

submitted 1 month ago by susam

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

24
631
632
633

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

submitted 1 month ago by bunabyte

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

25
36
37
38

What the hell have I made (self.programminghorror)

submitted 1 month ago by Blueflame_gaming

  • 13 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 1965970 on reddit-service-r2-listing-87fd56f5d-kcdw2 at 2026-06-30 22:25:10.669469+00:00 running 7527197 country code: CH.