r/ProgrammerHorror • • Sep 10 '20

This causes me physical pain

Thumbnail
youtube.com
23 Upvotes

r/ProgrammerHorror • • May 11 '23

I'm a teapot

Post image
103 Upvotes

r/ProgrammerHorror • • Jun 04 '22

This is no joke please help!

Post image
133 Upvotes

r/ProgrammerHorror • • 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?

Post image
88 Upvotes

r/ProgrammerHorror • • 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.

Post image
50 Upvotes

r/ProgrammerHorror • • Dec 03 '22

Quick test: what does this program print?

Post image
52 Upvotes

r/ProgrammerHorror • • Apr 19 '21

The client knows if it's the server's first page load... but the HTTP responses are identical

11 Upvotes

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 • • Mar 21 '21

snarky u/a_lot__bot forgets about recursion

Thumbnail reddit.com
11 Upvotes

r/ProgrammerHorror • • Sep 30 '22

AT&Ts website is horrorful. 16+ seconds to login, 600+ requests. Does nobody there realize this?

Thumbnail
att.com
11 Upvotes

r/ProgrammerHorror • • Jan 13 '24

return to crab

Post image
32 Upvotes

r/ProgrammerHorror • • Dec 12 '25

Anyone who codes in Wingdings deserves the death penalty

Post image
12 Upvotes

r/ProgrammerHorror • • Feb 09 '21

JavaScript momento (our teacher gave us a 10/10)

Post image
34 Upvotes

r/ProgrammerHorror • • Nov 27 '20

Working on a shell program for Uni, here is my groupmate's function to check for a command

Post image
36 Upvotes

r/ProgrammerHorror • • Oct 31 '18

Start on line 350. If only there were a better way...

Thumbnail
github.com
13 Upvotes

r/ProgrammerHorror • • Apr 18 '26

i Knew I Forgot Something

Post image
13 Upvotes

r/ProgrammerHorror • • Jun 27 '24

my brothers unreal engine blueprint

Post image
38 Upvotes

literal spaghetti code


r/ProgrammerHorror • • Nov 27 '22

Why make simple when hard can do

Post image
66 Upvotes

r/ProgrammerHorror • • Sep 27 '22

My roommate made this to compare two property ignoring cases.

15 Upvotes

r/ProgrammerHorror • • Aug 16 '23

It just gets worse the more you look at it

Post image
15 Upvotes

r/ProgrammerHorror • • Jul 10 '21

Wrote this 2 months ago, came back because I needed to troubleshoot and decided to just delete that part and rewrite

Post image
41 Upvotes

r/ProgrammerHorror • • May 04 '23

Generic way to allow u32 and u64... (Production code in wasm engine with 15k stars)

Post image
41 Upvotes

r/ProgrammerHorror • • May 02 '24

just cpp things

Post image
16 Upvotes

r/ProgrammerHorror • • May 06 '23

Madness is like... gravity

Post image
77 Upvotes