arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0701200cs.SE
收藏

软件代码重用中的模式推理和类比推理

Reasoning from a schema and from an analog in software code reuse

Françoise Detienne

摘要:

设计活动包括将问题分解为子问题以及解决方案的开发和评估。在许多情况下,解决方案的开发不是从头开始的。设计师经常会唤起和适应过去开发的解决方案。这些解决方案可以来自内部源,即设计者的存储器,和/或来自外部源。本文的目的是分析的认知机制,知识和表示的特点,在代码重用活动中所涉及的经验丰富的程序员。更一般地说,重点是重用活动的控制结构。在一个实验中,程序员必须设计程序,收集的数据进行了分析。两种代码重用情况的区别取决于重用中所涉及的过程是否在作为源解决方案的内容的细化之前开始。我们的分析突出了使用的推理模式和模拟的代码重用活动。

英文摘要:

The activity of design involves the decomposition of problems into subproblems and the development and evaluation of solutions. In many cases, solution development is not done from scratch. Designers often evoke and adapt solutions developed in the past. These solutions may come from an internal source, i.e. the memory of the designers, and/or from an external source. The goal of this paper is to analyse the characteristics of the cognitive mechanisms, the knowledge and the representations involved in the code reuse activity performed by experienced programmers. More generally, the focus is the control structure of the reuse activity. Data collected in an experiment in which programmers had to design programs are analyzed. Two code reuse situations are distinguished depending on whether or not the processes involved in reuse start before the elaboration of what acts as a source-solution. Our analysis highlights the use of reasoning from a schema and from an analog in the code reuse activity.

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

↑