Lune

ICSE2024Top-tier venue

High Expectations: An Observational Study of Programming and Cannabis Intoxication

Wenxin He, Manasvi Parikh, Westley Weimer, Madeline Endres

2024Year
2Citations

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.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext abcf26ce-2688-473a-8a1c-ea0e01444200

Builds on7

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines