Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Rustbot Debug — student labs

Sixteen small, ordered, Rustlings-style debugging exercises in robot contexts. Each file has a TODO, a failure to investigate, tests, and a pointer into The Rust Programming Language. These labs accompany the Forge Rust Programming module (Robotics track) — one or two labs per week.

Work on one file at a time:

cargo check --bin ex01_mutability
cargo test  --bin ex01_mutability

Do not run an unqualified cargo test until every exercise is fixed — Cargo will try to compile all unfinished binaries.

The investigation protocol

For every lab, record in your lesson journal:

  1. Predict — before compiling, underline the suspect line and predict the outcome.
  2. Observe — save the smallest relevant diagnostic or failing assertion.
  3. Translate — state what Rust or the test is claiming, in your own words.
  4. Hypothesize — name one cause and one change that would distinguish it from an alternative.
  5. Change — make ONE conceptual change (formatting doesn't count).
  6. Verify — run the named test, then one additional case you chose.
  7. Explain — why does the repair work, and what tempting repair would only hide the issue?

After the causal fix: cargo fmt --check and cargo clippy --tests --bin NAME -- -D warnings.

Relationship to Rustlings

This is a course companion inspired by Rustlings, not a fork. The module also uses the upstream Rustlings runner (cargo install rustlings) for general practice sets — your weekly lesson tells you which Rustlings sections and which of these labs to do.

About

Rustlings-style Rust debugging labs for the Forge Robotics track (student copy)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages