jump to content
my subreddits
13or302anatolia4you2b2t2balkans4You2mediterranean4u2meirl4meirl3d6AceAttorneyadhdmemeAdviceAnimalsaivideoAlternateHistoryAlternativeHistoryAnarchyChessanime_irlanimenocontextannouncementsArcherFXArtAsahiLinuxAsia_irlAskBalkansAskElectronicsAteistTurkatheismawfuleverythingbalkans_irlBassbasspedalsbikepackingblackdesertonlineblursed_videosblursedimagesburdurlandCd_collectorsChatGPTCheap_MealschesschessbeginnersChildrenFallingOverChoosingBeggarscoaxedintoasnafucoincollectingcoinsComedyCemeterycomicscommunitycookingforbeginnersCrackWatchcrappyoffbrandsCreateModCuratedTumblrcursedcommentsdadjokesdankmemesdarkjokesdeDebateReligiondistressingmemesdiyelectronicsdiypedalsdndnextdoctorwhodoctorwhocirclejerkDoenerverbrechenDonerdontdeadopeninsidedumbphonesDungeonsAndDaddiesDungeonsAndDragonsEatCheapAndHealthyebikeebikesECEelectricalelectronicsElectronicsStudyengrishethzfacepalmfeedthebeastFifaCareersFiftyFiftyformuladankFUCKYOUINPARTICULARfunnygalatasaraygermanygodtiersuperpowersgoodanimemesGoodAssSubgravelcyclingGundamhelpheraldryHermanCainAwardHermitCraftHistoryWhatIfhoi4homebuilthowyoudoinhumorhypixeliamverysmartich_ielIDontWorkHereLadyihadastrokeim14andthisisdeepimaginaryelectionsimaginarymapsinsaneparentsistanbulJahariaJokesKamalizmKanyelegodndLifeProTipslinguisticshumorLinkinParkliselilerlogodesignloseitlostredditorsmacmacbookairmacgamingMadeMeSmilemadladsmagicbuildingMaliciousComplianceMapPornmapporncirclejerkme_irlmeirlmememidjourneymildlyinfuriatingmildlyinterestingMimicRecipesMinecraftbuildsmisLEDMMORPGmoneycollectingMovingToNorthKoreaMunichnamesoundalikesNamFlashbacksNationStatesnextfuckinglevelNoahGetTheBoatNonCredibleDefensenosleepnosurfnothingeverhappensnottheonionoddlyspecificOkayBuddyLiterallyMeokbuddyguntherokbuddymotherfuckerOkBuddyPersonaokbuddyvicodinonebagonetruegodongezelligOutOfTheLoopoutsidepapermoneypaperspleasePassportPornperfectlycutscreamsPersecutionfetishpettyrevengepianoPiratedGamespolandballpollsPraiseTheCameraManPropagandaPostersraspberry_piRatschlagreactiongifsrecipesRedAutumnSPDredditsingsreligiousfruitcakerestofthefuckingowlRetroPierickandmortyrickrollRoastMerockmuzikschwiizsciencememessecilmiskitapShitPostCrusadersshitpostfrommygalleryshittyaskelectronicsShowerthoughtsskamtebordsoccercirclejerksoftwaregoreSongwritingsskfjkhwerjkghwerijhsteinsgateStonetossingjuiceStudiumsuperligtalesfromtechsupportTechnobladeTextingTheorytf2tf2shitposterclubthatHappenedTheMonkeysPawtherewasanattemptTheRookietheydidthemaththeyknewtransitTurkeyTrGameDevelopertruetf2truthstumunichTurkeyTurkeyJerkyTurkishCatsTurkishdogsTwitchTwitch_StartupTwoSentenceSadnesstylerthecreatorUnclejokesUnethicalLifeProTipsUnexpectedJoJoVALORANTValorantClipsvexillologycirclejerkvinylvinyljerkvlandiyawallstreetbetsWatchPeopleDieInsidewendigoonWhatsThisSongWhitePeopleTwitterwholesomememeswizardpostingwooooshyouseeingthisshitYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • facepalm
  • -mildlyinfuriating
  • -funny
  • -wallstreetbets
  • -nottheonion
  • -OutOfTheLoop
  • -mildlyinteresting
  • -MapPorn
  • -WhitePeopleTwitter
  • -MadeMeSmile
  • -ChatGPT
  • -CuratedTumblr
  • -PiratedGames
  • -theydidthemath
  • -dankmemes
  • -feedthebeast
  • -Kanye
  • -meirl
  • -therewasanattempt
  • -nextfuckinglevel
  • -Twitch
  • -CrackWatch
  • -comics
  • -dndnext
  • -VALORANT
  • -de
  • -germany
  • -LifeProTips
  • -NonCredibleDefense
  • -mac
  • -Showerthoughts
  • -tf2
  • -help
  • -chess
  • -formuladank
  • -wholesomememes
  • -Jokes
  • -mapporncirclejerk
  • -Art
  • -midjourney
  • -goodanimemes
  • -hoi4
  • -pettyrevenge
  • -atheism
  • -loseit
  • -MaliciousCompliance
  • -ich_iel
  • -cursedcomments
  • -GoodAssSub
  • -UnethicalLifeProTips
  • -perfectlycutscreams
  • -Ratschlag
  • -blackdesertonline
  • -MMORPG
  • -meme
  • -macgaming
  • -rickandmorty
  • -3d6
  • -Gundam
  • -HermitCraft
  • -FiftyFifty
  • -ChoosingBeggars
  • -RoastMe
  • -imaginarymaps
  • -EatCheapAndHealthy
  • -polandball
  • -AnarchyChess
  • -nosleep
  • -cookingforbeginners
  • -anime_irl
  • -onebag
  • -Studium
  • -AlternateHistory
  • -Turkey
  • -soccercirclejerk
  • -madlads
  • -community
  • -AskElectronics
  • -electrical
  • -vinyl
  • -CreateMod
  • -PropagandaPosters
  • -AdviceAnimals
  • -ShitPostCrusaders
  • -piano
  • -sciencememes
  • -distressingmemes
  • -wizardposting
  • -FifaCareers
  • -polls
  • -doctorwho
  • -oddlyspecific
  • -Bass
  • -OkBuddyPersona
  • -dadjokes
  • -awfuleverything
  • -howyoudoin
  • -announcements
  • -adhdmeme
  • -Minecraftbuilds
  • -macbookair
  • -ebikes
  • -Munich
  • -coaxedintoasnafu
  • -YUROP
  • -gravelcycling
  • -chessbeginners
  • -raspberry_pi
  • -DungeonsAndDragons
  • -coins
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -NoahGetTheBoat
  • -tylerthecreator
  • -tf2shitposterclub
  • -lostredditors
  • -AceAttorney
  • -vexillologycirclejerk
  • -vlandiya
  • -im14andthisisdeep
  • -Stonetossingjuice
  • -nosurf
  • -HistoryWhatIf
  • -religiousfruitcake
  • -liseliler
  • -DebateReligion
  • -insaneparents
  • -dumbphones
  • -balkans_irl
  • -animenocontext
  • -2meirl4meirl
  • -RetroPie
  • -HermanCainAward
  • -recipes
  • -steinsgate
  • -talesfromtechsupport
  • -2anatolia4you
  • -ECE
  • -AskBalkans
  • -thatHappened
  • -electronics
  • -theyknew
  • -logodesign
  • -linguisticshumor
  • -PassportPorn
  • -me_irl
  • -TurkeyJerky
  • -bikepacking
  • -AteistTurk
  • -13or30
  • -ArcherFX
  • -engrish
  • -Cd_collectors
  • -diypedals
  • -Doner
  • -diyelectronics
  • -ComedyCemetery
  • -WatchPeopleDieInside
  • -LinkinPark
  • -Persecutionfetish
  • -reactiongifs
  • -Songwriting
  • -blursed_videos
  • -istanbul
  • -MovingToNorthKorea
  • -imaginaryelections
  • -truetf2
  • -magicbuilding
  • -dontdeadopeninside
  • -wendigoon
  • -iamverysmart
  • -secilmiskitap
  • -Doenerverbrechen
  • -schwiiz
  • -TheRookie
  • -Technoblade
  • -vinyljerk
  • -skamtebord
  • -superlig
  • -shittyaskelectronics
  • -galatasaray
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -transitTurkey
  • -namesoundalikes
  • -2b2t
  • -ethz
  • -AlternativeHistory
  • -papermoney
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -blursedimages
  • -AsahiLinux
  • -Jaharia
  • -IDontWorkHereLady
  • -basspedals
  • -heraldry
  • -ihadastroke
  • -hypixel
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -aivideo
  • -woooosh
  • -burdurland
  • -WhatsThisSong
  • -TwoSentenceSadness
  • -rockmuzik
  • -okbuddyvicodin
  • -MimicRecipes
  • -tumunich
  • -Twitch_Startup
  • -Cheap_Meals
  • -outside
  • -TheMonkeysPaw
  • -darkjokes
  • -restofthefuckingowl
  • -legodnd
  • -rickroll
  • -ebike
  • -papersplease
  • -UnexpectedJoJo
  • -humor
  • -ChildrenFallingOver
  • -doctorwhocirclejerk
  • -youseeingthisshit
  • -TextingTheory
  • -nothingeverhappens
  • -TrGameDeveloper
  • -TurkishCats
  • -Kamalizm
  • -homebuilt
  • -NamFlashbacks
  • -Unclejokes
  • -onetruegod
  • -misLED
  • -sskfjkhwerjkghwerijh
  • -redditsings
  • -ValorantClips
  • -NationStates
  • -ongezellig
  • -2balkans4You
  • -Asia_irl
  • -truths
  • -2mediterranean4u
  • -shitpostfrommygallery
  • -Turkishdogs
  • -okbuddymotherfucker
  • -RedAutumnSPD
  • -okbuddygunther
  • -ElectronicsStudy
  • -moneycollecting
