Skip to content

Correct errors from a full course review#107

Merged
henryiii merged 2 commits into
mainfrom
review/course-fixes
Jun 8, 2026
Merged

Correct errors from a full course review#107
henryiii merged 2 commits into
mainfrom
review/course-fixes

Conversation

@henryiii

@henryiii henryiii commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

🤖 AI text below 🤖

Summary

A multi-agent review of all course material (one reviewer per chapter, 45 chapters) across four dimensions — technical accuracy/currency, pedagogy, prose, and code correctness — with adversarial verification of every accuracy/code finding. Of 189 findings, 171 were confirmed (18 rejected by verification, e.g. a bogus CSS mixed-content complaint). All 171 are applied here.

46 files changed. Verified: all notebooks remain valid JSON (re-normalized via nbstripout), prek formatting applied, touched Python compiles, and the geom_example test suite passes 4/4.

Notable fixes

Code bugs that broke examples

  • @pytest.fixture("platform", [...])@pytest.fixture(params=[...]); monkepatchmonkeypatch
  • MyList.append called itself (infinite recursion) → delegates to self.items.append
  • Missing @dataclasses.dataclass decorators (Incr, others) and a missing slots: list annotation
  • Undefined variables in the Matlab/JS exists() examples; missing imports (InterpreterPoolExecutor, Generic/TypeVar)

Conceptual / correctness

  • asyncio.to_thread was described as running async code — it runs sync/blocking code
  • C++ move-assignment rewritten to steal the pointer instead of recursing via *this = HeapHolder(other)
  • __neq____ne__; parameter()perimeter() (including the mermaid class diagram)

Currency

  • Recommend Python 3.12+ (3.9 is EOL since Oct 2025)
  • git example output mastermain
  • pipx links: github.com/pypy/pipx (typo) → pypa; pypa.github.io/pipxpipx.pypa.io

Content

  • Filled the empty week13_misc/shell.md stub with a full practical chapter: pipes/redirection, grep/ripgrep, find/fd, xargs, sed/awk, history & shortcuts, ssh/scp/rsync, jobs/nohup/tmux, explainshell/tldr

Prose: ~95 typo/grammar fixes (e.g. "contagious"→"contiguous", "snipits"→"snippets", numerous its/it's).

Notes for the reviewer

  • These are mechanical/high-confidence edits, but the pedagogy rewrites and the new shell.md are worth a human read.
  • A full myst build --execute was not run here (it executes every notebook and fetches Minuit2/ROOT). Recommend running it in CI / before merge as the gold-standard check.

Multi-agent review of all course material (accuracy, pedagogy, prose, code)
with adversarial verification of every technical/code finding. Applies 171
confirmed fixes across 46 files.

Highlights:
- Code bugs that broke examples: pytest fixture syntax
  (@pytest.fixture("platform", ...) -> params=...), MyList.append infinite
  recursion, missing @dataclasses.dataclass decorators, missing type
  annotations/imports, undefined vars in Matlab/JS exists() examples.
- Conceptual fixes: asyncio.to_thread runs sync (not async) code; corrected
  C++ move-assignment to steal the pointer instead of recursing; __neq__ ->
  __ne__; parameter() -> perimeter() (incl. mermaid diagram).
- Currency: recommend Python 3.12+ (3.9 is EOL); git output master -> main;
  pipx links (pypy -> pypa typo, pypa.github.io/pipx -> pipx.pypa.io).
- Filled the empty week13 shell.md stub with a full practical chapter.
- ~95 prose/typo fixes.

Assisted-by: ClaudeCode:claude-opus-4.8
@henryiii henryiii force-pushed the review/course-fixes branch from d525239 to 3b48fd5 Compare June 8, 2026 21:15
Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
@henryiii henryiii mentioned this pull request Jun 8, 2026
@henryiii henryiii linked an issue Jun 8, 2026 that may be closed by this pull request
@henryiii

henryiii commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator Author

I've removed shell.md and adjusted one or two things.

@henryiii henryiii merged commit d0d4d3c into main Jun 8, 2026
4 checks passed
@henryiii henryiii deleted the review/course-fixes branch June 8, 2026 22:30
@henryiii henryiii changed the title Correct errors and add shell chapter from a full course review Correct errors from a full course review Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comprensive AI review

1 participant