High Expectations: An Observational Study of Programming and Cannabis Intoxication

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 ex...

Full description

Saved in:
Bibliographic Details
Published in:Proceedings / International Conference on Software Engineering pp. 2381 - 2392
Main Authors: He, Wenxin, Parikh, Manasvi, Weimer, Westley, Endres, Madeline
Format: Conference Proceeding
Language:English
Published: ACM 14.04.2024
Subjects:
ISSN:1558-1225
Online Access:Get full text
Tags: Add Tag
No Tags, Be the first to tag this record!
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 (p < 0.05) -a small to medium effect (0.22\ \leq d \leq 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 (r=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.
AbstractList 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 (p < 0.05) -a small to medium effect (0.22\ \leq d \leq 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 (r=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.
Author Parikh, Manasvi
Weimer, Westley
Endres, Madeline
He, Wenxin
Author_xml – sequence: 1
  givenname: Wenxin
  surname: He
  fullname: He, Wenxin
  email: wenxinhe@umich.edu
  organization: University of Michigan,Ann Arbor,Michigan,USA
– sequence: 2
  givenname: Manasvi
  surname: Parikh
  fullname: Parikh, Manasvi
  email: manasvi@umich.edu
  organization: University of Michigan,Ann Arbor,Michigan,USA
– sequence: 3
  givenname: Westley
  surname: Weimer
  fullname: Weimer, Westley
  email: weimerw@umich.edu
  organization: University of Michigan,Ann Arbor,Michigan,USA
– sequence: 4
  givenname: Madeline
  surname: Endres
  fullname: Endres, Madeline
  email: endremad@umich.edu
  organization: University of Michigan,Ann Arbor,Michigan,USA
BookMark eNotj11LwzAYhaMoOGevvfEif6Az6Zs0iXejTDcYTPy4Hm_TpAbWdDRVtn_vmF4dzgPngXNLrmIfHSH3nM04F_IRpFGSwQxKMKd-QTKjjBaMKVZwJS7JhEupc14U8oZkKYWaSQFSlQIm5G0Z2i-6OOydHXEMfUxPdB7ppk5u-DkD3NH38bs50t7T16FvB-y6EFuKsaEVxoh1SHQVx_4Q7HlwR6497pLL_nNKPp8XH9UyX29eVtV8nSM3fMwLzdFYrzRD3aAGD0aKBpTwFphhyvCCNciclLZE9Najs8pqK0F7aEoPU_Lw5w3Oue1-CB0Oxy0_nTOiNPALkBZSvQ
CODEN IEEPAD
ContentType Conference Proceeding
DBID 6IE
6IH
CBEJK
RIE
RIO
DOI 10.1145/3597503.3639145
DatabaseName IEEE Electronic Library (IEL) Conference Proceedings
IEEE Proceedings Order Plan (POP) 1998-present by volume
IEEE Xplore All Conference Proceedings
IEEE/IET Electronic Library
IEEE Proceedings Order Plans (POP) 1998-present
DatabaseTitleList
Database_xml – sequence: 1
  dbid: RIE
  name: IEEE Electronic Library (IEL)
  url: https://ieeexplore.ieee.org/
  sourceTypes: Publisher
DeliveryMethod fulltext_linktorsrc
Discipline Computer Science
EISBN 9798400702174
EISSN 1558-1225
EndPage 2392
ExternalDocumentID 10549469
Genre orig-research
GroupedDBID -~X
.4S
.DC
29O
5VS
6IE
6IF
6IH
6IK
6IL
6IM
6IN
8US
AAJGR
AAWTH
ABLEC
ADZIZ
ALMA_UNASSIGNED_HOLDINGS
ARCSS
AVWKF
BEFXN
BFFAM
BGNUA
BKEBE
BPEOZ
CBEJK
CHZPO
EDO
FEDTE
I-F
IEGSK
IJVOP
IPLJI
M43
OCL
RIE
RIL
RIO
ID FETCH-LOGICAL-a191t-281a9cf780a8da83f3954d374fc309079120da0e55c6aafcfaec7c8c538f3d6f3
IEDL.DBID RIE
IngestDate Wed Aug 27 01:52:52 EDT 2025
IsPeerReviewed false
IsScholarly true
Language English
LinkModel DirectLink
MergedId FETCHMERGED-LOGICAL-a191t-281a9cf780a8da83f3954d374fc309079120da0e55c6aafcfaec7c8c538f3d6f3
PageCount 12
ParticipantIDs ieee_primary_10549469
PublicationCentury 2000
PublicationDate 2024-April-14
PublicationDateYYYYMMDD 2024-04-14
PublicationDate_xml – month: 04
  year: 2024
  text: 2024-April-14
  day: 14
PublicationDecade 2020
PublicationTitle Proceedings / International Conference on Software Engineering
PublicationTitleAbbrev ICSE
PublicationYear 2024
Publisher ACM
Publisher_xml – name: ACM
SSID ssib054357643
ssib055306466
ssj0006499
Score 2.263773
Snippet Anecdotal evidence of cannabis use by professional programmers abounds. Recent studies have found that some professionals regularly use cannabis while...
SourceID ieee
SourceType Publisher
StartPage 2381
SubjectTerms cannabis
Computer bugs
controlled user study
Creativity
drug policy
History
preregistered hypotheses
programming preferences
Programming profession
Software
Software engineering
Task analysis
Title High Expectations: An Observational Study of Programming and Cannabis Intoxication
URI https://ieeexplore.ieee.org/document/10549469
hasFullText 1
inHoldings 1
isFullTextHit
isPrint
link http://cvtisr.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwlV1LS8NAEF5s8eCpPiq-2YPX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openUrl ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=proceeding&rft.title=Proceedings+%2F+International+Conference+on+Software+Engineering&rft.atitle=High+Expectations%3A+An+Observational+Study+of+Programming+and+Cannabis+Intoxication&rft.au=He%2C+Wenxin&rft.au=Parikh%2C+Manasvi&rft.au=Weimer%2C+Westley&rft.au=Endres%2C+Madeline&rft.date=2024-04-14&rft.pub=ACM&rft.eissn=1558-1225&rft.spage=2381&rft.epage=2392&rft_id=info:doi/10.1145%2F3597503.3639145&rft.externalDocID=10549469