Skip to content

Latest commit

 

History

History
77 lines (49 loc) · 3.03 KB

File metadata and controls

77 lines (49 loc) · 3.03 KB

Homework Week 2

Topics discussed this week:
• Async vs Sync
• Event Loop (order of execution)
• Promises

Step 1: Read

Step 2: Implement requested PR changes

  • Fix Requested Changes (if any) on the Pull Request.

Step 3: Convert callbacks to promises

Deadline Thursday

3.1 Preparation

The homework for week 2 will build on the work you did in week 1. You will create a new branch based on the week1 branch.

  1. Make sure that you committed all changes in the week 1 version of your homework.

  2. Create a new week2 branch:

    git checkout -b week2
    

3.2 Assignment

You will continue to work on the files index.js and (possibly) style.css.

  • Complete your GitHub app code from the previous week, if needed, to meet the requirements from that week's assignment.
  • Replace all asynchronous callbacks (e.g. as used with XMLHttpRequest) by ES6 promises.
  • Beautify your app's styling.
  • If not yet completed in week 1, make your app responsive (use CSS media queries and Flexbox).

3.3 Handing in your homework

  • Have you removed all commented out code (should never be present in a PR)?
  • Have you used const and let and avoided var?
  • Do the variable, function and argument names you created follow the Naming Conventions?
  • Is your code well-formatted (see Code Formatting)?
  • Have you resolved all issues flagged by ESLint and the spell checker (no wavy red and green underlines in VSCode)?

If the answer is 'yes' to all preceding questions you are ready to follow these instructions:

  1. Push your week2 branch to GitHub:

    git push -u origin week2
    
  2. Create a pull request for your week2 branch.

Note:

  1. Please remove all redundant, commented-out code and console.log's from your files before pushing your homework as finished. There is no need for your mentors to review this stuff.
  2. Please make sure your code is well-formatted and follows the recommended naming conventions.

Step 4: Read before next lecture

Go through the reading material in the README.md to prepare for your next class.