While working on a certain task, a programmer often discovers some quality issue in preexisting code. 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.