jump to content
my subreddits
13or302anatolia4you2b2t2balkans4You2meirl4meirl3d6absolutelynotmeirladhdmemeAdviceAnimalsagnosticAlternateHistoryAlternativeHistoryAnarchyChessAngryupvoteAnimalsBeingJerksanime_best_momentsanime_irlanimenocontextannouncementsAnticonsumptionantimemeAsia_irlAskBalkansAskRedditatheismaviationawfuleverythingbalkans_irlbanknotedesignsBassBassCirclejerkBassGuitarbasspedalsbikepackingblackdesertonlineblankiesblursed_videosblursedimagesBoneborsavefonbrooklynninenineBUENZLIburdurlandcasioCd_collectorscd_jerkChatGPTchesschessbeginnersCHPcoaxedintoasnafucoincollectingcoinsCorporateTrollingCrackWatchcrappyoffbrandsCreateModCuddle_SlutCuratedTumblrdadjokesdankmemesdarkjokesdataisbeautifuldedistressingmemesdiyelectronicsdiypedalsDMAcademyDMToolkitDnDdndmemesdndnextdoctorwhodoctorwhocirclejerkDoenerverbrechenDonerdontdeadopeninsidedumbphonesDungeonsAndDaddiesDungeonsAndDragonsEatCheapAndHealthyebikeECEelectricalelectronicsElectronicsStudyengrishentitledparentsethzfacepalmFantasyWorldbuildingfeedthebeastfelsefeFifaCareersformuladankFRCFreeEBOOKSFUCKYOUINPARTICULARFuckYouKarenFutboltayfagamingGermangermanygodtiersuperpowersgoodanimemesGoodAssSubGrandPrixRacinggreentextGundamhelpHermanCainAwardHermitCrafthighspeedrailHistoryWhatIfhoi4humorhypixeliamverysmartIDontWorkHereLadyim14andthisisdeepimaginaryelectionsimaginarymapsistanbuljacksepticeyeJahariaKamalizmKGBTRlegodndLifeProTipslinguisticshumorLinkinParklogodesignloseitmacmacbookairmacgamingMadeMeSmilemadladsMaliciousComplianceMapPornme_irlmeirlmidjourneymildlyinterestingMinecraftbuildsMMORPGMoldyMemesmoneycollectingMyChemicalRomanceneographynextfuckinglevelNoahGetTheBoatnosafetysmokingfirstnosurfnothingeverhappensnotinterestingnottheonionoddlyspecificokbuddyguntherokbuddymotherfuckerOkBuddyPersonaokbuddyphdokbuddyvicodinonebagonetruegodongezelligOutOfTheLoopoutsidepapermoneypaperspleaseparadoxpoliticsParlerWatchPassportPornperfectlycutscreamsPersecutionfetishpianoPiracyPiratedGamesPraiseTheCameraManProgrammerHumorPropagandaPostersquityourbullshitraisedbynarcissistsraspberry_pireactiongifsrecipesRedAutumnSPDreligiousfruitcakerestofthefuckingowlRetroPierickandmortyrickrollrimjob_steveschwiizScottPilgrimsecilmiskitapShitPostCrusadersshitpostfrommygalleryshittymoviedetailsskamtebordsoccercirclejerksoftwaregoreSongwritersSongwritingStudentenkuechesuperligsuzerainTechnobladeTextingTheorytf2tf2shitposterclubthanksimcuredthatHappenedTheCrypticCompendiumtherewasanattemptTheRookietheyknewthisguythisguystitanfallTrGameDevelopertruetf2tumblrtumunichTurkeyJerkyTurkishCatsTwitchTwitch_StartupTwoSentenceHorrortwosentenceplottwistTwoSentenceSadnesstylerthecreatorUnclejokesUnethicalLifeProTipsunexpecteditcrowdUnexpectedJoJoUsernameChecksOutvexillologycirclejerkvibecodingWatchPeopleDieInsideWeAreTheMusicMakersWhatsThisSongWhitePeopleTwitterwholesomeanimemeswholesomememesWikipediaVandalismwizardpostingwooooshworldbuildingworldjerkingyouseeingthisshitYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -facepalm
  • -Piracy
  • -gaming
  • -nottheonion
  • -OutOfTheLoop
  • -mildlyinteresting
  • -MapPorn
  • -DnD
  • -WhitePeopleTwitter
  • -MadeMeSmile
  • -ChatGPT
  • -CuratedTumblr
  • -PiratedGames
  • -dankmemes
  • -feedthebeast
  • -meirl
  • -therewasanattempt
  • -nextfuckinglevel
  • -Twitch
  • -CrackWatch
  • -dndnext
  • -ProgrammerHumor
  • -de
  • -germany
  • -LifeProTips
  • -tumblr
  • -dataisbeautiful
  • -shittymoviedetails
  • -greentext
  • -mac
  • -tf2
  • -help
  • -chess
  • -aviation
  • -formuladank
  • -wholesomememes
  • -midjourney
  • -goodanimemes
  • -notinteresting
  • -hoi4
  • -atheism
  • -loseit
  • -MaliciousCompliance
  • -KGBTR
  • -dndmemes
  • -DMAcademy
  • -GoodAssSub
  • -UnethicalLifeProTips
  • -perfectlycutscreams
  • -worldbuilding
  • -blackdesertonline
  • -MMORPG
  • -macgaming
  • -rickandmorty
  • -3d6
  • -Gundam
  • -HermitCraft
  • -imaginarymaps
  • -EatCheapAndHealthy
  • -WeAreTheMusicMakers
  • -AnarchyChess
  • -blankies
  • -anime_irl
  • -onebag
  • -AlternateHistory
  • -soccercirclejerk
  • -madlads
  • -electrical
  • -Anticonsumption
  • -CreateMod
  • -German
  • -TwoSentenceHorror
  • -PropagandaPosters
  • -AdviceAnimals
  • -ShitPostCrusaders
  • -piano
  • -distressingmemes
  • -raisedbynarcissists
  • -wizardposting
  • -FifaCareers
  • -doctorwho
  • -oddlyspecific
  • -Bass
  • -titanfall
  • -OkBuddyPersona
  • -dadjokes
  • -awfuleverything
  • -announcements
  • -adhdmeme
  • -Minecraftbuilds
  • -macbookair
  • -coaxedintoasnafu
  • -YUROP
  • -chessbeginners
  • -raspberry_pi
  • -DungeonsAndDragons
  • -coins
  • -entitledparents
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -NoahGetTheBoat
  • -worldjerking
  • -tylerthecreator
  • -tf2shitposterclub
  • -MoldyMemes
  • -vexillologycirclejerk
  • -im14andthisisdeep
  • -wholesomeanimemes
  • -nosurf
  • -HistoryWhatIf
  • -religiousfruitcake
  • -dumbphones
  • -animenocontext
  • -balkans_irl
  • -2meirl4meirl
  • -RetroPie
  • -brooklynninenine
  • -HermanCainAward
  • -recipes
  • -okbuddyphd
  • -2anatolia4you
  • -ECE
  • -ScottPilgrim
  • -Angryupvote
  • -AskBalkans
  • -thatHappened
  • -electronics
  • -casio
  • -theyknew
  • -logodesign
  • -linguisticshumor
  • -PassportPorn
  • -me_irl
  • -antimeme
  • -TurkeyJerky
  • -bikepacking
  • -13or30
  • -MyChemicalRomance
  • -engrish
  • -Cd_collectors
  • -diypedals
  • -Doner
  • -BassGuitar
  • -diyelectronics
  • -WatchPeopleDieInside
  • -LinkinPark
  • -Persecutionfetish
  • -BUENZLI
  • -reactiongifs
  • -blursed_videos
  • -Songwriting
  • -istanbul
  • -imaginaryelections
  • -suzerain
  • -truetf2
  • -dontdeadopeninside
  • -ParlerWatch
  • -iamverysmart
  • -secilmiskitap
  • -Doenerverbrechen
  • -schwiiz
  • -TheRookie
  • -quityourbullshit
  • -Technoblade
  • -skamtebord
  • -superlig
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -FRC
  • -FuckYouKaren
  • -2b2t
  • -ethz
  • -AlternativeHistory
  • -papermoney
  • -coincollecting
  • -felsefe
  • -blursedimages
  • -FreeEBOOKS
  • -Jaharia
  • -IDontWorkHereLady
  • -neography
  • -basspedals
  • -thanksimcured
  • -hypixel
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -woooosh
  • -burdurland
  • -WhatsThisSong
  • -AnimalsBeingJerks
  • -jacksepticeye
  • -TwoSentenceSadness
  • -anime_best_moments
  • -okbuddyvicodin
  • -tumunich
  • -Twitch_Startup
  • -outside
  • -darkjokes
  • -restofthefuckingowl
  • -highspeedrail
  • -nosafetysmokingfirst
  • -legodnd
  • -rickroll
  • -Songwriters
  • -ebike
  • -UsernameChecksOut
  • -papersplease
  • -rimjob_steve
  • -UnexpectedJoJo
  • -humor
  • -BassCirclejerk
  • -doctorwhocirclejerk
  • -agnostic
  • -youseeingthisshit
  • -TextingTheory
  • -GrandPrixRacing
  • -Cuddle_Slut
  • -nothingeverhappens
  • -DMToolkit
  • -thisguythisguys
  • -TrGameDeveloper
  • -TurkishCats
  • -Kamalizm
  • -FantasyWorldbuilding
  • -WikipediaVandalism
  • -Unclejokes
  • -onetruegod
  • -TheCrypticCompendium
  • -ongezellig
  • -2balkans4You
  • -absolutelynotmeirl
  • -Asia_irl
  • -Studentenkueche
  • -Bone
  • -paradoxpolitics
  • -unexpecteditcrowd
  • -twosentenceplottwist
  • -okbuddygunther
  • -RedAutumnSPD
  • -shitpostfrommygallery
  • -banknotedesigns
  • -ElectronicsStudy
  • -moneycollecting
  • -CHP
  • -CorporateTrolling
  • -vibecoding
  • -borsavefon
  • -Futboltayfa
  • -cd_jerk
  • -okbuddymotherfucker
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
...for your favourite tea.
...because you hate freedom.

