学习计划组件顺序
Learning Program Component Order
摘要:
成功的程序是为了维护而编写的。其中一个方面是程序员以特定的方式对代码文件中的组件进行排序。这是编程风格的一部分。虽然排序的约定有时作为样式指南的一部分给出,但这样的指南通常是不完整的,程序员倾向于有自己更全面的排序。本文定义了一个模型,订购程序组件,并展示了如何可以从示例代码中学习这个模型。这样的模型对于编程环境是有用的工具,因为它可以用于找到插入新组件或重新排序文件的适当位置,以更好地满足程序员的需要。这个模型被设计成可以由程序员进行微调.通过查看具有已知样式指南的代码和测试是否将现有组件正确插入文件来评估学习框架。
英文摘要:
Successful programs are written to be maintained. One aspect to this is that programmers order the components in the code files in a particular way. This is part of programming style. While the conventions for ordering are sometimes given as part of a style guideline, such guidelines are often incomplete and programmers tend to have their own more comprehensive orderings in mind. This paper defines a model for ordering program components and shows how this model can be learned from sample code. Such a model is a useful tool for a programming environment in that it can be used to find the proper location for inserting new components or for reordering files to better meet the needs of the programmer. The model is designed so that it can be fine- tuned by the programmer. The learning framework is evaluated both by looking at code with known style guidelines and by testing whether it inserts existing components into a file correctly.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。