seen from United States

seen from Malaysia

seen from United States

seen from T1
seen from United States
seen from Malaysia

seen from Malaysia
seen from T1
seen from Türkiye
seen from United Kingdom
seen from Kuwait
seen from China
seen from Slovakia

seen from Germany
seen from Brazil
seen from United Kingdom
seen from Germany
seen from India
seen from United States
seen from China
An Alternative for IIFEs In JavaScript
In the past to ensure global values were not created accidentally, an Immediately Invoked Function Expression (IIFE) had to be used:
function printErrorOnly(callback) { // Errors should be handled in a direct way, but this is just for // demonstration purposes. try { callback(); } catch(e) { console.log(e); } } (function() { var a = 1; let b = 2; const c = 3; console.log(a, b, c); // 1 2 3 })(); printErrorOnly(() => a); // ReferenceError: a is not defined... printErrorOnly(() => b); // ReferenceError: b is not defined... printErrorOnly(() => c); // ReferenceError: c is not defined...
Using an Arrow Function will also work. Now with let and const a block can be used because they only exist in that block (block scoped):
{ var a = 1; let b = 2; const c = 3; console.log(a, b, c); // 1 2 3 }; printErrorOnly(() => a); // (no message and no error) printErrorOnly(() => b); // ReferenceError: b is not defined... printErrorOnly(() => c); // ReferenceError: c is not defined...
A much simpler syntax. But note how the var was leaked since it is not block scoped. In the vast majority of cases let or const can be used in place of var, so a simple block will work to provide isolation. Though for libraries that wrap unknown code (e.g. Webpack) or legacy code, IIFEs still need to be used. In the future this will be solved by ES6 Modules which provide their own top level scope.
Github Location: https://github.com/Jacob-Friesen/obscurejs/blob/master/2018/iifeReplace.js
I’m looking for someone to love me lmao
someone’s smartphone app told them the doorbell had detected a visitor at 3am (and four/five more times throughout early morning hours) (reddit)
Brendon Urie: Instagram Live 2017
Fan: “What are some songs you made while stoned?” Brendon: “The last five albums!” …. Brendon: *laughs* …. Brendon: *shrugs* Come on now.
Things I’ve learned so far as a scopist:
Many attorneys cannot speak and stumble over their words.
People (not just the rich) can get away with a shit-ton with attorneys that graduated top of their class.
Holy shit don’t let your ego get in the way of you paying for a fucking translator to be there. Holy shit. Pay for a translator to be there is there’s a language barrier. Broken language skills will kill a deposition and make you all look foolish.
Some people will try to sue just to sue bc they can.
A lot of legal battles going on are still going on from 2021. They aren’t being seen until now. Our legal system steamrolls the rich and famous so their cases get seen and done first. Everything else can wait.
Learn how to do your own taxes if you run a business.
If you sue for medical malpractice, more people than you realize and will most likely never meet will learn your medical history.
There’s pretentious assholes in every field of work who believe they’re better than everyone in the business. (They aren’t, but they can continue to pretend.)
You forget every other program doesn’t automatically add double spaces after every period. They also don’t capitalize every sentence automatically from time to time or automatically swap out punctuations.
Rails ActiveRecord scoping method allows applying scope to all queries in block. Rails7 adds all_queries which applies scope to objects quer