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

通过性能指标对位运算符直观性的实证研究

An Empirical Study of Bitwise Operators Intuitiveness through Performance Metrics

University of Nevada Las Vegas(内华达大学拉斯维加斯分校)

Shubham Joshi

AI总结:

本研究通过受试者内实验设计,调查不同编程背景参与者对位运算符的理解,发现运算符可显著预测响应时间,且OR、NOT和左移等运算符不够直观,需进一步研究改进。

摘要:

目标:本研究旨在调查编程中位运算符的可读性和可理解性,主要假设是,接触各种位运算符相关问题的参与者与未接触这些问题的参与者之间,在性能指标(响应时间和错误率)上会存在差异。参与者:这项人类研究中的参与者包括没有编程背景的人、新手程序员以及具有不同编程经验(从大一新生到博士水平)的大学生。本研究共有23名参与者。研究方法:本研究采用受试者内实验设计,以评估具有不同编程背景的人如何理解和使用位运算符。参与者在JavaScript程序中完成任务,并记录他们的任务完成时间和任务准确率以供分析。发现:结果表明,运算符可能是预测响应时间的因素之一,显示出较小但显著的影响(R平方=0.032,F(1,494)=16.5,p<.001)。此外,与其它运算符相比,OR、NOT和左移等运算符在任务完成时间上显示出统计显著性。结论:虽然位运算符的复杂性通常不会导致更长的任务完成时间,但某些运算符被发现不太直观,这表明需要进一步调查和可能的重新设计以提高可理解性。

英文摘要:

Objectives: This study aims to investigate the readability and understandability of bitwise operators in programming, with the main hypothesis that there will be a difference in the performance metrics (response time and error rate) between participants exposed to various bitwise operators related questions and those who are not. Participants: Participants in this human research study include people without programming background, novice programmers, and university students with varying programming experience (from freshmen to PhD level). There were 23 participants in this study. Study Methods: This study uses a within-subjects experimental design to assess how people with diverse programming backgrounds understand and use bitwise operators. Participants complete tasks in a JavaScript program, and their task completion times and task accuracy are recorded for analysis. Findings: The results indicate that operators can be one of the factors predicting response time, showing a small but significant effect (R-squared = 0.032, F(1, 494) = 16.5, p < .001). Additionally, operators such as OR, NOT, and Left Shift showed statistical significance in task completion times compared to other operators. Conclusions: While the complexity of bitwise operators did not generally result in longer task completion times, certain operators were found to be less intuitive, suggesting the need for further investigation and potential redesign for improved understandability.

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

↑