-
Notifications
You must be signed in to change notification settings - Fork 2
Osei-b4 : Asynchronous Programming : 3 weeks #161
Description
- I have pushed my progress to my fork of exercises repo
Learning objectives
- 🥚 You understand the JavaScript Event Loop, and can demonstrate this by using
setTimeoutandsetIntervalto schedule simple tasks. - 🥚 You can explain why Asynchronous Programming is important for programs that have blocking and non-blocking tasks.
- 🥚 You can explain the basics of the Client/Server model and HTTP requests and can
fetchdata from RESTful APIs. - 🐣 You can break down an asynchronous problem into smaller tasks and solve it using promises. This includes identify which tasks depend on each other and which are independent:
- dependent tasks_: The return value from one task is required to start the next task, these must be completed in a specific order -
.then - Independent tasks_: These tasks do not use each other's return values, they can be completed at the same time -
Promise.allsystem.
- dependent tasks_: The return value from one task is required to start the next task, these must be completed in a specific order -
- 🐣 You can fetch data from an API and render it into the DOM using
/api-calls,/handlersandasync/awaitsyntax. - 🐣 You can write unit tests for functions that return promises using
async/awaitsyntax.
Week 1
- I have pushed my progress to my fork of exercises repo
I Need Help With:
explain some part of the PROMISE where I can define some object in the DATA ARRAY like this : const createSummary = (user) => {
const { id ,name, city, companyname,} = user;
return ${id}, ${name}, ${city}, ${companyname};
};``
What went well?
Understanding the consumers .THEN() and .CATCH() where they handle the PROMISE.
What went less well?
Fetcing the object in the array is challenging.
Lessons Learned:
- PROMISE
- FETCHING
- CONSUMER .THEN() AND CATCH()
- BLOCKING AND NON-BLOCKIG
Sunday Prep Work for the next Adventure in Asynchronous Programming
Week 2
- I have pushed my progress to my fork of exercises repo
I Need Help With:
In fetch DATA FROM THE BLACK-END
What went well?
Nothing yet
What went less well?
Get familiar with how PROMISES work with the TEST CASE and it has being a bit challenging but not giving up 💪
Lessons Learned:
- PROMISE
- FETCHING
- CONSUMER .THEN() AND CATCH()
- BLOCKING AND NON-BLOCKIG
- API AND THE SYNTAX
Sunday Prep Work for the next Adventure in Asynchronous Programming
Week 3
- I have pushed my progress to my fork of exercises repo
I Need Help With:
In understanding the components and it's function in the code.
What went well?
creating Pokemon and get-post has been really illuminating and understanding how some code behaves in the API function etc.
What went less well?
Not really getting timeouts-and-intervals and some part of fake-fetching.