Tutorons: Generating context-relevant, on-demand explanations and demonstrations of online code

2015 IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC)(2015)

引用 33|浏览40
暂无评分
摘要
Programmers frequently turn to the web to solve problems and find example code. For the sake of brevity, the snippets in online instructions often gloss over the syntax of languages like CSS selectors and Unix commands. Programmers must compensate by consulting external documentation. In this paper, we propose language-specific routines called Tutorons that automatically generate context-relevant, on-demand micro-explanations of code. A Tutoron detects explainable code in a web page, parses it, and generates in-situ natural language explanations and demonstrations of code. We build Tutorons for CSS selectors, regular expressions, and the Unix command “wget”. We demonstrate techniques for generating natural language explanations through template instantiation, synthesizing code demonstrations by parse tree traversal, and building compound explanations of co-occurring options. Through a qualitative study, we show that Tutoron-generated explanations can reduce the need for reference documentation in code modification tasks.
更多
查看译文
关键词
context-relevant online code explanation,on-demand online code explanations,online code demonstrations,language-specific routines,in-situ natural language explanations,CSS selectors,regular expressions,wget Unix command,template instantiation,code demonstration synthesis,parse tree traversal,co-occurring options compound explanations building,Tutoron-generated explanations,code modification tasks
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要