Dear new developer,
“To err is human”. We all make mistakes.
A few years ago I was working on a contracting project with a new version control system. I didn’t take the time to understand all of the commands, but just dove in and started writing code. A few days in, my branch was weird and was missing some code present in a co-worker’s branch.
Turns out I’d been pulling down remote branches incorrectly and creating new branches instead. Whoops!
I made that mistake once, and never again. I corrected that mistake at two levels. First I learned the correct command. Second I learned that a version control system is worth spending some time getting to know. I invested some time learning about this system and how to perform common operations.
Ways you can avoid repeat mistakes:
- when you make a mistake, make sure you understand what the mistake was
- find out if there was a second or third level of the mistake, as I did above
- write down your mistake, either publicly or privately, so that you and others can avoid it in the future
Mistakes happen, no one is perfect. But the goal is to always make new mistakes, not the same mistake again and again.