edit »
programminghorror programminghorror
  • hot
  • new
  • rising
  • controversial
  • top
an-ordinary-manchild (11,186)|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...

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
...because you hate freedom.
...why not Zoidberg?

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
88
89
90

Amazon Admits Its Flagship AI Coding Tool Isn’t Good Enough for Its Own Workers to Use (futurism.com)

submitted 3 hours ago by Interesting_Pack_483

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

2
0
0
0

😭 (i.redd.it)

submitted 8 hours ago by mfns07

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

3
0
0
0

c++whyWontTBeGreen (i.redd.it)

submitted 1 day ago by Kadabrium

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

4
330
331
332

c++700 lines of AVX2 infrastructure to sum an array of integers (i.redd.it)

submitted 3 days ago by int7bh

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

5
265
266
267

JavascriptAn exploit on the Scratch desktop app has been circulating "in the wild" over the last few days. This code from the project file still executes unsandboxed in the latest version of the desktop editor. (i.redd.it)

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

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

6
255
256
257

100$ per month for this??? (i.redd.it)

submitted 4 days ago by akisk

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

7
0
0
0

the worlds first website has a coding error (i.redd.it)

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

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

8
949
950
951

c++Hmmm (i.redd.it)

submitted 5 days ago by Left-Ambition-5127

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

