Series · 3 posts
Taking over a legacy project: from bug report to pull request
Your first two weeks on a buggy order system: reading stack traces, debugging, writing tests, Git, code review, refactoring and handover. Each episode fixes a real problem, with code that runs.
How to read a stack trace: a crashing orders page on day one
Learn to read a stack trace through a real bug: read the error message, find your own line of code, trace the bad data back and fix it where it starts.
Debug in VS Code with breakpoints instead of console.log
How to debug in VS Code with breakpoints, conditional breakpoints, Watch, the Debug Console and logpoints, through a bug that turned 70,000 đồng into 70.
What is Vitest? Write your first test to lock in a bug fix
What is Vitest and how do you write a first test? Lock in a café's "35.000" price fix, use test.each for many cases, and avoid tests that always pass.