News for hackers. Stuff that matters.
Re:Understanding JavaScript Execution Context like never before by pdxandi on Friday June 12, 2020 @06:55PM (#23504725)
Just a general note that the grammar in this article could use some help. I wanted to continue reading but found myself tripping up and losing my train of thought. I'd be more specific if I weren't on mobile.
Re:Understanding JavaScript Execution Context like never before by kinow on Friday June 12, 2020 @04:37PM (#23503659)
Another good resource for understanding JS execution context: https://tylermcginnis.com/ultimate-guide-to-execution-contex...

You can use its JavaScript Visualizer to step through the context creation (ES5, doesn't work too well with ES6): https://tylermcginnis.com/javascript-visualizer/

Re:Understanding JavaScript Execution Context like never before by SahAssar on Friday June 12, 2020 @05:46PM (#23504244)
Using looping gifs everywhere makes it really hard to focus on the text I'm trying to read.
Re:Understanding JavaScript Execution Context like never before by whycombagator on Friday June 12, 2020 @06:07PM (#23504398)
Huh?

Maybe my adblocker is blocking some, but I only counted 4 - and 3/4 are demonstrating execution context. Only 1 is irrelevant.

Also, I thought all gifs looped - or at least, it’s common for them to loop.

Re:Understanding JavaScript Execution Context like never before by SahAssar on Friday June 12, 2020 @06:19PM (#23504478)
I didn't say that they were all irrelevant, only that they are distracting when trying to read the textual content.

It's possible to do non-looping or at least pauseable either by using a video file (like most "gifs" online do these days) or using JS.

Either way, having stuff move around right next to text you want people to focus on is generally not a good idea.

Re:Understanding JavaScript Execution Context like never before by chkaloon on Saturday June 13, 2020 @11:21AM (#23510050)
I wonder if I ran this through Google Translate a few times it would become easier to read.
Re:Understanding JavaScript Execution Context like never before by k__ on Friday June 12, 2020 @04:31PM (#23503586)
Can't remember the last time I cared about the execution context since I use arrow functions everywhere.