发信人: LodossWar (sleepycat), 信区: DotNet
标 题: Re: 困猫, 定义test driven programming and ..
发信站: Unknown Space - 未名空间 (Fri Oct 17 18:34:59 2003) WWW-POST
1. Test Driven Programming:
One aspect of Extreme Progrgramming.(XP)
Writing tests first
XP talks about two kinds of tests: programmer tests and customer tests.
Test-driven programming (also called test-first programming) most commonly
refers to the first variety, at least when I use the term. Test-driven
programming is letting programmer tests (or unit tests -- again, just a choice
of terms) drive the code you write. That means you have to have the test
before you write the code. The test drives the code you write by dictating
what code you need to write. You write only the code necessary to make your
test pass -- no more, no less. The XP rule is simple: If you don't have a
programmer test, you don't know what code to write, so you don't write any
2. Data Driven programming:
Data structure design first.
i.e., you first design database, then create connection, adapter, then
generate dataset, then you can darg-drop web forms controls to create your
fancy ASP.net sites.
You see, the real business logic and presentation layers are not the first.
That's just my thought. You can also find "Data-driven" in MSDN.
【 在 Edelweiss (雪绒花) 的大作中提到: 】
: test driven programming, data driven programming
: in english ,and professionally.
: recently I found myself not be able to describe what I know in a nice
: professional way.
: let alone what I don't know!
: I am working on that too these days.
※ 来源:．Unknown Space - 未名空间 mitbbs.com．[FROM: 151.201.]