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.
Text, time and money: classic data traps card 2 of 6

Typical code is right for typical data

builds on: Why agents fill gaps with plausible guesses
Public code, tutorials and fixtures are full of ASCII names, round prices and dates far from a clock change. So the most typical continuation is `len(name)`, `float(price)` or `datetime.now()`, which is correct for that data. Your tests often use the same data, so they go green. That green is only a proxy signal: a visible stand-in for 'works for real users' that can pass while the real goal fails. The agent cannot see your users' names, locales or time zones. Later cost: mangled names, totals that are a cent off and won't reconcile, and reminders an hour off twice a year. All of it fails silently.
Terms on this card
ASCII
The basic 128-character set: English letters, digits and punctuation. Each takes one byte in UTF-8.
fixtures
Fixed sample data that tests run against.
green
A test or check that passes. Red means it fails.
proxy signal
A visible stand-in for the real goal, such as tests green or the error gone, that can be satisfied without reaching the goal.
later cost
The concrete damage a shortcut does after merge: a hidden bug, silent data corruption or a maintenance burden.
Learn this step by step on Bytewise
Lesson goal: Spot agent code that is wrong for real-world data: string length, slicing or case-folding that breaks on non-ASCII text, naive datetimes and DST or time-zone shifts, and floating-point arithmetic for money. Name the safe type or library in each language (for example Decimal or BigDecimal, integer cents, zone-aware datetimes). · the whole lesson