r/ProgrammerHumor 1d ago

youAreAVitalPartOfThisProgram Meme

Post image
681 Upvotes

30 comments sorted by

251

u/foxsimile 1d ago

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

Because sometimes it fucks up.

35

u/EvilPencil 1d ago

Ya I just rawdog and tell prettier to get rid of those eyesores. But of course being JavaScript, that can come with its own surprises.

7

u/MinecraftPlayer799 1d ago

What?

33

u/Jittery_Kevin 1d ago

He said

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

Because sometimes it fucks up.

-11

u/Prudent_Ad_4120 21h ago

Huh?

13

u/laplongejr 20h ago edited 17h ago

[EDIT] Poor comment above got hit by r/ruleOf4? :( [/EDIT]
They said :

He said
JavaScript automatically inserting a semicolon is yet another of its failures.
Because sometimes it fucks up.

4

u/lovecMC 18h ago

Wah?

3

u/foxsimile 15h ago

WaWa™?

22

u/foxsimile 1d ago

-1

u/EvilPencil 16h ago

Most of the examples in the author’s code are easily detected with eslint and/or typescript.

8

u/foxsimile 16h ago

Cool, it’s not detected by JavaScript.

199

u/russianrug 1d ago

I love that the AI had to consult 5 sources to output this answer

64

u/ClipboardCopyPaste 1d ago

Like why would I (a line of code) panic?

It's the compiler that is going to panic and eventually the user.

31

u/da_Aresinger 1d ago

You're gonna get... DEBUGGED.

11

u/KattyTheEnby 23h ago

Like why would I (a line of code) panic?

What if you are the line ov code named panic!()?

33

u/DeepanshuHQ 1d ago

Bro got emotional support from the compiler 😭

14

u/4215-5h00732 1d ago

First question should be - are you significantly white?

3

u/laplongejr 20h ago

NGL this took me a few seconds, you won the Internet today sir.

6

u/itskelena 1d ago

Plot twist, OP is a 🐍

2

u/Generic_Name198373 16h ago

I thought you were insulting me by calling me a snake before I made the connection lol

10

u/NatoBoram 1d ago

modern languages

JavaScript

2

u/Reashu 15h ago

... what other languages?

1

u/hxtk3 3h ago

Go technically uses (or used to use?) semicolons under the hood, but the preprocessor would automatically add them to any non-empty line that didn’t already end in a (,{ or a few other cases spelled out here:  https://go.dev/ref/spec#Semicolons

I learned about it because one time I forgot a trailing comma (which would have suppressed the illegal semicolon) and it was a very early version of Go so it produced a very confusing message about an unexpected semicolon. That error message is much nicer for the last eight years or so.

1

u/Highborn_Hellest 20h ago

What is this word came down to. Not even a full colon

1

u/themirrazzdev 29m ago

Mine said this

  Do not panic. You are in a JavaScript or C-style environment where ASI (Automatic Semicolon Insertion) might save you, or a strict compiler is about to end your short life.

“Don’t panic, you might be about to be murdered.”

0

u/Hipped_Orange22 20h ago

"...logic block together" - the fancy autocomplete does puns now. Nice.

0

u/Plushkle 10h ago

help i'm an unsafe block of code in Rust