摘要
尽管代码重用性受到了垢病,但在Java应用开发中,代码重用技术还是得到了越来越多的软件工程师的重视,因为对于某些代码的重用不仅能够使得程序变得更加简练、清晰和易于维护,而且更重要的是可以节约软件开发的成本,提高软件生产的效率,同时还能够增加代码的可靠性和增强被重用代码与系统函数的其他部分的一致性。文章就这一问题对在Java应用开发中代码重用的优劣进行了深入分析,并提出了几个相关的重用代码的解决策略。
Although the code reusability is criticized, it is still emphasized by more and more software engineers in the application of Java. Because the reuse of some codes not only makes the program more concise, clearer, and easier to be maintained, but also can save cost of software development, increase the efficiency of software production, improve the codes' reliability, and enhance the consistency of the codes and other parts of system functions. This paper analyzes in depth the advantages and disadvantages of code reuse in the Java application and development, and suggests several solutions of the code reuse.
出处
《电脑与信息技术》
2010年第3期60-62,共3页
Computer and Information Technology
关键词
代码重用
接口
代码分离
内聚性
耦合度
code reusability
interface
code separation
cohesion
coupling degree