Skip to content

Osei-b4 : Asynchronous Programming : 3 weeks #161

@Osei-b4

Description

@Osei-b4

Learning objectives

  • 🥚 You understand the JavaScript Event Loop, and can demonstrate this by using setTimeout and setInterval to 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 fetch data 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.
  • 🐣 You can fetch data from an API and render it into the DOM using /api-calls, /handlers and async/await syntax.
  • 🐣 You can write unit tests for functions that return promises using async/await syntax.

Week 1

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 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 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.

Lessons Learned:

- PROMISE

- FETCHING

- CONSUMER .THEN() AND CATCH()

- BLOCKING AND NON-BLOCKIG

- API AND THE SYNTAX

- PROMISE.ALL

- HANDLER

- API-CALL

- ASYNC AND AWAIT SYNTAX

Sunday Prep Work for the next Adventure in headless-cms

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions