软件工程

本类阅读TOP10

·PHP4 + MYSQL + APACHE 在 WIN 系统下的安装、配置
·Linux 入门常用命令(1)
·Linux 入门常用命令(2)
·使用 DCPROMO/FORCEREMOVAL 命令强制将 Active Directory 域控制器降级
·DirectShow学习(八): CBaseRender类及相应Pin类的源代码分析
·基于ICE方式SIP信令穿透Symmetric NAT技术研究
·Windows 2003网络负载均衡的实现
·一网打尽Win十四种系统故障解决方法
·数百种 Windows 软件的免费替代品列表
·收藏---行百里半九十

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
Development log - red & black (1)

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

Development log - red & black (1)

Red

Software that easy to test.
By Zhang Hui

Mr Z add some backdoor in the debug version of software. He even add a small
console for the application. It's more easy for him to do some kind of testing.
 For example, if we want to test the case of what display when there are over
10000 message. No one will send 10000 message to do such test, it's so expensive
and time-consuming! What he does is add a small language parser in the application.
When inputting words can be parsed by the small language engine, it will trigle
some actions. Because it supports parameters, it's very handy for us to do various
testing. What a great idea! Supposing we add "add inbox 1000", that means to create
1000 messages and store them in inbox. It's so easy, isn't?

Yesterday, I read the chapter of "unit test" of "Dive into python". From the example,
we know that the more early we add "unit test", the more we can get from them.
By "testing first", we can avoid over-design, we can release ealier, we can code
with full confidence, we can code in a graceful way, we can refactor the code anytime,
anywhere without worry about break something else.

To write a programe is not difficult, While it's much more difficult and complicated
to finish a "software". The core idea of developing software is to ensure quality,
meet schedule, within bugdet. So the core of the core is the software quality.
An procedure or mechanism is needed to ensure quality. It's natural for me to adopt
the idea of "test driven development" or "test centered development".

The mature level of development is decided by the level of testing.
===================================
版权所有 \copyright 张辉 2003
本文可原封不动的拷贝和自由地再发行,但在拷贝和再发行的拷贝中必须
原封不动地含有这段版权声明。 
http://forestsong.blogone.net

 

 


 




相关文章

相关软件