Fix bugs before writing any new code
Most of the developers like to develop new features rather than fixing bugs. We tend to postpone bug fixing and eager to start developing new features. In general, it’s easy to fix a bug right away than fixing it later. The reasons are -- code is fresh in our minds than to fix it later, we might have forgotten the code if we keep it for later. Hence going through the code again is time consuming. Moreover, having lots of bugs is definitely not a healthier approach. Another reason is, it’s hard to predict the time to fix a bug, but easy for a new feature. To keep your project schedule always inline and accurate fix bugs right away before start developing another new feature.