软工网络15结对编程练习(201521123007谭燕)
链接
学号:201521123006;博客链接: http://www.cnblogs.com/KimHeechul/p/8644402.html
学号:201521123007;博客链接: http://www.cnblogs.com/ty1213/p/8644960.html
码云地址: https://gitee.com/KimHeechul/pair_programming/commits/master
题目要求:
1. 改进现有代码
1.1 分析网络14部分现有程序代码
个人博客地址4:http://www.cnblogs.com/shizhuangde ,源代码:https://coding.net/u/lhl1212/p/work2/git
1.2 分析大部分主要类之间的关系,画出类图

1.3 测试覆盖率




1.4 当前设计的弱点
- 无法自己选择题目数量。
- 错误提示窗口会重复显示上次的错误结果,且会多次弹出窗口,需要重复确认。
- 只有两个操作数的计算。
- 没有提示正确率。
1.5 单元测试


2. 功能改进与扩展
- 增加正确率统计
- 全部答对可以重新做题
- 多操作数运算
2.1 改进代码展示





2.2 运行结果





3. 结对编程过程的图片

4. PSP表格
PSP2.1 | 个人开发流程 | 估计耗时 | 实际耗时 |
---|---|---|---|
Planning | 计划 | 20 | 20 |
· Estimate | 明确需求和其他相关因素,估计每个阶段的时间成本 | 5 | 8 |
Development | 开发 | 220 | 350 |
· Analysis | 需求分析 | 30 | 45 |
· Design Spec | 生成设计文档 | 15 | 15 |
· Design Review | 设计复审 | 25 | 45 |
· Coding Standard | 代码规范 | 10 | 8 |
· Design | 具体设计 | 60 | 75 |
· Coding | 具体编码 | 75 | 95 |
· Coding Reivew | 代码复审 | 25 | 25 |
· Test | 测试(自我测试、修改代码、提交修改) | 15 | 25 |
Reporting | 报告 | 25 | 30 |
· | 测试报告 | 5 | 8 |
· | 计算工作量 | 5 | 8 |
· | 并提出过程改进计划 | 8 | 12 |
5. 码云提交记录

6. 实验小结
虽说也不是第一次合作编程了,但是对于结对编程应该做些什么,怎么做?还是存在疑虑。这次结对编程,我和小伙伴先是一起商讨题目要求,然后分析了别人的代码,从代码中找出不足,然后分工改进。过程中不懂的我们仔细研究,结束后再把两人的代码整合。这也是一个特别痛苦的过程,需要了解对方的思路,然后加进代码再优化。对于编程能力都不是很强的我们来说,改进代码本身就很难了,还要在原有基础上增加新的功能,更是难上加难。此次我们选择的源代码本身无法再增加复杂的功能,否则只能推翻原有代码重写,这是一项很艰巨的任务啊,鉴于时间有限,我们就做了力所能及的部分。对于PSP表格,是个很好的检验完成时间的工具,能更好地培养我们的时间安排观念。
相关推荐
uuussseeennn 2020-03-23
runOnWay 2020-03-23
洪宇 2012-10-05
dollybol 2012-10-05
黄河敏捷开发 2012-10-03
bamboosister 2012-10-03
rainbowbaby 2012-09-28
pandapanda 2008-06-06
phpboy 2007-07-24
privateHiroki 2018-08-13
taizansBlog 2013-05-29
ICan 2013-05-06
赵家阳 2013-11-28
hzraymond 2014-03-03
FlyWithDe 2010-01-27
豆叔碎碎念 2018-05-07
BitTigerio 2018-04-20
高小强的汽车暴晒场 2018-04-19
跨越美利坚面试创业技术培训 2018-04-16