From 4b5c54512ac8ddb49998c00017935f881b2d48f5 Mon Sep 17 00:00:00 2001 From: Valery <57412523+valerydluski@users.noreply.github.com> Date: Tue, 30 Apr 2024 10:41:18 +0200 Subject: [PATCH] feat: update week 14 (#1626) * feat: update week 14 * refactor: format --- stage2/README.md | 16 +++++--- stage2/modules/garbage-collection/README.md | 42 +++++++++++++++++++++ 2 files changed, 53 insertions(+), 5 deletions(-) create mode 100644 stage2/modules/garbage-collection/README.md diff --git a/stage2/README.md b/stage2/README.md index 4b0c19875..c67fc5859 100644 --- a/stage2/README.md +++ b/stage2/README.md @@ -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)
- Активности менторов + Mentor Activities -- [Собеседуем студентов по 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)
## Week #15. diff --git a/stage2/modules/garbage-collection/README.md b/stage2/modules/garbage-collection/README.md new file mode 100644 index 000000000..401a96617 --- /dev/null +++ b/stage2/modules/garbage-collection/README.md @@ -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.