16.15: Promise.all() - Topics of JavaScript/ES6

  Рет қаралды 127,776

The Coding Train

The Coding Train

Күн бұрын

Пікірлер: 119
@erikakerberg1104
@erikakerberg1104 6 жыл бұрын
Never stop doing these. This is positively the best coding channel on KZbin.
@ChrisFotosMusic
@ChrisFotosMusic 4 жыл бұрын
the most impressive thing about daniel shiffman is that he somehow learned to code *without* watching any coding train videos
@arlomusa1400
@arlomusa1400 3 жыл бұрын
i guess it's kinda randomly asking but does anybody know of a good site to stream newly released movies online?
@vincentethan9528
@vincentethan9528 3 жыл бұрын
@Arlo Musa try flixzone. Just google for it :)
@emerymarcus3710
@emerymarcus3710 3 жыл бұрын
@Vincent Ethan definitely, been using FlixZone for years myself =)
@arlomusa1400
@arlomusa1400 3 жыл бұрын
@Vincent Ethan thanks, I signed up and it seems to work :D Appreciate it!
@vincentethan9528
@vincentethan9528 3 жыл бұрын
@Arlo Musa happy to help :D
@arunKgowda
@arunKgowda 4 жыл бұрын
Damn i just saw his async await in recommendations list. This guy says "in my previous video" . Me: ok let me check first of the series I just forgot I'm here to gain knowledge and watched as if its a movie. Believe it or not I'm into JS and react since 2 years. Never got this stuff stuck in my head as better as this. I'm just grateful to u. Thanks a ton
@pesahson
@pesahson 3 жыл бұрын
I've decided to really understand async JS, instead of just doing api calls without fully knowing what's going on and your videos helped a lot. they're fantastic.
@florianspringer8581
@florianspringer8581 4 жыл бұрын
Thank you for the series! Going through the evolution of the asynchronous concept step by step made it a lot more clearer to me.
@RandStuffOfficial
@RandStuffOfficial 6 жыл бұрын
10:42 "aPEARing" 😎
@ChrisFotosMusic
@ChrisFotosMusic 4 жыл бұрын
leave immediately
@0x0abb
@0x0abb 3 жыл бұрын
it's actaully nice to see it live and how these small mistakes happen to everyone - nice work in all!
@michaelcarnevale5620
@michaelcarnevale5620 3 жыл бұрын
the skeleton made it immediately clear to me, and i didn't realize it required an array as argument.. great vid thnx
@sabirmohammedi
@sabirmohammedi 2 жыл бұрын
Great videos! thanks for making the concept clear in such a simple way..
@TheCodingTrain
@TheCodingTrain Жыл бұрын
Thank you for the support!
@mikegogl
@mikegogl 4 жыл бұрын
Thank you man thank you. It sucks that I am paying for a curse and keep coming back here to understand whats going on in the paid course. I will contribute for sure my friend!
@MichalZisman
@MichalZisman 4 жыл бұрын
02:10 "I'm trapped in an ATM vestibule with Jill Goodacre!"\ On a more serious note, I am getting ready for an interview, and this really helped me understand Promise.all(). Thanks!
@ppena120
@ppena120 4 жыл бұрын
Thanks for these videos. These are super good and breaks everything down in a very entertaining way yet super educative.
@creativeplanet2820
@creativeplanet2820 4 жыл бұрын
They're returned in the same exact order as they were set in the array, that's the main takeaway for u if ur in a hurry or on an urgent product bug fix, like i was :D finely explained !
@sulaimanharith7293
@sulaimanharith7293 3 жыл бұрын
one of the best coding channel. you are very cool way of sharing your knowledge to others. Great job.
@suryamanipandey4752
@suryamanipandey4752 2 жыл бұрын
A great Teacher you are
@saurabh7489
@saurabh7489 3 жыл бұрын
Thank You very much Sir. This is one of the best coding tutorials I have seen.
@ankitsingh7919
@ankitsingh7919 2 жыл бұрын
detailed explaination... why and how it works this way .. thanks for this video
@danhle7999
@danhle7999 3 жыл бұрын
keep doing great work sir, this is the first time I watch your video and I am impressed with your enthusiasm and passion thank you you have my support
@assaulterpt
@assaulterpt 3 жыл бұрын
My dude, thank you very much! I was having this problem creating a list for the sidebar navigation of my site.
@ianchui
@ianchui 6 жыл бұрын
oh my gosh, this is so useful for what I am doing. thank you!!
@kevintraets
@kevintraets 4 жыл бұрын
Seriously dude, one of the best tutorial serie out there
@celina6204
@celina6204 3 жыл бұрын
i loved every minute of this
@marlegagaming1274
@marlegagaming1274 3 жыл бұрын
That's what she said 🤣
@rnmmakings4989
@rnmmakings4989 5 жыл бұрын
you are my favourite coder
@kornelijussliubauskas8299
@kornelijussliubauskas8299 2 жыл бұрын
Hey, does this work as ACID wrapper with the DB's? What I mean by that is if array of promises would simply be calls to mongodb and if any of them fail how does this all or nothing work then ? Thank you.
@kartikshirke9542
@kartikshirke9542 4 жыл бұрын
You make things look easy!
@mylladecastro
@mylladecastro 6 жыл бұрын
Hey! I'm new to JS so I didn't get one thing: why is the wordGIF function returning a Promise? It seems to me like it is returning an object with the 'let' variables results but you're able to handle it as a promise... Can anyone help me?
@gabechevalier1567
@gabechevalier1567 6 жыл бұрын
I know my reply is pretty late, but I looked it up and the reason behind wordGIF returning a promise is that async functions always return promises, so whenever you don't specify that it's a promise, the return value is wrapped in a resolved promise. So if you had a function like: async function 7isTheBestNumber() { return 7; } It would be the exact same as writing: async function 7isTheBestNumber() { return Promise.resolve(7); } I hope this helps!
@mylladecastro
@mylladecastro 6 жыл бұрын
+Gabe Chevalier ah, okay, makes sense. Cool! Thank you, Gabe!
@Raftor74
@Raftor74 6 жыл бұрын
Thank you for your awesome videos! Very good examples.
@danser_theplayer01
@danser_theplayer01 Жыл бұрын
Oh yeah some websites lag a lot when loading all the ads and pictures and whatnot, and so they start to "crawl". I hate that, like I just aligned the article with my screen and now it's crawling down and I need to scroll again.
@rafadydkiemmacha7543
@rafadydkiemmacha7543 5 жыл бұрын
11:00 why would you use that ugly for loop though?
@Vinsanity0050
@Vinsanity0050 4 жыл бұрын
@2:02 Does anyone know if once you have confirmed your application works correctly, in order to deal with a word from wordnikAPI not matching with a gif from giphyAPI, could you use a recursive approach and call on wordGif(num) again in the error handling? Would it keep running until it found a match for all words used to display?
@kongzilla2897
@kongzilla2897 3 жыл бұрын
Yes I think we can add one more recursive call in .catch
@rnmmakings4989
@rnmmakings4989 5 жыл бұрын
hello sir, really you are amezing.. bcoz you create a comic environment while occurring error on your video and its intresting
@blusanders
@blusanders 3 жыл бұрын
Always so helpful. Thank you!
@Luiz_Gonzagaa
@Luiz_Gonzagaa 4 жыл бұрын
This video is amazing! You're the best!
@antonioquintero-felizzola5334
@antonioquintero-felizzola5334 6 жыл бұрын
Another great video, as usual.
@dreamyrhodes
@dreamyrhodes 3 жыл бұрын
You could like in try catch send a resolve in the catch too. Then you'd not get an error that breaks the promise chain but still could in the catch jump the creation of the html elements but display an error gif instead. Of course it's fishy to use a resolve() in case of an error but here it would make sense since you still want the other gifs that work.
@zinsy23
@zinsy23 4 жыл бұрын
Awesome tutorial as always! I have been having this issue on my program that I'm doing for fun where I need to add a sleep to a function but I want the draw loop to keep going. I wonder if I can use this async/await to work around this?! I haven't worked on it for several months now but if I get back to it, I wonder if it will solve the problem. I'm excited to try it!
@dharashah6010
@dharashah6010 3 жыл бұрын
@2:50 word is, interpolation
@sebastianbg5369
@sebastianbg5369 5 жыл бұрын
Great Series! Thanks you. I've always wondered, what text editor do you use?
@TheCodingTrain
@TheCodingTrain 5 жыл бұрын
VSCode This workflow video series might help! kzbin.info/aero/PLRqwX-V7Uu6Zu_uqEA6NqhLzKLACwU74X
@LOLMAN22
@LOLMAN22 5 жыл бұрын
Can you do a video on the loading bar?
@anirudhbhardwaj8373
@anirudhbhardwaj8373 6 жыл бұрын
how do you tell javascript if the right mouse button is click?
@shivamdubey8488
@shivamdubey8488 5 жыл бұрын
hey javascript i am clicking the right mouse heck yeah !!
@elilopez_3105
@elilopez_3105 3 жыл бұрын
Thank you soo much!, I understand now!
@bavariancake9397
@bavariancake9397 3 жыл бұрын
So what's gonna be the alternative when we want to avoid that all will fail if one fail but still execute the code in the similar fashion?
@farzanehparvar_
@farzanehparvar_ 5 жыл бұрын
Great video. Thank you for sharing.
@gabydewilde
@gabydewilde 3 жыл бұрын
yes kids, there is no onerror callback! If any of the promises doesn't work out nothing works anymore. Welcome to 2021!
@elAmigo805
@elAmigo805 6 жыл бұрын
Why would a for loop prevent the promise.all() to fail, if there's an error, where as the promise.all() by itself totally fail? Can someone provide a topic or subject on how this works so I could do a little more research online
@shaswatlenka3617
@shaswatlenka3617 6 жыл бұрын
Hey! your videos are great! Can you make a video on how to read source code of a javascript related open source project, or just what should be the approach to jumping into source code? [PLEASE!]
@AbdallaElmedny
@AbdallaElmedny 6 жыл бұрын
Shaswat lenka step 1- open gitbub, 2- find src folder or appropriate folder if its a mono repo, 3- start reading source code based on what you are interested ib
@shaswatlenka3617
@shaswatlenka3617 6 жыл бұрын
Hey Abdalla! I know these things. Usually, Open Source Projects have a lot of dependencies and reading the source code becomes a heck of a job. I wanted a foolproof approach to dive into the large codebase and how to know what was in the mind of the programmer while writing a particular line of code.
@emaestre_dev
@emaestre_dev 5 жыл бұрын
Great video my friend! Thank you. Take care😁😄
@nandarora8036
@nandarora8036 6 жыл бұрын
Async function returns a promise. Period. Async function returns an object which has the word and the image url. It somehow feels a lot confusing. Can you please explain this? Thanks.
@cindy0092
@cindy0092 6 жыл бұрын
"The async function declaration defines an asynchronous function, which returns an AsyncFunction object. " developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function
@bayrockdev
@bayrockdev 6 жыл бұрын
It simply wraps the returned object into a new promise instead, because the function is async.
@wimsmets4286
@wimsmets4286 6 жыл бұрын
I love unlisted videos
@WithShahi
@WithShahi 5 жыл бұрын
whoops,,,,,, you are awesome whooOOOps,,,,,,, what an interesting series whoops ,,, whoops ,,, your teaching style is out of the box☺️ 😍 🎸 🙌 👏
@lukaskovar6921
@lukaskovar6921 6 жыл бұрын
Wow that's so useful. Code is still becoming easier to learn and also to write. I think ES267 will have preincluded functions from P5.JS XD.
@blasttrash
@blasttrash 6 жыл бұрын
what is es267? is that a specification number like java has with jsr etc? new to javascript. thanks
@nahueljo
@nahueljo 6 жыл бұрын
He was just making a joke about a super-future version of the standard that would include functions from the P5JS library. ES5, ES6, ES7 and ES8 are the currently used specification versions. en.wikipedia.org/wiki/ECMAScript
@blasttrash
@blasttrash 6 жыл бұрын
oh ok. thanks. :D
@romanemul1
@romanemul1 6 жыл бұрын
to jo. Java krade od ceckaru a p5 od javy.
@motivatemindz3320
@motivatemindz3320 2 жыл бұрын
you are awesome. thank you so much.
@ismetomerkoyuncu1179
@ismetomerkoyuncu1179 2 жыл бұрын
Thank you so much. . .
@paramjeetdhiman1997
@paramjeetdhiman1997 4 жыл бұрын
Thank you! Sir.
@jacobpowell5648
@jacobpowell5648 6 жыл бұрын
What are you programming on?
@phone5555482
@phone5555482 4 жыл бұрын
You are so good!
@itshamiiid
@itshamiiid 2 жыл бұрын
thanks. helpful video.
@BobbyBundlez
@BobbyBundlez 2 жыл бұрын
This was amazing
@DevrajSinghRawat
@DevrajSinghRawat 6 жыл бұрын
amazing series .. I had started with part 1 with no idea about promises but now I can promise that how to keep promise ;-)
@juschu85
@juschu85 6 жыл бұрын
Where can I see the Livestream? It looks like this video was just uploaded to KZbin. Are you using Twitch or something like that?
@TheCodingTrain
@TheCodingTrain 6 жыл бұрын
I live stream right here on this channel! Click subscribe and the alarm bell to get notifications.
@juschu85
@juschu85 6 жыл бұрын
I already subscribed but didn't activate notifications (I changed that now and this is the second channel where I did that). I'm used to the live chat that is displayed on live streamed videos even after the stream stopped. So I thought you brodcast the stream somewhere else. Do you cut the recorded stream into pieces and upload it sepreatel like regular videos and is that the reason why I don't see the chat?
@FaithFedora
@FaithFedora Жыл бұрын
You are amazing. Pls make a react series 😩😩😩😩
@mahendranthivagar4890
@mahendranthivagar4890 6 жыл бұрын
Please make a separate playlist for Topics of Javascript/ES6.
@TheCodingTrain
@TheCodingTrain 6 жыл бұрын
kzbin.info/aero/PLRqwX-V7Uu6YgpA3Oht-7B4NBQwFVe3pr
@mahendranthivagar4890
@mahendranthivagar4890 6 жыл бұрын
@@TheCodingTrain Thank you so much for your quick response
@A_Lesser_Man
@A_Lesser_Man 4 жыл бұрын
albeit a little bumpy, still very informative, ty
@buhlemwanza632
@buhlemwanza632 6 жыл бұрын
Great video man! Perfect timing too, that's a thumbs up from me! :)
@oguzhanyldrm8179
@oguzhanyldrm8179 6 жыл бұрын
you are so cool bro keep doing tutorials
@lucashoffmannn
@lucashoffmannn 5 жыл бұрын
I get CORS error when fetching from GIPHY. Sometimes it works, but most of the time it returns this error..
@andredoppelfeld4205
@andredoppelfeld4205 5 жыл бұрын
U gotta create a new http Agent that doesnt reject unauthorized and pass it to the config of fetch const agent = new https.Agent({ rejectUnauthorized: false }) create a config variable and pass it to the fetch api. Maybe look it up in the docs.
@misterl8129
@misterl8129 4 жыл бұрын
Anyone can tell me the difference between doing the promise all like he did VS Promise.all(promises.map(async(promise,i)=>{ let data = await someRandomFunctionThatDelayIsRandom() return data }) Thank u very much
@JoeWong81
@JoeWong81 6 жыл бұрын
Thanks a lot bro
@dominichayes7253
@dominichayes7253 5 жыл бұрын
Please share your secret for getting high on life :)
@cutaz1232
@cutaz1232 3 жыл бұрын
Please make a video promise.all() in angular. Thanks
@objectObjectobjectObject
@objectObjectobjectObject 5 жыл бұрын
Thanks
@ahsanabbas4546
@ahsanabbas4546 6 жыл бұрын
hi sir please make tutorial for arcgis api.. how can we publish json service from arcgis server to map and how can i edit json service as a client(means to say live editing on map to create line, point and polygon).
@medAmineRg
@medAmineRg 3 жыл бұрын
thankyouu so much
@وسامالياس-غ6س
@وسامالياس-غ6س 6 жыл бұрын
Promise.Race
@puneetsingh9678
@puneetsingh9678 4 жыл бұрын
9:25 me when I try to optimize the code which somehow worked
@paci
@paci 4 жыл бұрын
would change the "for" loop with a .forEach() :)
@tarekkhalaily724
@tarekkhalaily724 4 жыл бұрын
code in github ?
@habibsspirit
@habibsspirit 5 жыл бұрын
Very nice. Excellent explanation with a good use case. It's "JIF" though.
@gmangsxr750
@gmangsxr750 5 жыл бұрын
Nooooooooooooooooo!!!
@TURKISTONIM2
@TURKISTONIM2 3 жыл бұрын
it seems to me like using DO , WHILE instead of............
@miguelperezpal
@miguelperezpal 6 жыл бұрын
fun stuff
@jpflei7308
@jpflei7308 6 жыл бұрын
Could you by any chance make a program in java that accesses excel and outputs it? Preferably in Eclipse Work-space and using the jxl plugins. It would help me learn the plugin and software a lot and I would GREATLY appreciate it. :)
@kuoroakihamza1235
@kuoroakihamza1235 3 жыл бұрын
9:25 Hamza is actually my name xd
@syedbaryalay5849
@syedbaryalay5849 6 жыл бұрын
i have to drop a like anyway, its Danial
@stiliankushev3453
@stiliankushev3453 6 жыл бұрын
Can you make a snake game AI with tenserflow
@slashocodebeat4
@slashocodebeat4 6 жыл бұрын
please make video on recurrent neural network in javascript
@mohsintech2005
@mohsintech2005 Жыл бұрын
you are lovely
16.16: try / catch with Promises - Topics of JavaScript/ES6
7:28
The Coding Train
Рет қаралды 65 М.
16.11: Promises Part 1 - Topics of JavaScript/ES6
24:53
The Coding Train
Рет қаралды 336 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 35 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 689 М.
The Dangers Of Promise.all()
6:15
Theo - t3․gg
Рет қаралды 69 М.
16.7: Array Functions: reduce() - Topics of JavaScript/ES6
14:40
The Coding Train
Рет қаралды 133 М.
JavaScript Visualized - Promise Execution
8:42
Lydia Hallie
Рет қаралды 188 М.
The Async Await Episode I Promised
12:04
Fireship
Рет қаралды 1,1 МЛН
Coding Challenge 180: Falling Sand
23:00
The Coding Train
Рет қаралды 1 МЛН
Async Await vs. Promises - JavaScript Tutorial for beginners
24:30
JavaScript Promises Crash Course
24:03
Kevin Powell
Рет қаралды 39 М.
JavaScript Async Await
7:31
Web Dev Simplified
Рет қаралды 825 М.