HackerPapers

arXiv:1805.02544cs.SE

Need for Sleep: the Impact of a Night of Sleep Deprivation on Novice Developers' Performance

Davide Fucci, Giuseppe Scanniello, Simone Romano, Natalia Juristo

Abstract

We present a quasi-experiment to investigate whether, and to what extent, sleep deprivation impacts the performance of novice software developers using the agile practice of test-first development (TFD). We recruited 45 undergraduates and asked them to tackle a programming task. Among the participants, 23 agreed to stay awake the night before carrying out the task, while 22 slept usually. We analyzed the quality (i.e., the functional correctness) of the implementations delivered by the participants in both groups, their engagement in writing source code (i.e., the amount of activities performed in the IDE while tackling the programming task) and ability to apply TFD (i.e., the extent to which a participant can use this practice). By comparing the two groups of participants, we found that a single night of sleep deprivation leads to a reduction of 50% in the quality of the implementations. There is important evidence that the developers' engagement and their prowess to apply TFD are negatively impacted. Our results also show that sleep-deprived developers make more fixes to syntactic mistakes in the source code. We conclude that sleep deprivation has possibly disruptive effects on software development activities. The results open opportunities for improving developers' performance by integrating the study of sleep with other psycho-physiological factors in which the software engineering research community has recently taken an interest in.

arXiv comments
Accepted to IEEE Transactions on Software Engineering
Journal reference
DOI
Subjects
cs.SESoftware Engineering

On Hacker News

Linked by 4 identifiable commenters in 4 comments across 4 threads, from Jul 2019 to Oct 2022. Found in 1 HN submission from Apr 2019 to Apr 2019. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments4 threads

    • It definitely does. In what few empirical studies on what makes programmers effective, sleep, is the primary contributing factor to low error rates [0][1]. Stress and overwork are probably close seconds. And some of these studies are cross-sectional across knowledge workers…

      agentultraView on HNParent context

    • Point taken - this is as valuable an opinion as any other. I'd love for an empoloyer to care about it enough to 'put their money where their mouth' is when it comes to making sure I'm looking out for myself sleep wise, but I wholeheartedly accept this stance. ref: [0] Sleep…

      jackcodesView on HNParent context

    • Sure, however nobody has been shown that one approach is more costly than the other in practice. The most recent research available is the replication of the large scale GitHub study [1]. The relative effects of language choice on code quality is less than 1%. The main finding…

      yogthosView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.