arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.19194cs.SE
收藏

高期望:一项关于编程与大麻 intoxication 的观察性研究

High Expectations: An Observational Study of Programming and Cannabis Intoxication

Wenxin He, Manasvi Parikh, Westley Weimer, Madeline Endres

AI总结:

本文通过70余人的受试者内受控观察研究发现,在生态有效剂量下,大麻会显著降低编程表现、增加错误并延长时间,且不会提升方案发散性,但程序员仍能准确自评表现。

摘要:

专业程序员使用大麻的轶事证据比比皆是。近期研究发现,一些专业人士在编程时甚至在处理与工作相关的任务时也经常使用大麻。然而,关于大麻对编程影响的说法差异很大,且往往相互矛盾。例如,一些程序员声称它会损害自己生成正确解决方案的能力,而另一些人则声称它能增强创造力和专注力。人们仍需从经验上理解大麻对编程的真实影响。本文提出了首个关于大麻对编程能力影响的受控观察性研究。基于一项有70多名参与者参与的受试者内设计,我们发现在生态有效剂量下,大麻会显著损害编程表现。在亢奋状态下实现的程序包含更多错误,且编写时间更长(p < 0.05),呈现小到中等程度的效应(0.22 <= d <= 0.44)。我们也没有发现任何证据表明亢奋的程序员会生成更多发散性解决方案。然而,即使在大麻影响下,程序员也能准确评估自身编程表现的差异(r = 0.59)。我们希望本研究能促进循证政策,并帮助开发者就是否在编程时使用大麻作出知情决定。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