High Expectations: An Observational Study of Programming and Cannabis Intoxication (2402.19194v1)
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 the effects of cannabis 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.
- The impact of personality traits and knowledge collection behavior on programmer creativity. Information and Software Technology 128 (2020), 106405.
- 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. https://doi.org/10.1109/VLHCC.2019.8818836
- Computing Creativity: Divergence in Computational Thinking. In Proceeding of the 44th ACM Technical Symposium on Computer Science Education. 359–364. https://doi.org/10.1145/2445196.2445302
- Marc Berman. 2020. How CBD Oil Can Help Programmers Focus. https://programminginsider.com/how-cbd-oil-can-help-programmers-focus/. Accessed: 2021-03-07.
- Pills to Pot: Observational Analyses of Cannabis Substitution Among Medical Cannabis Users With Chronic Pain. The Journal of Pain 20, 7 (2019), 830–841. https://doi.org/10.1016/j.jpain.2019.01.010
- Acute and Chronic Effects of Cannabinoids on Human Cognition—A Systematic Review. Biological Psychiatry 79, 7 (2016), 557–567. https://doi.org/10.1016/j.biopsych.2015.12.002 Cannabinoids and Psychotic Disorders.
- Mechanisms of cannabis impairment: Implications for modeling driving performance. Forensic Science International 328 (2021), 110902. https://doi.org/10.1016/j.forsciint.2021.110902
- 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. https://doi.org/10.1002/sim.2832
- 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.
- 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.
- 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. https://doi.org/10.1145/3411764.3445257
- Acute effects of high-potency cannabis flower and cannabis concentrates on everyday life memory and decision making. Sci. Rep. 11, 13784 (2021).
- Carrie Cuttler and Alexander Spradlin. 2017a. 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.
- Carrie Cuttler and Alexander Spradlin. 2017b. 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.
- Hashing It out: A Survey of Programmers’ Cannabis Usage, Perception, and Motivation. In International Conference on Software Engineering. 1107–1119.
- 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.
- Relating Reading, Visualization, and Coding for New Programmers: A Neuroimaging Study. In International Conference on Software Engineering. 600–612.
- The Effect of Poor Source Code Lexicon and Readability on Developers’ Cognitive Load. In International Conference on Program Comprehension.
- 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. https://doi.org/10.1145/3487567
- Cognitive mechanisms underlying risky decision-making in chronic cannabis users. Journal of Mathematical Psychology 54, 1 (2010), 28–38. https://doi.org/10.1016/j.jmp.2009.10.002 Contributions of Mathematical Psychology to Clinical Science and Assessment.
- A human study of patch maintainability. In ISSTA. ACM, 177–187.
- Joseph E. Gonzales and Corbin A. Cunninghham. 2015. The promise of pre registration in psychological research. American Psychological Association (2015).
- Happy software developers solve problems better: psychological measurements in empirical software engineering. PeerJ 2 (March 2014), e289.
- 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. https://doi.org/10.1109/ICSE-SEIS52602.2021.00009
- 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.
- IBM. 2018. Business Conduct Guidelines. https://www.ibm.com/investor/att/pdf/BCG_accessible_2019.pdf. Accessed: 2021-08-09.
- Leo Kelion. 2014. FBI ’could hire hackers on cannabis’ to fight cybercrime. https://www.bbc.com/news/technology-27499595. Accessed: 2021-03-07.
- Cannabis and creativity: highly potent cannabis impairs divergent thinking in regular cannabis users. Psychopharmacology 232, 6 (2015), 1123–1134.
- The short-term and long-term effects of cannabis on cognition: recent advances in the field. Current Opinion in Psychology 38 (2021), 49–55. https://doi.org/10.1016/j.copsyc.2020.07.005 Cannabis.
- Neurological Divide: An fMRI Study of Prose and Code Writing. In International Conference on Software Engineering.
- 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. https://doi.org/10.1016/j.concog.2017.10.009
- John Markoff. 2005. What the dormouse said: How the sixties counterculture shaped the personal computer industry. Penguin Group, New York, NY, USA.
- Gayle Laakmann McDowell. 2015. Cracking the coding interview—189 programming questions and solutions. CareerCup.
- Perceptions of Creativity in Software Engineering Research and Practice. In 2017 43rd Euromicro Conference on Software Engineering and Advanced Applications (SEAA). 210–217. https://doi.org/10.1109/SEAA.2017.21
- From Organizations to Individuals: Psychoactive Substance Use By Professional Programmers. In International Conference on Software Engineering. 665–677.
- Lemai Nguyen and Graeme Shanks. 2009. A framework for understanding creativity in requirements engineering. Information and Software Technology 51, 3 (2009), 655–662.
- 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. https://doi.org/10.1007/s10459-010-9222-y
- Program Comprehension and Code Complexity Metrics: An fMRI Study. In 2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE). 524–536. https://doi.org/10.1109/ICSE43902.2021.00056
- 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.
- Colin Robson and Kieran McCartan. 2016. Real world research: a resource for users of social research methods in applied settings. Wiley.
- Ole Rogeberg and Rune Elvik. 2016. The effects of cannabis intoxication on motor vehicle collision revisited and revised. Addiction 111, 8 (2016), 1348–1359. https://doi.org/10.1111/add.13347 arXiv:https://onlinelibrary.wiley.com/doi/pdf/10.1111/add.13347
- 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. https://doi.org/10.1007/BF01538162
- Exploratory Experimental Studies Comparing Online and Offline Programming Performance. Commun. ACM 11, 1 (jan 1968), 3–11.
- 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.
- Mining Software Repositories. IEEE (2023).
- Understanding understanding source code with functional magnetic resonance imaging. In Proceedings of the 36th International Conference on Software Engineering. 378–389.
- Pre-registration: Why and How. J. Society for Consumer Psychology (Dec. 2020). https://doi.org/10.1002/jcpy.1208
- 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
- SciPy 1.0: Fundamental Algorithms for Scientific Computing in Python. Nature Methods 17 (2020), 261–272. https://doi.org/10.1038/s41592-019-0686-2
- Charlotte Walsh. 2011. Drugs, the Internet and change. Journal of psychoactive drugs 43, 1 (2011), 55–63.
- Mary Walton. 2019. Programming and Cannabis — 5 Things to Know. https://simpleprogrammer.com/programming-and-cannabis/. Accessed: 2021-03-07.
- 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. https://doi.org/10.25080/Majora-92bf1922-00a
- 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/
- Yuki Yamada. 2018. How to Crack Pre-registration: Toward Transparent and Open Science. Frontiers in Psychology 9, 1831 (2018). https://doi.org/10.3389/fpsyg.2018.01831