feat(45-logic): перенос теории из Python + новый урок «Сравнение строк»#817
Merged
Conversation
- 10-bool-type: расширена теория (операции сравнения, ===/!==, предикаты isInfant/isNegative); - 28-logical-negation: добавлены комбинирование с &&/||, приоритет, скобки, пример canDrive, законы де Моргана (not→!, and→&&, or→||); - НОВЫЙ урок 17-bool-strings («Сравнение строк», из Python 45/15): лексикографическое сравнение, charCodeAt вместо ord, предикаты строк startsWith/endsWith/includes; JS-урок «Предикаты» (15) сохранён. Новый урок пока только в RU-локали (en/es — на этапе перевода, как и остальные уроки). 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.
Что сделано
Модуль 45-logic (Логика) — расширена теория двух уроков и добавлен новый урок по аналогии с Python.
Адаптация под JS
===/!==вместо питоновских==/!=), булев тип, предикатыisInfant/isNegative.not→!,and→&&,or→||; добавлены комбинирование с приоритетом, скобки, примерcanDrive, законы де Моргана.45/15-bool-strings): лексикографическое сравнение строк,charCodeAt()вместоord(), предикаты строкstartsWith/endsWith/includes(вместо питоновскихisdigit/isalpha, которых в JS нет). Задание — предикатisLongWord.Структура
15-predicates, перед20-combine), чтобы не сломать ссылку «из прошлого урока» в уроке про предикаты.15-predicatesсохранён (как договаривались: есть в Python — есть в JS, есть предикаты в JS — оставляем).Локали
Новый урок
17-bool-stringsпока только в RU (en/es — на этапе перевода, как и остальные уроки курса). Schema-validate проходит (exit 0).Проверки
vitest— 7/7 проходят (включая новый урок).biome check— exit 0.schema-validate— exit 0.🤖 Generated with Claude Code