Articles
Practical guides to AI coding, debugging, and interviews, with worked examples and sources.
Latest articles
Recent worked examples and practical lessons.
Explain the Missing Row in Timestamp Pagination
Practice explaining cursor pagination when timestamps tie. Build a deterministic boundary, catch a skipped row, and state what concurrent inserts change.
Read articleThe Average Was NaN. The API Response Said null.
Trace a JavaScript average from empty input to JSON null. Separate missing data from invalid numbers and test the calculation and serialized response.
Read articleWhy a Set Won't Remove Duplicate API Records
Review JavaScript record deduplication by ID. Catch object-identity mistakes, choose which duplicate survives, and test order and reference preservation.
Read article
AI-assisted interviews
How to work with an assistant, check its output, and explain the decisions behind your code.
Explain the Missing Row in Timestamp Pagination
Practice explaining cursor pagination when timestamps tie. Build a deterministic boundary, catch a skipped row, and state what concurrent inserts change.
AI-Assisted Interviews: Reject Dependency Cycles Before Work
Explain dependency direction, reject cycles before starting jobs, and test valid execution orders with a runnable Python AI-assisted interview exercise.
AI-Assisted Interviews: Explain a Safe Concurrent Edit
Practice explaining how ETags and If-Match prevent stale profile edits from silently overwriting a newer change in an AI-assisted coding interview.
Explain Stream Backpressure in an AI-Assisted Interview
Practice a clear AI-assisted interview answer about backpressure with a runnable Node.js pipeline, bounded buffering, failure cases, and verification.
When Coding Interview Requirements Change Mid-Solution
Handle a changed interview requirement with a clear contract, a counterexample, and a tested algorithm update from any route to the fewest edges.
AI interview practice: check that generated tests can fail
Audit AI-generated JavaScript tests for empty-result blind spots, shared assumptions, and missing guarantees using literal examples and deliberate mutations.
AI-assisted interviews: review a stock reservation patch
Apply five review checks to an AI-generated Python stock reservation: input types, unchanged state, error behavior, independent tests, and explanation.
AI-assisted interviews: choose tests that change decisions
Choose high-value tests for an AI-assisted interview using a job scheduler: due-time boundaries, job states, explicit results, and targeted mutations.
AI-assisted interviews: budget a 45-minute practice
Plan a 45-minute AI-assisted interview rehearsal around a stock reservation bug, runnable evidence, a narrow repair, and a clear final explanation.
AI-assisted interviews: explain a repair as you work
Practice explaining an AI-assisted repair with a booking example: clarify boundaries, reject a flawed suggestion, and support your decision with tests.
How to explain your AI-assisted work in an interview
Prepare a credible interview story about AI-assisted engineering: show your decisions, verify results, and explain what you actually owned.
AI-assisted interviews: trace a Python service call
Practice an AI-assisted interview by tracing a Python request, finding a missing ownership check, and verifying a focused repair with tests.
How to approach an AI-assisted coding interview
A practical walkthrough of an AI-assisted coding interview: understand the repository, direct the assistant, verify a change, and explain your decisions.
How to review AI-generated code in an interview
Work through a flawed AI patch, design a regression that exposes it, and explain a repair with evidence. A practical code-review exercise for AI-assisted interviews.
AI coding interview examples: published tasks and what to practice
Explore published AI coding interview examples from Canva, DoorDash and CoderPad, a released Anthropic take-home, and related nrml practice questions.
Company interviews
What companies publish about AI-assisted interviews, what to confirm with your recruiter, and how to prepare.
Anthropic Performance Take-Home: How to Prepare
Prepare for performance interview work with Anthropic’s public challenge, a runnable correctness exercise, and a clear boundary around AI permissions.
Amazon SDE II interviews: prepare for coding and design
Plan Amazon SDE II preparation around official assessment guidance, an original coding rehearsal, system-design follow-ups, and evidence from your own work.
Coinbase AI coding interviews: what changed in 2026
A sourced guide to Coinbase’s 2026 engineering interview changes, repository exercises, AI expectations, and practical preparation.
Which companies allow AI in coding interviews? A 2026 guide
Compare AI interview rules at Meta, Canva, DoorDash, Coinbase, Shopify and more, with separate guidance for live coding and take-home projects.
Meta AI coding interviews: format, examples, and practice
Understand Meta’s AI coding interview, learn from a reported maze exercise, and practice reading, debugging, and extending code with an assistant.
Canva AI coding interviews: format, examples, and practice
Explore Canva’s published airport example, understand its AI interview expectations, and practice turning a broad product request into working, tested code.
DoorDash AI coding interviews: format and preparation
DoorDash describes a 60-minute AI-assisted engineering session. Understand the published scope, set up your tools, and practice a small change with clear invariants and verification.
Shopify AI coding interviews: formats and preparation
Prepare for Shopify’s AI-assisted pair programming with its published hiring guidance, clearly labeled candidate examples, and practical commerce coding exercises.
CoderPad engineering interviews: AI rules and preparation
Learn how CoderPad hires its own engineers, including its AI policy, published project examples, live follow-ups, and exercises that prepare you to explain your work.
PostHog engineering interviews: SuperDay and AI rules
PostHog allows AI in its engineering SuperDay project but not its debugging session. Prepare for both with an original data-product exercise and a practical debugging routine.
Omnea AI coding interviews: pair programming preparation
Understand Omnea’s approach to optional AI in pair programming, then practice an approval workflow with concrete requirements, tests, and related nrml problems.
AI coding
Concrete workflows for directing a coding assistant, reviewing changes, and verifying behavior.
Why a Set Won't Remove Duplicate API Records
Review JavaScript record deduplication by ID. Catch object-identity mistakes, choose which duplicate survives, and test order and reference preservation.
AI Coding: Make a Fetch Timeout Cancel the Request
Review AI-generated fetch timeouts with AbortController, keep cancellation active through body parsing, and verify cleanup with deterministic JavaScript checks.
AI Coding: Bind SQL Values Instead of Building Queries
Review AI-generated SQLite code by separating SQL structure from user values, then test the parameterized query with ordinary and hostile-looking input.
Review AI-Generated Authorization with a Permission Matrix
Turn authorization requirements into explicit allow and deny tests that catch broad AI-generated role checks, unknown actions, and missing resource rules.
Atomic Batch Imports: Review the Transaction Boundary
Catch partial database writes in AI-generated Python. Use a runnable SQLite import to test rollback, constraint errors, and transaction ownership.
AI coding: keep repository text from changing the task
Work through an injected repository instruction, constrain a proposed patch to approved files, and verify behavior without treating source text as authority.
AI coding: preserve an API’s error contract
Review an AI-generated label service against explicit 400, 409, and 500 responses, with validation before writes and tests for safe error mapping.
AI coding: give a byte-limit fix the right context
Build a focused AI coding prompt around a UTF-8 byte-limit bug, with the caller contract, failing input, explicit exclusions, and runnable checks.
AI coding: stop retries from creating duplicate tasks
Review an AI-generated retry loop with a lost-response reproduction, a stable operation key, and JavaScript tests that count actual writes.
AI coding: keep a sorting change small and reviewable
Review an AI-generated sorting feature without rewriting its callers. Preserve filtering, record identity, and stable ordering with executable Python checks.
AI coding: regression tests for an off-by-one patch
Review AI-generated Python pagination code with a written contract, literal expected results, boundary tests, and a deliberately reintroduced bug.
AI debugging
Reproduce failures, test hypotheses, and evaluate AI-proposed repairs with evidence.
The Average Was NaN. The API Response Said null.
Trace a JavaScript average from empty input to JSON null. Separate missing data from invalid numbers and test the calculation and serialized response.
AI Debugging: Find Missing Records in Python groupby
Debug Python groupby data loss with interleaved keys and exhausted iterators, then verify an AI-proposed repair using exact records and one-shot input.
AI Debugging: Trace a Decimal Reconciliation Failure
Debug a failing Python total by tracing binary floating-point behavior, then use Decimal strings and an explicit rounding rule for reconciliation.
Debug a Debounce Patch with Deterministic Fake Timers
Replace real sleeps with a deterministic Vitest reproduction that checks a debounce quiet period, latest arguments, and timer cleanup after an AI patch.
Debug Python Mutable Defaults Across Repeated Calls
Find why one request changes another request’s labels. Reproduce Python’s mutable-default bug, repair list ownership, and test repeated calls.
AI debugging: test a local day across daylight saving
Fix a Python report that treats every local day as 24 hours. Verify UTC boundaries, repeated hours, exclusive endpoints, and rejected naive timestamps.
AI debugging: measure a performance fix without guessing
Test an AI-proposed Set optimization for correctness, then benchmark warmup, construction cost, hits, misses, and input sizes without invented speedups.
AI debugging: invalidate the cache after a profile rename
Reproduce a stale profile after a successful rename, repair invalidation at the write boundary, and test fresh reads, unaffected entries, and failures.
AI debugging: distinguish null from an omitted setting
Debug a Python settings update that drops false, zero, and null. Define field presence, test clearing behavior, and reject invalid patches safely.
AI debugging: trace a CSV error to the input boundary
Use a Python traceback to investigate a CSV type error, reject a misleading AI fix, and verify parsing and error behavior with runnable examples.
AI debugging: reproduce a TypeScript async race
Reproduce stale search results with controlled promises, test an AI-proposed TypeScript repair, and verify completion order without arbitrary sleeps.
AI debugging: build a minimal Python reproduction
Debug an AI-proposed Python fix with a minimal reproduction, an explicit pagination contract, and regression tests for zero, missing, and invalid values.
Articles from nrml, with sources and worked examples. AI-generated posts disclose their authorship on the article page.