【24h】

Achieving Software Reuse Using the Interface Separation Principle of Object-Oriented Design

机译:使用面向对象设计的接口分离原理实现软件重用

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

摘要

Object-Oriented programming is one of the current paradigms for producing quality software, providing that the object-oriented principles are respected and fulfilled. One principle is the interface separation, which states that clients of any given software must not be forced to depend on interfaces they do not need. If an object-oriented framework complies with this principle, it can be reused and extended without any trouble as we will show in this paper. If code reuse is achieved, we reduce the time of programming a new application, and also reduce the possibility of errors, since we are using already-proven code. When a framework does not comply with this principle because it has the interface dependency problem, its functionality cannot be reused separately, and cannot be extended either without violating other object-oriented principles, like the open / close principle. To solve this problem, in this paper a refactoring method for separating interface based on the interface separation principle is presented.
机译:面向对象的程序设计是生产高质量软件的当前范例之一,前提是尊重并实现面向对象的原理。一种原理是接口分离,它指出任何给定软件的客户端都不能被迫依赖于它们不需要的接口。如果一个面向对象的框架符合这个原则,我们将在本文中展示它可以被重用和扩展而没有任何麻烦。如果实现了代码重用,则由于我们使用的是经过验证的代码,因此,我们可以减少对新应用程序进行编程的时间,并减少出错的可能性。当框架由于存在接口依赖性问题而不符合该原理时,其功能将无法单独重用,并且在不违反其他面向对象原理(如打开/关闭原理)的情况下也无法进行扩展。为了解决这个问题,本文提出了一种基于接口分离原理的接口分离重构方法。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号