An Empirical Study of Bitwise Operators Intuitiveness through Performance Metrics
Shubham Joshi
TL;DR
The paper investigates the readability and intuitiveness of bitwise operators by measuring task completion time and accuracy in a within-subjects experiment with participants spanning no-programming to advanced levels. Using a JavaScript-based task suite (27 questions across six operators), the study finds a small but significant association between operator type and response time (R^2=0.032, F(1,494)=16.5, p<.001), with notable effects for NOT, OR, and Left Shift. Most operator comparisons are not statistically different, suggesting limited differences in intuitiveness due to operator complexity, though certain operators show discernible performance differences. The results imply partial support for the idea that some bitwise operators are less intuitive and may benefit from redesign or targeted education, while overall performance is not strongly driven by operator complexity; however, the small sample size limits generalizability and calls for replication with larger, more diverse cohorts.
Abstract
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.
