r/programminghorror • • Jun 12 '25 • This 1

Javascript Javascript is filled with horror

Post image
2.4k Upvotes

337 comments sorted by

View all comments

Show parent comment

1

u/Crafty-Meringue-6101 Jun 18 '25

Even in objects that already exist

I think that’s the most JS thing I’ve ever heard, though I can’t quite explain why.

Also why did you put classes in quotes? Swift does call them classes in pretty sure. Or are you lumping structs and enums (and I guess protocols too) in with ““classes””

By looked it up do you mean ChatGPT? Or no, you’re probably more of a Claude guy. Huh, never stereotyped someone’s LLM choice before, have I. Well you and u/No_Pen_3825 have fun, as it’s all you really can do. Lord knows you won’t come to a consensus. Curious to see who leaves first though.

!remindme 1 day
!remindme 5 day

1

u/RemindMeBot Jun 18 '25

I will be messaging you in 1 day on 2025-06-19 01:25:13 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


InfoCustomYour RemindersFeedback

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.

1

u/Crafty-Meringue-6101 Jun 18 '25

It’s a JS thing because nobody from another language would point out that it acts globally.

Reading is indeed hard, as proven by me, u/No_Pen_3825, and you. I still don’t think you’ve understood what they’re trying to say. They’re saying they don’t like that JS puts everything on the programmer, to which you insightfully answered it’s not that hard to do everything manually. But that doesn’t mean they’re wrong or their argument/opinion is bad like you say, it just means they don’t like it and you don’t mind much.

Good on you not drinking to kool-aid (aide?), sometimes it’s nice to be wrong. I wonder if this LLM stuff will ever blow over.

1

u/LordFokas Jun 18 '25

Acting globally is a detail I added for completeness, it doesn't make it any more or less JS than anything else.

Ok so you're also not understanding my point, great. I said it's not that hard to extend a prototype, and that it's the same as making an extension in swift, and so if they don't like doing it by hand, they can just do the thing they already do in their choice language, with the same amount of effort.

Thanks for uncorrecting me.
https://en.wikipedia.org/wiki/Kool-Aid#%22Drinking_the_Kool-Aid%22

Perhaps if you didn't have LLMs chew everything for you, you wouldn't have issues understanding things as they're given to you, instead, you half read and half understand things, make up the rest, go out on a limb, and make a fool out of yourself.

Don't bother replying.

1

u/Crafty-Meringue-6101 Jun 18 '25

Don’t bother responding

How sweet. But truly, I don’t mind.

Wow, just as I was starting to like you, you pull something like this. Pardon the ad nauseam, but you’re not understanding mine. They don’t want to write the extensions idiot, they’d prefer the language already have them.

You’ve made the same mistake as I did, assuming the other uses LLMs, only you bet a whole lot harder than I did.

Don’t bother responding; I’ve blocked you. See, if you really want the last laugh, you’ve got to stack the cards ;)