r/programminghumor • • May 11 '26

They will lose themselves

Post image
1.8k Upvotes

420 comments sorted by

856

u/PinotRed May 11 '26

I've never seen this before in my life but my intuition says it's an anonymous function taking no parameters, returning nothing. Then directly the call to it.

400

u/Ignisami May 11 '26

Yes. It’s called an IIFE, Immediately Invoked Function Expression

205

u/Windyvale May 11 '26

In other languages you may see it as a lambda expression or inline function.

81

u/CheesecakeAndy May 11 '26

() => {} is a lambda function.

18

u/jpgoldberg May 11 '26

That's how I read it, but I've never actually used JavaScript (which is what I presume the example is from).

I know there are many good reasons to stick with 7-bit US ASCII in language definitions and in our code, but I also wish that the symbol λ could just be part of language.

→ More replies (15)

31

u/Panderz_GG May 11 '26

Ah now I understand what this is. Thanks

6

u/krilleractual May 11 '26

I know the idea behind it but honestly it never made sense to me to not have a dedicated function

6

u/Taletad May 11 '26

It enables you to write stuff like

Array .sort(ascending) .trim(5) etc

→ More replies (3)
→ More replies (10)

23

u/-Zonko- May 11 '26 edited May 11 '26

Why does this have a name? Something nobody will ever use?

Edit: Guys. I know what a lambda is. I meant that nobody would declare an empty lambda and execute it in the same line.

20

u/ConcreteExist May 11 '26

I practical applications there would be some actual code between the {} to execute.

12

u/Ma4r May 11 '26

If you invoke it immediately isn't this just a codeblock? Why would you want a lambda definition if not to pass it around?

→ More replies (18)
→ More replies (17)

6

u/CheesecakeAndy May 11 '26

It used to be widely used back in the days.

3

u/PrinzJuliano May 11 '26

It is a common way to invoke asynchronous code in a context where you cannot use async/await.

→ More replies (9)

2

u/Azoraqua_ May 11 '26

Also sometimes referred to as self-invoking function.

→ More replies (2)
→ More replies (7)

32

u/codeguru42 May 11 '26

This is a common idiom in JavaScript, but with code in the {}

17

u/arbeit22 May 11 '26

It's common to declare a lambda and call it directly immediately? Why not just run the code in the lambda's body directly?

33

u/DnD-vid May 11 '26

Scope mostly. All variables you define within that function only exist within that function.

8

u/quickscopesheep May 11 '26

Can you not just surround the code in curly braces to limit the scope like practically every other c style language I can think off?

→ More replies (2)
→ More replies (1)

4

u/PhatOofxD May 11 '26

Not common at all, but it has a place and is useful when it's useful

5

u/Civil-Appeal5219 May 11 '26

It's literally everywhere lol I can't think of a popular library that doesn't have that in its minified bundle

3

u/clickrush May 11 '26

It’s very common, partly for historical reasons.

This was the common way of scoping modules before the („import“) module system got introduced.

In fact bundlers and prebuilt libraries use this pattern still.

3

u/Ok_Individual_5050 May 11 '26

Some react developers use it to go immediately from code in an async block to a context where you aren't supposed to do async things. Yes it's as bad as it sounds 

3

u/Spinnenente May 12 '26 edited May 12 '26

this avoids leaking any variables to the outside scope. Before lamdba it used to look like this

(function() { ... })()

Not sure how relevant this is since modules were introduced but its still has its uses.

→ More replies (4)

32

u/UnmappedStack May 11 '26

if you haven't seen it in your life that's probably because (afaik, I've never seen it anywhere else) this is only JS bs

21

u/tb5841 May 11 '26

I dislike JS on general, but its arrow function syntax is actually quite good. Much better than lambdas in Python, for example.

→ More replies (5)

8

u/Cyberbird85 May 11 '26

I mean, there are analogues for it in a lot of languages, but yeah.

5

u/Alan_Reddit_M May 11 '26

You can do something very similar in C++ and it looks even stupider

[](){}()

→ More replies (2)

4

u/zylosophe May 11 '26

why? all languages with anonymous functions have that kind of syntax

→ More replies (6)

6

u/Jor_ez May 11 '26

Is it really returning nothing? Shouldn't it be an empty object?

3

u/Camaldus May 11 '26

That's where my mind is at too, but now I'm doubting it.

1

u/jpgoldberg May 11 '26

That's how I read it, too, even though I don't recognize the language. That is, I read it as λx[]()

1

u/lWinkk May 11 '26

If the interviewer is asking this, the interviewer is retarded unless the job is for “Senior Syntax Monkey”

1

u/Candid_Bad3551 May 11 '26

Not big in JS/TS. Took me 3mins to register what is happening.

1

u/climb4fun May 11 '26

// : )

while (true) {  
(() => {})();  
}

1

u/realPoisonPants May 13 '26

I think the accepting nothing and doing nothing isn't relevant to the question. A real IIFE would, of course, do something. (async () => { const data = await("http://www.sample.com"); console.log(await data.json()); })(); or somesuch.

1

u/shrodikan May 13 '26

I've seen it. I never knew it had a name.

1

u/mrcatboy May 13 '26

Honestly my first guess was a penis going into a vag while the semicolon is the lady is winking.

I would've recommended the function (() => {})8; if syntactically valid just to get some boobs on there.

→ More replies (2)

100

u/gaymer_jerry May 11 '26

Basic answer it does nothing.

Longer answer its a lambda a variable of a function assigned to have no parameters and no function body and then calling that lambda

9

u/vegan_antitheist May 11 '26

a variable of a function assigned 

Where do you see a variable? => doesn't assign anything.

7

u/Ignisami May 11 '26

Assigned in the way that ‘f(x) defines a function assigned to have the variable x’. Not how you’d usually use the word assigned in a coding context.

3

u/vegan_antitheist May 11 '26

No. That's just wrong.
x is passed to f in your example.

You could say that when f it actually called the passed value (from x) is assigned to the parameter variable defined in f. But that happens in a different stack frame.

But we don't have anything like that in (()=>{})()

There is no variable or anything else to be assigned. The expression (the function) goes to the stack and () calls it.

→ More replies (6)

1

u/marktuk May 11 '26

As it is, it does nothing, but there used to be a good reason to write code like this.

2

u/Prize_Researcher8026 May 11 '26

There still is in many languages. You might have a delegate that normally is expected to do stuff, but your particular implementation is a test type or bypasses that functionality, so you explicitly pass an empty lambda so that it's clear your intent is for this method to do nothing.

That said it is robbed of any context. Even a junior engineer could figure out what was happening here if it was properly inlined to its delegate.

→ More replies (1)

1

u/Maleficent-Back-6527 May 12 '26

Emphasis on “does”! 😉

→ More replies (1)

175

u/faultydesign May 11 '26

That’s a really shitty question to ask during an interview

53

u/Numerous-Occasion247 May 11 '26

Why it does nothing

76

u/vegan_antitheist May 11 '26

Exactly. if this is in your code base I wouldn't want to work for you.

26

u/codeguru42 May 11 '26

I agree if this is literally in the code base, but at a higher level this is a common js idiom, but there is code in the {}. I would argue that recognizing this pattern without the code details is a reasonable interview question.

10

u/vegan_antitheist May 11 '26

It's not like the guy from HR understands any of this, so what's the point? What would the correct answer even be? Someone who gave it to them would also have to give the acceptable answer. Is that "an anonymous parameter-less function that does nothing and is called immediately"?
So if I say "(() => {}) is an arrow expression that is invoked with zero arguments, returning undefined by default" the HR guy thinks it's wrong because "arrow", "invoked", "arguments" and "undefined" are not in the "correct" answer and I didn't say "function", so it can't be complete. He then hires the guy who answered something wrong but it sounded good.

This is like asking "why is String immutable" for any language with immutable Strings (JS, Java, C# etc).
The only correct answer would be "Because the makers of [EcmaScript, Java, C#] defined the type as immutable."
But the HR guy will only have all the wrong answers (security, performance) from some shitty website.

And then they cry about how they can't find good programmers. This is how you get the mediocre ones.

→ More replies (26)
→ More replies (9)
→ More replies (6)

3

u/DizzyAmphibian309 May 11 '26

Yeah that's the entire point. Here's a question:

"You just finished a vibe session with Claude and you're reviewing code. You see this code halfway through a function. You're out of tokens so you can't ask Claude any more questions. What do you do?"

If they say "wait for token refresh and ask Claude if it's safe to delete" then you probably don't want to hire that person, right? Because there's no reason this should be in code and it's safe to delete.

In the age of AI coding, asking people to write code from scratch is out of date. I've switched over to giving them bad code in a screen share and asking them to review it. It's a lot more aligned to their actual job.

→ More replies (6)
→ More replies (1)

4

u/jpgoldberg May 11 '26

Asking "what this is" is a shitty question, because the answer is that it is an obfuscated no-op. But the question could be phrased slightly differently to see if people understand lambda/anonymous functions.

3

u/Save90 May 12 '26

if this is obfuscated...

It shows you're a junior without experience...

→ More replies (1)
→ More replies (2)

15

u/trenskow May 11 '26

It’s actually a great question to ask a junior. It very simply and effectively shows your ability to decode and reason about code and flow.

1

u/canal_algt May 11 '26

Lambdas aren't universally taught, I myself had to learn them on my own, therefore it's a valid interest for the company to know if you know how to use them, even more if the project uses an architecture that uses them a lot

1

u/Lustrouse May 12 '26

You don't need special knowledge to know the result of running this code. This is a simple way to weed out unqualified candidates. Of course, this won't be in a codebase - but if you don't have the skills to analyze this and determine what it does, then you are a faker.

10

u/Brie9981 May 11 '26

"Here we have a semicolon because we're not savages. Before that we can see we're calling something. What're we calling? A lambda function that takes no arguments, parameters, guff, or what have you. What's it do? Nothing. Basically a noop with extra steps"

2

u/eldenbrig May 12 '26

Just need to wrap that in a for loop of about 10+ and you got a great noop slide for the kids to pay on!

1

u/Xhojn May 15 '26

Hey! It does something!

...That something being adding 1 layer to the stack for a fraction of a micro-second, but that's something!

8

u/Rawleenc May 11 '26

What's the point of an unnamed method returning nothing and called directly in a single unreadable line of code ?

What's even the point of knowing what's this ?

I'm not a JavaScript developer at the core. I'm a backend developer. But still, JavaScript practices looks like a sect to me.

For me proper code must be well declared, readable, properly cut, following clean code principles. Code must speak about itself clearly. I think that codding some obscure hieroglyphics just to lose beginners or vibe coders or just to cultivate some elitism is just dangerous.

3

u/kkauchi May 11 '26

The history of front-end development is a very long and sad story, that involves having no choice other than JS for the longest time, nothing ever being standardized, features being piled up on top of existing non-supported features, shims to make something work cross platform etc. When things get really that dark developers gaslight themselves into Stockholm syndrome and convince themselves that it's not all garbage

2

u/LivingMaterial7288 May 12 '26

Variable scope. Once you understand scoping, you understand why people used IIFEs in JavaScript.

It was not some elitist trick invented to confuse beginners. It was a workaround for the language and browser environment people actually had.

In old browser JavaScript, there was no module scope, var was function-scoped rather than block-scoped, and top-level var declarations in scripts polluted the global environment. Worse, in sloppy mode, assigning to an undeclared variable could accidentally create a global.

So people wrapped code in a function and immediately called it:

(function () {
  var privateThing = 123;
})();

That looks weird, but the purpose is simple: create a private scope.

Historically, JavaScript was created very quickly in 1995 for small browser scripting tasks. Nobody was designing it as the foundation for huge web applications, build systems, servers, desktop apps, and mobile tooling. Then AJAX, Gmail/Google Maps-style web apps, faster engines like V8, and later Node.js pushed JavaScript into “real application language” territory.

Modern JavaScript mostly removed the need for IIFEs by adding let, const, block scope, strict mode, and especially ES modules. But old idioms survive because the web has a long memory and JavaScript has to stay backward-compatible.

14

u/RedAndBlack1832 May 11 '26

Looks like calling an anonymous function that takes nothing and returns nothing and does nothing.

14

u/sohang-3112 May 11 '26

Fancy way to do nothing

6

u/cutecoder May 11 '26

A fancy way of doing nothing?

5

u/itzNukeey May 11 '26

I mean it does not do anything

5

u/Warm-Palpitation5670 May 11 '26

If the interview requires JS knowledge im quitting immediately

4

u/un_virus_SDF May 11 '26

I know what this does despite having never used javascript

4

u/sscoobie May 11 '26

95% of devs will fumble in an interview if asked what this is: 01001000 01100101 01101100 01101100 01101111

1

u/Bubbly_Address_8975 May 12 '26

I mean true... but to be fair, the thing above is an actual widely used JavaScript pattern to execute anonymous functions on startup without polluting the global scope (having proper encapsulation). And since a lot of vibe coders are in the web space I assume it was used here.

So yeah, if you work with web technologies you should have at least a rough idea of what this is.

2

u/sscoobie May 12 '26

True for legacy code. But with ES modules and let/const block scoping, IIFEs are mostly a relic — you can ship modern web apps and never write one. Gatekeeping juniors on a pattern that's quietly aging out is its own kind of fumble.

→ More replies (1)

1

u/Southern-Reality762 May 18 '26

Binary? What am i missing here

4

u/stanbeard May 12 '26

"A waste of my time and yours" is the correct answer.

3

u/ExtraTNT May 11 '26

IIFE doing absolutely nothing

And why did i my inner voice turn it in Mario being frustrated at Luigi?

3

u/Epic_Dev_001 May 13 '26

Waaaait! I'm sure I remember texting these emojis back in high school!

11

u/Additional-Dot-3154 May 11 '26

An error or a forkbomb

Or i am completely wrong and dont know what language this is

25

u/Ok_Tour_8029 May 11 '26

An empty lambda that is executed, so basically a NOP.

4

u/realmauer01 May 11 '26

This is just nothing. An anonymous function that does nothing (the first bracket) that gets executed with the second bracket.

→ More replies (1)

1

u/vegan_antitheist May 11 '26

The language doesn't really matter. It's what lambdas (anonymous functions) look like in many languages.

2

u/Fruloops May 11 '26

But not all, so I guess it does matter to a degree

→ More replies (1)

12

u/[deleted] May 11 '26

[removed] — view removed comment

3

u/yurall May 11 '26

C# anonymous function

2

u/OreganoD May 11 '26

I want this as a tattoo now

2

u/a1g3rn0n May 11 '26

Coders who know JS syntax by heart know what this means. But all the other people in the whole world, not exclusively vibe coders, will not be able to tell what it is without guessing. Vibe coders, however, can figure this out in about 3-5 seconds.

2

u/zylosophe May 11 '26

uh i do not know js syntax by heart it's just obvious

1

u/perringaiden May 11 '26

It's technically correct in C#.

2

u/arugau May 11 '26

a clojure

2

u/Big_Bad8496 May 11 '26

I will fumble with the name, but explain the concept. I can never seem to remember that damn acronym with multiple I’s. But this is the skeleton for a self-executing function.

2

u/Practical-Positive34 May 11 '26

Bro I've been a dev for 30+ years, and 99% of devs would fail this, including "senior" ones. Trust me....

2

u/rythmyouth May 11 '26

I call it my coffee break

2

u/bleistiftschubser May 11 '26

do nothing, anonymously, right now

2

u/Random_Mathematician May 11 '26

It is a ⠀ that returns

2

u/looklikessmd May 11 '26

I would answer “this is nothing”

2

u/Circumpunctilious May 11 '26 edited May 11 '26

On first blush I thought shellshock (Wikipedia) and then “fork bomb” but I see now this is a JS anonymous function (GeeksforGeeks).

So…what this is, is a test for whether I need coffee.

2

u/Energumaine May 11 '26

Look at the bright side, it’s impossible to have bugs if the code doesn’t exist

2

u/timonix May 11 '26

Without knowing what language that is.

A. It could be a template of some sort. Like showing some automatic tool that there is a function which takes no arguments and returns nothing.

B. If it does actual work. It could be some esotaric language. It doesn't look like brainfuck, but some other Turing machine language maybe.

2

u/[deleted] May 11 '26

:(){ :|:& };:

2

u/FrankHightower May 11 '26

Not taking issue with the question, but with your color theme

2

u/SoftwareSource May 11 '26

It's nothing calling nothing, for no purpose.

Funnily enough, vibe coders should feel familiar.

2

u/Novel_Plum May 11 '26

The easiest way to get top level await.

2

u/Curben May 12 '26

This is how do you get bonuses while hacking a computer in fallout

2

u/Infamous-Ad5266 May 12 '26

You click the bracket pairs to eliminate incorrect words or reset your attempts while hacking

2

u/digost May 12 '26

I'm not a vibe coder but still didn't know what it is. Until I looked in the comments

2

u/hehesf17969 May 12 '26

Shit that you need to flag while reviewing code

2

u/[deleted] May 12 '26

Bold you to assume vibecoder go to an interview.

2

u/Cyber_Crimes May 12 '26

Oh shit, we're bringing IIFE's back

2

u/wearefuked1 May 12 '26

Why do the cool emojis have no eyes /s

2

u/Silevence May 12 '26

TIL what this was, I don't code too extensely, and misyook it as a logic bomb

2

u/Sebbean May 13 '26

Looks a bit iife to me

1

u/paperic May 15 '26

i see what you did there.

2

u/kabooozie May 13 '26

Isn’t that a fork bomb?

2

u/Fair-Parking9236 May 13 '26

Wow what a useless piece of code that noone ever uses other then shit posts like this.

2

u/Hirogen_ May 13 '26

whats the use case for this?

3

u/Opening-Tonight8669 May 11 '26

They might look like just some random symbols but it means a lot for js devs

1

u/theSEAT_ May 11 '26

whats the language

2

u/[deleted] May 11 '26

[removed] — view removed comment

1

u/Legion_A May 11 '26

I forgot exactly what it's called but I use it quite often, it's just not something I have to put a name to

2

u/spicymato May 11 '26

There are a few names. I first heard it referenced as a "self-executing anonymous function." In this comments section, it seems like there's a more common name, Immediately Invoked Function Expression (IIFE, which I assume is pronounced "iffy").

1

u/_redmist May 11 '26

I know basically zero js (python guy) and i could guess what this does ...

1

u/hhtp-error-418 May 11 '26

Dog balls - isn't it?

1

u/Aku1991 May 11 '26

Making something looks more confusing than what it does is not something to be proud of.

→ More replies (1)

1

u/-Zonko- May 11 '26

Tbh you won't ever need it

1

u/stefanhat May 11 '26

remember that the term "vibe code" literally means to not look at the code or try to understand it so why do you expect a vibe coder to understand code? This should be at 100%. If you understand the code you're writing, you're not vibe coding

1

u/ChocolateDonut36 May 11 '26

as a JavaScript developer, we don't do that, but it looks funny

1

u/turbulentFireStarter May 11 '26

I don’t even know the language (although I am assuming JavaScript) can I can already see that it’s a function that takes no arguments and returns nothing and it’s immediately invoked.

I agree it’s a little opaque on first glance. But there is nothing strange about its. It’s the standard syntax for a function, wrapped in parenthesis, using the standard form of invoking a function. It’s odd to see it all together. But if you can’t read that you’re in bad shape.

1

u/Geoclasm May 11 '26

It's a Javascript Lambda that returns an object isn't it?

1

u/Z-Is-Last May 11 '26

Why would a vibe coder need this? If you are going to create vibe garbage, then it doesn't matter.

1

u/satansxlittlexhelper May 11 '26

IIFE that returns undefined

1

u/60secs May 11 '26

invoke the empty lambda

1

u/Endurance_Beast May 11 '26

Yeah, nothing

1

u/ChargingTrex May 11 '26

thought it converted tuple to dict

1

u/Sea-Departure4857 May 11 '26

I literally thought this was a sexual joke lmao

1

u/Top_Biscotti_7196 May 12 '26

Annoying person annoyer func.

1

u/NemTren May 12 '26

I prefer this:
;(_=>{})()

';' has no sense while having it at the start makes a good use as a wrap in node js.

1

u/[deleted] May 12 '26

Okay but what does this return (()=>(()=>({})))();

1

u/Dragonfire555 May 12 '26

A function.

→ More replies (1)

1

u/a3th3rus May 12 '26

undefined

1

u/Save90 May 12 '26

(void function = function body) (return value??);

1

u/tortikolis May 12 '26

This is how you would start every JS file before let and const were introduced.

1

u/No-Nature8680 May 12 '26

What language is that? I’m assuming it’s just calling an empty function, basically the same as writing [](){}(); in c++.

1

u/[deleted] May 12 '26

What is the purpose of this if it “does nothing”?

1

u/molered May 13 '26

Nothing but trash

1

u/Relevant-Guarantee25 May 12 '26

I know that this does nothing but waste do i care what its technical name is no?

1

u/Key_Amphibian_1881 May 13 '26

immediately invoked noop arrow function in ecmascript

1

u/Significant_Debt8289 May 13 '26

Ah yes a lambda… the key to all messy code.

1

u/Renard_Fou May 13 '26

I have used these fuckass functions in JS multiple times but I deadass need to see one as a guiding tool not to mess them up

1

u/FuriousGirafFabber May 13 '26

seems like something is missing inside the {} or it doesn't do very much?

1

u/Wooden-Hornet2115 May 13 '26

I'm not a vibe coder and I don't understand. Why is an empty bracket greater than or equal to a empty curly bracket?

1

u/Worldly_Log_2803 May 13 '26

Boomers will post a no-op and act like it is important

1

u/Beautiful-Will5582 May 13 '26

Turn it sideways and suddenly it looks like a dirty joke

1

u/Own_Kaleidoscope7480 May 13 '26

Unsure why vibe coders would fail this? Copying the image in chatgpt gives the right answer 100% of the time

1

u/Chrinkus May 13 '26

A compiler would throw it away. It’s a no-op.

1

u/Top-Performer71 May 14 '26

out the booch up to the boobs. with a winky face

1

u/ZealousidealCost2470 May 14 '26

I've heard lambda and delegate function

1

u/Current-Macaroon9594 May 14 '26

isnt that not needed anymore? It's the JS workaround for not having public or private but they added the # before the variable.

1

u/kitkatas May 14 '26

Ok, but what are the modern use cases for it ?

1

u/Ruszardo May 14 '26

I use it when I need to call a asynchronous sequence with a few steps without awaiting for it but don't want to separate it to a method. Useful for some animations

1

u/deepbit_ May 14 '26

what about this (#(do))

1

u/looming-frog May 14 '26

The only correct answer to this is: it is pointless.

if you want an actual test of understanding of fundamentals, use something like this

a ^= b ^= a ^= b

and even that doesn't test actual skill. you want people with understanding of fundamentals, high frustration tolerance and dedication to analyse and solve problems.
corporations should stop looking for people who know tech X

1

u/paperic May 15 '26

Holi shet, is that a one liner xor swap?

That's insane.

Anyway, I wouldn't say that understanding things like 

(u => u(u))(u => u(u))

is pointless.

There's an entire branch of math dedicated to it: https://youtu.be/RcVA8Nj6HEo

Especially for react developers, this should be mandatory knowledge.

→ More replies (1)

1

u/switchbland May 14 '26 edited May 14 '26

Ha, I would have fumbled this too. My first thought was this:

:(){ :|:& };:

Anyway I am not a big fan of lamda functions, because it makes code less readable IMHO.
We don't have to pay for paper It is ok to give your code space.

1

u/No-Region8878 May 14 '26

like delegates in c#?

1

u/Significant-Baby-690 May 15 '26

I have never seen anything like this.

1

u/[deleted] May 15 '26

Hey im not a computer guy just a chemist and this sub radomly popped up. Is vibe coder just a word for losers that have no skill and use ai to code?

1

u/Think_Current_1942 May 15 '26

Its a vulva before and after sex. But you're programmers, you wouldn't know.

Tl;dr: the joke is sex, as always.

1

u/paperic May 15 '26

Fun fact: Lambda functions are turing complete.

Nothing else needed, no variables, no booleans, no arrays, no numbers, just lambdas of a single argument, the ability to use the argument in the body and parentheses are enough for a turing complete language.

1

u/Koseph-Jony May 15 '26

jokes on you i vibecode in lisp

1

u/hdd113 May 15 '26

Eww, what's that? Looks iffy.

1

u/Veigs May 16 '26

Just a silly ass function encapsulating a call to a lambda function with no logic or parameters contained within.

1

u/meutzitzu May 15 '26

Ah yes, the vagina syntax

1

u/Accurate_Antiquity May 15 '26

Tbh a lot of lambda-ish expressions are... obtuse at best. IIRC Objective C has some of the worst.

1

u/Accurate_Antiquity May 15 '26

But I mean, they're vibe coders so that they don't need/want to know what it is. Obv it would be weird for a vibe-coder-only to go to a dev interview but I wouldn't hold lack of detailed knowledge against a vibe coder.

1

u/Xhojn May 15 '26

It's a do-nothing function?

1

u/GrunemStonks May 15 '26

peepe and bagina

1

u/soul_shackles0 May 15 '26

It is cringy AF to use JS for these programming quirks. Real chads use C

1

u/SensitiveTax9432 May 16 '26

Ok I feel dumb. I’m not a real coder (except small BASIC routines) and I thought it was some kind of anatomical in-joke.

1

u/nhh May 16 '26

It's nothing really

1

u/Real_Ebb_7417 May 16 '26

Honestly, I've been working with some pretty good and experienced engineers and they also didn't know what this is (I used this kind of function definition + call and had to explain during code review).

And honestly it's kinda useless knowledge. It's a cool feature, but I wouldn't require any new hire to know this kind of shenaningans xd

1

u/Fit_Ladder_1545 May 16 '26

It’s an arrow function being run immediately I think :3

1

u/critsalot May 16 '26

an empty lambda function?

1

u/Certain-Ad-2418 May 17 '26

95% of devs won’t use this specific bs. actual parameters yeah fs but this is a useless question and engagement bait

1

u/Marthurio May 17 '26

This is one of many mechanisms to prevent introducing globally scoped code in JavaScript.

1

u/drew8311 May 17 '26

The correct modern day answer is "this looks like code which is AIs responsibility not mine"

1

u/sreekotay May 18 '26

undefined

1

u/Southern-Reality762 May 18 '26

It's a weird ass function

1

u/aksanabuster Sep 06 '26

Anonymous void function?

1

u/4w0k3n May 11 '26

fork bomb

1

u/PeachScary413 May 11 '26

Is that Javascript?

1

u/[deleted] May 11 '26

IMHO vibe coding should be an Analyst skill. Producing a working POC with business rules that enables the business workflow and incorporating the style guide to generate something that's been validated with the business is crazy valuable.

Teaming with the developers and architects to educate them on the ask and provide them the code to review so they can productionalize it by improving and making it align with frameworks. It's NEVER 0% useful and getting astarting point so that it's not a voyage of imagination definitely speeds things up. 

I know this works because my lead dev is using "vibe coding" to have the AI produce  ui by leveraging our vibe coded working html POC screens as inputs to his output and he's wiring up the integration layer and back end. 

The 2 reasons the analyst isn't going to the end point themselves is 1) analyst are not developers 2) there's not documentation on the backend - no data dictionary nothing to tell anyone what the stored procedure does - and it's all tribal knowledge.