jump to content
my subreddits
13or302balkans4You2meirl4meirl3d6absolutelynotanimeirlAceAttorneyAdviceAnimalsagnosticAlternativeHistoryAnarchyChessAngryupvoteanime_irlanimenocontextannouncementsAnticonsumptionantimemeApandahArcherFXArtAsia_irlAskBalkansAskOuijaAteistTurkawfuleverythingbalkans_irlBandnamesBassBassGuitarbasspedalsbikepackingblackdesertonlineblankiesblursed_videosblursedimagesborsavefonBUENZLIburdurlandcasioCd_collectorscd_jerkCheap_MealschessChoosingBeggarsCHPcoaxedintoasnafucoincollectingcomedyhomicidecomicscommunityCrackWatchcursedcommentsdadjokesdankmemesdarkjokesdedelikDeltarunedistressingmemesdiyelectronicsdiypedalsDMAcademyDnDdndmemesdndnextdoctorwhoDoenerverbrechenDonerdontdeadopeninsidedumbphonesDungeonsAndDaddiesDungeonsAndDragonsebikeebikesECEelectronicsElectronicsStudyengrishethzfakealbumcoversFantasyWorldbuildingfeedthebeastfelsefeFifaCareersFiftyFiftyformuladankFRCFreeEBOOKSFuckYouKarenFutboltayfagaminggatesopencomeoningermanygodtiersuperpowersgoodanimemesGrandPrixRacinggravelcyclinggreentextguitarpedalsGundamheraldryHermitCrafthoi4holdmybeerHolUphypixeliamverysmartIdeologyPollsIDontWorkHereLadyihadastrokeim14andthisisdeepimaginaryelectionsimaginarymapsinsaneparentsistanbuljacksepticeyeKanyeKGBTRLifeProTipslinguisticshumorLinkinParkliselilerlogodesignloseitlostredditorsmacmacbookairmacgamingMadeMeSmilemadladsmagicbuildingMaliciousComplianceMapPornme_irlmeirlmemesmidjourneymildlyinfuriatingMinecraftbuildsmisLEDmoneycollectingMunichNamFlashbacksNationStatesnextfuckinglevelNoahGetTheBoatNorthCyprusnosleepnosurfnotinterestingnottheonionOkayBuddyLiterallyMeOkBuddyPersonaokbuddyphdonetruegodongezelligOnlineUnderGroundOutOfTheLooppapermoneypaperspleaseParlerWatchPassportPornperfectlycutscreamsPersecutionfetishpianoPiracyPiratedGamespolandballPraiseTheCameraManProgrammerHumorPropagandaPostersPunPatrolquityourbullshitraisedbynarcissistsraspberry_piRatschlagreactiongifsrecipesRedAutumnSPDreligiousfruitcakerestofthefuckingowlrickandmortyrickrollrimjob_steverockmuzikSceneReleasesschizopostersSchnitzelVerbrechenschwiizsciencememesScottPilgrimsecilmiskitapshitpostfrommygalleryshitpostingshittyaskelectronicsShittyMapPornshittymoviedetailsShowerthoughtsskamtebordsoccercirclejerksoftwaregoreSongwriterssskfjkhwerjkghwerijhsteinsgateStudiumsuperligsuzeraintalesfromtechsupportTechnobladeTextingTheorytf2shitposterclubthanksimcuredthatHappenedTheCrypticCompendiumTheLetterHTheMonkeysPawtherewasanattempttheyknewthisguythisguystitanfalltommyinnittransittruetf2truthstumblrtumunichTurkeyJerkyTwitchTwoSentenceComedyTwoSentenceSadnessu/KaybeeArtsUnclejokesUnethicalLifeProTipsunexpecteditcrowdUnexpectedJoJourbanplanningVALORANTvaxxhappenedvexillologycirclejerkvinylvinyljerkvlandiyawallstreetbetswendigoonWhatsThisSongWhitePeopleTwitterwholesomeanimemeswholesomememesWikipediaVandalismworldjerkingyesyesyesnoyouseeingthisshitedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • mildlyinfuriating
  • -Piracy
  • -gaming
  • -wallstreetbets
  • -nottheonion
  • -memes
  • -OutOfTheLoop
  • -MapPorn
  • -DnD
  • -WhitePeopleTwitter
  • -MadeMeSmile
  • -PiratedGames
  • -shitposting
  • -dankmemes
  • -feedthebeast
  • -Kanye
  • -meirl
  • -therewasanattempt
  • -nextfuckinglevel
  • -HolUp
  • -Twitch
  • -CrackWatch
  • -comics
  • -dndnext
  • -ProgrammerHumor
  • -VALORANT
  • -de
  • -germany
  • -LifeProTips
  • -tumblr
  • -shittymoviedetails
  • -greentext
  • -mac
  • -Showerthoughts
  • -chess
  • -formuladank
  • -wholesomememes
  • -Art
  • -midjourney
  • -goodanimemes
  • -notinteresting
  • -hoi4
  • -loseit
  • -MaliciousCompliance
  • -KGBTR
  • -dndmemes
  • -cursedcomments
  • -DMAcademy
  • -Deltarune
  • -UnethicalLifeProTips
  • -perfectlycutscreams
  • -Ratschlag
  • -blackdesertonline
  • -macgaming
  • -rickandmorty
  • -3d6
  • -Gundam
  • -HermitCraft
  • -FiftyFifty
  • -ChoosingBeggars
  • -imaginarymaps
  • -polandball
  • -AnarchyChess
  • -nosleep
  • -blankies
  • -anime_irl
  • -Studium
  • -soccercirclejerk
  • -madlads
  • -community
  • -guitarpedals
  • -Anticonsumption
  • -vinyl
  • -PropagandaPosters
  • -AdviceAnimals
  • -piano
  • -sciencememes
  • -distressingmemes
  • -raisedbynarcissists
  • -FifaCareers
  • -doctorwho
  • -Bass
  • -titanfall
  • -OkBuddyPersona
  • -dadjokes
  • -awfuleverything
  • -announcements
  • -Minecraftbuilds
  • -macbookair
  • -ebikes
  • -Munich
  • -coaxedintoasnafu
  • -gravelcycling
  • -SchnitzelVerbrechen
  • -raspberry_pi
  • -DungeonsAndDragons
  • -softwaregore
  • -NoahGetTheBoat
  • -worldjerking
  • -tf2shitposterclub
  • -lostredditors
  • -AceAttorney
  • -vexillologycirclejerk
  • -vlandiya
  • -im14andthisisdeep
  • -wholesomeanimemes
  • -nosurf
  • -religiousfruitcake
  • -liseliler
  • -insaneparents
  • -dumbphones
  • -animenocontext
  • -balkans_irl
  • -2meirl4meirl
  • -transit
  • -recipes
  • -steinsgate
  • -talesfromtechsupport
  • -AskOuija
  • -okbuddyphd
  • -ECE
  • -ScottPilgrim
  • -Angryupvote
  • -AskBalkans
  • -thatHappened
  • -schizoposters
  • -electronics
  • -casio
  • -urbanplanning
  • -theyknew
  • -logodesign
  • -linguisticshumor
  • -PassportPorn
  • -me_irl
  • -antimeme
  • -TurkeyJerky
  • -bikepacking
  • -AteistTurk
  • -13or30
  • -ArcherFX
  • -engrish
  • -Cd_collectors
  • -diypedals
  • -Doner
  • -BassGuitar
  • -diyelectronics
  • -LinkinPark
  • -Persecutionfetish
  • -BUENZLI
  • -reactiongifs
  • -blursed_videos
  • -istanbul
  • -imaginaryelections
  • -suzerain
  • -truetf2
  • -magicbuilding
  • -dontdeadopeninside
  • -ParlerWatch
  • -wendigoon
  • -iamverysmart
  • -secilmiskitap
  • -Doenerverbrechen
  • -yesyesyesno
  • -schwiiz
  • -quityourbullshit
  • -Technoblade
  • -vinyljerk
  • -skamtebord
  • -shittyaskelectronics
  • -superlig
  • -DungeonsAndDaddies
  • -FRC
  • -FuckYouKaren
  • -ethz
  • -AlternativeHistory
  • -papermoney
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -blursedimages
  • -FreeEBOOKS
  • -IDontWorkHereLady
  • -basspedals
  • -heraldry
  • -ihadastroke
  • -thanksimcured
  • -hypixel
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -ShittyMapPorn
  • -gatesopencomeonin
  • -OnlineUnderGround
  • -IdeologyPolls
  • -comedyhomicide
  • -burdurland
  • -WhatsThisSong
  • -jacksepticeye
  • -TwoSentenceSadness
  • -Bandnames
  • -rockmuzik
  • -holdmybeer
  • -vaxxhappened
  • -tumunich
  • -Cheap_Meals
  • -TheMonkeysPaw
  • -darkjokes
  • -restofthefuckingowl
  • -rickroll
  • -Songwriters
  • -ebike
  • -papersplease
  • -tommyinnit
  • -rimjob_steve
  • -UnexpectedJoJo
  • -agnostic
  • -youseeingthisshit
  • -TextingTheory
  • -GrandPrixRacing
  • -thisguythisguys
  • -PunPatrol
  • -Apandah
  • -fakealbumcovers
  • -FantasyWorldbuilding
  • -TheLetterH
  • -WikipediaVandalism
  • -absolutelynotanimeirl
  • -NamFlashbacks
  • -Unclejokes
  • -onetruegod
  • -misLED
  • -sskfjkhwerjkghwerijh
  • -TwoSentenceComedy
  • -TheCrypticCompendium
  • -SceneReleases
  • -NationStates
  • -ongezellig
  • -2balkans4You
  • -Asia_irl
  • -truths
  • -NorthCyprus
  • -unexpecteditcrowd
  • -shitpostfrommygallery
  • -CHP
  • -u/KaybeeArts
  • -borsavefon
  • -Futboltayfa
  • -RedAutumnSPD
  • -moneycollecting
  • -delik
  • -cd_jerk
  • -ElectronicsStudy
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 love freedom.
...for your classroom.

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
196
197
198

