Skip to content

Commit 174ed25

Browse files
Merge pull request #45 from HackYourFuture-CPH/for-example
Use "e.g." for examples, not "fx"
2 parents 2c2efee + d00f2bb commit 174ed25

File tree

25 files changed

+69
-67
lines changed

25 files changed

+69
-67
lines changed

legacy/databases/lesson3/README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -69,45 +69,45 @@ Create these queries
6969

7070
#### Meal
7171

72-
| Queries to write |
73-
| ----------------------------------------------------------------------------------------- |
74-
| Get all meals |
75-
| Add a new meal |
76-
| Get a meal with any id, fx 1 |
77-
| Update a meal with any id, fx 1. Update any attribute fx the title or multiple attributes |
78-
| Delete a meal with any id, fx 1 |
72+
| Queries to write |
73+
| --------------------------------------------------------------------------------------------- |
74+
| Get all meals |
75+
| Add a new meal |
76+
| Get a meal with any id, e.g. 1 |
77+
| Update a meal with any id, e.g. 1. Update any attribute e.g. the title or multiple attributes |
78+
| Delete a meal with any id, e.g. 1 |
7979

8080
#### Reservation
8181

82-
| Queries to write |
83-
| ------------------------------------------------------------------------------------------------ |
84-
| Get all reservations |
85-
| Add a new reservation |
86-
| Get a reservation with any id, fx 1 |
87-
| Update a reservation with any id, fx 1. Update any attribute fx the title or multiple attributes |
88-
| Delete a reservation with any id, fx 1 |
82+
| Queries to write |
83+
| ---------------------------------------------------------------------------------------------------- |
84+
| Get all reservations |
85+
| Add a new reservation |
86+
| Get a reservation with any id, e.g. 1 |
87+
| Update a reservation with any id, e.g. 1. Update any attribute e.g. the title or multiple attributes |
88+
| Delete a reservation with any id, e.g. 1 |
8989

9090
#### Review
9191

92-
| Queries to write |
93-
| ------------------------------------------------------------------------------------------- |
94-
| Get all reviews |
95-
| Add a new review |
96-
| Get a review with any id, fx 1 |
97-
| Update a review with any id, fx 1. Update any attribute fx the title or multiple attributes |
98-
| Delete a review with any id, fx 1 |
92+
| Queries to write |
93+
| ----------------------------------------------------------------------------------------------- |
94+
| Get all reviews |
95+
| Add a new review |
96+
| Get a review with any id, e.g. 1 |
97+
| Update a review with any id, e.g. 1. Update any attribute e.g. the title or multiple attributes |
98+
| Delete a review with any id, e.g. 1 |
9999

100100
#### Additional queries
101101

102102
Now add a couple of different meals, reservations and reviews with different attributes. With those meals create the following queries
103103

104104
| Functionality |
105105
| -------------------------------------------------------------------------------------------------------------- |
106-
| Get meals that has a price smaller than a specific price fx 90 |
106+
| Get meals that has a price smaller than a specific price e.g. 90 |
107107
| Get meals that still has available reservations |
108108
| Get meals that partially match a title. `Rød grød med` will match the meal with the title `Rød grød med fløde` |
109109
| Get meals that has been created between two dates |
110-
| Get only specific number of meals fx return only 5 meals |
110+
| Get only specific number of meals e.g. return only 5 meals |
111111
| Get the meals that have good reviews |
112112
| Get reservations for a specific meal sorted by created_date |
113113
| Sort all meals by average number of stars in the reviews |

legacy/databases/lesson3/social_media_exercise.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ It should however **not** be possible for a user to react to something with the
5555

5656
### Friendship
5757

58-
Fx: User 1 is friends with user 2
58+
e.g. User 1 is friends with user 2

legacy/javascript/homework-projects/guides/making-your-API-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ If you already have such a repository, just go on to the next step.
2424

2525
1. Once the repository has been made, head over to your terminal and clone that repository into a directory of your choosing.
2626
2. Once the repository been cloned to your computer, open the project folder in VS Code.
27-
3. Create a folder for your APIs or just create a file in the root of the repository. You might want to organize it into a folder (fx. “data”) if you plan to create more APIs in the future and/or if you plan to also host your site on Github Pages. In the case of your JS project, you would just copy and paste the array of objects that you have been using so far and perhaps add more objects to it, if needed.
27+
3. Create a folder for your APIs or just create a file in the root of the repository. You might want to organize it into a folder (e.g. “data”) if you plan to create more APIs in the future and/or if you plan to also host your site on Github Pages. In the case of your JS project, you would just copy and paste the array of objects that you have been using so far and perhaps add more objects to it, if needed.
2828
4. Once you are ready with your JSON file, add, commit and push the changes to `main` so that you have the file on your repository.
2929
5. Head over to the repo on GitHub and verify that your file is there and that all is good.
3030

