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

Skip to content

Commit 8224b04

Browse files
committed
complete reworked to use GitHub app as basis for all homework
1 parent b8898b1 commit 8224b04

File tree

7 files changed

+150
-193
lines changed

7 files changed

+150
-193
lines changed

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"cSpell.words": [
3+
"orgs",
4+
"repos"
5+
]
6+
}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Here you can find course content and homework for the JavaScript3 modules
66

77
|Week|Topic|Read|Homework|
88
|----|-----|----|--------|
9-
|1.|• Structure for a basic SPA (Single Page Application) <br>• [XMLHttpRequests](../../../fundamentals/blob/master/fundamentals/XMLHttpRequest.md) <br>• API calls|[Reading Week 1](/Week1/README.md)|[Homework Week 1](/Week2/MAKEME.md)|
10-
|2.|[Promises](../../../fundamentals/blob/master/fundamentals/promises.md)<br> • (re)writing data structures (in JSON) <br>• Async vs Sync <br>• [Event Loop (order of execution)](../../../fundamentals/blob/master/fundamentals/event_loop.md) |[Reading Week 2](/Week3/README.md)|[Homework Week 2](/Week3/MAKEME.md)|
11-
|3.|[Object Oriented Programming and Classes](../../../fundamentals/blob/master/fundamentals/oop_classes.md)<br>• [The `this` keyword](../../../fundamentals/blob/master/fundamentals/this.md) |[Reading Week 3](/Week1/README.md)|[Homework Week 3](/Week1/MAKEME.md)|
9+
|1.|• Structure for a basic SPA (Single Page Application) <br>• [XMLHttpRequests](../../../fundamentals/blob/master/fundamentals/XMLHttpRequest.md) <br>• API calls|[Reading Week 1](/Week1/README.md)|[Homework Week 1](/Week1/MAKEME.md)|
10+
|2.|Async vs Sync <br>• [Event Loop (order of execution)](../../../fundamentals/blob/master/fundamentals/event_loop.md)<br>[Promises](../../../fundamentals/blob/master/fundamentals/promises.md)|[Reading Week 2](/Week2/README.md)|[Homework Week 2](/Week2/MAKEME.md)|
11+
|3.|[Object Oriented Programming and ES6 Classes](../../../fundamentals/blob/master/fundamentals/oop_classes.md)<br>• [The `this` keyword](../../../fundamentals/blob/master/fundamentals/this.md)<br>• call, apply, bind |[Reading Week 3](/Week3/README.md)|[Homework Week 3](/Week3/MAKEME.md)|
1212

1313
__Kind note:__
1414

Week1/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ In week one we will discuss the following topics:
77
• API calls
88
```
99

10+
Here are resources that we like you to read as a preparation for the third lecture:
1011

11-
#### APIs
12+
### Fundamentals
13+
14+
- [XMLHttpRequest](../../../fundamentals/blob/master/fundamentals/XMLHttpRequest.md)
15+
16+
### APIs
1217

1318
- Read about APIS: https://www.programmableweb.com/api-university/what-are-apis-and-how-do-they-work
1419

15-
#### XMLHttpRequests
20+
### XMLHttpRequests
1621

17-
- HYF fundamental: [XMLHttpRequest](../../../fundamentals/blob/master/fundamentals/XMLHttpRequest.md)
1822
- [Making HTTP Requests in JavaScript](https://www.kirupa.com/html5/making_http_requests_js.htm)

Week2/MAKEME.md

Lines changed: 20 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,41 @@
1-
# Homework Week 3
1+
# Homework Week 2
22

33
```
44
Topics discussed this week:
5-
(re)writing data structures (in JSON)
6-
Async VS Sync
7-
Code flow (order of execution)
5+
Async vs Sync
6+
Event Loop (order of execution)
7+
Promises
88
```
99

1010
## Step 1: Read
1111

12-
- If you need to refresh your memory on es6 classes: [es6-classes-in-depth](https://ponyfoo.com/articles/es6-classes-in-depth)
13-
- Also read this article on scopes & closures: [explaining-javascript-scope-and-closures](https://robertnyman.com/2008/10/09/explaining-javascript-scope-and-closures/)
12+
- Read this article on scopes & closures: [explaining-javascript-scope-and-closures](https://robertnyman.com/2008/10/09/explaining-javascript-scope-and-closures/)
1413

15-
## Step 2: Feedback
16-
17-
- Create at least 2 issues (bug / feature / code improvement) on another teams github repository. Do this in pairs.
18-
- Solve the issue proposed by another students in your github repo. More info [here](https://hackyourfuture.slack.com/files/michahell/F31BX1XT6/Merging_a_local_branch_into_master)
14+
- If you are still not completely clear on promises, here are some additional nice resources :ring:
1915

20-
## Step 3: Pair programming promises challenge
16+
- [Googles post about Promises](https://developers.google.com/web/fundamentals/getting-started/primers/promises)
17+
- [A nice article from David Walsh](https://davidwalsh.name/promises)
18+
- [A real life example](https://github.com/mdn/js-examples/blob/master/promises-test/index.html)
19+
- [stackoverflow](http://stackoverflow.com/questions/13343340/calling-an-asynchronous-function-within-a-for-loop-in-javascript)
20+
- YouTube: [promises](https://www.youtube.com/watch?v=WBupia9oidU)
2121

22-
This week you will work in a team!
2322

24-
So please:
23+
## Step 2: Feedback
2524

26-
- (one of your team mates should) Fork this repository: https://github.com/HackYourFuture/PromisessObjectsAndStringRendering
27-
- make sure you are all collaborators on the same repository
28-
- Follow the instructions in the REAME.md of the above repository
29-
- To hand in your homework you make a PR to the existing repository
25+
- Create at least 2 issues (bug / feature / code improvement) on another student's GitHub repository.
26+
- Solve the issue(s) proposed by another students in your GitHub repository. More info [here](https://hackyourfuture.slack.com/files/michahell/F31BX1XT6/Merging_a_local_branch_into_master).
3027

31-
## Step 4: Async challenge
28+
## Step 3: Promises
3229

3330
_Deadline Saturday_
3431

35-
1. Rewrite the code below to Async:
36-
37-
```js
38-
1.
39-
40-
let sum = calculateSum(2, 6);
41-
console.log(sum);
42-
43-
2.
44-
45-
let results = $.getJSON('http://myapi.com');
46-
showResults(results);
32+
The assignment for this week is:
4733

48-
3.
49-
50-
let sum = calculateSum(2, 6);
51-
if (sum > 8) {
52-
console.log('larger than 8');
53-
}
54-
55-
4.
56-
57-
let data = $.getJSON('http://myapi.com');
58-
data = data.map(function (x) { return x * 8; });
59-
60-
writeDataToFile(data);
61-
```
34+
- Complete your GitHub app code as needed to meet the requirements from the assignment of week 1.
35+
- Replace all asynchronous callbacks (e.g. as used with XMLHttpRequest) by ES6 promises.
36+
- Beautify your app's styling.
6237

6338
## Step 5: Read before next lecture
6439

65-
_Deadline Sunday morning_
66-
67-
Go trough the reading material in the [README.md](https://github.com/HackYourFuture/Node.js) to prepare for your next class
40+
Go trough the reading material in the [README.md](/Week3/README.md) to prepare for your next class.
6841

69-
> To hand in your homework, make a pull request to the original repository you forked from. Remember, our master branches are protected, you cannot push to a directly cloned repository you first have to make a fork to your own Github.

Week2/README.md

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,24 @@
1-
# Reading material for the third lecture:
1+
# Reading material for the second lecture:
22

33
```
4-
In week three we will discuss the following topics:
4+
In week two we will discuss the following topics:
55
• Async vs Sync
66
• Event Loop (order of execution)
77
• Promises
88
```
99

10-
### Here are resources that we like you to read as a preparation for the coming lecture:
10+
Here are resources that we like you to read as a preparation for the second lecture:
1111

12-
#### Async VS Sync
13-
- Read about Asynchronous vs. Synchronous programming: http://www.hongkiat.com/blog/synchronous-asynchronous-javascript/
14-
15-
#### Closures and async code
16-
- [Why closures are helpful with async code](http://stackoverflow.com/questions/13343340/calling-an-asynchronous-function-within-a-for-loop-in-javascript)
17-
18-
_Please go through the material and come to class prepared!_# Reading material for the ninth lecture:
19-
20-
```
21-
In week nine we will discuss the following topics:
22-
• (re)writing data structures (in JSON)
23-
• Async VS Sync
24-
• Code flow (order of execution)
25-
```
12+
### Async VS Sync
2613

27-
### Here are resources that we like you to read as a preparation for the coming lecture:
28-
29-
#### Async VS Sync
14+
- [Stacks/Queues](https://www.youtube.com/watch?v=wjI1WNcIntg) (5 mins)
3015
- Read about Asynchronous vs. Synchronous programming: http://www.hongkiat.com/blog/synchronous-asynchronous-javascript/
31-
32-
#### Closures and async code
3316
- [Why closures are helpful with async code](http://stackoverflow.com/questions/13343340/calling-an-asynchronous-function-within-a-for-loop-in-javascript)
3417

35-
_Please go through the material and come to class prepared!_
36-
37-
18+
### Fundamentals
3819

20+
- [Event Loop](../../../fundamentals/blob/master/fundamentals/event_loop.md)
21+
- [Promises](../../../fundamentals/blob/master/fundamentals/promises.md)
3922

4023

24+
_Please go through the material and come to class prepared!_

0 commit comments

Comments
 (0)