摘要
实践是敏捷软件开发的核心,对代码要求精益求精,在开发的过程中,简单设计,用测试驱动,通过重构和迭代代码实现设计。24点问题是一类趣味数字游戏问题,开始想用递归思想解决,在编写代码的过程中,写出了递推的过程,程序重复的地方太多,经过重构写出了递归算法,在增量式开发中应用重构技术实现了递归算法并对算法进行了扩展。
Practice is the core of agile software development. The requirement on the code quality is high. In the development, the design is simple, driving is achieved by testing and code design is realized through refractor and iteration. The 24 point problem is an interesting arithmetic figure game. In the beginning the author intends to use recursion but in the coding process he finds a lot of programs are repeated. At last recursion is realized by refractoring the code. Refractoring is applied in increase development to realize recursion and the algorithm is extended in some way.
出处
《电子科技》
2005年第9期52-55,共4页
Electronic Science and Technology
关键词
24点问题
递归
增量式开发
重构
24 point problem
recursion
increase development
refractor