Skip to content

Commit f7e0732

Browse files
committed
tmp commit
1 parent 99b4d6e commit f7e0732

File tree

6 files changed

+54
-160
lines changed

6 files changed

+54
-160
lines changed

javascript1/week4/exercises/level0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ There are two main ways of running Javascript: Via the Browser or through the te
2525
* Run the javascript file using the command `node <path to your file>`. <br>
2626
For instance `node ./script.js`
2727

28-
## 🧱🔥 0.2 Variables & Scope
28+
## 🧱🔎 0.2 Variables & Scope
2929
1. Declare three variables: `name`, `age`, and `isStudent`. Assign appropriate values to them.
3030
2. Can you help me fix my code?
3131
``` js

javascript1/week4/exercises/level1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ console.log("#10", a + h);
122122

123123

124124

125-
## 🔥 1.4 Troubleshoot issue with grades
125+
## 🔎 1.4 Troubleshoot issue with grades
126126
> [!TIP]
127127
> Effective troubleshooting involves a systematic approach:
128128
> 1. **🔍 Understand the Problem**: Gather all relevant information and understand how to reproduce the issue.

javascript1/week4/exercises/level2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ printPassengerInfo("Robert", 21, 190, false);
112112

113113

114114

115-
## 🔥🧱 2.3 Implement a Almost-Math tool
115+
## 🔎🧱 2.3 Implement a Almost-Math tool
116116
1. Write a function called `sumEvenNumbers` that takes an array of numbers and returns the sum of only the even numbers in the array.
117117
```js
118118
sumEvenNumbers([1, 2, 3, 4, 5, 6]);

javascript1/week4/lesson-plan.md

Lines changed: 11 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -11,63 +11,25 @@
1111
> Alternate between teaching and exercises. Avoid long lectures; most people can't focus for more than 45 minutes.
1212
```
1313

14-
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 dont have access, write to one from the core team. You can see an example below!
15-
16-
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)
17-
18-
> [!IMPORTANT]
19-
> 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!
20-
21-
# Suggested Lesson Plan
22-
23-
> [!TIP]
24-
> Below is a suggestion for a lesson plan you can use. Feel free to use your own if it suits your better. Just make sure to cover [the learning goals](./readme.md).
25-
26-
---
27-
- Recap of js basics
28-
- Variables
29-
- Types
30-
- Conditionals
31-
- Functions
32-
- For loop
33-
- scope
34-
- Arrays
35-
- Objects
36-
- Ask the students what they need to get repeated. Or figure it out by doing some code example.
37-
- Solving problems
38-
- https://dev.to/aprietof/5-steps-to-solving-programming-problems--502d
39-
- [Code inspiration](#fibonacci-sequence)
40-
- [Exercises](#exercises)
41-
4214
This class is about getting the basics hammered down. We have had a lot of students who think the js module is too difficult. That is why this class is here, too ease the steepness of the js learning curve.
4315

16+
```
4417
Focus on
45-
- Recapping what the students struggle with
46-
- Letting the students learn a framework for solving problems
47-
- Lots and lost of exercises 💪
48-
49-
## Typical misconceptions
50-
51-
- Difference between return and console.log
52-
- What console.log does and what it is made for
53-
54-
## Code inspiration
55-
56-
### Fibonacci Sequence
57-
Given a specific number in the fibonacci sequence return the fibonachi number.
18+
> Recapping what the students struggle with
19+
> Letting the students learn a framework for solving problems
20+
> Lots and lost of exercises 💪
21+
```
5822

59-
```js
60-
// 0, 1, 1, 2, 3, 5, 8, 13, 21, 34
23+
> [!IMPORTANT]
24+
> 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!
6125
62-
fib(5) // 3
63-
fib(10) // 34
64-
```
26+
## Suggested Lesson Plan
6527

66-
Try not to just solve the problem, but explain what you are doing and thinking!
28+
You can find a suggested lesson plan [here](./lesson.md).
6729

68-
Try using this as a framework for solving the problem: https://dev.to/aprietof/5-steps-to-solving-programming-problems--502d
30+
Feel free to use your own lesson plan if it works better for your teaching style. Just ensure that you cover [the learning goals](./readme.md).
6931

70-
## Exercises
32+
# Old material
7133

7234
### Fizz buzz
7335

@@ -79,29 +41,6 @@ When that works. Make the two number for multiples into parameters. So it can be
7941

8042
`fizzBuzz(4, 12);`
8143

82-
### Build a sentiment analyzer
83-
84-
A sentiment analyzer is some functionality that figures out how positive/negative a sentence is.
85-
86-
Fx the sentence `I am mega super awesome happy" Should have a high score
87-
The sentence "I hate doing boring stuff" should have a low score.
88-
89-
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.
90-
91-
Here is an example of using the function:
92-
93-
```js
94-
const sentimentScoreObject = getSentimentScore('I am mega super awesome happy');
95-
96-
console.log(sentimentScoreObject);
97-
/*
98-
{
99-
score: 3,
100-
positiveWords: ['happy', 'awesome', 'super'],
101-
negativeWords: [],
102-
}
103-
*/
104-
```
10544

