High Expectations: An Observational Study of Programming and Cannabis Intoxication
Wenxin He, Manasvi Parikh, Westley Weimer, Madeline Endres
Abstract
Anecdotal evidence of cannabis use by professional programmers abounds. Recent studies have found that some professionals regularly use cannabis while programming, even for work-related tasks. However, accounts of the impacts of cannabis on programming vary widely and are often contradictory. For example, some programmers claim that it impairs their ability to generate correct solutions, while others claim it enhances creativity and focus. There remains a need for an empirical understanding of the true impacts of cannabis on programming. This paper presents the first controlled observational study of cannabis's effects on programming ability. Based on a within-subjects design with over 70 participants, we find that, at ecologically valid dosages, cannabis significantly impairs programming performance. Programs implemented while high contain more bugs and take longer to write (𝑝 < 0.05) -a small to medium effect (0.22 ≤ 𝑑 ≤ 0.44). We also did not find any evidence that high programmers generate more divergent solutions. However, programmers can accurately assess differences in their programming performance (𝑟 = 0.59), even when under the influence of cannabis. We hope that this research will facilitate evidence-based policies and help developers make informed decisions regarding cannabis use while programming. CCS CONCEPTS • Social and professional topics → User characteristics; Governmental regulations; Testing, certification and licensing; Employment issues; • Human-centered computing → User studies; • Software and its engineering → Software development techniques.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext abcf26ce-2688-473a-8a1c-ea0e01444200Builds on7
- Program Comprehension and Code Complexity Metrics: An fMRI StudyNorman Peitek, Sven Apel, Chris Parnin, André Brechmann et al.ICSE 2021 · 59 citations
- Neurological divide: an fMRI study of prose and code writingRyan Krueger, Yu Huang, Xinyu Liu, Tyler Santander et al.ICSE 2020 · 38 citations
- To read or to rotate? comparing the effects of technical reading training and spatial skills training on novice programming abilityMadeline Endres, Madison Fansher, Priti Shah, Westley WeimerFSE 2021 · 18 citations
- The Role of Working Memory in Program TracingWill Crichton, Maneesh Agrawala, Pat HanrahanCHI 2021 · 13 citations
- Hashing It Out: A Survey of Programmers' Cannabis Usage, Perception, and MotivationMadeline Endres, Kevin Boehnke, Westley WeimerICSE 2022 · 11 citations
Related papers
- From Organizations to Individuals: Psychoactive Substance Use By Professional ProgrammersKaia Newman, Madeline Endres, Westley Weimer, Brittany JohnsonICSE 2023 · 5 citations
- "Get Me in the Groove": a Mixed Methods Study on Supporting Adhd Professional ProgrammersKaia Newman, Sarah Snay, Madeline Endres, Manasvi Parikh et al.ICSE 2025 · 3 citations
- Correlates of programmer efficacy and their link to experience: a combined EEG and eye-tracking studyNorman Peitek, Annabelle Bergum, Maurice Rekrut, Jonas Mucke et al.FSE 2022 · 28 citations
- An Eye for AI: Eye-Tracking the Micro-Interruptions of GenAI Code SuggestionsTarek Alakmeh, Sarah D’Angelo, Thomas FritzICSE 2026 · 1 citation
- Do you really code? Designing and Evaluating Screening Questions for Online Surveys with ProgrammersAnastasia Danilova, Alena Naiakshina, Stefan Horstmann, Matthew SmithICSE 2021 · 5 citations
