Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d3b281a

Browse files
Daan AertsDaan Aerts
Daan Aerts
authored and
Daan Aerts
committed
Merge branch 'master' into week3review
2 parents e944375 + 6b28860 commit d3b281a

File tree

9 files changed

+79
-29
lines changed

9 files changed

+79
-29
lines changed

Week1/MAKEME.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22

33
>[Here](https://github.com/HackYourFuture/JavaScript/tree/master/Week1/README.md) you find the readings you have to complete before the second lecture.
44
5-
## How to hand in Homework:
6-
>steps:
7-
- Create a github account
8-
- Create a new repository (name it something like hyf-js) make sure you select the option: initialize with readme
9-
- Upload the file you created on your computer, write a description for this “commit”
10-
- Open the file in your readme to check if this all worked
11-
- Post the link here if it worked
12-
135
We covered a bit of command line usage in the first class and got a program running which is great. If you need a refresher for the command line please have a look here: https://github.com/HackYourFuture/CommandLine
146

157
## Before you start with the homework:
@@ -75,7 +67,21 @@ For example:
7567

7668
On freeCodeCamp.com please do the [Basic JavaScript](https://www.freecodecamp.com/challenges/learn-how-free-code-camp-works) exercises up and until the __"Shopping List"__ exercise (there are some topics we did not cover but you can do it).
7769

78-
> Hint, if you solve the FreeCodeCamp challenges and they are new concepts to you and you would like to take a look at them later on in the program, Copy your answers from FCC in a .js file and upload them to Github for future reference. In this way you build your own little documentation, if you look back at them first try to understand what it does before you run them.
70+
### How to hand in Homework:
71+
>steps:
72+
- Create a Github account
73+
- Create a new repository (name it something like hyf-javascript1) make sure you select the option: initialize with README
74+
- inside this repository create a folder "week1"
75+
- Upload the files you created on your computer inside the week1 folder, write a description for this “commit”
76+
- Open the file in your README to check if this all worked
77+
78+
>Create a new repository "hyf-javascript1". Also create a new folder "week1" inside this repository.
79+
Upload your homework files inside the week1 folder and write a description for this “commit”.
80+
Your hyf-javascript1/week1 should now contain all your homework files.
81+
Place the link to your repository folder in Trello.
82+
83+
### Hint
84+
If you solve the FreeCodeCamp challenges and they are new concepts to you and you would like to take a look at them later on in the program, Copy your answers from FCC in a .js file and upload them to Github in a repository for future reference. In this way you build your own little documentation, if you look back at them first try to understand what it does before you run them.
7985

8086
:star: Additional resources and review: [here](https://github.com/HackYourFuture/JavaScript/tree/master/Week1/REVIEW.md) (work in progress):star:
8187

Week2/MAKEME.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
>[Here](https://github.com/HackYourFuture/JavaScript/tree/master/Week2/README.md) you find the readings you have to complete before the third lecture.
44
5-
### Step 1: Recap/Read
5+
## Step 1: Recap/Read
66

77
- Have a look at [The Secret Life of JavaScript Primitives](https://javascriptweblog.wordpress.com/2010/09/27/the-secret-life-of-javascript-primitives/)
88
- Go through the review of [last week](https://github.com/HackYourFuture/JavaScript/blob/master/Week1/REVIEW.md) (Work in progress, update this week :wrench:)
99
- Go through the review of [this week](https://github.com/HackYourFuture/JavaScript/blob/master/Week2/REVIEW.md) (work in progress, update this week :nut_and_bolt:)
1010

11-
### Step 2: Watch
11+
## Step 2: Watch
1212

1313
1. If you haven't done already, watch: [What is programming](https://www.khanacademy.org/computing/computer-programming/programming/intro-to-programming/v/programming-intro) Just watch the 2 min video, you do not have to do the entire JavaScript course (It could be useful later on though).
1414
2. Please watch the following parts of the course, [Programming Foundations Fundamentals](https://www.lynda.com/Programming-Foundations-tutorials/Welcome/83603/90426-4.html) on Lynda.com (if you don't have access to Lynda yet ask Gijs):
@@ -19,7 +19,7 @@
1919
<br>8. Collections
2020
<br>11. When Things Go Wrong
2121

22-
### Step 3: JavaScript
22+
## Step 3: JavaScript
2323
> For all the following exercises create a new .js file. Try to find a proper name for each file or make a small comment about what it does inside for future reference
2424
2525
1. Create a function that takes 3 arguments and returns the sum of the three arguments.
@@ -132,7 +132,7 @@ typeof typeof bar;
132132

133133
> ‘Coerce' means to try to change - so coercing `var x = '6'` to number means trying to change the type to number temporarily.
134134
135-
### Step 4: **Finish basic freeCodeCamp challenges:**
135+
## Step 4: **Finish basic freeCodeCamp challenges:**
136136

137137
Go back to FreeCodeCamp, start where you left of and finish the rest of the Basic JavaScript challenges.
138138

@@ -143,5 +143,10 @@ Please make sure you REALLY understand the exercises below:
143143
- https://www.freecodecamp.com/challenges/add-new-properties-to-a-javascript-object
144144
- https://www.freecodecamp.com/challenges/delete-properties-from-a-javascript-object
145145

146+
>Upload your homework in your "hyf-javascript1" Github repository. Make sure to create a new folder "week2" first.
147+
Upload your homework files inside the week2 folder and write a description for this “commit”.
148+
Your hyf-javascript1/week2 should now contain all your homework files.
149+
Place the link to your repository folder in Trello.
150+
146151
:star: Additional resources and review: [here](https://github.com/HackYourFuture/JavaScript/tree/master/Week2/REVIEW.md) (work in progress):star:
147152

Week3/MAKEME.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@
22

33
>[Here](https://github.com/HackYourFuture/JavaScript/tree/master/Week3/README.md) you find the readings you have to complete before the fourth lecture.
44
5-
### Step 0 review:
5+
## Step 0 review:
66
- Go through the review of [the first week](https://github.com/HackYourFuture/JavaScript/blob/master/Week1/REVIEW.md) (Work in progress, update this week :wrench:)
77
- Go through the review of [the second week](https://github.com/HackYourFuture/JavaScript/blob/master/Week2/REVIEW.md) (work in progress, update this week :nut_and_bolt:)
88
- Daan will update the review of this week soon, keep an eye on that!
99

1010

11-
### Step 1: Implement feedback
11+
## Step 1: Implement feedback
1212

1313
Your fellow students have provided you with feedback in Trello. Your teachers have provided you with feedback in issues in Github.
1414

1515
- Implement both feedback from Trello and Github.
1616
- 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".
1717

18-
### Step 2: Reorganize your Github
18+
## Step 2: Reorganize your Github
1919

20-
Your Github should contain two repositories called JavaScript1 and 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). Ty 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.
20+
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). Ty 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.
2121

22-
### Step 3: Custom DOM manipulation challenge :mortar_board:
22+
## Step 3: Custom DOM manipulation challenge :mortar_board:
2323

24-
1. Open a new js file and start by declaring in array with in there 10 strings. These strings should be of book title's you have read (or made up) and be lowercase without spaces or special characters so that you can use these later as Id's. (Example: Harry Potter's - The Chamber of Secrets -> `harry_potter_chamber_secrets`).
24+
1. Open a new js file and start by declaring an array that contains 10 strings. These strings should be of book titles you have read (or made up) and be lowercase without spaces or special characters so that you can use these later as Id's. (Example: Harry Potter's - The Chamber of Secrets -> `harry_potter_chamber_secrets`).
2525

26-
2. Create a basic html file called inxed.html and use it to load the js file, confirm the console.log show the array. (This is for debugging and making sure everything is in order. Delete it later when you're done :))
26+
2. Create a basic html file called index.html and use it to load the js file, confirm the console.log show the array. (This is for debugging and making sure everything is in order. Delete it later when you're done :))
2727

2828
3. Make a function (or functions) that generate a `ul` with `li` elements for each book ID in the array using a for loop.
2929

@@ -35,7 +35,12 @@ Your Github should contain two repositories called JavaScript1 and CommandLine .
3535

3636
7. Download book covers for each book, construct a new Object which has as keys the bookId's again, and as value the path to the image source (e.g. `{"harry_potter_blabla": "./img/harry_potter_blabla.jpg", ...}`). Now loop over these entries (_hint: `Object.keys(objectName)` gives you an array containing the keys_). Then write a function which places an image at the corresponding `li` element. Remember that Objects are not ordered, so you cannot guarantee that the first key is the first `li` element. (_Hint: you could give each `li` item an `id` tag by modifying the function you made before_)
3737

38-
### Step 4: **FreeCodeCamp challenges:**
38+
>Upload your homework in your "hyf-javascript1" Github repository. Make sure to create a new folder "week3" first.
39+
Upload your homework files inside the week3 folder and write a description for this “commit”.
40+
Your hyf-javascript1/week3 should now contain an index.html, main.css and a script.js file (and the images folder)
41+
Place the link to your repository folder in Trello.
42+
43+
## Step 4: **FreeCodeCamp challenges:**
3944

4045
- https://www.freecodecamp.com/challenges/declare-javascript-objects-as-variables
4146
- https://www.freecodecamp.com/challenges/make-instances-of-objects-with-a-constructor-function

Week4/MAKEME.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
# Homework Week 4
22

3-
## Read:
4-
- https://github.com/HackYourFuture/JavaScript/blob/master/Week4/README.md
3+
>[Here](https://github.com/HackYourFuture/JavaScript/tree/master/Week4/README.md) you find the readings you have to complete before the fourth lecture.
54
6-
## Challenges:
5+
## Step 1: Some Challenges:
76
- https://www.freecodecamp.com/challenges/using-objects-for-lookups
87
- https://www.freecodecamp.com/challenges/manipulating-complex-objects
98
- https://www.freecodecamp.com/challenges/convert-json-data-to-html
109

11-
### Custom Challenge
10+
## Step 2: Custom Challenge
1211

1312
In the HYF Movies Hands-On, we created the function `sortByImdbRating(movies)` to sort the list of movies by IMDB rating. Replace this function by a generalised version that takes the name of the property (`propName`) to sort on and a number `order` (allowed values 1 or -1, default value = 1) to indicate respectively ascending or descending sort order:
1413

15-
```js
14+
```
1615
function sortMovies(movies, propName, order)
1716
```
1817

@@ -32,3 +31,8 @@ Notes:
3231
1. Do not bother to make this work for the `Ratings` property which refers to an object rather than a simple value.
3332
2. It is not necessary to convert property values containing dates or numbers formatted with embedded commas to facilitate sorting for this challenge (but you're welcome to try). You can leave the value 'as is'.
3433

34+
>Create a new repository "hyf-javascript2". Also create a new folder "week1" inside this repository.
35+
Upload your homework files inside the week1 folder and write a description for this “commit”.
36+
Your hyf-javascript2/week1 should now contain the files of your homework.
37+
Place the link to your repository folder in Trello.
38+

Week5/MAKEME.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Homework Week 5
22

3+
>[Here](https://github.com/HackYourFuture/JavaScript/tree/master/Week5/README.md) you find the readings you have to complete before the fourth lecture.
4+
35
### Git
46

57
1. Create a branch called `MyBranch` in the repository `MyFirst`.
@@ -109,3 +111,9 @@ console.log(y);
109111
```
110112
If you are confused please run the code and then consult the Google for "javascript pass by value pass by reference"
111113
114+
>Upload your homework in your "hyf-javascript2" Github repository. Make sure to create a new folder "week2" first.
115+
Upload your homework files inside the week2 folder and write a description for this “commit”.
116+
Your hyf-javascript2/week2 should now contain all your homework files.
117+
Place the link to your repository folder in Trello.
118+
119+

Week6/MAKEME.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Homework Week 6
2-
You can find the [reading material here](https://github.com/HackYourFuture/JavaScript/blob/master/Week6/README.md)
2+
3+
>[Here](https://github.com/HackYourFuture/JavaScript/tree/master/Week6/README.md) you find the readings you have to complete before the fourth lecture.
34
45
- Add your github/repositories link to [this slack file](https://slack-files.com/T0EJTUQ87-F5DAMGML5-cd687fd9b6)
56
- Fix the issues from the last week and make sure you explain how you fixed the issue in a comment (or commit message)
@@ -24,3 +25,9 @@ __Requirements__:
2425
5. Change the function your previously wrote that handles the hovering event and add functionality to it that shows the collaborators of that repo. Note: to do this, you will need to make ANOTHER API call to https://api.github.com/repos/user/repo/events and that lists the 3 last events. Show the type of the event and if the type is 'PushEvent' show the commit message. Take a look at this [API call](https://api.github.com/repos/Razpudding/realtime-slack/events) to see some sample data.
2526
6. Make sure that when a user goes to your app, your github account info is loaded. They can then use the search field to find info about other github accounts.
2627
7. BONUS: Look through the data that Github sends back to you on your first API call and think about what other info would be usefull. Add more functionalities to your app like showing how many people starred a repositories or showing the names of the people followed by the current user.
28+
29+
>Upload your homework in your "hyf-javascript2" Github repository. Make sure to create a new folder "week3" first.
30+
Upload your homework files inside the week3 folder and write a description for this “commit”.
31+
Your hyf-javascript2/week3 should now contain an index.html, main.css and a script.js file (and the images folder)
32+
Place the link to your repository folder in Trello.
33+

Week7/MAKEME.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Homework Week 7
22

3+
>[Here](https://github.com/HackYourFuture/JavaScript/tree/master/Week7/README.md) you find the readings you have to complete before the fourth lecture.
4+
35
## Git Homework:
46

57
[Make these assignments](https://github.com/HackYourFuture/Git/blob/master/Lecture-3.md)
@@ -46,4 +48,7 @@ Remember the person with the most kata points gets a prize from Gijs (and you ca
4648
1. [Stacks/Queues](https://www.youtube.com/watch?v=wjI1WNcIntg) (5 mins)
4749
2. [JS Event Loops](https://www.youtube.com/watch?v=8aGhZQkoFbQ) (26 mins, watch this one twice or until you understand it)
4850

49-
51+
>Create a new repository "hyf-javascript3". Also create a new folder "week1" inside this repository.
52+
Upload your homework files inside the week1 folder and write a description for this “commit”.
53+
Your hyf-javascript3/week1 should now contain the files of your homework.
54+
Place the link to your repository folder in Trello.

Week8/MAKEME.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Homework Week 8
22
This week you will work on finishing your application so it's actually useful!!
33

4-
[Read this](https://github.com/HackYourFuture/JavaScript/tree/master/Week8/README.md)
4+
>[Here](https://github.com/HackYourFuture/JavaScript/tree/master/Week8/README.md) you find the readings you have to complete before the fourth lecture.
55
66
## The tools we used in the second lecture
77
- [metajs](http://int3.github.io/metajs/)
@@ -25,3 +25,7 @@ This week you will work on finishing your application so it's actually useful!!
2525
2626
If you get stuck, remember we have Slack and you can ask questions. -->
2727

28+
>Upload your homework in your "hyf-javascript3" Github repository. Make sure to create a new folder "week2" first.
29+
Upload your homework files inside the week2 folder and write a description for this “commit”.
30+
Your hyf-javascript3/week2 should now contain all your homework files.
31+
Place the link to your repository folder in Trello.

Week9/MAKEME.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,9 @@ https://github.com/HackYourFuture/TicTacToeTDD
103103
https://github.com/HackYourFuture/OOP-Student-and-Teacher
104104
105105
rewatch the Hangouts session here: https://www.youtube.com/watch?v=oc9ogCJz9rYs
106+
```
107+
108+
>Upload your homework in your "hyf-javascript3" Github repository. Make sure to create a new folder "week3" first.
109+
Upload your homework files inside the week3 folder and write a description for this “commit”.
110+
Your hyf-javascript3/week3 should now contain all your homework files.
111+
Place the link to your repository folder in Trello.

0 commit comments

Comments
 (0)