10645
### Credit card number formatter
10746

javascript1/week4/lesson.md

Lines changed: 27 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -2,106 +2,60 @@
22

33
<!-- ------------------------------ PART 1 ----------------------------------- -->
44

5-
# `12:15` PART 1 - Soft Skills
5+
## `12:15` PART 1 - Soft Skills & Exercises
66

77
> [!IMPORTANT]
8-
> Top 3 most important soft-skills to land your first job:
8+
> Top 3 most important soft skills to land your first job:
99
> * Problem-Solving
1010
> * Communication & Collaboration
1111
> * Continuous Learning & Adaptability
1212
13+
### Today's Exercises
1314

14-
## Hard & Soft Skills
15-
When you start applying for jobs, you will notice a significant focus on hard skills. However, this does not diminish the importance of soft skills. In Denmark, there is generally a greater emphasis on soft skills compared to many other countries.
16-
17-
Also, as you become more senior there will be a higher demand for soft skills.
18-
19-
#### Why Does Denmark Value Soft Skills Highly?
20-
* Danish companies often have a flat structure, where developers are expected to take responsibility, communicate openly, and work closely with colleagues and managers.
21-
* Many Danish tech companies follow Scrum and other agile methodologies, where teamwork and communication are key to success.
22-
* Developers in Denmark are expected to take ownership of their tasks and actively participate in decision-making processes.
23-
* Denmark has a strong consensus culture, meaning that decisions are often made through discussion and mutual agreement. This requires good communication skills, collaboration, and the ability to consider different perspectives.
24-
25-
## Today's Exercises
26-
The exercises for today are divided into four types to represent the types of tasks you will face in the industry and which skills they require. This is your first chance to really practice this, but you will develop and enhance these skills throughout your time at HYF, during your final project, and in your future career.
27-
### 🧱 Implement New Code
28-
> Skills needed:
29-
> * Designing a solution
30-
> * Breaking down the solution into manageable subtasks
31-
> * Implementing the code
32-
> * Testing to ensure it works as expected
33-
>
34-
> **Learning goal**: Be able to design, implement, and test a solution from scratch, ensuring it meets the requirements and functions correctly.
35-
36-
### 🔥 Troubleshoot issues
37-
> Skills needed:
38-
> * Understanding requirements
39-
> * Reading and analyzing code
40-
> * Identifying issues
41-
> * Developing and testing solutions
42-
>
43-
> **Learning goal**: Efficiently identify and resolve errors in code without introducing new issues.
44-
45-
### ✨ Review existing code
46-
> Skills needed:
47-
> * Understanding existing code
48-
> * Identifying areas for improvement
49-
> * Refactoring code and testing it
50-
>
51-
> **Learning goal**: Be able to read and understand code that does not follow your own coding style, identify potential improvements, and refactor it without introducing unintended side effects.
52-
53-
### 🎓 Learn new concepts and technologies
54-
> Skills needed:
55-
> * Researching and finding good information
56-
> * Curiosity and willingness to explore
57-
> * Hands-on experimentation
58-
> * Explaining concepts to others
59-
>
60-
> **Learning goal**: Develop the ability to independently learn and understand new concepts and technologies, and effectively communicate your knowledge to others.
15+
Goal for today:
16+
* Solve 2 [warm-up exercises](./exercises/level0.md) to get started! 💪 You decide which.
17+
* Solve 3 [regular exercises](./exercises/level1.md). 👩‍💻 You decide which.
18+
* Solve 1 or more [hard exercises](./exercises/level2.md). 🥇 You decide which.
19+
* **Bonus:** Solve 1 or more [very hard exercises](./exercises/level3.md).
20+
### Types of Exercises
21+
22+
Today's exercises are designed to simulate real-world tasks and develop essential skills:
23+
24+
* 🧱 **Implement New Code**
25+
* **Goal**: Design, implement, and test a solution from scratch, ensuring it meets requirements and functions correctly.
26+
* 🔎 **Troubleshoot Issues**
27+
* **Goal**: Efficiently identify and resolve errors in code without introducing new issues.
28+
***Review Existing Code**
29+
* **Goal**: Read and understand code that does not follow your own style, identify potential improvements, and refactor it without introducing unintended side effects.
30+
* 🎓 **Learn New Concepts and Technologies**
31+
* **Goal**: Independently learn and understand new concepts and technologies, and effectively communicate your knowledge to others.
6132

