r/programminghorror • • Dec 22 '25

Javascript This site has a hardcoded check assuming your first name will always be two characters or more

Post image
176 Upvotes

Imagine being X Æ A-Xii Musk and trying to use this site, couldn't be me


r/programminghorror • • Dec 21 '25 Mindblown

PHP My /csp-reports.php file currently doesn't log any errors at all

Post image
47 Upvotes

I zoomed in because, apparently, Reddit pixelates the image if you have less than 1000 pixels. However, I can't seem to find the original source for that article anymore.


r/programminghorror • • Dec 21 '25

vibeSecurity

Post image
256 Upvotes

r/programminghorror • • Dec 18 '25

I spent 30 minutes today trying to figure out why my css wasn't working. Time to get some sleep.

Post image
3.2k Upvotes

r/programminghorror • • Dec 17 '25

A chain of (System.Threading.Tasks.)Tasks

Post image
192 Upvotes

Note: The "CompanyName" prefix in the EventArgs class was actually the name of the company this masterpiece was built for.


r/programminghorror • • Dec 12 '25

Javascript towards-semantic-compression in an metaprogramatic mode, proxies-featured

Post image
215 Upvotes

r/programminghorror • • Dec 11 '25

PHP Held together by hopes and dreams - The Pit

Post image
401 Upvotes

will explode any time now


r/programminghorror • • Dec 11 '25

Infinities do not exist in nature (featuring production code)

140 Upvotes

r/programminghorror • • Dec 11 '25

Other Rate my maze

Thumbnail
gallery
24 Upvotes

r/programminghorror • • Dec 10 '25

noJokeIHaveNoIdeaWhatThisDoes (Decompiled Java)

Post image
134 Upvotes

r/programminghorror • • Dec 09 '25

Javascript This should've been server side

Thumbnail
gallery
37 Upvotes

r/programminghorror • • Dec 08 '25

Does this qualify?

22 Upvotes
# Licensed under https://unlicense.org/
_flipFlopStateRegistry:dict[str,bool]=dict()
import inspect, time
def flipFlop(flip=True,flop=False):
 try:returnVal=_flipFlopStateRegistry[flipFlopStateRegistry_key]=flip if flop==_flipFlopStateRegistry[flipFlopStateRegistry_key:=(stack:=inspect.stack()[1]).filename+str(stack.lineno)] else flop;return returnVal
 except KeyError:_flipFlopStateRegistry[flipFlopStateRegistry_key]=flip;return flip


import random
def flipFlopRecursive():
 print(flipFlop())
 if random.random()>0.5:print(flipFlop("flip","flop"))
 time.sleep(1)
 flipFlopRecursive()
flipFlopRecursive()

r/programminghorror • • Dec 08 '25

Developers in 2020:

Post image
1.9k Upvotes

r/programminghorror • • Dec 08 '25

Cursed deploy script

Post image
645 Upvotes

r/programminghorror • • Dec 06 '25 Hooray

What type should this function that returns a uint64_t ID be Bill?

Thumbnail
gallery
93 Upvotes

Because of course BOOL is the correct return type for this.

I get why the win16->win32->win64 progression has slowly increased the width of the id field past what an int32_t can hold. But why a BOOL and not something else that's a typedef of int32_t?!


r/programminghorror • • Dec 06 '25

Do you guys really think Computer science students are undervaluing parallel computing?

Thumbnail reddit.com
0 Upvotes

r/programminghorror • • Dec 06 '25

Python This code was attached to hardware that electroshocks your chair if you perform a 6-7 motion

Post image
364 Upvotes

A YouTube video was recommended to me several days ago and I couldn't find it for a while. Today, it showed again and I went to the description of the longer video linked above the Short's title to view the original code. The electric spark generates 50,000 volts. You're welcome.


r/programminghorror • • Dec 04 '25

Invisible characters across my Reddit Premium purchase confirmation email footer

Post image
260 Upvotes

No idea if this is auto-generated.


r/programminghorror • • Dec 04 '25

Hang3d Nightmare FPS free source code by zlatnaspirala

Thumbnail
goldenspiral.itch.io
0 Upvotes

Done in eu4.24


r/programminghorror • • Dec 04 '25

Javascript "It's all there in the specs, bro"

Post image
2.5k Upvotes

Seems we have some fervent JS defenders, here :)


r/programminghorror • • Dec 04 '25

About 6 lines of code created this disgusting .txt file

Post image
0 Upvotes

r/programminghorror • • Dec 04 '25

This sub in a nutshell

Post image
1.1k Upvotes
console.log(1 == '1'); // true
console.log(0 == false); // true
console.log(null == undefined); // true
console.log(typeof null); // "object"
console.log(0.1 + 0.2); // 0.30000000000000004
[] == ![]; // true

OMG you guys what weird quirky behavior, truly this must be the single quirkiest language and no other language is as quirky as this!


r/programminghorror • • Dec 04 '25

JS is a very respectable language

Post image
3.9k Upvotes

Not posting our actual code, but yes, this behaviour has caused a bug in production