A coding timer can help you notice when an investigation has stopped producing new information. It does not create a flow state, measure code quality or decide whether a change is ready to ship.
Define the result of the session before starting: reproduce one bug, understand a failing test, implement a small change or review a specific diff. “Code for 90 minutes” is a time allocation, not a definition of success.
Establish the problem before editing
Write the expected and actual behaviour, the environment and the smallest reproduction you can find. Check the repository's instructions and current changes so you do not overwrite someone else's work.
If the issue is a regression in a Git repository, the official git-bisect documentation explains a method for narrowing down the introducing change. It requires a reliable way to distinguish known working and failing revisions. It is not a substitute for a reproduction or a command to run blindly in a checkout containing valuable work.
A 50-minute debugging example
| Minutes | Activity | Evidence |
|---|---|---|
| 0–10 | Reproduce and reduce the problem | A repeatable failing case |
| 10–25 | Test one explanation | An observation supporting or rejecting it |
| 25–40 | Make a bounded change | A diff tied to the explanation |
| 40–50 | Check and leave a restart note | Results and the next action |
The total is 50 minutes. It is a sample investigation window, not a universal limit for programming. If the issue cannot be resolved in that time, a clear reproduction and rejected hypothesis can still be useful progress.
Change the hypothesis when evidence stalls
If repeated edits produce the same failure, stop and describe what you have learned. Check inputs, assumptions, recent changes and the boundary where behaviour diverges. Ask for a second view with a concise reproduction when appropriate.
A 25-minute focus block can bound one investigation step. At its end, decide deliberately whether to continue, take a break or change approach. Finishing the countdown is not a reason to keep pursuing an explanation that the evidence no longer supports.
Verify according to the change
A useful check demonstrates the behaviour that matters: the failing case now works, a relevant boundary is handled and nearby behaviour remains intact. Use the repository's required checks and review the diff for unrelated edits.
Do not measure verification time as a fixed percentage of coding time or use lines written as the quality metric. A small change to a critical calculation can need more scrutiny than a much larger wording change.
Use AI assistance with the same evidence standard
An assistant can suggest hypotheses, explain unfamiliar code or propose a patch. It can also invent an API, miss a constraint or confidently describe a test it has not run. Inspect the actual change and record real check results.
Keep credentials and private data out of prompts or logs unless the approved tool and policy permit them. Generated code still needs the same review, licensing and release process as other code in the project.
Leave a useful handover
Record the problem, reproduction, current hypothesis, relevant files, changes made, checks run and remaining uncertainty. Include the next command or observation when that is safe and helpful. Keep secrets out of the note.
If a check failed, say so. If you have not verified production, distinguish that from local success. A session ending cleanly means the next person can understand the state—not that the code must be published before the timer expires.
For planning several dependent changes, use the project-planning worksheet. Keep the timer as a boundary around work, not an authority over release decisions.
Put what you've learned into practice with our free tool
Open Coding Focus Timer →