Go from never having used a coding agent to working productively and safely with one. The learner should understand what an agent is and how it differs from a chat assistant. They should choose a tool, set up a protected first project, describe tasks the agent can do well, and follow and verify its work. They should recover from bad changes, manage context, and plan bigger changes. They should also use tests as the definition of done and run everyday workflows (bug fixes, features, writing tests, codebase exploration, scripts, small tools, refactors). Throughout, they should keep secrets and systems safe and keep their own understanding growing instead of outsourcing it.
Spotting bad shortcuts in a change card 3 of 6

Five shortcuts to hunt for in a diff

builds on: Reviewing the diff the agent made
Most shortcuts hide in `+` lines. A deleted check shows up as a `-` line. 1. **Hardcoded value**: a fixed number, date or name where the code should compute or look it up (`rate = 1.08`). 2. **Swallowed error**: `except: pass` or `catch (e) {}`. The failure vanishes silently. 3. **Disabled check**: a comment that tells a linter or type checker (tools that flag likely mistakes) to stay quiet, such as `# noqa`, `# type: ignore`, `@ts-ignore` or `eslint-disable`. It can also be a deleted line that checked the input. 4. **Special case**: `if path == "march.csv"`. 5. **Stub**: `TODO`, `pass` or `NotImplementedError` behind a 'done' summary.
Terms on this card
CSV
Comma-separated values: a plain text file holding a table, one row per line, with columns separated by commas.
diff
A line-by-line listing of changes between two versions of files. Lines starting with '-' were removed and lines starting with '+' were added.
Hardcoded value
A fixed number, text or date typed straight into the code where the program should calculate it or look it up.
Swallowed error
An error that the code catches and then ignores, so the program carries on silently as if nothing went wrong.
pass
A Python statement that does nothing. It fills a spot where code is required but no work is done.
Learn this step by step on Bytewise
Lesson goal: Recognise typical shortcuts: hardcoded values, swallowed errors (empty catch blocks), disabled checks or linters, special cases for one input, and 'TODO' stubs presented as finished work. · the whole lesson