[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

this (function() { }()); or this (function() { })();

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 20
Thread images: 2

File: notdoog.jpg (24KB, 400x400px) Image search: [Google]
notdoog.jpg
24KB, 400x400px
this

(function() {
}());


or this

(function() {
})();
>>
File: javascript.png (32KB, 576x402px) Image search: [Google]
javascript.png
32KB, 576x402px
Suicide
>>
>>59815350
Why the fuck do you have * instead of =?
>>
>>59815350
>babby doesn't know about type coercion
>>
>>59815350
gotta love the NaNNaNNaNNaNNaN batman languages
>>
>>59815330
outside wrap because it clearly expresses that you want to evaluate the whole function as one unit.

in all honesty though, IIFE is kind of cancerous and the only time I end up using it is when I'm in a template string.
>>
also
>using function()
>not =>

lame city
>>
>>59815330
we have module loaders now you know
>>
>>59815350
>purposely mixing types that don't make sense
>"LOL, look at this strange output xDDD"
not an issue if you know what you're doing.
>>
>>59815794
~function(){}()
>>
>>59815350
If you write code like this, it is your problem, not JS.
>>
And still, when a JS app/script breaks, at worst a browser tab has to be closed.

When a C program breaks, half of the internet is down or has major security problems.

>still using segfaulting, insecure C in this day and age
>it's the programmer's fault they said

And yet, they write shitty edge cases to "prove" how a language is bad, not the retards who write those shitty edge cases, in the first place.
>>
>>59816254
bitwise operator on a IIFE?

what's your point?
>>
>>59816464
Who said anything about C you insecure faggot?
>>
>>59816568
It doesn't matter what you use as long as it's a unary operator, !function or +function works too

Whereas just function(){}() won't work

See http://stackoverflow.com/a/7586969
>>
>>59816118
No programmer is free from mistakes. A good language would at least say "Hey dumbass, what you're doing is stupid." while JavaScript silently skull fucks your data.

Please stick your penis in a toaster before ever thinking about writing code again.
>>
>>59816464
Apparently you don't know about js fags who are using it for server code and are even pushing to have it adopted for embedded systems.
>>
>>59816646
No, you just lack skills
>>
>>59816613
and your point is what exactly?
>>
>>59816705
Save 1 byte? Idk man why are you so difficult
Thread posts: 20
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.