.. This file is part of the OpenDSA eTextbook project. See
.. http://opendsa.org for more details.
.. Copyright (c) 2012-2020 by the OpenDSA Project Contributors, and
.. distributed under an MIT open source license.

.. avmetadata::
   :author: Cliff Shaffer

.. slideconf::
   :autoslides: False

=====================================
Memory Cues and Resumption Strategies
=====================================

.. slide:: Effects of Interruptions

   Both in industry and for college class programmers, the typical
   interruption costs you about 15 minutes.

   Types of interruptions:

   * Phone
   * Visitor
   * Breaks

   Some of these you can control (more or less). Some not so easy.

.. slide:: Recovering from Interruptions

   #. Control (defer) the interruption

      * Don't answer the text message right now
      * Ask the person to give you a minute or two
      * Break at the right times

   #. Brain Dump

      * The goal is to minimize time to get back on track
      * Give yourself notes and clues

.. slide:: Brain Dump

   Think of it like a computer switching process:

   * It stores enough information to restart the process where it left
     off
   * In a similar way, you want to generate a "brain dump" before
     stopping

   Some of this is an ongoing process:

   * Comments, TODO notes that you record out of habit

   Some of this is tactical response to interruptions

   * Quick notes to help recover at time of interruption (This is why
     you might tell the visitor to wait a minute, while you make notes)
   * Appropriate arrangement of windows on screen

.. slide:: Comments and Notes in code

   Comments in code about what needs doing. Shows context better than TODO list.

   Can even leave a deliberate syntax error in code to force notice at
   compile time.

.. slide:: Selective Suspension

   Maybe quitting for the day when you finish a function is not best.

   * This means you have to remember what you finished, and figure out
     what needs to be done next

   An alternative is to continue on to the next task, and at least
   sketch it out

   * When you come back, if you set it up right you get taken right to
     the point where you left, with notes to get you on track again.

.. slide:: Personalize

   Successful people have coping strategies for interruptions.

   * But everyone is different, and so different people use different
     mixes of strategies.


