r/ProgrammerHumor • • Mar 20 '24

Meme areJSDevsActuallySane

Post image
14k Upvotes

554 comments sorted by

View all comments

Show parent comment

12

u/Some-Guy-Online Mar 20 '24

I honestly hope you're joking, but I can't tell.

-6

u/Exaskryz Mar 20 '24

A) Yes, I don't code in JS.

B) Regardless, it is a perk of JS to be predictable. Suddenly throwing errors that say the number 244 does not contain "2" nor "\d" because we forgot to toString() because of a type mismatch would be cumbersome.

8

u/GuitarOk75 Mar 20 '24

A perk of JS is being predictable?! 😂

It's literally anything but. Hence all the memes and this very post.

-1

u/Exaskryz Mar 21 '24

Did you not read the bottom half of OP SS? That reads predictable to me.

Sorry if you can't keep up

2

u/GuitarOk75 Mar 21 '24

Ah, yes, esoteric knowledge that 3 ppl on the planet would know. Such predictable. Do you think predictable means the language can execute code or? I'd call you stupid, but seeing as how you think errors are unpredictable behavior, and all the down votes haven't clued you in, I doubt I could get the point across

3

u/Some-Guy-Online Mar 21 '24

This is the kind of nonsense that comes from people who accidentally choose the wrong side in a debate but can't admit when they're wrong. They just end up looking dumb.

-2

u/Exaskryz Mar 21 '24

If someone wants JS to be a different language than what it is, why not use a different language?

I do enjoy when variables are not rigidly typed. It makes it a lot easier to make hobby, throwaway code.

If you think I am wrong, why, riddle me, does javascript exist?

If I was wrong, your "side" would have phased it out by now.

3

u/Some-Guy-Online Mar 21 '24

If someone wants JS to be a different language than what it is, why not use a different language?

When you know you have no argument, but you can't admit you have no argument.

"If you hate this country so much, just move!"

We're allowed to criticize things. Whether we use them or not, whether we switch to something else or not.

If this were a discussion about comparing various programming languages or a green-field project, then maybe that would be an appropriate time to suggest a more appropriate language.

But really, every programming language will have some quirks.

And we're allowed to criticize them all.

0

u/Exaskryz Mar 21 '24

There is a much, much lower barrier to switching from JS to, say, Rust, than there is moving to a different country, let alone across town.

You can criticize, but why would you wish every langauge to be the same?

1

u/Some-Guy-Online Mar 21 '24

You can criticize, but why would you wish every langauge to be the same?

Point to where I said that.

-2

u/Exaskryz Mar 21 '24 edited Mar 21 '24

If it's not already a string, it should (logically) not be coerced into a string

Any language that does not conform to your logic is "wrong", ergo for all languages to be acceptable, they must meet your crtieria, and it follows they would be equivalent to each other.

2

u/Some-Guy-Online Mar 21 '24

Wow. That's a thousand meter reach.

This is not a fun conversation, it's a stupid conversation. I'm out.

1

u/thirdegree Violet security clearance Mar 21 '24

But js isn't predictable, to anyone with less than an expert understanding of js type conversion rules. To anyone else, it makes very little sense.

1

u/Exaskryz Mar 21 '24

Weird, I'm no expert but bottom half of OP makes perfect sense.

2

u/thirdegree Violet security clearance Mar 21 '24

That's the trick, it always makes sense once it's explained. How long would it take you to reason towards that explanation on your own? You'd need to know how objects are coerced to string and how square brackets work in regex. And where to start looking.

And like I'm a big advocate for basic regex competency, which I do feel this falls under. But also in my experience most devs don't have basic regex competency.

0

u/Exaskryz Mar 21 '24

For how much my console logs [object Object], it honestly may have clicked.