6

Programmer lesson #3
Always focus on a single task while coding...
If you encounter any non blocking bug or additional task add it in `Do-it-later` list...
If you don't...the bug or task might take majority of crucial time which you should actually utilise for the main task at hand...

Comments
  • 0
    Yeah that's true
  • 1
    I personally approach the "focus on one thing" relying on notes, so that when I am inevitably pulled away (my role calls for it), I never forget where I was.

    I have DNote open in Vim, and every (most times) 2-6 minutes I write what I am doing in a single sentence that takes less than 5 seconds to write, with the timestamp. When I discover something that needs to be done, I use Taskwarrior to write it down without leaving vim/the terminal.

    So it'll be like:

    20:52:02 - Writing test for feature edge-case
    21:02:32 - Discovered other edge case, wrote todo test, continuing with edge-case

    $ t add Resolve test case project:CurrentProject

    21:12:40 - Writing test for discovered edge case
    21:23:10 - Test complete, running
    --- interruption
    22:03 - Returning from interruption. Tests all pass.
  • 1
    @jschmold That's a nice way to stay focused👍🏽
Add Comment