...
首页> 外文期刊>Theory and Practice of Logic Programming >Improving Prolog programs: Refactoring for Prolog
【24h】

Improving Prolog programs: Refactoring for Prolog

机译:改善Prolog程序:重构Prolog

获取原文
获取原文并翻译 | 示例
           

摘要

Refactoring is an established technique from the object-oriented (OO) programming community to restructure code: it aims at improving software readability, maintainability, and extensibility. Although refactoring is not tied to the OO-paradigm in particular, its ideas have not been applied to logic programming until now. This paper applies the ideas of refactoring to Prolog programs. A catalogue is presented listing refactorings classified according to scope. Some of the refactorings have been adapted from the OO-paradigm, while others have been specifically designed for Prolog. The discrepancy between intended and operational semantics in Prolog is also addressed by some of the refactorings. In addition, ViPReSS, a semi-automatic refactoring browser, is discussed and the experience with applying ViPReSS to a large Prolog legacy system is reported. The main conclusion is that refactoring is both a viable technique in Prolog and a rather desirable one.
机译:重构是从面向对象(OO)编程社区到重构代码的一项成熟技术:它旨在提高软件的可读性,可维护性和可扩展性。尽管重构并没有特别地与OO范式相关,但是到目前为止,它的思想还没有应用于逻辑编程。本文将重构思想应用于Prolog程序。提供了一个目录,其中列出了根据范围分类的重构。一些重构是从OO范例改编而来的,而另一些则是专门为Prolog设计的。一些重构也解决了Prolog中预期语义和操作语义之间的差异。此外,还讨论了半自动重构浏览器ViPReSS,并报告了将ViPReSS应用于大型Prolog遗留系统的经验。主要结论是,重构在Prolog中既是可行的技术,也是一种相当理想的技术。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号