Hello, This email message is a notification to let you know that a file has been uploaded to the Files area of the testdrivendevelopment group. File :...
2
ronaldejeffries
Feb 8, 2002 2:50 am
Can success be far behind? No, or this would be a mighty short book. Do you mean "yes"?...
3
ronaldejeffries
Feb 8, 2002 3:06 am
Just reacting while things are fresh. Get over it. This is how I think. You're telling people (repeatedly) that if this seems crazy, don't do it. Maybe I'm too...
4
ronaldejeffries
Feb 8, 2002 3:34 am
I'll try to save a few up this time. Might not succeed, I'm getting tired. ========= The rate creation on pp 24ff is /profound/. It's something that I have...
5
Steve Freeman
smg_freeman
Feb 9, 2002 12:58 am
first impression: it's sharpened up a lot recently. - Preface "(You39;ll have to work on grumpiness...)" - should be separate bullet point "4WD" -> "4 wheel...
6
Dierk.Koenig@...
codevise
Feb 9, 2002 3:15 pm
... Whether == works instead of "equals" depends on the JDK's implementation of "String". Most impls have a maximum number of chars for this, so "CHF"=="CHF"...
7
Dierk.Koenig@...
codevise
Feb 9, 2002 3:18 pm
Hiall, Frank pointed me to this group and I'm sorry to start with a rather compelling statement: IMHO the example violates the rules of TDD as I understood...
8
Dierk.Koenig@...
codevise
Feb 9, 2002 3:22 pm
Preface QA can shift to proactive work ?? Sorry, I cannot think of any. What would be an example? cheers Dierk...
9
Dierk.Koenig@...
codevise
Feb 9, 2002 3:31 pm
Todo Learning when not to test. when asked what I need to test, my usual answer is: "my logic" stressing both words "my" means - not to test third party...
10
Dierk.Koenig@...
codevise
Feb 9, 2002 3:50 pm
Source code changes are in italics I would rather prefer bold (like in the Refactoring book) for better readability. cheers Dierk...
11
Dierk.Koenig@...
codevise
Feb 9, 2002 3:50 pm
That is great! Showing how the process begins to smell while the code entropy rises. This is really useful, for the reader can detect this situation at work. ...
12
Dierk.Koenig@...
codevise
Feb 9, 2002 3:51 pm
to-card on the right: great idea! excellent visualization! Add and Subtract acceptance test: Why does "Add" return Dollar, while "Subtract" returns Pound? "Add...
13
Dierk.Koenig@...
codevise
Feb 9, 2002 3:58 pm
This time for sure p.27 assertEquals(new Money(10/5,"CHF"),francs); I always try to avoid calculations in the expected values like the 10/5 here. It does an...
14
Dierk.Koenig@...
codevise
Feb 9, 2002 4:10 pm
That NullPointerException thing. Well, Java is not really elegant here, but to me it is good software craftsmanship not to throw misleading exceptions. I would...
15
Dierk.Koenig@...
codevise
Feb 9, 2002 4:18 pm
little typo p. 34 "Note also that [we] are using...] cheers Dierk...
16
edwardhieatt
Feb 9, 2002 8:24 pm
Hi all - I like the book very much. Here's a worry I have: the top of page 15 where we have a test that runs because we've hardcoded the "10". Then we replace...
17
Dierk.Koenig@...
codevise
Feb 11, 2002 9:52 am
... I suppport this point. We could start by passing back a second constant, selected by "if". The driving force for the replacement would be rule No. 2 ...
18
Dierk.Koenig@...
codevise
Feb 11, 2002 9:52 am
... I suppport this point. We could start by passing back a second constant, selected by "if". The driving force for the replacement would be rule No. 2 ...
19
Ron Jeffries
ronaldejeffries
Feb 11, 2002 11:01 am
... While what Dierk and Edward are saying is one good way to go, I think it's not the only way to go. The programmer already knows how he got the 10. (The...
20
Kent Beck
kentlbeck
Feb 11, 2002 7:28 pm
Value Object and Immutable are the same pattern, near as I can tell. The point is that you are using objects in a degenerate way, like values, not like things...
21
Kent Beck
kentlbeck
Feb 11, 2002 7:29 pm
Proactive QA would write application-level tests in preparation for presenting stories to the development group for detailed estimation and implementation....
22
Kent Beck
kentlbeck
Feb 11, 2002 7:46 pm
There are two schools on writing tests to force you to replace "10" with "amount * rate". The first school I call Triangulation. It predicts that you wait...
23
Kent Beck
kentlbeck
Feb 11, 2002 8:33 pm
I've uploaded a version that implements testEquals before testMultiplication. See how you like it. Feel free to send stupid typos to me directly instead of...
24
olibye
Feb 12, 2002 12:15 am
I believe the interplay of two characters is essential to explaining how dynamic TDD is, but as Steve points out, there's no visual clue that it's going on. ...
25
Kent Beck
kentlbeck
Feb 12, 2002 1:53 am
Re: "really working code". I was programming, and running JUnit, as I was writing. It gets a bit mixed up now, because I am revising code mid-stream. I...
26
Ron Jeffries
ronaldejeffries
Feb 12, 2002 2:24 am
... On a related note, Chet and I wrote a thing in Ruby that saves all the files that have changed every time we run the tests. We will probably enhance it to...
27
Dierk.Koenig@...
codevise
Feb 12, 2002 7:44 pm
... Well, now the problem is, that we're not starting with our goal, but with an intermediate step, that is not motivated directly. This is still because we...
28
Dierk.Koenig@...
codevise
Feb 12, 2002 8:16 pm
... Lately we used "negative tests" to drive the code from constants to calculation. starting with an assert and a constant implementation we write a second...
29
Dierk.Koenig@...
codevise
Feb 12, 2002 8:29 pm
self.log = self.log + "testmethod" This seems to be a little smelly to me, because we instrument the production code with functionality for testing purposes. ...
30
Dierk.Koenig@...
codevise
Feb 12, 2002 8:33 pm
Frank published a paper with an excellent solution for the code examples (to mention only one point). ...