摘要
当前计算机软件开发正面临变化多和响应快的难题和挑战,而目前存在的用于解依赖来实现易维护易测试的技术存在学习门槛高、难于熟练掌握、在单一方法运用上支持不足的问题。在研究大量现有技术的基础上,设计并实现代码分离模型,提出数据隔离、行为隔离、粗细隔离、增强版粗细隔离四种隔离方法以及隔离层的方案设计,并把常见的应用场景提取为五种代码分离模式。代码分离模型大幅度降低了编写易维护易测试代码的难度,是该领域的又一创新,也是对现有技术的有力补充。
The software development has been facing the challenge of high frequent change and quick response,and the existing technologies used to break dependency and implement easy maintained and testability code have many problems like high learning threshold,hard to master and lack of supporting for single method.Based on lots of researches on existing technologies,designing and implementing of the code separation model can solve these problems.This model proposed the solution which includes data isolation,behavior isolation,major/minor isolation,advanced major/minor isolation and isolation layer,furthermore extracted the common scenarios into five code separation patterns.The code separation model significantly decrease the difficulty of writing easy maintained and testability code,and is a big innovation in this field and good complement for existing solutions.
作者
刘静静
吕何新
Liu Jingjing;Lü Hexin(School of Computer Engineering and Science,Shanghai University,Shanghai 200444,China;College of Information Science and Technology,Zhejiang Shuren University,Hangzhou 310015,Zhejiang,China)
出处
《计算机应用与软件》
北大核心
2021年第10期1-7,14,共8页
Computer Applications and Software
基金
国家自然科学基金项目(61375071)
浙江省自然科学基金项目(LZ15F020001)
浙江树人大学“中青年学术团队项目”。
关键词
代码分离
解依赖
易维护
易测试
Code
separation
Dependency
Easy maintained
Testability