Multistaging to understand: Distilling the essence of java code examples
Multistaging to understand: Distilling the essence of java code examples
复制标题
理解多阶段:提炼java代码示例的本质
DOI:
10.1109/icpc.2016.7503708
复制
发表时间:
2016
期刊:
影响因子:
--
通讯作者:
Martin Schaf
中科院分区:
文献类型:
--
作者:
H. Sánchez;J. Whitehead;Martin Schaf
Programmers commonly search the Web to find code examples that can help them solve a specific programming task. While some novice programmers may be willing to spend as much time as needed to understand a found code example, more experienced ones want to spend as little time as possible. They want to get a quick overview of the example's operation, so they can start working with it immediately. Getting this overview is often non-trivial and requires a tedious and manual inspection process. In this paper, we introduce a technique called Multi-staging to Understand, which streamlines this inspection process by distilling the essence of code examples. The essence of a code example conveys the most important aspects of the example's intended function. Our technique automatically decomposes the code in an example into code stages that can be explored non-sequentially; enabling fast exploratory learning. We discuss the key components of our technique and describe empirical results based on actual code examples on StackOverflow.