Hacker News new | ask | show | jobs
by throwaway2037 916 days ago
3) Preventing reintroducing known bugs

When I was learning unit testing, my mentor taught me this strategy when fixing production bugs. First, write the unit test to demonstrate the bug. Second, fix the bug.