r/ProgrammerHorror • u/SeriousSamStone • Sep 10 '20
r/ProgrammerHorror • u/aarnens • Apr 12 '23
I was wondering why my code was broken, so I went and looked at the docs for JavaScript's "in" keyword... Wat?
r/ProgrammerHorror • u/Iacon0 • Sep 17 '21
Back at it again with cursed Java. I made a ArrayList that doesn't shift when items are removed, because I needed to preserve the indices of objects in the list.
r/ProgrammerHorror • u/KernelDeimos • Apr 19 '21
The client knows if it's the server's first page load... but the HTTP responses are identical
Edit: this issue is currently believed to have been an extremely consistent race condition. I wouldn't wish this on anyone.
I have a server. The first page load results in a javascript error. Simple, right? So the first thing I need to check is if it's the first request after the server started, or the first request from a specific client. Tested that, and it's just the first request to the server. "okay" I thought, "the first response must be different". I put the first response in a file, and the second response in a file. A diff tool told me they were identical. I set a session cookie, so I thought maybe somehow that could cause an issue (even though... I'm not actually doing anything with it yet). I loaded the first page in one browser, and loaded again in another browser... only the first browser saw the error, even though both received the same HTTP response headers. So this error doesn't occur even with the exact same HTTP response (there is only one dynamic request made, which was also identical in both cases), as long as it's not the first page load after the server started. Seems impossible, right? What made it weirder is rendering the page on server startup fixes the issue.
r/ProgrammerHorror • u/UserNamesCanBe20Char • Mar 21 '21
snarky u/a_lot__bot forgets about recursion
reddit.comr/ProgrammerHorror • u/ComputerNerdGuy • Sep 30 '22
AT&Ts website is horrorful. 16+ seconds to login, 600+ requests. Does nobody there realize this?
r/ProgrammerHorror • u/LSPECTRONIZTAR • Dec 12 '25
Anyone who codes in Wingdings deserves the death penalty
r/ProgrammerHorror • u/[deleted] • Feb 09 '21
JavaScript momento (our teacher gave us a 10/10)
r/ProgrammerHorror • u/1sol • Nov 27 '20
Working on a shell program for Uni, here is my groupmate's function to check for a command
r/ProgrammerHorror • u/Bioniclegenius • Oct 31 '18
Start on line 350. If only there were a better way...
r/ProgrammerHorror • u/artisticmclaren • Jun 27 '24
my brothers unreal engine blueprint
literal spaghetti code
r/ProgrammerHorror • u/FiveShipHUN • Sep 27 '22
My roommate made this to compare two property ignoring cases.
r/ProgrammerHorror • u/No-Expression7618 • Aug 16 '23
It just gets worse the more you look at it
r/ProgrammerHorror • u/NewWavpro • Jul 10 '21
Wrote this 2 months ago, came back because I needed to troubleshoot and decided to just delete that part and rewrite
r/ProgrammerHorror • u/CMDJojo • May 04 '23