6233

6334
<!-- ------------------------------ PART 2 ----------------------------------- -->
6435

65-
Now go to the [warm-up exercises](./exercises/level0.md) to get started! 💪
6636

67-
Once you have completed a few tasks, feel free to challenge yourself with more difficult exercises:
68-
* Our [Level 1 Exercises (regular)](./exercises/level1.md) will help you practice the topics already covered.
69-
* Our [Level 2 Exercises (hard)](./exercises/level2.md) are for those who want a bit more challenge. These exercises are slightly harder and provide less guidance.
70-
* Our [Level 3 Exercises (very hard)](./exercises/level3.md) are for those who want to push themselves further. These exercises are more difficult and may require you to learn new topics independently.
7137

7238

7339

7440
<!-- ------------------------------ PAUSE ----------------------------------- -->
7541

76-
# `13:45` PAUSE (30 min)
42+
## `13:45` PAUSE (30 min)
7743

7844
<!-- ------------------------------ PART 3 ----------------------------------- -->
7945

8046

8147

82-
# `14:15` PART 3 - Questions
83-
84-
> [!IMPORTANT]
85-
> What you should know about now:
86-
> * Variables, Datatypes & Scopes
87-
> * Operators
88-
> * Arithmetic operators: `+`, `*` etc.
89-
> * Conditional operators: `>=`, `!==` etc.
90-
> * Arrays
91-
> * Loops
92-
> * Functions
93-
> * Objects
48+
## `14:15` PART 3 - Questions
9449

50+
Solve one regular exercise with class.
9551

9652
<!-- ------------------------------ PART 4 ----------------------------------- -->
9753

98-
# `14:30` PART 4 - More Exercises
54+
## `14:30` PART 4 - More Exercises
9955

10056
Continue working on the exercises...
10157

10258

103-
# `15:50` Course Evaluation
104-
* How are the exercises?
105-
* How is the format?
106-
* What worked well?
107-
* What could work even better?
59+
## `15:45` Introduction to home work
60+
* Explain this weeks homework
61+
* Give trainees a chance to ask any last questions about exercises or learning goals.

javascript1/week4/preparation.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,21 @@ Go through the learning goals of week 1, week 2 and week 3 of javascript. Make s
66
- [Week 2 learning goals](../week2/readme.md)
77
- [Week 3 learning goals](../week3/readme.md)
88

9+
_Please go through the material and come to class prepared!_
10+
911
## Soft Skills of a Software Engineer
10-
When you start applying for jobs, you will notice a significant focus on hard skills. However, this does not diminish the importance of soft skills. In Denmark, there is generally a greater emphasis on soft skills compared to many other countries.
12+
When you start applying for jobs, you will notice a significant focus on hard skills. However, this does not diminish the importance of soft skills. In Denmark, there is generally a greater emphasis on soft skills compared to many other countries.
1113

12-
Some of the most important soft skills in the beginning of your career are:
13-
> [!IMPORTANT]
14-
> * Problem-Solving
15-
> * Communication & Collaboration
16-
> * Continuous Learning & Adaptability
14+
### Important Soft Skills Early in Your Career
15+
Some of the most important soft skills at the beginning of your career are:
16+
- **Problem-Solving**
17+
- **Communication & Collaboration**
18+
- **Continuous Learning & Adaptability**
1719

20+
#### Why Denmark Values Soft Skills Highly
21+
- **Flat Organizational Structures**: Danish companies often have a flat structure, where developers are expected to take responsibility, communicate openly, and work closely with colleagues and managers.
22+
- **Agile Methodologies**: Many Danish tech companies follow Scrum and other agile methodologies, where teamwork and communication are key to success.
23+
- **Ownership and Participation**: Developers in Denmark are expected to take ownership of their tasks and actively participate in decision-making processes.
24+
- **Consensus Culture**: Denmark has a strong consensus culture, meaning that decisions are often made through discussion and mutual agreement. This requires good communication skills, collaboration, and the ability to consider different perspectives.
1825

19-
#### Why Does Denmark Value Soft Skills Highly?
20-
* Danish companies often have a flat structure, where developers are expected to take responsibility, communicate openly, and work closely with colleagues and managers.
21-
* Many Danish tech companies follow Scrum and other agile methodologies, where teamwork and communication are key to success.
22-
* Developers in Denmark are expected to take ownership of their tasks and actively participate in decision-making processes.
23-
* Denmark has a strong consensus culture, meaning that decisions are often made through discussion and mutual agreement. This requires good communication skills, collaboration, and the ability to consider different perspectives.
2426

25-
_Please go through the material and come to class prepared!_

0 commit comments

Comments
 (0)