r/programminghorror
•
u/Leonnee
•
Jun 12 '25
•
1
Javascript Javascript is filled with horror
2.4k
Upvotes
View all comments
Show parent comment
1
u/LordFokas Jun 18 '25
Because you also can't read. I'm not talking about swift, I'm talking about JS, and JS doesn't have classes. The keyword is just sugar, it's all prototypes all the way down. That's also why changes to prototypes affect existing objects, it's not a JS thing at all, if you could modify methods in runtime in other languages I'm pretty sure existing objects would be modified just as well, because methods don't exist in the objects themselves.
I didn't say I looked it up, I googled it. I don't drink the LLM kool-aid. I can do my own research, thankfully. If you must know I ended up reading the official swift docs on extensions just to make sure I knew what I was talking about, even though I don't know the language. Looking things up is not reading some regurgitated LLM hallucination.
The only thing you're right about is that we're not going to reach a consensus. Mostly because reading is hard. But I'll leave that part, paradoxically, as an exercise for the reader.