1638086280
In this video, we're going to make ice cream š§šØš¦ and inspect Callbacks, Promises, Async/Await which are under the Asynchronous JavaScript Topic. And, we'll see their practical usage by coding
Time Stamps -
0:00 - Intro
0:25 - Asynchronous JS
1:36 - Sync vs Async
4:43 - Examples āļø
08:28 - setTimeout function
13:09 - callbacks w/examples
17:57 - ice cream w/ callbacks
41:50 - Callback hell
43:20 - Promises & promise cycle
54:10 - Promise Chaining
1:03:15 - error handling
1:05:25 - finally handler
1:07:14 - Async/ Await
1:09:30 - try catch finally
1:15:34 - Await keyword w/ example
1:25:10 - ice cream w/ async/await
The Article : https://www.freecodecamp.org/news/javascript-async-await-tutorial-learn-callbacks-promises-async-await-by-making-icecream/
1600929360
We all know the importance of promises in our life. We even have a special day dedicated to it :) But how well do we know the importance of promises in JavaScript? Well if you donāt know it yet, itās a great time to know it because they are becoming more and more popular. So what are promises? Letās try to understand it through an analogy.
Suppose you are a top class rapper and you havenāt released an album for a while and fans are asking for it day and night. So what you do is that you āpromiseā them that whenever it will be out, all of them would be notified. To get this done you give your fans a list. They can fill in their email addresses, so that when the album becomes available, all the subscribers instantly receive it. And even if something goes wrong, say a pandemic, so that you canāt release the album, they will still be notified.
Now everyone is happy: You, because the people donāt crowd you anymore, and fans, because they wonāt miss any news on the album.
This is a real-life analogy for things we often have in programming:
JavaScript promises are much more complex than a simple subscription list: they have additional features and limitations. But itās fine to begin with.
#async #promises #javascript #development #await
1620377063
https://www.codecheef.org/article/react-async-await-fetch-api-call-example
#react #fetch-api #async #await #async-await
1598891580
Recently, researchers from Google proposed the solution of a very fundamental question in the machine learning community ā What is being transferred in Transfer Learning? They explained various tools and analyses to address the fundamental question.
The ability to transfer the domain knowledge of one machine in which it is trained on to another where the data is usually scarce is one of the desired capabilities for machines. Researchers around the globe have been using transfer learning in various deep learning applications, including object detection, image classification, medical imaging tasks, among others.
#developers corner #learn transfer learning #machine learning #transfer learning #transfer learning methods #transfer learning resources
1638086280
In this video, we're going to make ice cream š§šØš¦ and inspect Callbacks, Promises, Async/Await which are under the Asynchronous JavaScript Topic. And, we'll see their practical usage by coding
Time Stamps -
0:00 - Intro
0:25 - Asynchronous JS
1:36 - Sync vs Async
4:43 - Examples āļø
08:28 - setTimeout function
13:09 - callbacks w/examples
17:57 - ice cream w/ callbacks
41:50 - Callback hell
43:20 - Promises & promise cycle
54:10 - Promise Chaining
1:03:15 - error handling
1:05:25 - finally handler
1:07:14 - Async/ Await
1:09:30 - try catch finally
1:15:34 - Await keyword w/ example
1:25:10 - ice cream w/ async/await
The Article : https://www.freecodecamp.org/news/javascript-async-await-tutorial-learn-callbacks-promises-async-await-by-making-icecream/
1654326531
Learn about Callbacks, Promises, and Async Await as the JavaScript Fetch API is explained in this tutorial. You will also learn about thenables and how async / await replaces them in our JS code. The first 30 minutes covers the concepts. The last 30 minutes gives examples of retrieving data from different APIs with Fetch.
Quick Concepts outline:
Fetch API with Async / Await
(0:00) Intro
(0:29) What is a callback function?
(1:15) What is the problem with callbacks?
(3:00) JavaScript Promises have 3 states
(5:28) A promise may not return a value where you expect it to: You need to wait for a promise to resolve
(6:58) Using thenables with a promise
(20:15) An easy mistake to make with promises
(24:00) Creating an async function
(25:00) Applying await inside the function
(33:45) Example 1: Retrieving user data
(40:00) Example 2: Retrieving dad jokes
(47:00) Example 3: Posting data
(49:40) Example 4: Retrieving data with URL parameters
(54:55) Abstract it all into single responsibility functions
Subscribe: https://www.youtube.com/c/DaveGrayTeachesCode/featured