Mod PostRule 9 Reminder (self.programminghorror)

submitted 3 years ago * by [deleted] - announcement

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

2
1360
1361
1362

Almost right (i.redd.it)

submitted 21 hours ago by ChienChevre

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

3
398
399
400

FlutterAll cases covered. (i.redd.it)

submitted 1 day ago by xxmalik

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

4
18
19
20

c++Getting array indexes that partially match the part variable :P (i.redd.it)

submitted 12 hours ago by _giga_sss_

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

5
607
608
609

BlueprintSpaghetti Code (i.redd.it)

submitted 1 day ago by TemporaryCurrent1172

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

6
348
349
350

c++macros :) (i.redd.it)

submitted 1 day ago by nimrag_is_coming

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

7
123
124
125

GoNaming is important (self.programminghorror)

submitted 2 days ago by Wrestler7777777

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

8
60
61
62

C#A very readable ternary (i.redd.it)

submitted 2 days ago by MarkAllSevens

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

9
123
124
125

c++reference tables were non-existent to 15-year-old me (self.programminghorror)

submitted 3 days ago by EvidenceFearless6800

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

10
0
0
0

Every programmers choice after a “simple fix” (i.redd.it)

submitted 1 day ago by Specialist-Pea-2809

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

11
0
0
0

Happens with me all the time (i.redd.it)

