首页 | 本学科首页   官方微博 | 高级检索  
     

依据开放-封闭原则对试验方法代码重构心得
引用本文:张立新,魏桐,初洪珍,赵兰兰. 依据开放-封闭原则对试验方法代码重构心得[J]. 工程与试验, 2014, 0(3): 45-47
作者姓名:张立新  魏桐  初洪珍  赵兰兰
作者单位:1. 长春机械科学研究院有限公司,吉林 长春,130103
2. 东北师范大学,吉林 长春,130000
3. 长春金赛药业有限责任公司,吉林 长春,130021
摘    要:有一定工作经历的程序员,都会有一些遗留代码在使用。无论是自己编写的还是协作者创建的,这部分代码在创建时可能解决了当时的问题,但是随着技术的进步及程序员自身水平的提高,这部分代码在可重用性、可扩展性和可维护性方面存在的问题逐渐暴露出来。本文以笔者在优化代码的过程中遇到和解决的问题谈一下心得,希望和大家共同提高。

关 键 词:开放-封闭原则  试验方法  重构  代码

Experiences from Refactoring Test Method by Open-Closed Principle
Zhang Lixin,Wei Tong,Chun Hongzhen,Zhao Lanlan. Experiences from Refactoring Test Method by Open-Closed Principle[J]. ENGINEERING & TEST, 2014, 0(3): 45-47
Authors:Zhang Lixin  Wei Tong  Chun Hongzhen  Zhao Lanlan
Affiliation:Zhang Lixin, Wei Tong, Chun Hongzhen, Zhao Lanlan(1. Changchun Research Institute for Mechanical Science Co., Ltd. Changchun 130103, Jilin, China 2. Northeast Normal University GeneScience Pharmaceuticals Co., Changchun 130000, Jilin, China; Ltd. Changchun 130021, Jilin, China)
Abstract:Every programmer with some careers may have left over codes from history, no matter coded by himself or his collaborators. These codes may work well at that time, but problems may appear in reusability, extendibility or maintainability after the advancement of technique or the improvement of the programmer himself. This article show the author's feelings and experiences from refactoring the test method class and hope to go-ahead with others together.
Keywords:open-closed principle  test method  refactor
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号