Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29001 > unrolled thread
| Started by | D'Arcy Cain <darcy@druid.net> |
|---|---|
| First post | 2012-09-12 17:47 -0400 |
| Last post | 2012-09-12 17:47 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: avoid the redefinition of a function D'Arcy Cain <darcy@druid.net> - 2012-09-12 17:47 -0400
| From | D'Arcy Cain <darcy@druid.net> |
|---|---|
| Date | 2012-09-12 17:47 -0400 |
| Subject | Re: avoid the redefinition of a function |
| Message-ID | <mailman.581.1347486433.27098.python-list@python.org> |
On Wed, 12 Sep 2012 16:37:11 -0400 Terry Reedy <tjreedy@udel.edu> wrote: > assures one that the test is being run. (I don't always test first, but > I once discovered a test not being run when I modified it in a way that > should have made it fail, but it didn't.) 1. Write the test 2. Run the test - make sure it fails 3. write code until test passes 4. Stop writing code People underestimate the importance of steps 2 and 4. Number 2 is important because a test that can't fail is worse than useless. Number 4 is important because it prevents code that doesn't have a corresponding test. If you feel the need to write more code then go back to step 1. And run all of your tests every day. You will sleep better at night. -- D'Arcy J.M. Cain <darcy@druid.net> | Democracy is three wolves http://www.druid.net/darcy/ | and a sheep voting on +1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner. IM: darcy@Vex.Net
Back to top | Article view | comp.lang.python
csiph-web