JavaScript Visualized - Closures

  Рет қаралды 61,600

Lydia Hallie

Lydia Hallie

Күн бұрын

Пікірлер: 269
@theavocoder
@theavocoder 5 ай бұрын
💡Understanding how functions interact with their surrounding lexical environment is very important when working with JavaScript, and it's really not as mysterious as it might seem at times haha. I hope this video was useful, visualizing the detailed inner workings of tools I'm working with always helps me understand concepts better. I only use Apple Keynote to create the visualizations! Implementation details might differ, this is just based on the ECMA spec. Different engines may implement smarter garbage collection strategies that mitigate issues related to retaining large scopes in closures (e.g. the fetchAllUsers example).
@codewithrahull9636
@codewithrahull9636 5 ай бұрын
Please marry me😭
@mattpocockuk
@mattpocockuk 5 ай бұрын
@@codewithrahull9636 Weirdo
@ksubramanyeshwara
@ksubramanyeshwara 5 ай бұрын
Can we expect more advanced javascript and how javascript work behind videos? I would love if you release 2 or 3 videos a week. Thank You
@nitishjs5719
@nitishjs5719 4 ай бұрын
Can you please share link for ECMA spec you have referred to create above video?
@hieplevan1935
@hieplevan1935 4 ай бұрын
Hi Lydia, This is an amazing series about Javascript, Can I ask about Which Tool have been used for Virtualize this video?
@mattpocockuk
@mattpocockuk 5 ай бұрын
Banger after banger
@AkashSingh-hs5sg
@AkashSingh-hs5sg 5 ай бұрын
The typescript guy
@StarsManny
@StarsManny 5 ай бұрын
Bangfest
@edgeeffect
@edgeeffect 4 ай бұрын
Recommendation indeed! ;)
@ilisiedenis5877
@ilisiedenis5877 5 ай бұрын
I'm so happy you're back. Please keep making these videos because they're the best out there. I hope you can eventually cover all JavaScript topics!
@TerabyteTy300
@TerabyteTy300 5 ай бұрын
Yesss I’ve been waiting for this!! Thank you for keeping this incredible content going.
@Kue_J
@Kue_J 5 ай бұрын
The way you visualise these processes is amazing! Your videos are so helpful and I'm really looking forward to your next one.
@SergeyChernyshev
@SergeyChernyshev 5 ай бұрын
Great visual explanation of the concept that took me years to grasp back in a day - glad it will take less time for everyone who watches this! ;)
@j2devstudio
@j2devstudio 5 ай бұрын
Your videos especially these visualized series are the best !
@Brandonverzuu
@Brandonverzuu 5 ай бұрын
Your visualisations are a true inspiration! Love the simplicity and clarity they bring 👍
@amahmuudd
@amahmuudd 5 ай бұрын
Thank you for creating such a clear and informative video, Lydia Hallie! I would definitely recommend this video to anyone who wants to learn more about closures.
@peremogaua
@peremogaua Ай бұрын
I hope you're going to contionue making vids like that, because it is FIRE. This is unique but must watch for every experienced js dev content. I wish you all the best, and do not stop. You're nailing it!
@АлександрБуравов-ф9я
@АлександрБуравов-ф9я 5 ай бұрын
Lady, this is amazing! You have a talent for teaching. Visualization is your strong point. Thank you very much! ❤‍🔥❤‍🔥❤‍🔥
@filipbystricky7301
@filipbystricky7301 5 ай бұрын
Wonderful video as always! I didn't realize closures hold a reference to the entire environment record: I hoped they were a bit smarter and only held references to the variables they actually used, allowing the GC to free the rest. Good to know!
@theavocoder
@theavocoder 4 ай бұрын
Thank you! 🙏Just to get back to this - it actually depends on the implementation though; I cover the spec, but engines can use internal optimizations to eliminate "dead" variables even in such cases. V8/Chromium does this really well so in that case the issue with `fetchAllUsers` may not actually be an issue, but it's good to realize that that's not necessarily the default in all cases 😃
@elyoaprogrammer
@elyoaprogrammer 5 ай бұрын
Your videos are my happy day!!! They are like the a new chapter of my favorite show!!
@AryanSharma-lg7pn
@AryanSharma-lg7pn 4 ай бұрын
"What an explanation! Please bring more content like this frequently."
@madhuiitb-cse
@madhuiitb-cse 5 ай бұрын
One of the best explanation on the closures. Always you are on the point. Please, do continue more.
@musti-mm1
@musti-mm1 5 ай бұрын
You are the only one that uploads a video purely for the thrill of actually teaching something new in your unique way and not one of those "new video every week" just for the sake of it. Please keep it this way.
@hackytech7494
@hackytech7494 5 ай бұрын
Thank you so much ❤. You teach with great visualizations, with great explanations and with great smile. Please keep posting such videos of JavaScript🙏
@chrislanejones
@chrislanejones 5 ай бұрын
Yes, I love all of your diagrams, thank you so much for making these videos.
@UncleJemima
@UncleJemima 3 ай бұрын
if only my actual CS courses were taught this clearly. thank you for putting the time/effort into create this wonderful explanation!
@dedmanraizd
@dedmanraizd 5 ай бұрын
Your videos continue to be the ones I look out for when learning JavaScript. Thank you Lydia we appreciate you.
@chrislanejones
@chrislanejones 5 ай бұрын
Yes, Lydia and her cool diagrams are back... Thanks for making these.
@_victorjansson
@_victorjansson 5 ай бұрын
Never been explained better than this. Thanks!
@mdahoradev
@mdahoradev 4 ай бұрын
Awesome video!! Please keep bringing more bangers like this. These videos helps A LOT.
@saifullahrahman
@saifullahrahman 5 ай бұрын
This channel is a goldmine
@akj3344
@akj3344 5 ай бұрын
Visuals and explanations are excellent. I have never seen tutorials presented this well.
@ChesterSerenity
@ChesterSerenity 4 ай бұрын
Best tutorials on javascript on youtube, keep the good work Lydia, you're really good at explaining things, love the humor in videos!
@pareshkamaliya2493
@pareshkamaliya2493 10 күн бұрын
Simply brilliant. You made it easy to understand.
@amitavasengupta5580
@amitavasengupta5580 4 ай бұрын
Ma'am you're doing fabulous job👏. No loud intros, no memes but original quality content which is class and extremely rare to find.
@nettoaoquadrado
@nettoaoquadrado 4 ай бұрын
I from Brazil, and I love your content!!! Please, continue with! It is so useful.
@sawekccc2211
@sawekccc2211 5 ай бұрын
This is pure gold. Best JS series ever
@rebelmachine88
@rebelmachine88 5 ай бұрын
Another excellent video! You are so good at explaining this stuff.
@edgeeffect
@edgeeffect 4 ай бұрын
I was just about to come over here and say I wished you'd do more of these... and there was a new one waiting for me. :) I've been doing JS for a long long long long time, so there MIGHT not be much I can actually learn from these videos but I still really enjoy watching them. I wish these had been around when I was learning, and I'd certainly recommend them to anyone who's getting to grips with JS. A lot of programming content on KZbin is very poor indeed but these videos are absolutely great! :)
@toptrends88
@toptrends88 4 ай бұрын
As a fellow software engineer, I just wanted to say how much I appreciate your videos. They're incredibly well-done, and I only wish I had access to content like this when I was first learning these concepts. Being a visual learner, I used to draw out each concept to fully grasp them. Now, I recommend your videos to the junior devs and interns on my team-they've found them incredibly helpful. If possible, it would be amazing to see a 'JavaScript Visualized - Data Structures and Algorithms' series on your channel. I’ve been reading *Grokking Algorithms: An Illustrated Guide for Programmers and Other Curious People* by Aditya Bhargava, and I couldn’t help but think how amazing it would be to see those concepts brought to life in your visual style. Keep up the great work!
@brb639
@brb639 4 ай бұрын
You're correct. JS Visualized - DSA series would be awesome. Those are the main focus of SE interviews. It will be a great help.
@SEngMedia
@SEngMedia 4 ай бұрын
That's a great idea. I'm also a visual learner. Looking forward to a DSA series with these cool visualizations.
@ProJSGrammer
@ProJSGrammer 4 ай бұрын
1. Javascript data structures and algorithms by Sammie Bae, 2. Data structures and algorithms with Javascript by Michael Mcmillan are also good. I would love to see a visualized explanation.
@theavocoder
@theavocoder 4 ай бұрын
@@toptrends88 good idea, I’ll try to create some :) I wrote a visualized book on all this years ago so it would be good to update!
@toptrends88
@toptrends88 4 ай бұрын
@@theavocoder Awesome. Looking forward to it.
@REAL_Fred_Walker
@REAL_Fred_Walker 5 ай бұрын
Your videos are best JavaScript visualizations on the internet by far
@Kurigohan-and_k
@Kurigohan-and_k 5 ай бұрын
Yeah! Another awesome video! 🔥🌈 I always feel a sense of joy whenever something new comes out on this channel ❤ Thank you Lydia!
@besizzo
@besizzo 3 ай бұрын
I find your explanations extremely useful. Your examples and quizzes at the end are just 🤌🏻 Please, keep making these videos about how JS works under the hood and other advanced topics 🙇🏼
@caramel0sugar
@caramel0sugar 4 ай бұрын
Ok, i haven't had the time to watch everything yet because i just discovered your video 10min ago but i already liked all your published videos and subscribed to your channel because my brain needs theis type of visual aid to understand better and i want to encourage you to keep doing as many videos as you can with programming concepts! I will now proceed to share your channel to my computer programming classmates
@BornInBharat
@BornInBharat 4 ай бұрын
Best explanation in the world! Keep making these videos. ❤
@ЕвгенийПетрушенко-ъ6р
@ЕвгенийПетрушенко-ъ6р 3 ай бұрын
Thanks for the detailed explanation. I've always dreamed of a code visualization like this. I hope there will be more such videos.
@pixelhusten
@pixelhusten 5 ай бұрын
Really well explained, if I ever have a junior in the team again, I'll refer him to your videos. What I really like is your visualizations, they are really well done and explain the processes under the hood even better.
@TechSpot56
@TechSpot56 5 ай бұрын
Great Explaination, Keep these videos coming.
@Abated
@Abated 5 ай бұрын
Really early on in my coding journey, but found this pretty fascinating. Hope to see more.
@letsplayit7670
@letsplayit7670 Ай бұрын
This is THE best video on closuers on the internet
@ViktorShaparenko
@ViktorShaparenko 5 ай бұрын
In my opinion, This is the hardest topic in JS, actually with execution context. I have to rewatch it one more time or even more. Thank you for the video.
@zephilde
@zephilde 5 ай бұрын
Great work! I learned nothing because, hey 🤷🏻‍♂senior js dev, but I think this kind of crystal clear visual explanation is really great for beginers! I would have reduce headaches years ago if you had existed before Lydia ! Continue this way! :)
@mjawale12345
@mjawale12345 4 ай бұрын
I love visual learning and thanks for your all videos , the special one for me was event loop. Your explanation is on point nd easy words , also the motions are awesome. I request you to have an video on nodejs internal working especially thread pool and async execution of threads.
@JoeBuza
@JoeBuza 4 ай бұрын
Thorough and well structured. Thank you
@penguindrummaster
@penguindrummaster 5 ай бұрын
Honestly, coming from Python, I already had a pretty firm understanding of closures and scopes, but I still really enjoyed the deep explanation as well as visualizations of JavaScript internals. Great work!
@smjeelanibasha3048
@smjeelanibasha3048 3 ай бұрын
after watching your videos in the graphical representation . My mind is blow up.nice explanation, keep it up.
@parthjohar2273
@parthjohar2273 5 ай бұрын
Great explanation with Great Visualization! Looking forward to seeing more content like this!
@BeMyAndromeda
@BeMyAndromeda 5 ай бұрын
Awesome explanation Lydia 🔥
@BilalAhmed-nx6sr
@BilalAhmed-nx6sr 5 ай бұрын
Woah... a new video finally... can't believe JavaScript can be this easy to understand.
@gizemavcs8599
@gizemavcs8599 3 ай бұрын
You're amazing!! These videos so helpful.
@starmechlx
@starmechlx 4 ай бұрын
This is so dang good. I knew _how_ closures worked, but I never knew _why_ closures worked. I feel like if I got asked this in an interview and gave this explanation, it would maybe catch the interviewers off guard. :D
@cannotthinkofanybetterhandle
@cannotthinkofanybetterhandle 4 ай бұрын
Interviewers might reject you thinking you are making stuff up
@FadingSuns-dn5hy
@FadingSuns-dn5hy 5 ай бұрын
This is a legendary quality content!
@TemuriKitoshvili
@TemuriKitoshvili 5 ай бұрын
Your videos and explanations are best
@pouryaalipanah3407
@pouryaalipanah3407 3 ай бұрын
amazing videos and explanations and visual examples . thanks thanks and many thanks , please go on
@viktorpavlovych
@viktorpavlovych 5 ай бұрын
Thank you so much, Lydia, really useful and clear explanation
@soheil2759
@soheil2759 5 ай бұрын
Thank you for your visualized videos They are so much helpful
@sanjeebpadhi8210
@sanjeebpadhi8210 5 ай бұрын
Lydia great explanation & visual effect are amazing.
@iamzeeali
@iamzeeali 4 ай бұрын
Amazing video!! Please make a playlist for the all advanced topics in JavaScript(Hoisting, closures, this, FP, debouncing, throttling, polyfills, etc)
@jazc8354
@jazc8354 6 күн бұрын
Love your videos! They been so helpful! thank you thank you
@pankajrawat7435
@pankajrawat7435 5 күн бұрын
Quality of the content and hardwork ❤
@jntaca
@jntaca Ай бұрын
Your videos are very helpful. Thanks.
@sabermazoji-s7b
@sabermazoji-s7b 4 ай бұрын
Great video! Please keep making videos like this :)
@KlausKazlauskas
@KlausKazlauskas 4 ай бұрын
Recently found your channel and your videos are amazing. Great thorough explanations assisted by those amazing visuals! What tools do you use to make them? The attention to detail is so big that I imagine it takes a very long time to make all look as tight and consistent as it is.
@michaelharrington5860
@michaelharrington5860 5 ай бұрын
The only YT videos I like before hitting play
@theavocoder
@theavocoder 5 ай бұрын
ah thank you!! 🙏 but please don't be afraid to let me know if there are things you don't like, haha
@AbelAdane-s5h
@AbelAdane-s5h 5 ай бұрын
Welcome back your explanation is great keep it up
@itsadira007
@itsadira007 4 ай бұрын
Wow this is really amazing, I hope you keep making videos like this
@frankdearr2772
@frankdearr2772 4 ай бұрын
Great topic, thanks 👍
@nikbivation
@nikbivation 5 ай бұрын
very nice visualizations, and amazing explanations!
@sudarshanmore2418
@sudarshanmore2418 Ай бұрын
Craazzyyy explanation and visualization.
@grimplate
@grimplate 3 ай бұрын
Excellent explanation and the way u present phew! thanks for doing this for free....
@DevMe-f5v
@DevMe-f5v 4 ай бұрын
I won't skip ads for you, thanks a lot
@jayesh3446
@jayesh3446 2 ай бұрын
we need more videos like this .
@kevinschiener
@kevinschiener 5 ай бұрын
Wrote about a related issue in React some weeks back. Great explainer from you; and I especially dig the consistent wording around environment record and execution context etc. I found it hard to keep track of those definitions when writing - intermingled them with scope and variable context. You did a much better job 👏
@manishshaw1002
@manishshaw1002 5 ай бұрын
Waited for a long time to get the video!😮
@gatogordo4131
@gatogordo4131 4 ай бұрын
Brutal! Perfect, now I got it
@roskiboy
@roskiboy 5 ай бұрын
Me gusta como presentas la información; es muy entendible aunque no entienda el inglés. Saludos.
@wduandy
@wduandy 4 ай бұрын
Nice explanation. What software you use for the animations?
@petazeta76
@petazeta76 5 ай бұрын
Goog!! Im looking forward to hear about iterators
@fazzyakamello
@fazzyakamello 5 ай бұрын
Thanks for sharing this video! It was really useful
@abhijitez
@abhijitez 5 ай бұрын
As usually, detailed breakdown on the internal working 💯
@vOnez212
@vOnez212 5 ай бұрын
Awesome job! Keep it up. This is great content.
@peterbahrynovskyi1691
@peterbahrynovskyi1691 Ай бұрын
Continue making videos, you have a real talent!
@subhajitdas2784
@subhajitdas2784 4 ай бұрын
The explanation was so clear that I now completely understand what JS closures are. Additionally, I also got closure to why my ex broke up with me.
@dream11tatyabichoo92
@dream11tatyabichoo92 3 ай бұрын
closure is just 2 pointer dereference, every closure variables is translated to these two instructions mov rax, [closure + [[Environment]]] ; First dereference: Get context object address mov rdx, [rax + 0] ; Second dereference: Get `x` from slot 0 in the context object
@tahasin2321
@tahasin2321 5 ай бұрын
You are great about explaining JavaScript ❤❤
@babyfox205
@babyfox205 3 ай бұрын
this fantastic, ❤thank you so much you adorable angel of a person ❤ so much hard work and great explanation, please keep making new videos 🙏
@whiteandy
@whiteandy 5 ай бұрын
Gold content. THANK YOU VERY MUCH
@ПавелОмега
@ПавелОмега 3 ай бұрын
How do you do such kind of visualization? What app do you use for it?)
@Doovmeister
@Doovmeister 3 ай бұрын
this shit making me feel hella dumb and hella smart at the same time
@veitkunz7058
@veitkunz7058 2 ай бұрын
Can you make a video about the differences between normal function and arrow functions? Because somehow there a different, but I have struggle to understand it. For example the handling of "this" differs and when a function is declared in an object, it is different also. With your videos, I understand very well, how this stuff works in depth.
@KeithAdams-p8z
@KeithAdams-p8z Ай бұрын
thank you for making these videos
@varun-ns1nf
@varun-ns1nf 5 ай бұрын
Wow great explanation. Please make a video on "this" key word in JavaScript
@Vedarta
@Vedarta 4 ай бұрын
My god, your videos are awesome!👏🏻👏🏻👏🏻
@AyushRaj-ju4gb
@AyushRaj-ju4gb 24 күн бұрын
You are doing great, Keep up the good work
@zenious
@zenious 5 ай бұрын
Thanks for the amazing content!
@nguyenucan4746
@nguyenucan4746 4 ай бұрын
Awesome works!
@MohammadJNajafi
@MohammadJNajafi 5 ай бұрын
Thank you very much for the great content ❤
JavaScript Visualized - Execution Contexts
11:41
Lydia Hallie
Рет қаралды 78 М.
Learn Closures In 13 Minutes
13:22
Web Dev Simplified
Рет қаралды 72 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
100 DAYS of making my first proper Game
9:23
Elián Geser
Рет қаралды 116
JavaScript Visualized - Promise Execution
8:42
Lydia Hallie
Рет қаралды 199 М.
What's new in React 19 | Lydia Hallie
20:04
React Conf
Рет қаралды 55 М.
Closures in JS 🔥 | Namaste JavaScript Episode 10
22:44
Akshay Saini
Рет қаралды 899 М.
JavaScript Event Loop -- Visualized!
29:43
ColorCode
Рет қаралды 27 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
Only The Best Developers Understand How This Works
18:32
Web Dev Simplified
Рет қаралды 117 М.
The Perfect Dependency - SQLite Case Study
19:32
Tom Delalande
Рет қаралды 71 М.
I might have a new favorite state manager...
22:34
Theo - t3․gg
Рет қаралды 71 М.