A better way to read code
Prove you understand the code you ship
Practice understanding real functions, trace their behavior, and catch the kind of bugs that make it into production.
Private by default · Your code stays yours
src/cache.ts · Cache.get
18get(key: string) {
19 const entry = this.store.get(key);
20 if (!entry?.value) return undefined;
21 if (entry.expiresAt < Date.now()) {
22 this.store.delete(key);
23 return undefined;
24 }
25 return entry.value;
26}
Can you spot what breaks?1 of 3
A deliberate practice loop
Read. Reason. Review.
01
Import a repo
Start with real code from a repository you know.
02
Answer questions
Describe what it does before looking for what could go wrong.
03
Find the hidden bugs
Trace a planted bug, then compare your reasoning with the evidence.
Build confidence by reading code.
Your next useful debugging instinct starts with practice.