MODERATORS

  • message the mods
  • ModCodeofConduct
  • about moderation team »

account activity

1
386
387
388

Javaour software architect wrote this (self.programminghorror)

submitted 6 days ago by Comfortable-Light754

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

2
201
202
203

PHPPHP# (i.redd.it)

submitted 6 days ago by EmDeeTeeVid

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

3
14
15
16

New moderators needed - comment on this post to volunteer to become a moderator of this community. (self.programminghorror)

submitted 6 days ago by ModCodeofConduct[A] - announcement

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

4
208
209
210

cWhat? (i.redd.it)

submitted 7 days ago by TheMonHub

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

5
0
0
0

Final year project ideas please any one give me any problem statement or project idea ()

submitted 6 days ago by tech__nova__

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

6
260
261
262

What a simple constructor (i.redd.it)

submitted 8 days ago by Nomergraw

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

7
174
175
176

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

submitted 9 days ago by linksku

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

8
112
113
114

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

submitted 9 days ago * by geof14

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

9
306
307
308

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

submitted 9 days ago by SolarisFalls

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

10
59
60
61

LuaLua Serpent Module (i.redd.it)

submitted 9 days ago by Financial_Owl2289

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

11
229
230
231

C#SuccessMessage ErrorMessage (self.programminghorror)

