Skip to content

Commit 13ab434

Browse files
committed
Rename homework to assignments
1 parent 8411b05 commit 13ab434

File tree

8 files changed

+57
-52
lines changed

8 files changed

+57
-52
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.DS_Store
22
bin
3-
homework-solution
3+
assignments-solution
44
node_modules
55
npm-debug.log
66
package-lock.json

.vscode/launch.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77
{
88
"type": "node",
99
"request": "launch",
10-
"name": "Launch Week 1 - Homework",
11-
"program": "${workspaceFolder}/week1/homework/src/index.js",
12-
"cwd": "${workspaceFolder}/week1/homework"
10+
"name": "Launch Week 1 - Assignments",
11+
"program": "${workspaceFolder}/week1/assignments/src/index.js",
12+
"cwd": "${workspaceFolder}/week1/assignments"
1313
},
1414
{
1515
"type": "node",
1616
"request": "launch",
17-
"name": "Launch Week 1 - Homework Tests",
18-
"program": "${workspaceRoot}/week1/homework/node_modules/ava/profile.js",
17+
"name": "Launch Week 1 - Assignments Tests",
18+
"program": "${workspaceRoot}/week1/assignments/node_modules/ava/profile.js",
1919
"args": [
2020
"--concurrency=1",
2121
"--no-color",
2222
"--serial",
23-
"${workspaceRoot}/week1/homework/test/server.test.js"
23+
"${workspaceRoot}/week1/assignments/test/server.test.js"
2424
],
2525
"skipFiles": [
2626
"<node_internals>/**/*.js"

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,22 @@ Verify the installation by running `node -v` (-v is short for version) from the
4343

4444
This repository consists of 3 essential parts:
4545

46-
1. `README`: this document contains all the required theory you need to understand **while** working on the homework. It contains not only the right resources to learn about the concepts, but also lectures done by HackYourFuture teachers. This is the **first thing** you should start with every week
47-
2. `MAKEME`: this document contains the instructions for each week's homework. Start with the exercises rather quickly, so that you can ground the concepts you read about earlier.
46+
1. `README`: this document contains all the required theory you need to understand **while** working on the assignments. It contains not only the right resources to learn about the concepts, but also lectures done by HackYourFuture teachers. This is the **first thing** you should start with every week
47+
2. `MAKEME`: this document contains the instructions for each week's assignments. Start with the exercises rather quickly, so that you can ground the concepts you read about earlier.
4848
3. `LESSONPLAN`: this document is meant for teachers as a reference. However, as a student don't be shy to take a look at it as well!
4949

5050
### How to study
5151

5252
Let's say you are just starting out with the Node.js module. This is what you do...
5353

5454
1. The week always starts on **Wednesday**. First thing you'll do is open the `README.md` for that week. For the first week of `Node.js`, that would be [Week1 Reading](./week1/README.md)
55-
2. You spend **Wednesday** and **Thursday** going over the resources and try to get a basic understanding of the concepts. In the meanwhile, you'll also implement any feedback you got on last week's homework (from the Using API's module)
56-
3. On **Friday** you start with the homework, found in the `MAKEME.md`. For the first week of `Node.js`, that would be [Week1 Homework](/week1/MAKEME.md)
55+
2. You spend **Wednesday** and **Thursday** going over the resources and try to get a basic understanding of the concepts. In the meanwhile, you'll also implement any feedback you got on last week's assignments (from the Using API's module)
56+
3. On **Friday** you start with the assignments, found in the `MAKEME.md`. For the first week of `Node.js`, that would be [Week1 Assignments](/week1/MAKEME.md)
5757
4. You spend **Friday** and **Saturday** playing around with the exercises and write down any questions you might have
5858
5. **DEADLINE 1**: You'll submit any questions you might have before **Saturday 23.59**, in the class channel
5959
6. On **Sunday** you'll attend class. It'll be of the Q&A format, meaning that there will be no new material. Instead your questions shall be discussed and you can learn from others
60-
7. You spend **Monday** and **Tuesday** finalizing your homework
61-
8. **DEADLINE 2**: You submit your homework to the right channels (GitHub) before **Tuesday 23.59**. If you can't make it on time, please communicate it with your mentor
60+
7. You spend **Monday** and **Tuesday** finalizing your assignments
61+
8. **DEADLINE 2**: You submit your assignments to the right channels (GitHub) before **Tuesday 23.59**. If you can't make it on time, please communicate it with your mentor
6262
9. Start the new week by going back to point 1!
6363

6464
In summary:
@@ -83,10 +83,10 @@ Learn from Andrej in the following playlist of videos he has made for you! (Clic
8383

8484
## Planning
8585

86-
| Week | Topic | Readings | Homework | Lesson Plan |
87-
| ---: | ----------------------------------- | ------------------------------ | ------------------------------ | ------------------------------------- |
88-
| 1. | Client-server model, HTTP & Express | [Readings W1](week1/README.md) | [Homework W1](week1/MAKEME.md) | [Lesson Plan W1](week1/LESSONPLAN.md) |
89-
| 2. | REST, CRUD, API calls, Testing | [Readings W2](week2/README.md) | [Homework W2](week2/MAKEME.md) | [Lesson Plan W2](week2/LESSONPLAN.md) |
86+
| Week | Topic | Readings | Assignments | Lesson Plan |
87+
| ---: | ----------------------------------- | ------------------------------ | --------------------------------- | ------------------------------------- |
88+
| 1. | Client-server model, HTTP & Express | [Readings W1](week1/README.md) | [Assignments W1](week1/MAKEME.md) | [Lesson Plan W1](week1/LESSONPLAN.md) |
89+
| 2. | REST, CRUD, API calls, Testing | [Readings W2](week2/README.md) | [Assignments W2](week2/MAKEME.md) | [Lesson Plan W2](week2/LESSONPLAN.md) |
9090

9191
## Finished?
9292

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# How to hand in homework
1+
# How to hand in assignments
22

3-
In this module you'll submit your homework only using GIT and GitHub.
3+
In this module you'll submit your assignments only using GIT and GitHub.
44

55
1. [GitHub](https://www.github.com/HackYourFuture/Node.js)
66

7-
## 1. GitHub homework guide
7+
## 1. GitHub assignments guide
88

9-
<a href="http://www.youtube.com/watch?feature=player_embedded&v=CpYARPYGQU8" target="_blank"><img src="./assets/submit-homework.png" width="400" height="250" alt="HYF Video" /></a>
9+
<a href="http://www.youtube.com/watch?feature=player_embedded&v=CpYARPYGQU8" target="_blank"><img src="./assets/submit-assignments.png" width="400" height="250" alt="HYF Video" /></a>
1010

11-
Watch the video (by clicking the image) or go through the following walk-through to learn how to submit your homework:
11+
Watch the video (by clicking the image) or go through the following walk-through to learn how to submit your assignments:
1212

1313
ONE TIME ONLY (START OF EVERY MODULE)
1414

15-
1. Create a [fork](https://help.github.com/en/articles/fork-a-repo) of the homework module repository. For Node.js, the homework module repository is `https://www.github.com/HackYourHomework/Node.js-classXX` where XX is your class number. You do this by using the `fork` option on the top right
15+
1. Create a [fork](https://help.github.com/en/articles/fork-a-repo) of the assignments module repository. For Node.js, the assignments module repository is `https://www.github.com/HackYourAssignment/Node.js-classXX` where XX is your class number. You do this by using the `fork` option on the top right
1616
2. Navigate to the URL of the cloned repository (it should be in your personal GitHub account, under "repositories")
1717
3. Clone the repository, using SSH, to your local machine. You can do this by typing in `git clone <git url>` in the command line
1818
4. On your local machine, navigate to the folder using the command line
@@ -21,19 +21,18 @@ ONE TIME ONLY (START OF EVERY MODULE)
2121
EVERY WEEK
2222

2323
1. Do a `git pull` on your main branch to get the latest version.
24-
2. Create a new branch for each week you have homework. For example, for the week 1 homework for Node create a branch called `YOUR_NAME-w1-Node`. Don't forget to checkout this branch after creating it.
25-
3. Make your homework!
26-
4. Once you're finished, add your homework to a commit. Make sure you *only* commit your homework files and nothing else. You can use `git add -p` if you only want to add a couple files. You can always check what is happening with the `git status` command (as one of our mentors always says, it is the console.log of git!).
27-
5. Create the commit (`git commit`). Make the commit message meaningful, for example `finished project for homework week1`.
24+
2. Create a new branch for each week you have assignments. For example, for the week 1 assignments for Node create a branch called `YOUR_NAME-w1-Node`. Don't forget to checkout this branch after creating it.
25+
3. Make your assignments!
26+
4. Once you're finished, add your assignments to a commit. Make sure you _only_ commit your assignments files and nothing else. You can use `git add -p` if you only want to add a couple files. You can always check what is happening with the `git status` command (as one of our mentors always says, it is the console.log of git!).
27+
5. Create the commit (`git commit`). Make the commit message meaningful, for example `finished project for assignments week1`.
2828
6. Push the branch to your forked repository
2929
7. On the GitHub page of your forked repository, click on the `create pull request` button. Make sure the `base repository` is your teacher's repository, on branch master
3030
8. Give the pull request a title in the following format:
3131

3232
```markdown
33-
Homework week 1 <Your name>
33+
Assignments week 1 <Your name>
3434
```
3535

3636
9. Submit the pull request from your forked repository branch into the `main` branch
3737

3838
If you have any questions or if something is not entirely clear ¯\\\_(ツ)\_/¯, please ask/comment on Slack!
39-

week1/LESSONPLAN.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Node.js is a server-side platform, that allows us to use JavaScript to write bac
3333
Show students how to use Node.js to execute JavaScript files. Start with the following simple example, but explain how this log will be found inside of the command line instead of
3434

3535
```js
36-
console.log('Hello World!');
36+
console.log("Hello World!");
3737
```
3838

3939
#### Exercise
@@ -42,14 +42,14 @@ In a new JavaScript file write a function that returns true if a day is a weeken
4242

4343
```javascript
4444
function isWeekend(dayOfWeek) {
45-
if (dayOfWeek === 'Saturday') return true;
46-
if (dayOfWeek === 'Monday') return false;
45+
if (dayOfWeek === "Saturday") return true;
46+
if (dayOfWeek === "Monday") return false;
4747
// fill in the rest
4848
}
4949

50-
console.log('Tuesday is a ' + (isWeekend('Tuesday') ? 'weekend' : 'week day')); // week day
51-
console.log('Friday is a ' + (isWeekend('Friday') ? 'weekend' : 'week day')); // week day
52-
console.log('Sunday is a ' + (isWeekend('Sunday') ? 'weekend' : 'week day')); // weekend
50+
console.log("Tuesday is a " + (isWeekend("Tuesday") ? "weekend" : "week day")); // week day
51+
console.log("Friday is a " + (isWeekend("Friday") ? "weekend" : "week day")); // week day
52+
console.log("Sunday is a " + (isWeekend("Sunday") ? "weekend" : "week day")); // weekend
5353
```
5454

5555
Execute the file with `node` in the command line.
@@ -153,11 +153,11 @@ In a new folder:
153153
Create a JavaScript file called `server.js`, with the following code:
154154

155155
```javascript
156-
const express = require('express');
156+
const express = require("express");
157157
const app = express();
158158
const PORT = 3000;
159159

160-
app.get('/', (req, res) => res.send('Hello World!'));
160+
app.get("/", (req, res) => res.send("Hello World!"));
161161

162162
app.listen(PORT, () => console.log(`Example app listening on port ${PORT}!`));
163163
```
@@ -176,7 +176,7 @@ Write an Express app that serves the following HTML:
176176
<body>
177177
<h1>Things to do</h1>
178178
<ul>
179-
<li>Write homework</li>
179+
<li>Write assignments</li>
180180
<li>Buy groceries</li>
181181
<li>Prepare dinner</li>
182182
<li>Watch movie</li>
@@ -185,32 +185,38 @@ Write an Express app that serves the following HTML:
185185
</html>
186186
```
187187

188-
189188
#### Essence
190189

191190
Express.js is used to easily create web servers, that allow us (among other reasons) to serve HTML so our browser can read it. The browser sends a request to a specific address, like `/`, and our server (through Express) responds with an HTML file.
192191

193192
### 5. Serving static files with Express
194193

195194
#### Explanation
195+
196196
Motiviation based on previous exercise where HTML code is put in the javascript. Instead of doing this, the HTML can be saved in a file in the project and then send with express when needed.
197197

198198
#### Example
199+
199200
Save the HTML content in a new file in the project e.g. `index.html`. Then modify the javascript code to serve the HTML from the file instead of having it hardcoded.
201+
200202
```javascript
201-
const express = require('express');
203+
const express = require("express");
202204
const app = express();
203205
const PORT = 3000;
204206

205-
app.get('/', (req, res) => res.sendfile('index.html'));
207+
app.get("/", (req, res) => res.sendfile("index.html"));
206208

207209
app.listen(PORT, () => console.log(`Example app listening on port ${PORT}!`));
208210
```
209211

210212
#### Exercise
213+
211214
```css
212-
li:nth-child(even) {background-color: #CCC}
215+
li:nth-child(even) {
216+
background-color: #ccc;
217+
}
213218
```
219+
214220
If time left: Save the above css in a file `style.css`.
215221
Link the stylesheet in the HTML file. Extend the express app to return the sylesheet for route `\style.css`.
216222

week1/MAKEME.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Homework Node.js Week 1
1+
# Assignments Node.js Week 1
22

33
## Todo List
44

@@ -46,7 +46,7 @@ Inside of your `Node.js` fork, go to the folder `week1`. Inside of that folder,
4646

4747
## **5. PROJECT: HackYourTemperature I**
4848

49-
> In this part of the homework you'll be setting up the basis of your project: `HackYourTemperature`. Inside the folder `homework`, create a new folder called `hackyourtemperature`. You'll add to it every week.
49+
> In this part of the assignments you'll be setting up the basis of your project: `HackYourTemperature`. Inside the folder `assignments`, create a new folder called `hackyourtemperature`. You'll add to it every week.
5050
5151
In this module you'll be building the simplest of API's, starting from scratch.
5252

@@ -76,9 +76,9 @@ If you are tired of constantly restarting your server, google the `nodemon` pack
7676

7777
## **SUBMIT YOUR HOMEWORK!**
7878

79-
After you've finished your todo list it's time to show us what you got! Have a look at the following [guide](../hand-in-homework-guide.md) to see how it's done.
79+
After you've finished your todo list it's time to show us what you got! Have a look at the following [guide](../hand-in-assignments-guide.md) to see how it's done.
8080

81-
The homework that needs to be submitted is the following:
81+
The assignments that needs to be submitted is the following:
8282

8383
1. Project: HackYourTemperature I
8484

week1/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ It is time to start practicing interviews as it is a big part of the hiring proc
4444
You don't have to do all of this at this moment. This week you will get a message in your class channel about when the Career Training 2 session will be. _Before_ that session make sure to have:
4545

4646
- Read the whole [‘Interview Preparation’ Repo](https://github.com/HackYourFuture/interviewpreparation).
47-
- Done the homework: make a copy of [this file](https://docs.google.com/document/u/2/d/114rTGS4eG6tpkrMAyVIdvgTrnpmkRL6ax_smkw1B0HI/copy) and submit your answers to the team [here](https://hackyourfuture.typeform.com/to/s6zYAugm).
47+
- Done the assignments: make a copy of [this file](https://docs.google.com/document/u/2/d/114rTGS4eG6tpkrMAyVIdvgTrnpmkRL6ax_smkw1B0HI/copy) and submit your answers to the team [here](https://hackyourfuture.typeform.com/to/s6zYAugm).
4848

4949
## Extra reading
5050

week2/MAKEME.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Homework Node.js Week 2
1+
# Assignments Node.js Week 2
22

33
## Todo List
44

@@ -25,7 +25,7 @@ Inside of your `Node.js` fork, go to the folder `week2`. Inside of that folder,
2525
2626
So far you've build a basic web server. We've loaded in the necessary modules. We have an `end point`, which is `/`. We have activated the server, by `listening` to a port number. And we have created a `POST` request to handle input from the user.
2727

28-
This week's homework we will expand on that, in 2 parts:
28+
This week's assignments we will expand on that, in 2 parts:
2929

3030
1. We will connect our API to an external API to grab the data we want.
3131
2. We are going to add tests to our API to ensure that it works as intended.
@@ -143,7 +143,7 @@ Enjoy!
143143
Remember that the Career Training 2 session is coming up (check your class channel on slack for the exact date). Before the session make sure you have:
144144

145145
- Read the whole [‘Interview Preparation’ Repo](https://github.com/HackYourFuture/interviewpreparation).
146-
- Done the homework: make a copy of [this file](https://docs.google.com/document/u/2/d/114rTGS4eG6tpkrMAyVIdvgTrnpmkRL6ax_smkw1B0HI/copy) and submit your answers to the team [here](https://hackyourfuture.typeform.com/to/s6zYAugm).
146+
- Done the assignments: make a copy of [this file](https://docs.google.com/document/u/2/d/114rTGS4eG6tpkrMAyVIdvgTrnpmkRL6ax_smkw1B0HI/copy) and submit your answers to the team [here](https://hackyourfuture.typeform.com/to/s6zYAugm).
147147

148148
## **6. Optional: Side project ideas**
149149

@@ -169,9 +169,9 @@ We focused solely on the REST way of building an API, but there is a different w
169169

170170
After you've finished your todo list it's time to show us what you got! Upload all your files to your forked repository (same as week 1). Then make a pull request to it.
171171

172-
If you need a refresher, take a look at the following [guide](../hand-in-homework-guide.md) to see how it's done.
172+
If you need a refresher, take a look at the following [guide](../hand-in-assignments-guide.md) to see how it's done.
173173

174-
The homework that needs to be submitted is the following:
174+
The assignments that needs to be submitted is the following:
175175

176176
1. Project: HackYourTemperature II
177177

0 commit comments

Comments
 (0)