Тёмный

Part 1: JavaScript the Hard Parts: Promises, Async & the Event Loop 

Codesmith
Подписаться 20 тыс.
Просмотров 11 тыс.
50% 1

Part 1 of JavaScript the Hard Parts: Promises, Async & the Event Loop video lecture with Samantha Salley, Lead Engineer at Codesmith.
During this workshop, you will learn how to master asynchronous JavaScript and promises! Our mental models of asynchronicity in javascript - the event loop, callback queue - are no longer enough. We have to augment them with the new world of native promises and async/await and understand them intuitively. In this session, we’ll do this so you can write readable code and debug effectively.
The workshop will cover:
- The challenge with single-threadedness in JavaScript.
- How asynchronicity enables much of modern web development
- The challenge with asynchronicity in JavaScript and how promises fix the problem of inversion of control
A combination of understanding promises and async/await under the hood and strategies for effective implementation will give you the tools to write clean pro asynchronous code in your work and projects.
SUBSCRIBE for more! 👉tinyurl.com/co... 👈
Stay connected to our community!
Codesmith: www.codesmith.io/
Learn JavaScript for Free: csx.codesmith.io/
Free Events & Workshops: www.codesmith....
Follow us to stay updated!
Facebook: / codesmithhq
Instagram: / codesmithio
Twitter: / codesmith_
LinkedIn: / codesmith-llc

Опубликовано:

 

10 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 18   
@reactivicky
@reactivicky 4 года назад
Video starts as 20:06
@Xuz999
@Xuz999 4 года назад
Such an amazing comment. Thanks boss.
@richardblackhound1246
@richardblackhound1246 3 года назад
20 minutes of waffle and advertising
@mortalcoil6576
@mortalcoil6576 3 года назад
Knowledge + pedagogy = easy learning. Thank you.
@welium123
@welium123 Год назад
I've been struggling with async JS for ages, but watching this video has helped so much. Thanks for the great explanations Sam!
@kim92se64
@kim92se64 Год назад
Finally, I understand JS flow of execution !!! I have already watched many youtube tutorials on this complex topic but for the first time I understand, how all things happen under the hood !!! Only because of your Lecture !!! awesome work Regard: Imran from Pakistan
@ashleychristensen9863
@ashleychristensen9863 2 года назад
This was my life saver today, thank you so much Samantha!
@Codesmith
@Codesmith 2 года назад
Thanks Ashley - Sam will really appreciate this
@janejin7173
@janejin7173 2 года назад
I can’t wait to enroll in Codesmith!
@franzisch9708
@franzisch9708 9 месяцев назад
Great video! Thanks so much! :-) It definitely helped me!
@gustavomonte6672
@gustavomonte6672 3 года назад
Thanks for sharing this!
@davidfromnorth7836
@davidfromnorth7836 4 года назад
As always, excellent job done!
@Robert-cw9ev
@Robert-cw9ev 3 года назад
If you put "1000" to a setTimeout, when is the countdown actually starting? When setTimeout hits the callback queue, or after all synchronous code gets executed?
@AB-cn5hb
@AB-cn5hb 3 года назад
Web APIs hits callback queue when it's done it's work. Set timeout calls Timer API, timer API starts counting. It finishes counting. It says it finished counting to callback queue and it's placed there. If there is other API waiting to be executed , it is placed behind. Literally a queue. Event loop looks for free global execution context and if it finds it to be free, it pushes first callback function on execution context. Rest is JavaScript on the roll. Rinse and repeat.
@missjmc512
@missjmc512 3 года назад
@@AB-cn5hb So to make sure I'm understanding this, essentially the countdown starts when setTimeout calls Timer API, and then Timer API starts the countdown?
@rg714gg
@rg714gg 3 года назад
Helpful video, though I recommend running at 1.25 speed
@rg714gg
@rg714gg 3 года назад
oh man that guy's last question is terrible, shouldn't have been included in the video
@kim92se64
@kim92se64 Год назад
38
Далее
🍏 Устарели ОФИЦИАЛЬНО! 🤡
00:32
Dropping In from the Clouds 🌁
00:17
Просмотров 1,8 млн
Advanced Async and Concurrency Patterns in JavaScript
39:43