Struggling to stay in the zone? Meetings. Chat. Interruptions. Distractions. Open offices.
There has to be a better way. So we wrote a book focused on helping developers like you get into and stay in the zone so you can get more done with less time.
more vulnerable to interruptions compared to architecture and UI design tasks. 1 1 Abad, Z. S. H., Karras, O., Schneider, K., Barker, K., & Bauer, M. (2018). Task Interruption in Software Development Projects (pp. 122–132). Presented at the the 22nd International Conference, New York, New York, USA: ACM Press.
hour session in a day 3 3 Parnin, C. (2013). Programmer, interrupted (pp. 171–172). Presented at the 2013 IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC), IEEE.
intense concentration seems to be a limit, while for experts this number can expand to as many as four hours—but rarely more. 4 4 Newport, Cal. Deep Work: Rules for Focused Success in a Distracted World (p. 100). Grand Central Publishing. Kindle Edition.
of optimal mental health, resulting in an enhancement of brain function. 5 5 Altomare, R., Damiano, G., Palumbo, V. D., Buscemi, S., Spinelli, G., & Cacciabaudo, F. (2017). Feeding the brain: the importance of nutrients for brain functions and health. Progress in Nutrition, 19, 1–5.
but it is important that it is accompanied by constant exercise and regular sleep. Proper rest and the benefits of sport further strengthen the brain synapses, greatly improving the cognitive abilities of individuals.6 6 Altomare, R., Damiano, G., Palumbo, V. D., Buscemi, S., Spinelli, G., & Cacciabaudo, F. (2017). Feeding the brain: the importance of nutrients for brain functions and health. Progress in Nutrition, 19, 1–5.
with the task of developers who forewent one night of sleep and developers under normal sleep condition. Moreover, the results showed that sleep-deprived developers performed 54% more fixing addressing syntactic mistakes compared to developers who slept regularly. 7 7 Fucci, D., Scanniello, G., Romano, S., & Juristo, N. (2018). Need for Sleep: the Impact of a Night of Sleep Deprivation on Novice Developers’ Performance. IEEE Transactions on Software Engineering, 1–20.
and cognitive performance points to exercise as an effective, low-cost intervention for improving both affective and cognitive health. 8 8 Hogan, C. L., Mata, J., & Carstensen, L. L. (2013). Exercise holds immediate benefits for affect and cognition in younger and older adults. Psychology and Aging, 28(2), 587–594.
three alternate uses studies, 81%, 88%, and 100% of participants were more creative walking than sitting. For the BSE, 100% of those who walked outside generated at least one novel high- quality analogy compared with 50% of those seated inside. Walking worked indoors on a treadmill and outdoors at a bustling university. 9 9 Oppezzo, M., & Schwartz, D. L. (2014). Give your ideas some legs: The positive effect of walking on creative thinking. Journal of Experimental Psychology: Learning, Memory, and Cognition, 40(4), 1142–1152.
prolonged, monotonous drive, compared to that observed while performing the same task in a hydrated condition. The magnitude of decrement reported was similar to that observed following the ingestion of alcohol resulting in a blood alcohol content of approximately 0.08 % (the current UK legal driving limit), or while sleep deprived. 10 10 Watson, P., Whale, A., Mears, S. A., Reyner, L. A., & Maughan, R. J. (2015). Mild hypohydration increases the frequency of driver errors during a prolonged, monotonous driving task. Physiology & Behavior, 147, 313–318.
about 20% of the calories we eat each day. 11 11 Altomare, R., Damiano, G., Palumbo, V. D., Buscemi, S., Spinelli, G., & Cacciabaudo, F. (2017). Feeding the brain: the importance of nutrients for brain functions and health. Progress in Nutrition, 19(3), 1–5.
been conducted among children , but the same principles apply to all of us . Hunger at any time has been shown to reduce a child’s ability to pay attention , absorb information , and respond appropriately to the environment. 12 12 Schwartz, Tony. The Way We're Working Isn't Working: The Four Forgotten Needs That Energize Great Performance (p. 94). Free Press. Kindle Edition.
the consumption of junk food, high in saturated fats which are seriously detrimental to the welfare [of the] brain. 14 14 Altomare, R., Damiano, G., Palumbo, V. D., Buscemi, S., Spinelli, G., & Cacciabaudo, F. (2017). Feeding the brain: the importance of nutrients for brain functions and health. Progress in Nutrition, 19(3), 1–5.
show that both interrupt handling and recovery time exist. A typical task takes one third longer than undertaking a task with no e-mail interruptions. 15 15 Marulanda Carter, L., & Jackson, T. W. (2012). Effects of e-mail addiction and interruptions on employees. Journal of Systems and Information Technology, 14(1), 82–94.
people are constantly interrupted, they develop a mode of working faster (and writing less) to compensate for the time they know they will lose by being interrupted. Yet working faster with interruptions has its cost: people in the interrupted conditions experienced a higher workload, more stress, higher frustration, more time pressure, and effort. So interrupted work may be done faster, but at a price. 16 16 Mark, G., Gudith, D., & Klocke, U. (2008). The cost of interrupted work (pp. 107–110). Presented at the Proceeding of the twenty-sixth annual CHI conference, New York, New York, USA: ACM Press.
the process, often leading to low code quality. 17 17 Graziotin, D., Fagerholm, F., Wang, X., & Abrahamsson, P. (2017, January 11). Unhappy Developers: Bad for Themselves, Bad for Process, and Bad for Software Product. arXiv.org. IEEE.
after resuming work from an interruption. 18 18 Parnin, C. (2013). Programmer, interrupted (pp. 171–172). Presented at the 2013 IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC), IEEE.
resumption of interrupted tasks and negatively impacts task performance. A proposed solution is to relinquish notifications and allow users to seek for information at their own convenience. 19 19 Iqbal, S. T., & Horvitz, E. (2010). Notifications and awareness (pp. 27–30). Presented at the the 2010 ACM conference, New York, New York, USA: ACM Press.
self- interrupted at a substantially higher rate. 20 20 Dabbish, L., Mark, G., & Gonzalez, V. M. (2011). Why do i keep interrupting myself? (pp. 3127–3130). Presented at the the 2011 annual conference, New York, New York, USA: ACM Press.
task on a different project can work, but minimize switching frequently between significantly different projects by working on few projects at any given time.
coding in less than a minute. Developers consistently spend a significant portion of their time doing non-editing activities before making their first edit in a session. During this time period, developers are performing a variety of activities that relate to rebuilding their task context. 21 21 Parnin, C., & Rugaber, S. (2010). Resumption strategies for interrupted programming tasks. Software Quality Journal, 19(1), 5– 34.
different or related task can help you see things from a fresh perspective and find the solution to a problem. Your brain will still work on the problem in the background.
resumption, by allowing an opportunity to lay the cognitive groundwork for returning to the primary task later. 22 22 Trafton, J. G., Altmann, E. M., Brock, D. P., & Mintz, F. E. (2003). Preparing to resume an interrupted task: effects of prospective goal encoding and retrospective rehearsal. International Journal of Human-Computer Studies, 58(5), 583–603.
automatically checking for errors on your behalf is one of them. Writing tests also helps you analyze your code. Then the computer can do the tedious part.
the weekend, but this is also cutting into your rest that you need to be at your best. Take rest seriously and maximize your chances of getting enough by not deploying before time off.
you’re in the middle of work and notice a meaningful opportunity for refactoring, set aside some time after you complete your task to make improvements.
insufficient knowledge of development tools. Even though few such interrupts occurred, the developers spent much effort handling them. Therefore, they suggested focusing special attention on keeping the tool environment running and providing adequate tool training. 23 23 van Solingen, R., Berghout, E., & van Latum, F. (1998). Interrupts: just a minute never is. IEEE Software, 15(5), 97–103.
significantly increase the incidence of self interruption in the subsequent hour. 24 24 Dabbish, L., Mark, G., & Gonzalez, V. M. (2011). Why do i keep interrupting myself? (pp. 3127–3130). Presented at the the 2011 annual conference, New York, New York, USA: ACM Press.
related to knowledge or experience, such as discussing program structures or explaining technical details. Further, 20 percent were caused by documentation issues, such as documentation review and inadequate or nonexistent documentation. 25 25 van Solingen, R., Berghout, E., & van Latum, F. (1998). Interrupts: just a minute never is. IEEE Software, 15(5), 97–103.