Tags

Debugging

Debugging

1 lesson
2 behavioral interviews
7 community items

debugging

Foundations

1 lesson

Debugging by Tracing

Free
Beginner

40 min

1 prereq

Most beginners debug by staring at their code and hoping the bug reveals itself. Engineers who ship working software do something different: they trace execution one line at a time, watch each variable, and pinpoint the exact moment the program's state stops matching their mental model. That motion is a learnable, repeatable skill. **Debugging by Tracing** turns that skill into a structured workflow. You will define what program state actually is (the values of every variable plus the current line of execution), practice walking through a function step by step recording each change, and learn to use loop invariants (conditions that must hold before and after every iteration) to verify correctness without running the code. You will work through a systematic process of reproduce, trace, locate, fix, and verify, and you will see the most common beginner pitfalls including off-by-one errors, uninitialized variables, and misordered swaps. In **How to Read Code (JS & Python)**, you practiced tracing variables through `for` and `while` loops and stepping through function calls on the call stack. This lesson takes that same tracing motion and aims it at a specific goal: finding the line where a bug first introduces wrong state, instead of just understanding what correct code is doing. With Tier 1 essentials behind you, you will be ready to dive into the data structures track starting with **Arrays & Strings**, where every algorithm you write will benefit from being traceable and provably correct.

Not Started

0%

Foundations
Beginner
Free
Debugging
Tracing / Dry Run
Invariants
Problem Solving
Fundamentals

Behavioral Interviews

2 articles
Behavioral Interview

Solving Complex Technical Problems

Complex-problem questions are the technical-depth probe at the heart of every senior engineering interview. They test whether you can decompose a hard, novel problem under uncertainty, validate hypotheses cheaply, and demonstrate technical depth without over-explaining. This lesson defines what actually counts as 'complex' (scale, novelty, blast radius, time-pressure, multi-component coupling), walks through the four-phase arc (decompose, hypothesise, validate, iterate) you can apply to any technical-depth answer, covers when to mention specific technologies (yes when relevant, no when flexing), and provides fully worked model STAR answers for the prompts you will hear most. After this lesson you will be able to take any genuinely hard problem from your career and tell the story so the rubric reads depth, structure, and judgement simultaneously.

behavioral
behavioral-interview
problem-solving
technical-depth
debugging
interview-prep
interview-strategy
story-banking
star-method

657

17

Medium
Behavioral Interview

Debugging & Production Incident Stories

Production-incident questions are the operational-judgement probe. They test whether you can act calmly under live pressure, separate mitigation from root-cause work, and tell a blameless story that distinguishes systems-level lessons from individual blame. This lesson defines incident-grade storytelling (timeline craft with explicit T+0 / T+5 / T+30 markers), draws the line between fix, remediation, and prevention, walks through blameless-postmortem language you can use in the room without sounding rehearsed, and provides fully worked model STAR answers for the prompts you will hear most. Every model answer in this lesson focuses blame on systems and processes, never on people or teams. After this lesson you will be able to take any real incident from your career and shape it into an answer that scores on calm, judgement, and operational maturity simultaneously.

behavioral
behavioral-interview
debugging
reliability
monitoring
problem-solving
interview-prep
interview-strategy
story-banking
star-method

1.1k

27

Medium

Community

7 items
Article

N+1 Queries: Detection and Prevention

What an N+1 query is, why ORMs hide them, the four ways to fix them, and the simple logging change that has caught every N+1 I have shipped since I added it.

database
performance
query-optimization
backend
debugging

806

11

4.5 (10)

Apr 23, 2026

by @adaezeaziz

Code Snippet

The tcpdump One-Liner I Actually Remember

A small Python wrapper around the only tcpdump invocation I can recall under pressure, plus a parser that turns its line-buffered output into JSON so I can pipe it to jq.

Python
debugging
networking
code-template
utility

382

3

4.4 (9)

Mar 17, 2026

by @elisehuang

Code Snippet

A Tracer Decorator With Arg Redaction (Python)

A `@trace()` decorator I bolt onto Python services when the production logs go quiet at the wrong layer. Logs entry, exit, duration, and exceptions, with secret-arg redaction baked in.

Python
py-decorators
debugging
logging
tracing

862

6

4.4 (12)

Mar 17, 2026

by @elisehuang

Article

React useEffect: The Five Mistakes I Stopped Making

useEffect is for synchronizing with external systems, not for sequencing state. Five concrete mistakes I keep finding in PRs, with the fixes that replaced them.

react
hooks
frontend
debugging

962

7

4.3 (11)

Mar 10, 2026

by @yunatorres

Code Snippet

The 30-Line Debug Print I Keep in My Dotfiles

A pretty-printer for Python objects that I paste into every new project. Shows types, depth, and truncates long containers, so I stop reaching for `pprint` mid-incident.

Python
debugging
py-decorators
utility
code-template

994

4

4.5 (13)

Feb 14, 2026

by @owentoure

Code Snippet

Resolving a Production Stack Trace Against a Source Map

When a minified Sentry stack only points at `bundle.js:1:140183`, this is the zero-dep VLQ decoder I drop in to map every frame back to a real source line.

JavaScript
debugging
error-handling
source-maps
utility

1.1k

17

4.3 (11)

Jan 20, 2026

by @kwamehenderson

Article

useState Batching and the Stale Closure Trap

React batches state updates, and that interacts badly with closures over old state. The functional updater form fixes most cases, but knowing why is what saves the rest.

react
hooks
frontend
debugging

633

20

4.2 (9)

Dec 27, 2025

by @rinahassan