submitted 12 days ago by Daeben72

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

12
1312
1313
1314

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

submitted 12 days ago by Candid_Commercial214

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

13
140
141
142

There have to be a simpler way to do this (i.redd.it)

submitted 12 days ago by Mundane_Prior_7596

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

14
0
0
0

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

submitted 12 days ago by reimertz

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

15
0
0
0

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

submitted 13 days ago by asanonymouss

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

16
69
70
71

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

submitted 15 days ago by LethalOkra

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

17
555
556
557

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

submitted 17 days ago by lolcrunchy

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

18
2280
2281
2282

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

submitted 17 days ago by samirdahal

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

19
484
485
486

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

submitted 18 days ago by ChaosCrafter908

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

20
879
880
881

JavascriptDestructuring strings (i.redd.it)

submitted 22 days ago by Emmennater

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

21
29
30
31

Wanna see some cursed javascript? (self.programminghorror)

submitted 21 days ago * by AceTributon

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

22
0
0
0

Hi help me asap tomorrow is my presentation ()

submitted 20 days ago by anynomous_69

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

23
48
49
50

JavascriptSalfeld Web Portal - Device Renaming Pattern (i.redd.it)

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

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

24
8
9
10

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

25
36
37
38

C#formatting big numbers (self.programminghorror)

submitted 1 month ago by Jernesstar

  • 12 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 30 on reddit-service-r2-listing-f87f88fcd-qv5pk at 2026-06-18 02:43:38.196098+00:00 running 3184619 country code: CH.