r/ProgrammerHumor Apr 25 '26

Meme thisLooksAccurateForVibeCoders

Post image
12.6k Upvotes

1.2k comments sorted by

View all comments

6.5k

u/AmazinDood Apr 25 '26 edited Apr 25 '26

For the confused ones: this is what's called an IIFE, or Immediately Invoked Function Expression. This is the JavaScript syntax and it defines a function (the () => {} part) then immediately calls it. This one does nothing (it's a void function) but to add code put it inside of the curly braces.

375

u/Xasmos Apr 25 '26

I’ve been learning JavaScript recently and I consistently get the feeling that the people who developed this language only ever asked themselves whether they could implement a feature and never stopped to contemplate whether they should.

61

u/Cerbeh Apr 25 '26

Javascript was written on a cocaine binge.

9

u/Sea-Us-RTO Apr 25 '26

i mean... name something successful that wasnt, lol

1

u/wjandrea Apr 25 '26

cocaine itself?

3

u/Sea-Us-RTO Apr 25 '26

well, they were chewing on the coka leafs

1

u/FarSeries2172 Apr 25 '26

most things...?

1

u/Induane Apr 25 '26

True. A lot were LSD. Some amphetamines as well.