Affiliation:
1. University of British Columbia, Canada
2. Virginia Commonwealth University, USA
Abstract
Block-based programming environments, already popular in computer science education, have been successfully used to make programming accessible to end-users in domains like robotics, mobile apps, and even DevOps. Most studies of these applications have examined small programs that fit within a single screen, yet real-world programs often grow large, and editing these large block-based programs quickly becomes unwieldy. Traditional programming language features, like functions, allow programmers to decompose their programs. Unfortunately, both previous work, and our own findings, suggest that end-users rarely use these features, resulting in large monolithic code blocks that are hard to understand. In this work, we introduce a block-based system that provides users with a hierarchical, domain-specific program structure and requires them to decompose their programs accordingly. Through a user study with 92 users, we compared this approach, which we call guided program decomposition, to a traditional system that supports functions, but does not require decomposition. We found that while almost all users could successfully complete smaller tasks, those who decomposed their programs were significantly more successful as the tasks grew larger. As expected, most users without guided decomposition did not decompose their programs, resulting in poor performance on larger problems. In comparison, users of guided decomposition performed significantly better on the same tasks. Though this study investigated only a limited selection of tasks in one specific domain, it suggests that guided decomposition can benefit end-user programmers. While no single decomposition strategy fits all domains, we believe that similar domain-specific sub-hierarchies could be found for other application areas, increasing the scale of code end-users can create and understand.
Publisher
Association for Computing Machinery (ACM)
Subject
Safety, Risk, Reliability and Quality,Software
Reference50 articles.
1. ABB Group. 2021. Wizard easy programming. https://new.abb.com/ products/robotics/application-software/wizard. ABB Group. 2021. Wizard easy programming. https://new.abb.com/ products/robotics/application-software/wizard.
2. An Empirical Study of the Impact of Two Antipatterns, Blob and Spaghetti Code, on Program Comprehension
3. Evaluating the Use of Remixing in Scratch Projects Based on Repertoire, Lines of Code (LOC), and Elementary Patterns
4. Brenna D Argall , Sonia Chernova , Manuela Veloso , and Brett Browning . 2009. A survey of robot learning from demonstration. Robotics and autonomous systems, 57, 5 ( 2009 ), 469–483. Brenna D Argall, Sonia Chernova, Manuela Veloso, and Brett Browning. 2009. A survey of robot learning from demonstration. Robotics and autonomous systems, 57, 5 (2009), 469–483.
5. End-user development, end-user programming and end-user software engineering: A systematic mapping study
Cited by
3 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. CoPrompt: Supporting Prompt Sharing and Referring in Collaborative Natural Language Programming;Proceedings of the CHI Conference on Human Factors in Computing Systems;2024-05-11
2. Blocks? Graphs? Why Not Both? Designing and Evaluating a Hybrid Programming Environment for End-users;Proceedings of the 2024 IEEE/ACM 46th International Conference on Software Engineering: Companion Proceedings;2024-04-14
3. Alchemist: LLM-Aided End-User Development of Robot Applications;Proceedings of the 2024 ACM/IEEE International Conference on Human-Robot Interaction;2024-03-11