arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1907.10699cs.HCcs.GRcs.PL
收藏

Sketch-n-Sketch:SVG的输出导向程序设计

Sketch-n-Sketch: Output-Directed Programming for SVG

Brian Hempel, Justin Lubin, Ravi Chugh

摘要:

对于创造性的任务,程序员面临着一个选择:使用GUI并牺牲灵活性,还是编写代码并牺牲人体工程学?为了获得灵活性和易用性,许多系统已经探索了我们称之为输出导向编程的工作流程。在这种范例中,直接操纵程序的图形输出对应于用通用程序设计语言编写代码,并且仍然可以通过对程序的普通文本编辑来制定用鼠标不可能进行的编辑。这种能力为将图形用户界面集成到当前以文本为中心的编程环境中提供了希望。为了进一步推进这一愿景,我们提出了各种新的输出导向的技术,扩展了表达能力的Sketch-N-Sketch,输出导向的编程系统,用于创建程序,生成矢量图形。为了使输出导向的交互在更多的阶段的程序建设,我们暴露中间执行产品的操纵,我们提出了一个机制,上下文绘图。展望矢量图形之外的输出导向编程,我们还通过GUI提供了通用重构,我们的技术采用了域不可知的起源跟踪方案。为了展示改进的表现力,我们在Sketch-n-Sketch中实现了十几个新的参数化设计,而无需基于文本的编辑。其中包括第一次在输出导向编程环境中构建递归函数的演示。

英文摘要:

For creative tasks, programmers face a choice: Use a GUI and sacrifice flexibility, or write code and sacrifice ergonomics? To obtain both flexibility and ease of use, a number of systems have explored a workflow that we call output-directed programming. In this paradigm, direct manipulation of the program's graphical output corresponds to writing code in a general-purpose programming language, and edits not possible with the mouse can still be enacted through ordinary text edits to the program. Such capabilities provide hope for integrating graphical user interfaces into what are currently text-centric programming environments. To further advance this vision, we present a variety of new output-directed techniques that extend the expressive power of Sketch-n-Sketch, an output-directed programming system for creating programs that generate vector graphics. To enable output-directed interaction at more stages of program construction, we expose intermediate execution products for manipulation and we present a mechanism for contextual drawing. Looking forward to output-directed programming beyond vector graphics, we also offer generic refactorings through the GUI, and our techniques employ a domain-agnostic provenance tracing scheme. To demonstrate the improved expressiveness, we implement a dozen new parametric designs in Sketch-n-Sketch without text-based edits. Among these is the first demonstration of building a recursive function in an output-directed programming setting.

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

↑