Hacker News new | ask | show | jobs
by josiahpeters 1378 days ago
This is the advice I give to junior developers:

1. Feel free to write tests that help you develop your thought or solution. Not all of those should be checked in

2. Ask yourself: “What test do you need to write in order to protect this code from your future self next year when you have forgotten everything about this?”