Write tests before product code. After a while your conditioned mind will learn a new habit