Skip to content

Latest commit

 

History

History
104 lines (68 loc) · 5.31 KB

File metadata and controls

104 lines (68 loc) · 5.31 KB

Homework Week 4

Topics discussed in class this week:
• Git

Here you find the readings you have to complete before the fifth lecture.

Step 1: Share a useful resource

Deadline Monday

All share a video or a resource (this can be a drawing, article or a pod cast) that was helpful for you the last few weeks with learning JavaScript. Please share this in the channel of your class in Slack. Also write as small note about what the resource i about and why you think it's so helpful (you can share more than one if you like).

Step 2: Implement Feedback

Deadline Monday

Your fellow students have provided you with feedback in Trello.

  • Implement both feedback from Trello and Github.
  • Check on one of your fellow students code and issues and see if her or she implemented their feedback correctly. If there are some things that can be improved make an issue suggesting further improvements. If you think that the feedback has been implemented correctly create a issue saying something like: "nice work you can clear your issues".

Step 3: Reorganize your Github

Deadline Monday

Your Github should contain two repositories called hyf-javascript1 and hyf-commandline. Inside the JavaScript repository you should have three folders, called week1, week2, and week3 (or something similar). Inside these folders you should have the different assignments (a file per exercises). Try and find proper names for the exercises that reflect somehow what is going on in the code. Avoid using spaces in your file names, this makes it harder to "run" you files. Also make sure that all your JavaScript files have a .js extension.

Step 4: Git homework

Deadline Wednesday

Git homework for this week:

Pair up with another student in your class. The homework requires two people to work together. Let us call them admin and user.

  1. admin creates a new repository on github called “animals” (without quotes).
  2. admin adds a file called “zoo.txt” with some animal generally found in a zoo.
  3. admin commits and pushes his changes (in master branch)
  4. admin adds user as a collaborator (find out how to add a collaborator to a git repository)
  5. user clones a repository from admin (find out how to clone a repository. Note that git init is not required when you clone a repository)
  6. user makes a new branch called user-dev
  7. user adds another file called “pets.txt” with some animals generally found in a home.
  8. user commits and pushes his branch to remote
  9. admin pulls the branch crated by user (find out how to pull changes from the repository)
  10. admin submits the link to his github repository (named animal), where unmesh should be able to see the collaborator’s (i.e. user’s) branch along with his commits.

Note:

The user is not supposed to fork the admin’s repository. admin is supposed to add user as a collaborator and user should just clone the repository (i.e. user will only have the local copy of the repository). Only admin will have the github server copy of the repository. Of course, admin will have its local copy of the repository too.

How to hand in your homework:
• Upload your homework in your "hyf-javascript1" Github repository. Make sure to create a new folder "week3" first. 
• Upload your homework files inside the week3 folder and write a description for this “commit”.
• Your hyf-javascript1/week3 should now contain an index.html, main.css and a script.js file (and the images folder)
• Place the link to your repository folder in Trello.

Step 4: FreeCodeCamp challenges:

Deadline Sunday morning

And just for fun ... https://www.freecodecamp.com/challenges/sum-all-numbers-in-a-range

Step 5: Read before next lecture

Deadline Sunday morning

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

💥 Bonus homework 💥

the Bonus homework for this week (for those of you want an extra challenge) do the following:

Codewars is really a lot of fun, and you can compete against each other who has the most points :trollface: it’s a great way to really practice JavaScript a lot in various problems.

Please note, there are various challenges all sorted on difficultly called KIU. Kiu 8 is the easiest, Kiu 1 is the hardest, we expect you to do challenges around level 8, 7 maybe.

enjoy!

:octocat:

How to hand in your homework:
• Create a new repository "hyf-javascript2". Also create a new folder "week1" inside this repository. 
• Upload your homework files inside the week1 folder and write a description for this “commit”.
• Your hyf-javascript2/week1 should now contain the files of your homework.
• Place the link to your repository folder in Trello.

⭐ Additional resources and review: here