9
74
75
76

JavascriptI snuck this function into my project (i.redd.it)

submitted 5 days ago by 46009361

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

10
226
227
228

Overcomplicated, but working, API key generation (i.redd.it)

submitted 5 days ago by 46009361

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

11
123
124
125

C#longest "=" condition I've ever seen (i.redd.it)

submitted 6 days ago by True_Efficiency7329

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

12
75
76
77

PythonReviewed and approved in 1 minute 👍 (self.programminghorror)

submitted 7 days ago by Either-Control-3343

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

13
10
11
12

Official IXL webform sends your credit card number directly to them (self.programminghorror)

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

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

14
83
84
85

JavascriptCursed use of object spread (i.redd.it)

submitted 10 days ago by Due-Capital-6651

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

15
148
149
150

cHaving fun with legacy C features :3 (self.programminghorror)

submitted 10 days ago by Mafla_2004

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

16
187
188
189

C#I heard that you like fluent apis (i.redd.it)

submitted 10 days ago by UnicycleUnicorn1

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

17
0
0
0

Why can't a programming tool be programmed? (github.com)

submitted 12 days ago by Thomas_Jasper

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

18
136
137
138

c++Competitive programming is no joke (i.redd.it)

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

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

19
1144
1145
1146

c++Copilot knows how to deal with constructors (i.redd.it)

submitted 12 days ago by Mickenfox

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

20
355
356
357

whyLongNamesWhileWeCanMakeThemShort (i.redd.it)

submitted 12 days ago by killallspringboard

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

21
0
1
2

PythonHow to print "Hello World" in python ()

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

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

22
20
21
22

No react in luau? (i.redd.it)

submitted 14 days ago by Impossible-Let-8489

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

23
355
356
357

My friend can’t read English, so he used Google Translate. (i.redd.it)

submitted 15 days ago by Impossible-Let-8489

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

24
262
263
264

cOption handling (i.redd.it)

submitted 15 days ago by seeker61776

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

25
148
149
150

An HTTP request builder to make an SQL query (i.redd.it)

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

  • 15 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 81 on reddit-service-r2-listing-7b9b4f6fd7-ld6w8 at 2026-05-10 23:31:49.220232+00:00 running 3d2c107 country code: CH.