Double check code when assisting teammates

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the collaboration category.

Last Updated: 2024-04-19

When helping someone on your team or asking them to do something (e.g. running a piece of code), double check it's correct rather than winging it.

Case in point, I offered these instructinos on getting an env setup:

I think running `cp env.local.js env.js` and running `npm install` is enough for you to get up and running.

In fact, the file was .env.sample.js and this confused my colleague, wasting both our times, and reducinng their trust in me some.

In general, be extra careful when dealing with other people's time. Double check if someone else is involved.