feat(50-loops): добавить урок «Отладка» по образцу Python#823
Merged
Conversation
New 90-debug lesson covering debugging: stack traces, error types (syntax/programming/logic), and print debugging via console.log. Exercise: compress() RLE string compression. Includes ru/en/es localizations. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что сделано
Перенёс из
exercises-pythonурок50-loops/90-debug(«Отладка»), которого не было в JS-курсе.Теория (ru/en/es)
Адаптирована под JavaScript:
NameError→ReferenceErrorprint→console.log.py→.js,def→ стрелочные функцииСтруктура повторяет оригинал: как найти ошибку (стек вызовов + сообщение об ошибке) → типы ошибок (синтаксические / программирования / логические) → отладочная печать → заключение.
Упражнение
compress(str)— RLE-сжатие строки ('aaabcccc'→'a3bc4').Файлы
Полный набор как в остальных уроках:
Makefile,index.js,test.js,description.es.yml+ директорииru/en/es(README, EXERCISE, data.yml). Урок встаёт последним в модуле (после70-for).Проверки
make compose-test— тест90-debugзелёный, остальные не затронутыmake compose-schema-validate— всеdata.ymlвалидныmake compose-description-lint(yamllint) — без ошибокcode-lint(biome) — без замечаний по90-debug🤖 Generated with Claude Code