News for hackers. Stuff that matters.
Re:How I Became a Better Programmer by dplgk on Tuesday March 21, 2017 @10:44AM (#13922579)
> The time to clean up the code is when it already does what it should.

1. That's a good way to break it.

2. Typically there is not extra time given to cleanup code, write docs and unit tests.

Re:How I Became a Better Programmer by wedesoft on Thursday March 23, 2017 @05:11AM (#13938280)
In TDD you do small cycles: 1. write failing test, 2. write code to pass test, 3. refactor I.e. refactoring is part of the workflow