PeetRonics' blog

All can be true!

Fri 15 November 2019 - read time: 1 min.

What I Have Learned Today - #011


A quick one today
I did a code refactor 3 days ago. Today I learnt the importance of testing before pushing your code changes.

Because of the refactoring, a portion of the nightly regression tests misbehaved. And I only realised today 😦. Of course I did test the few scenarios before committing the changes; yet… I didn’t cater for all possible paths. Luckily a fix was readily available.

So next time I do a refactor, I need to remember to test, test, and… TEST!

This post is part of a series of articles about “What I Have Learned Today”; acknowledging every day the thing I have learned. Feel free to read the other posts. all opinions in this article are my own and not necessarily represent the views of my employer.