arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.10037cs.SE
收藏

探索科学编程中的代码理解:来自科研人员的初步见解

Exploring Code Comprehension in Scientific Programming: Preliminary Insights from Research Scientists

Alyssia Chen, Carol Wong, Bonita Sharif, Anthony Peruma

AI总结:

本研究通过调查57名不同学科的科研人员,探究科学编程中的代码理解现状,揭示了科研人员编程背景、代码可读性实践与挑战及工具使用趋势,为改进科学编程实践提供参考。

摘要:

科学软件——即用于科学研究、数据分析、建模或仿真的计算机程序、脚本或代码——已成为现代研究的核心。然而,目前针对科学代码可读性与可理解性的研究十分有限,而这两者对科学研究中的高效协作与可复现性至关重要。本研究调查了来自不同学科的57名科研人员,以探究他们的编程背景、实践习惯以及在代码可读性方面面临的挑战。研究结果显示,大多数参与者通过自学或在职培训学习编程,其中57.9%的人未接受过编写可读代码的正式指导。科研人员主要使用Python和R,依赖注释和文档来保证可读性。尽管多数人认为代码可读性对科学可复现性至关重要,但他们常面临文档不足和命名规范不佳的问题,挑战包括含义晦涩的名称与不一致的规范。研究结果还显示代码质量工具的采用率较低,且存在利用大语言模型提升代码质量的趋势。这些发现为改进编程实践、支持科学软件的可持续发展提供了实用见解。

英文摘要:

Scientific software-defined as computer programs, scripts, or code used in scientific research, data analysis, modeling, or simulation-has become central to modern research. However, there is limited research on the readability and understandability of scientific code, both of which are vital for effective collaboration and reproducibility in scientific research. This study surveys 57 research scientists from various disciplines to explore their programming backgrounds, practices, and the challenges they face regarding code readability. Our findings reveal that most participants learn programming through self-study or on the-job training, with 57.9% lacking formal instruction in writing readable code. Scientists mainly use Python and R, relying on comments and documentation for readability. While most consider code readability essential for scientific reproducibility, they often face issues with inadequate documentation and poor naming conventions, with challenges including cryptic names and inconsistent conventions. Our findings also show low adoption of code quality tools and a trend towards utilizing large language models to improve code quality. These findings offer practical insights into enhancing coding practices and supporting sustainable development in scientific software.

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

↑