Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/3597503.3639145acmconferencesArticle/Chapter ViewAbstractPublication PagesicseConference Proceedingsconference-collections
research-article

High Expectations: An Observational Study of Programming and Cannabis Intoxication

Published: 12 April 2024 Publication History

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 ≤ d ≤ 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.

References

[1]
Aamir Amin, Shuib Basri, Mobashar Rehman, Luiz Fernando Capretz, Rehan Akbar, Abdul Rehman Gilal, and Muhammad Farooq Shabbir. 2020. The impact of personality traits and knowledge collection behavior on programmer creativity. Information and Software Technology 128 (2020), 106405.
[2]
Mahnaz Behroozi, Chris Parnin, and Titus Barik. 2019. Hiring is Broken: What Do Developers Say About Technical Interviews?. In 2019 IEEE Symposium on Visual Languages and Human-Centric Computing, VL/HCC 2019, Memphis, Tennessee, USA, October 14--18, 2019, Justin Smith, Christopher Bogart, Judith Good, and Scott D. Fleming (Eds.). IEEE Computer Society, 1--9.
[3]
Vicki E. Bennett, KyuHan Koh, and Alexander Repenning. 2013. Computing Creativity: Divergence in Computational Thinking. In Proceeding of the 44th ACM Technical Symposium on Computer Science Education. 359--364.
[4]
Marc Berman. 2020. How CBD Oil Can Help Programmers Focus. https://programminginsider.com/how-cbd-oil-can-help-programmers-focus/. Accessed: 2021-03-07.
[5]
Kevin F. Boehnke, J. Ryan Scott, Evangelos Litinas, Suzanne Sisley, David A. Williams, and Daniel J. Clauw. 2019. Pills to Pot: Observational Analyses of Cannabis Substitution Among Medical Cannabis Users With Chronic Pain. The Journal of Pain 20, 7 (2019), 830--841.
[6]
Samantha J. Broyd, Hendrika H. van Hell, Camilla Beale, Murat Yücel, and Nadia Solowij. 2016. Acute and Chronic Effects of Cannabinoids on Human Cognition---A Systematic Review. Biological Psychiatry 79, 7 (2016), 557--567. Cannabinoids and Psychotic Disorders.
[7]
Thomas S. Burt, Timothy L. Brown, Gary Milavetz, and Daniel V. McGehee. 2021. Mechanisms of cannabis impairment: Implications for modeling driving performance. Forensic Science International 328 (2021), 110902.
[8]
Ian Campbell. 2007. Chi-squared and Fisher-Irwin tests of two-by-two tables with small sample recommendations. Statistics in medicine 26, 19 (2007), 3661--3675.
[9]
Cisco. 2019. 2019 Code of Business Conduct. https://www.cisco.com/c/dam/en_us/about/cobc/2019/english-2019.pdf. Accessed: 2021-08-09.
[10]
Broderick Crawford and Claudio León de la Barra. 2007. Enhancing Creativity in Agile Software Teams. In Agile Processes in Software Engineering and Extreme Programming, Giulio Concas, Ernesto Damiani, Marco Scotto, and Giancarlo Succi (Eds.). 161--162.
[11]
Will Crichton, Maneesh Agrawala, and Pat Hanrahan. 2021. The Role of Working Memory in Program Tracing. In Proceedings of the 2021 CHI Conference on Human Factors in Computing Systems (Yokohama, Japan) (CHI '21). Association for Computing Machinery, New York, NY, USA, Article 56, 13 pages.
[12]
C. Cuttler, E.M. LaFrance, and A. Stueber. 2021. Acute effects of high-potency cannabis flower and cannabis concentrates on everyday life memory and decision making. Sci. Rep. 11, 13784 (2021).
[13]
Carrie Cuttler and Alexander Spradlin. 2017. Measuring cannabis consumption: psychometric properties of the daily sessions, frequency, age of onset, and quantity of cannabis use inventory (DFAQ-CU). PLoS One 12, 5 (2017), e0178194.
[14]
Carrie Cuttler and Alexander Spradlin. 2017. Measuring cannabis consumption: psychometric properties of the daily sessions, frequency, age of onset, and quantity of cannabis use inventory (DFAQ-CU). PLoS One 12, 5 (2017), e0178194.
[15]
Madeline Endres, Kevin Boehnke, and Westley Weimer. 2022. Hashing It out: A Survey of Programmers' Cannabis Usage, Perception, and Motivation. In International Conference on Software Engineering. 1107--1119.
[16]
Madeline Endres, Madison Fansher, Priti Shah, and Westley Weimer. 2021. To read or to rotate? comparing the effects of technical reading training and spatial skills training on novice programming ability. In Foundations of Software Engineering. 754--766.
[17]
Madeline Endres, Zachary Karas, Xiaosu Hu, Ioulia Kovelman, and Westley Weimer. 2021. Relating Reading, Visualization, and Coding for New Programmers: A Neuroimaging Study. In International Conference on Software Engineering. 600--612.
[18]
Sarah Fakhoury, Yuzhan Ma, Venera Arnaoudova, and Olusola Adesope. 2018. The Effect of Poor Source Code Lexicon and Readability on Developers' Cognitive Load. In International Conference on Program Comprehension.
[19]
Denae Ford, Margaret-Anne D. Storey, Thomas Zimmermann, Christian Bird, Sonia Jaffe, Chandra Shekhar Maddila, Jenna L. Butler, Brian Houck, and Nachiappan Nagappan. 2022. A Tale of Two Cities: Software Developers Working from Home during the COVID-19 Pandemic. ACM Trans. Softw. Eng. Methodol. 31, 2 (2022), 27:1--27:37.
[20]
Daniel J. Fridberg, Sarah Queller, Woo-Young Ahn, Woojae Kim, Anthony J. Bishara, Jerome R. Busemeyer, Linda Porrino, and Julie C. Stout. 2010. Cognitive mechanisms underlying risky decision-making in chronic cannabis users. Journal of Mathematical Psychology 54, 1 (2010), 28--38. Contributions of Mathematical Psychology to Clinical Science and Assessment.
[21]
Zachary P. Fry, Bryan Landau, and Westley Weimer. 2012. A human study of patch maintainability. In ISSTA. ACM, 177--187.
[22]
Joseph E. Gonzales and Corbin A. Cunninghham. 2015. The promise of pre registration in psychological research. American Psychological Association (2015).
[23]
Daniel Graziotin, Xiaofeng Wang, and Pekka Abrahamsson. 2014. Happy software developers solve problems better: psychological measurements in empirical software engineering. PeerJ 2 (March 2014), e289.
[24]
Wouter Groeneveld, Laurens Luyten, Joost Vennekens, and Kris Aerts. 2021. Exploring the Role of Creativity in Software Engineering. In 43rd IEEE/ACM International Conference on Software Engineering: Software Engineering in Society, ICSE (SEIS) 2021, May 25--28, 2021. IEEE, Madrid, Spain, 1--9.
[25]
Reshma Hegde and Gursimran Walia. 2014. How to enhance the creativity of software developers: A systematic literature review. International Conference on Software Engineering and Knowledge Engineering (2014), 229--234.
[26]
IBM. 2018. Business Conduct Guidelines. https://www.ibm.com/investor/att/pdf/BCG_accessible_2019.pdf. Accessed: 2021-08-09.
[27]
Leo Kelion. 2014. FBI 'could hire hackers on cannabis' to fight cybercrime. https://www.bbc.com/news/technology-27499595. Accessed: 2021-03-07.
[28]
Mikael A Kowal, Arno Hazekamp, Lorenza S Colzato, Henk van Steenbergen, Nic JA van der Wee, Jeffrey Durieux, Meriem Manai, and Bernhard Hommel. 2015. Cannabis and creativity: highly potent cannabis impairs divergent thinking in regular cannabis users. Psychopharmacology 232, 6 (2015), 1123--1134.
[29]
Emese Kroon, Lauren Kuhns, and Janna Cousijn. 2021. The short-term and long-term effects of cannabis on cognition: recent advances in the field. Current Opinion in Psychology 38 (2021), 49--55. Cannabis.
[30]
Ryan Krueger, Yu Huang, Xinyu Liu, Tyler Santander, Westley Weimer, and Kevin Leach. 2020. Neurological Divide: An fMRI Study of Prose and Code Writing. In International Conference on Software Engineering.
[31]
Emily M. LaFrance and Carrie Cuttler. 2017. Inspired by Mary Jane? Mechanisms underlying enhanced creativity in cannabis users. Consciousness and Cognition 56 (2017), 68--76.
[32]
John Markoff. 2005. What the dormouse said: How the sixties counterculture shaped the personal computer industry. Penguin Group, New York, NY, USA.
[33]
Gayle Laakmann McDowell. 2015. Cracking the coding interview---189 programming questions and solutions. CareerCup.
[34]
Rahul Mohanani, Prabhat Ram, Ahmed Lasisi, Paul Ralph, and Burak Turhan. 2017. Perceptions of Creativity in Software Engineering Research and Practice. In 2017 43rd Euromicro Conference on Software Engineering and Advanced Applications (SEAA). 210--217.
[35]
Kaia Newman, Madeline Endres, Westley Weimer, and Brittany Johnson. 2023. From Organizations to Individuals: Psychoactive Substance Use By Professional Programmers. In International Conference on Software Engineering. 665--677.
[36]
Lemai Nguyen and Graeme Shanks. 2009. A framework for understanding creativity in requirements engineering. Information and Software Technology 51, 3 (2009), 655--662.
[37]
Geoffrey Norman. 2010. Likert scales, levels of measurement and the "laws" of statistics. Advances in health sciences education : theory and practice 15, 5 (02 2010), 625--32.
[38]
Norman Peitek, Sven Apel, Chris Parnin, André Brechmann, and Janet Siegmund. 2021. Program Comprehension and Code Complexity Metrics: An fMRI Study. In 2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE). 524--536.
[39]
Ayushi Rastogi, Suresh Thummalapenta, Thomas Zimmermann, Nachiappan Nagappan, and Jacek Czerwonka. 2017. Ramp-up Journey of New Hires: Do Strategic Practices of Software Companies Influence Productivity?. In Proceedings of the 10th Innovations in Software Engineering Conference. 107--111.
[40]
Colin Robson and Kieran McCartan. 2016. Real world research: a resource for users of social research methods in applied settings. Wiley.
[41]
Ole Rogeberg and Rune Elvik. 2016. The effects of cannabis intoxication on motor vehicle collision revisited and revised. Addiction 111, 8 (2016), 1348--1359. arXiv:https://onlinelibrary.wiley.com/doi/pdf/10.1111/add.13347
[42]
M. A. Runco and S.M. Okuda. 1988. Problem discovery, divergent thinking, and the creative process. Journal of Youth and Adolescence 17, 3 (06 1988), 211--220.
[43]
H. Sackman, W. J. Erikson, and E. E. Grant. 1968. Exploratory Experimental Studies Comparing Online and Offline Programming Performance. Commun. ACM 11, 1 (jan 1968), 3--11.
[44]
Skipper Seabold and Josef Perktold. 2010. statsmodels: Econometric and statistical modeling with python. In 9th Python in Science Conference. SciPy, Austin, TX, US, 92--96.
[45]
Emad Shihab, Patanamon Thongtanunam, and Bogdan Vasilescu. 2023. Mining Software Repositories. IEEE (2023).
[46]
Janet Siegmund, Christian Kästner, Sven Apel, Chris Parnin, Anja Bethmann, Thomas Leich, Gunter Saake, and André Brechmann. 2014. Understanding understanding source code with functional magnetic resonance imaging. In Proceedings of the 36th International Conference on Software Engineering. 378--389.
[47]
Joseph P. Simmons, Leif D. Nelson, and Uri Simonsohn. 2020. Pre-registration: Why and How. J. Society for Consumer Psychology (Dec. 2020).
[48]
United Nations Press Team. 2020. UNODC World Drug Report 2020: Global drug use rising; while COVID-19 has far reaching impact on global drug markets. United Nations. https://www.unodc.org/unodc/press/releases/2020/June/media-advisory---global-launch-of-the-2020-world-drug-report.html
[49]
Pauli Virtanen, Ralf Gommers, Travis E. Oliphant, Matt Haberland, Tyler Reddy, David Cournapeau, Evgeni Burovski, Pearu Peterson, Warren Weckesser, Jonathan Bright, Stéfan J. van der Walt, Matthew Brett, Joshua Wilson, K. Jarrod Millman, Nikolay Mayorov, Andrew R. J. Nelson, Eric Jones, Robert Kern, Eric Larson, C J Carey, İlhan Polat, Yu Feng, Eric W. Moore, Jake VanderPlas, Denis Laxalde, Josef Perktold, Robert Cimrman, Ian Henriksen, E. A. Quintero, Charles R. Harris, Anne M. Archibald, Antônio H. Ribeiro, Fabian Pedregosa, Paul van Mulbregt, and SciPy 1.0 Contributors. 2020. SciPy 1.0: Fundamental Algorithms for Scientific Computing in Python. Nature Methods 17 (2020), 261--272.
[50]
Charlotte Walsh. 2011. Drugs, the Internet and change. Journal of psychoactive drugs 43, 1 (2011), 55--63.
[51]
Mary Walton. 2019. Programming and Cannabis --- 5 Things to Know. https://simpleprogrammer.com/programming-and-cannabis/. Accessed: 2021-03-07.
[52]
Wes McKinney. 2010. Data Structures for Statistical Computing in Python. In Proceedings of the 9th Python in Science Conference, Stéfan van der Walt and Jarrod Millman (Eds.). SciPy, Austin, TX, US, 56--61.
[53]
Laura Wood. 2021. Global Cannabis Market (2020 to 2026) - Emergence of Cannabis Legalization in Asia-Pacific Presents Opportunities - ResearchAndMarkets.com. Business Wire. https://www.businesswire.com/news/home/20210216005966/en/Global-Cannabis-Market-2020-to-2026---Emergence-of-Cannabis-Legalization-in-Asia-Pacific-Presents-Opportunities---ResearchAndMarkets.com/
[54]
Yuki Yamada. 2018. How to Crack Pre-registration: Toward Transparent and Open Science. Frontiers in Psychology 9, 1831 (2018).

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
ICSE '24: Proceedings of the IEEE/ACM 46th International Conference on Software Engineering
May 2024
2942 pages
ISBN:9798400702174
DOI:10.1145/3597503
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

Sponsors

In-Cooperation

  • Faculty of Engineering of University of Porto

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 12 April 2024

Check for updates

Author Tags

  1. programming preferences
  2. cannabis
  3. controlled user study
  4. drug policy
  5. preregistered hypotheses

Qualifiers

  • Research-article

Funding Sources

Conference

ICSE '24
Sponsor:

Acceptance Rates

Overall Acceptance Rate 276 of 1,856 submissions, 15%

Upcoming Conference

ICSE 2025

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • 0
    Total Citations
  • 107
    Total Downloads
  • Downloads (Last 12 months)107
  • Downloads (Last 6 weeks)14
Reflects downloads up to 04 Feb 2025

Other Metrics

Citations

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media