legacy/javascript/javascript1/week1/lesson-plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Remember to add the code you wrote in the class to the relevant class branch's class work folder. If the branch has not been created just create and push it :) If you don't have access, write to one from the core team. You can see an example below!
99

10-
To find examples of what teachers have taught before go to the class branches in the classwork folder, Fx [class 07](https://github.com/HackYourFuture-CPH/JavaScript/tree/class07/JavaScript1/Week1/classwork)
10+
To find examples of what teachers have taught before go to the class branches in the classwork folder, e.g. [class 07](https://github.com/HackYourFuture-CPH/JavaScript/tree/class07/JavaScript1/Week1/classwork)
1111

1212
If you find anything that could be improved then please create a pull request! We welcome changes, so please get involved if you have any ideas!!!
1313

legacy/javascript/javascript1/week2/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- [ ] Global vs local scope
88
- [ ] For loop
99

10-
Teaching note. Start off explaining functions with how to use a function fx explain why the Math.random function is smart, or Math.max.
10+
Teaching note. Start off explaining functions with how to use a function e.g. explain why the Math.random function is smart, or Math.max.
1111

1212
## Relevant links
1313

@@ -78,7 +78,7 @@ console.log(randomNumber); // logs out some number between 0 and 1
7878

7979
Here `Math.random` is a function. To activate the function we call it using parentheses `()`. When calling it we get a randomNumber! We now don't need to think about all the code it takes to create a random number in javascript, we simply call the function and get a random number. Code has been abstracted away for us!
8080

81-
Some functions is called with arguments fx:
81+
Some functions is called with arguments, for example:
8282

8383
```js
8484
const maxNumber = Math.max(3, 5); // 3 and 5 are arguments
@@ -142,7 +142,7 @@ multiply(10 * 4);
142142

143143
##### Return value
144144

145-
Sometimes we want to get a value back when calling a function. Fx in the sum example. We want to call the function and get the sum back!
145+
Sometimes we want to get a value back when calling a function. e.g. in the sum example. We want to call the function and get the sum back!
146146

147147
```js
148148
function sum(a, b) {

legacy/javascript/javascript1/week2/lesson-plan.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Remember to add the code you wrote in the class to the relevant class branch's class work folder. If the branch has not been created just create and push it :) If you don't have access, write to one from the core team. You can see an example below!
99

10-
To find examples of what teachers have taught before go to the class branches in the classwork folder, Fx [class 07](https://github.com/HackYourFuture-CPH/JavaScript/tree/class07/JavaScript1/Week1/classwork)
10+
To find examples of what teachers have taught before go to the class branches in the classwork folder, e.g. [class 07](https://github.com/HackYourFuture-CPH/JavaScript/tree/class07/JavaScript1/Week1/classwork)
1111

1212
If you find anything that could be improved then please create a pull request! We welcome changes, so please get involved if you have any ideas!!!
1313

@@ -38,7 +38,7 @@ If you find anything that could be improved then please create a pull request! W
3838
- [Exercise string logger](#for-loop-1)
3939
- [Exercise send emails](#send-emails)
4040

41-
The students really struggle with the **return** value. What it means, how it is captured. What happens when nothing is returned etc. Try really hammering in this concept with lots of simple examples and exercises! Fx if a function is called get something. That means that something is returned from that function.
41+
The students really struggle with the **return** value. What it means, how it is captured. What happens when nothing is returned etc. Try really hammering in this concept with lots of simple examples and exercises! e.g. if a function is called get something. That means that something is returned from that function.
4242

4343
Zoey Zou made a nice Notion lesson plan here: <https://www.notion.so/JS1-Week2-8f2d4b7e7ba0425ea4a9e97816e9ceb7>
4444

legacy/javascript/javascript1/week3/homework.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Array's has lots of helper functions, that is used all the time when developing js applications. It is super helpful to be able to **manipulate an array** like **removing elements** or **adding elements** at specific indexes. Another helpful function of arrays is to know **where a specific item is** in the array.
66

7-
Objects can be used for **representing data** and it can **help structure your code**. An object can fx represent a user that has a firstname, surname, profile picture and a list of friends. It is constantly used in javascript and **essential to learning the language**.
7+
Objects can be used for **representing data** and it can **help structure your code**. An object can e.g. represent a user that has a firstname, surname, profile picture and a list of friends. It is constantly used in javascript and **essential to learning the language**.
88

99
If you struggle to do this weeks homework there are a couple of things to do:
1010

legacy/javascript/javascript1/week3/lesson-plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Remember to add the code you wrote in the class to the relevant class branch's class work folder. If the branch has not been created just create and push it :) If you don't have access, write to one from the core team. You can see an example below!
99

10-
To find examples of what teachers have taught before go to the class branches in the classwork folder, Fx [class 07](https://github.com/HackYourFuture-CPH/JavaScript/tree/class07/JavaScript1/Week1/classwork)
10+
To find examples of what teachers have taught before go to the class branches in the classwork folder, e.g. [class 07](https://github.com/HackYourFuture-CPH/JavaScript/tree/class07/JavaScript1/Week1/classwork)
1111

1212
If you find anything that could be improved then please create a pull request! We welcome changes, so please get involved if you have any ideas!!!
1313

legacy/javascript/javascript1/week4/homework.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ These are the commands you should be able to give the voice assistant:
3636
- `Add fishing to my todo` - Should respond with "fishing added to your todo". Should add fishing to a list of todos
3737
- `Add singing in the shower to my todo` - Should add singing in the shower to a list of todos
3838
- `Remove fishing from my todo` - Should respond with "Removed fishing from your todo"
39-
- `What is on my todo?` - should respond with the todos. Fx you have 2 todos - fishing and singing in the shower
39+
- `What is on my todo?` - should respond with the todos. e.g. you have 2 todos - fishing and singing in the shower
4040
- `What day is it today?` - Should respond with the date in a human readable format. E.g. if today is 30/8/2019 then it should respond with 30. of August 2019
41-
- Should be able to do simple math. fx `what is 3 + 3` should respond with 6. Or `what is 4 * 12` should respond with 48
41+
- Should be able to do simple math. e.g. `what is 3 + 3` should respond with 6. Or `what is 4 * 12` should respond with 48
4242
- `Set a timer for 4 minutes` - Should respond with "Timer set for 4 minutes". When 4 minutes is up: "Timer done". How do we set a timer in js? Google is your friend here!
4343
- Add one or more command to your voice assistant
4444

legacy/javascript/javascript1/week4/lesson-plan.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Remember to add the code you wrote in the class to the relevant class branch's class work folder. If the branch has not been created just create and push it :) If you don't have access, write to one from the core team. You can see an example below!
99

10-
To find examples of what teachers have taught before go to the class branches in the classwork folder, Fx [class 07](https://github.com/HackYourFuture-CPH/JavaScript/tree/class07/JavaScript1/Week1/classwork)
10+
To find examples of what teachers have taught before go to the class branches in the classwork folder, e.g. [class 07](https://github.com/HackYourFuture-CPH/JavaScript/tree/class07/JavaScript1/Week1/classwork)
1111

1212
If you find anything that could be improved then please create a pull request! We welcome changes, so please get involved if you have any ideas!!!
1313

@@ -74,7 +74,7 @@ When that works. Make the two number for multiples into parameters. So it can be
7474

7575
A sentiment analyzer is some functionality that figures out how positive/negative a sentence is.
7676

77-
Fx the sentence `I am mega super awesome happy" Should have a high score
77+
For example, the sentence `I am mega super awesome happy" Should have a high score
7878
The sentence "I hate doing boring stuff" should have a low score.
7979

8080
Create a function that takes a string as a parameter. calling the function will return an object with `score`, `positiveWords` and `negativeWords`. You decide how the score should be implemented and what words are negative and positive.
@@ -96,7 +96,9 @@ console.log(sentimentScoreObject);
9696

9797
### Credit card number formatter
9898

99-
This is a very real world example of a problem i got at my previous work. I was tasked to implement one of the smart credit card input fields, where the credit card numbers are separated with a space. Fx inputting 123456789 would show 1234 5678 9.
99+
This is a very real world example of a problem i got at my previous work. I
100+
was tasked to implement one of the smart credit card input fields, where the
101+
credit card numbers are separated with a space. e.g. inputting 123456789 would show 1234 5678 9.
100102

101103
![Credit card formatter](assets/credit-card-formatter.gif)
102104

0 commit comments

Comments
 (0)