Work effectively with AI coding agents. Understand them as language models running in a tool loop with limited context, which is why they guess, game the visible signal and report confidently. Recognise the shortcut and correctness tells in their code across Python, TypeScript/JavaScript, Rust, Java and Go, and know the damage each one does later. Verify changes instead of trusting them, review diffs fast for quality and security, judge when work is truly finished, and choose, design and steer tasks so agents can finish them well.
Happy-path code: the edge cases it skipped card 3 of 6

Four probes for every input

builds on: Why agents fill gaps with plausible guesses
For each input, try: - **Empty**: `[]`, `""`, no rows. - **Absent**: None/null/nil, a missing key. - **Zero/negative**: sizes, counts, divisors. - **Boundaries** (off-by-one): first page, last partial page, exact multiple, one past the end. Find the line each probe hits (a division, an index, a lookup, a `start`/`end`). Then ask how the language reacts. Python and Java mostly throw. JS returns `NaN`/`undefined` and carries on. Go silently returns the zero value for a missing map key (even in a nil map) and panics on a bad index. Rust panics on a bad index.
Terms on this card
None/null/nil
The 'no value' marker in Python (None), Java/JS (null; JS also has undefined) and Go (nil).
off-by-one
An error where a range, index or count is one too high or too low, e.g. starting at the wrong page.
NaN
'Not a Number': a floating-point value from e.g. 0/0. In JS it spreads silently through later arithmetic instead of throwing.
panics
In Go and Rust, a panic is a runtime failure that stops the program (in Rust, the current thread) unless it is caught or recovered; out-of-range indexing causes one.
nil map
A Go map variable that was never created; reading any key from it returns the zero value instead of failing.
Learn this step by step on Bytewise
Lesson goal: Probe agent code for the structural inputs it typically ignores: empty collections, None/null/nil and missing keys, zero and negative values, and off-by-one boundaries on ranges, slices and pagination. Predict which of these a given function will mishandle, and write the one test that would show it. · the whole lesson