
While working on code in the context of a certain task, a programmer often discovers some preexisting quality issue. When this happens, there is a choice to be made:
- Fix the quality issue on the spot, and commit the fix in the context of the task at hand; or:
- Only make changes that are strictly necessary for the task at hand, and introduce a separate task for fixing the quality issue.