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 :...
testdrivendevelopment...
Feb 8, 2002 2:07 am
2
Can success be far behind? No, or this would be a mighty short book. Do you mean "yes"?...
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...
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...
first impression: it's sharpened up a lot recently. - Preface "(You'll have to work on grumpiness...)" - should be separate bullet point "4WD" -> "4 wheel...
... 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"...
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...
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...
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. ...
to-card on the right: great idea! excellent visualization! Add and Subtract acceptance test: Why does "Add" return Dollar, while "Subtract" returns Pound? "Add...
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...
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...
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...
... 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 ...
... 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 ...
... 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...
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...
Proactive QA would write application-level tests in preparation for presenting stories to the development group for detailed estimation and implementation....
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...
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...
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. ...
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...
... 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...
... 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...
... 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...
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. ...