检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
出 处:《科技广场》2010年第8期57-60,共4页Science Mosaic
摘 要:面向对象的设计原则用于指导系统的设计和开发,较好的设计只需很少的改变就可以应对需求的变化。本文从一个常见的错误处理程序出发,在充分分析可能出现的需要改变的基础上,应用开放闭合、单一职责等设计原则和访问者设计模式对现有代码进行重构,使其更富有弹性、更容易维护,并能够适应需求的不断变化。Object-oriented design principles is often used to guide the system design and development, better design can respond to changes in demand by little change. In this paper, starting with a common error handler, it refactors the existing code guiding by Open-Closed principle, Single-Responsibility principle and visitor design pattern through the full analysis of the possible changes in demand. The refactoring makes the code more flexible, easier to maintain and able to adapt to the changing needs.
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.145.75.74