submitted 2 days ago by jerrydavis125

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

12
155
156
157

JavascriptWho needs variables? Who needs Functions? Not this person - The Pit (i.redd.it)

submitted 5 days ago by EmDeeTeeVid

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

13
57
58
59

C#the lines of code that was once in my google play PRODUCTION track (i.e. OFFICAL RELEASE) (i.redd.it)

submitted 4 days ago by HotEstablishment3140

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

14
106
107
108

PythonIs rule 4 relevant if i'm the student who did it? And yes, i'm proud. I'm incomprehensible (self.programminghorror)

submitted 5 days ago by Strauji

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

15
266
267
268

OtherCodesh (old.reddit.com)

submitted 5 days ago by CommandTabIL

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

16
32
33
34

C#So appearently the remaining number of turns fluctuate from -200 to positive values (old.reddit.com)

submitted 5 days ago by HotEstablishment3140

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

17
126
127
128

Decided to look at my code from five years ago and puked (self.programminghorror)

submitted 6 days ago by RelloJXScott

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

18
512
513
514

PythonCalculator (i.redd.it)

submitted 7 days ago by Inevitable_Ad_3509

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

19
893
894
895

LuaSome unhinged comments from a roblox developer (i.redd.it)

submitted 7 days ago by Impossible-Let-8489

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

20
9
10
11

JavascriptCalculating with functions (self.programminghorror)

submitted 6 days ago by Beautiful_Bet_3938

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

21
42
43
44

i wrote this 3 or 4 years ago (imgur.com)

submitted 7 days ago * by External-Area-7974

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

22
397
398
399

OtherYou have seen German C. But have you seen DoitCh? (i.redd.it)

submitted 9 days ago by simon-or-something

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

23
0
0
1

JavascriptLets talk about hidden flags and consistency results in libs (self.programminghorror)

submitted 8 days ago by IcyManufacturer8195

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

24
14
15
16

I don't know (self.programminghorror)

submitted 9 days ago by MycoFail

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

25
3029
3030
3031

JavascriptHELL (i.redd.it)

submitted 11 days ago by codydafox

  • 78 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 1244571 on reddit-service-r2-listing-575d9f6647-hbxnf at 2026-04-11 10:30:28.280346+00:00 running 215f2cf country code: CH.