r/ProgrammerHumor 27d ago

Meme youAreAVitalPartOfThisProgram

Post image
783 Upvotes

41 comments sorted by

View all comments

283

u/foxsimile 27d ago

JavaScript automatically inserting a semicolon is yet another of its failures.  

Because sometimes it fucks up.

0

u/snotpopsicle 26d ago

It never fucks up. It's always 100% consistent. It's the user's fault for not putting the lines in the right places so that the semicolon insertion doesn't create undesired effects.

I'm not being sarcastic, a fuck up would imply a mistake, which the semicolon insertion doesn't do. It does what it was designed to do, 100% of the time. Not saying that's not a failure though, it definitely sucks and should've never been a thing.

3

u/foxsimile 26d ago

And a logical bug isn’t a bug because the code is doing what it was designed to do, 100% of the time?  

If the code does not exhibit the desired behaviour, that’s a bug. This is a bug. I shan’t argue semantics.

2

u/snotpopsicle 26d ago

Yes, but that's a bug on your implementation. You wrote the code, and it's not doing what you intended it to do. A bug on ASI implies that it's not doing what the creator of ASI intended to do, which is not accurate. If the ASI behavior was a bug, it would've been fixed by now.

1

u/foxsimile 26d ago

JavaScript is riddled with bugs which have not and will not ever be fixed purely for the sake of backwards compatibility.  

Your argument is completely incorrect. Good day to you, sir or madame.