Skip to content

Commit

Permalink
feat: update week 14 (#1626)
Browse files Browse the repository at this point in the history
* feat: update week 14

* refactor: format
  • Loading branch information
valerydluski authored Apr 30, 2024
1 parent 84fdc69 commit 4b5c545
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 5 deletions.
16 changes: 11 additions & 5 deletions stage2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,15 +395,21 @@ At the end of this week, all students will be required to use typescript and adh

### 14/05/2024

- [Final-Task.Sprint2](../tasks/eCommerce-Application/Sprints/Sprint%232.md) Разработка в командах 3 чел
- [Модуль: CoreJS Interview #2](https://github.com/rolling-scopes-school/tasks/blob/master/tasks/interview-corejs.md)
- Modules:

- [Module: JavaScript Garbage Collection](modules/garbage-collection/)

- Tasks:

- [Final-Task.Sprint2](../tasks/eCommerce-Application/Sprints/Sprint%232.md)
- [CoreJS Interview #2](https://github.com/rolling-scopes-school/tasks/blob/master/tasks/interview-corejs.md)

<details>
<summary markdown="span">Активности менторов</summary>
<summary markdown="span">Mentor Activities</summary>

- [Собеседуем студентов по CoreJS #2](https://github.com/rolling-scopes-school/tasks/blob/master/tasks/interview-corejs.md)
- [Checking Final Version of Final-Task.Sprint1](../tasks/eCommerce-Application/Sprints/Sprint%231.md)
- [Checking the Draft version of Final-Task.Sprint2](https://docs.rs.school/#/pull-request-review-process) задания [Final-Task.Sprint2](../tasks/eCommerce-Application/Sprints/Sprint%232.md)
- [Checking the Draft version](https://docs.rs.school/#/pull-request-review-process) of the task [Final-Task.Sprint2](../tasks/eCommerce-Application/Sprints/Sprint%232.md)
- [Interviewing students for CoreJS #2](https://github.com/rolling-scopes-school/tasks/blob/master/tasks/interview-corejs.md)
</details>

## Week #15.
Expand Down
42 changes: 42 additions & 0 deletions stage2/modules/garbage-collection/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# [Stage#2.](../../) JavaScript Garbage Collection 🗑️

## Module Overview 📚

This module delves into the concept of garbage collection in JavaScript, focusing on how JavaScript automatically manages memory. The course aims to provide a clear understanding of the mechanisms JavaScript uses to identify and free unused memory, a process critical for optimizing application performance and preventing memory leaks.

## Learning Objectives 🎯

Students will:

- Understand what garbage collection is and why it is necessary in JavaScript.
- Learn about the main algorithms used for garbage collection in JavaScript, such as mark-and-sweep and reference counting.
- Explore common scenarios that lead to memory leaks and how to avoid them.
- Gain practical skills in identifying potential memory management issues in JavaScript code.

## Approximate Module Completion Time ⏱️

- **2 hours**

## Theory 📖

Students are encouraged to explore the following resources:

1. **Understanding Garbage Collection:**

- [JavaScript Memory Management](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management)
- [Introduction to Garbage Collection](https://javascript.info/garbage-collection)

2. **Garbage Collection Algorithms:**

- [Reference Counting in JavaScript](https://v8.dev/blog/trash-talk)

3. **Detecting and Preventing Memory Leaks:**

- [Tools and Techniques to Detect Memory Leaks in JavaScript](https://www.dynatrace.com/news/blog/understanding-garbage-collection-and-hunting-memory-leaks-in-node-js/)

## Additional Resources 📘

1. [Video: JavaScript Memory Management Explained](https://www.youtube.com/watch?v=LaxbdIyBkL0)
2. [Article: Advanced Memory Management](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management)

By the end of this module, students should be able to understand the importance of garbage collection in JavaScript and implement best practices in their coding to optimize application performance.

0 comments on commit 4b5c545

Please sign in to comment.