拓宽实时程序员的视野:将运行时行为的横切视角集成到实时编程环境中
Broadening the View of Live Programmers: Integrating a Cross-Cutting Perspective on Run-Time Behavior into a Live Programming Environment
AI总结:
本文针对实时编程中局部运行时视角难以重构控制流的问题,将调用树浏览器这一横切视角集成进 Babylonian/S,并通过用户研究验证其在调试、理解和导航上的效用。
摘要:
实时编程通过在源代码附近可视化表达式的具体值,来提供关于运行时行为的反馈。当使用这种关于运行时行为的局部视角时,如果程序员想要理解所观察到的值之间的关系,就必须在脑海中重构控制流。由于这需要掌握所有相关代码的完整且正确的知识,因此对于较大的程序以及程序行为出乎意料的情况,这种重构是不切实际的。反过来,对运行时行为的横切视角可以直接可视化实际的控制流。与此同时,由于存在大量运行时事件,横切视角往往难以导航。我们建议将横切视角集成到基于局部视角的实时编程环境中,使二者相辅相成:横切视角提供运行时行为的概览;局部视角提供详细反馈以及用于导航横切视角的兴趣点。我们以调用树浏览器的形式呈现了一个横切视角原型,并将其集成到 Babylonian/S 实时编程环境中。在一项探索性用户研究中,我们观察到程序员认为该工具有助于调试、代码理解和导航。最后,我们讨论了该原型如何说明实时编程环境的特性可作为其他强大动态开发工具的基础。
英文摘要:
Live programming provides feedback on run-time behavior by visualizing concrete values of expressions close to the source code. When using such a local perspective on run-time behavior, programmers have to mentally reconstruct the control flow if they want to understand the relation between observed values. As this requires complete and correct knowledge of all relevant code, this reconstruction is impractical for larger programs as well as in the case of unexpected program behavior. In turn, cross-cutting perspectives on run-time behavior can visualize the actual control flow directly. At the same time, cross-cutting perspectives are often difficult to navigate due to the large number of run-time events. We propose to integrate cross-cutting perspectives into live programming environments based on local perspectives so that the two complement each other: the cross-cutting perspective provides an overview of the run-time behavior; the local perspective provides detailed feedback as well as points of interest to navigate the cross-cutting perspective. We present a cross-cutting perspective prototype in the form of a call tree browser integrated into the Babylonian/S live programming environment. In an exploratory user study, we observed that programmers found the tool useful for debugging, code comprehension, and navigation. Finally, we discuss how our prototype illustrates how the features of live programming environments may serve as the basis for other powerful dynamic development tools.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。