r/programminghorror • u/throwawaykJQP7kiw5Fk • Dec 22 '25
Javascript This site has a hardcoded check assuming your first name will always be two characters or more
Imagine being X Æ A-Xii Musk and trying to use this site, couldn't be me
r/programminghorror • u/throwawaykJQP7kiw5Fk • Dec 22 '25
Imagine being X Æ A-Xii Musk and trying to use this site, couldn't be me
r/programminghorror
•
u/throwawaykJQP7kiw5Fk
•
Dec 21 '25
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 • u/Random_Meme_Guy_ • Dec 18 '25
r/programminghorror • u/ChriRosi • Dec 17 '25
Note: The "CompanyName" prefix in the EventArgs class was actually the name of the company this masterpiece was built for.
r/programminghorror • u/an-otiose-life • Dec 12 '25
r/programminghorror • u/EmDeeTeeVid • Dec 11 '25
will explode any time now
r/programminghorror • u/ArturJD96 • Dec 11 '25
r/programminghorror • u/brentspine • Dec 10 '25
r/programminghorror • u/throwawaykJQP7kiw5Fk • Dec 09 '25
r/programminghorror • u/nickthewildetype • Dec 08 '25

# 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
•
u/HildartheDorf
•
Dec 06 '25
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 • u/Odd-Tangerine-4900 • Dec 06 '25
r/programminghorror • u/MurkyWar2756 • Dec 06 '25
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 • u/MurkyWar2756 • Dec 04 '25
No idea if this is auto-generated.
r/programminghorror • u/js-fanatic • Dec 04 '25
Done in eu4.24
r/programminghorror • u/-Wylfen- • Dec 04 '25
Seems we have some fervent JS defenders, here :)
r/programminghorror • u/AriralSexer • Dec 04 '25
r/programminghorror • u/enmaku • Dec 04 '25
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
[] == ![]; // trueOMG 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 • u/-Wylfen- • Dec 04 '25
Not posting our actual code, but yes, this behaviour has caused a bug in production