Search the web
Sign In
New User? Sign Up
testdrivendevelopment · Test-driven Development
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
The first test - Hardest part about TDD?   Message List  
Reply | Forward Message #28260 of 32000 |
Re: [TDD] Re: The first test - Hardest part about TDD?

I suppose we could also call the scaffold we use when
constructing a large building as waste, or the safety
harnesses as waste.

One useful distinction I've seen from the Lean folks
is between type 1 and type 2 waste. Type 1 waste
is something we know how to get rid of now without
ill effects, type 2 waste is something we don't know
how to get rid of without ill effects.

Since we don't know how to get rid of it without
ill effects, whether or not it's waste is a matter of
unsupported opinion which is not based on real
world facts.

John Roth


----- Original Message -----
From: "Ron Jeffries" <ronjeffries@...>
To: <testdrivendevelopment@yahoogroups.com>
Sent: Thursday, May 22, 2008 7:18 AM
Subject: Re: [TDD] Re: The first test - Hardest part about TDD?


> Hello, John. On Thursday, May 22, 2008, at 7:55:45 AM, you wrote:
>
>> I suppose one way to understand Olof's remark is that he starts
>> out creating code as part of the TDD process which is eventually
>> removed completely as he refactors. You could view the removed code as
>> 'waste' I guess.
>
> Sure. Just as when I start my bowling game score method as:
>
> return 0;
>
> and later replace the 0 with
>
> return result;
>
> and insert some result-calculating code up above the return
> statement.
>
> The 0 is waste. However, setting out not to waste that zero turns
> out not to work as well.
>
> So the trick, I suppose, is in learning to keep waste at a low level
> but recognizing that it is wasteful to try to keep it at zero.
>
> Ron Jeffries
> www.XProgramming.com
> There is no award for "being XP". There is an award for doing the
> right combination of practices: success.
>
>




Thu May 22, 2008 1:58 pm

jhrothjr
Offline Offline
Send Email Send Email

Forward
Message #28260 of 32000 |
Expand Messages Author Sort by Date

Ron, Yes, in this case it's a sort of viewer. Let's say widget viewer. But finally there'll be widgets, widget collections, things to manage widgets, widget...
Donaldson, John (GEO)
geo_johnfr
Offline Send Email
May 22, 2008
11:49 am

I suppose we could also call the scaffold we use when constructing a large building as waste, or the safety harnesses as waste. One useful distinction I've...
John Roth
jhrothjr
Offline Send Email
May 22, 2008
1:58 pm

... I see I am beaten to the punch. ... J. B. (Joe) Rainsberger :: http://www.jbrains.ca Your guide to software craftsmanship JUnit Recipes: Practical Methods...
J. B. Rainsberger
nails762
Offline Send Email
May 27, 2008
2:51 pm

Hello, Andreas. Let me babble a bit about what I do and what your words remind me of. On Monday, May 19, 2008, at 5:30:39 AM, you ... Sometimes I might decide...
Ron Jeffries
ronaldejeffries
Offline Send Email
May 22, 2008
1:59 pm

... Do you use mocks at all? I tend to find that I use mocks fairly extensively (or rather a mocking framework) in my unit tests for database interactions,...
Peter Bell
freshstartsw
Online Now Send Email
May 22, 2008
2:31 pm

Hello, Peter. On Thursday, May 22, 2008, at 10:31:45 AM, you ... I don't use mocks per se, esp in the specific formal sense of an object that pays attention...
Ron Jeffries
ronaldejeffries
Offline Send Email
May 22, 2008
5:51 pm

Hello Ron, /Second, as PresenterFirst Presenters essentially have no interface, it's really hard to write a test for it. So I might be inclined to write a sort...
Sriram Gopalan
mgsram
Offline Send Email
May 22, 2008
6:39 pm

Hello, Sriram. On Thursday, May 22, 2008, at 2:39:44 PM, you ... Sounds right to me. If you can call the public methods directly, that's what I'd be providing...
Ron Jeffries
ronaldejeffries
Offline Send Email
May 22, 2008
8:05 pm

... I disagree. In http://www.atomicobject.com/files/BigComplexTested_Feb07.pdf, where I first got into contact with PF, the technique is introduced from a...
Andreas Krügersen
wyverex42
Offline Send Email
May 22, 2008
9:01 pm

... Andreas, can you point out the TDD in this article? I scanned through it twice and didn't spot any tests at all. I'm wondering if perhaps we mean...
George Dinwiddie
gdinwiddie
Offline Send Email
May 22, 2008
11:12 pm

... George, you're right about not spotting any test as a code snippet. All examples included in the article are production code. But the references to testing...
Andreas Krügersen
wyverex42
Offline Send Email
May 23, 2008
4:19 pm

Hello, Andreas. On Friday, May 23, 2008, at 12:19:31 PM, you ... I didn't read terribly carefully but I didn't notice tests in that article either ... Ron...
Ron Jeffries
ronaldejeffries
Offline Send Email
May 23, 2008
4:38 pm

... I don't value the article by its amount of code examples. It's all in the text along with an algorithm of how to do presenter first development writing...
Andreas Krügersen
wyverex42
Offline Send Email
May 23, 2008
4:58 pm

Hello, Andreas. On Friday, May 23, 2008, at 12:57:08 PM, you ... If I understood your question, you yourself had some difficulty writing the early tests for a...
Ron Jeffries
ronaldejeffries
Offline Send Email
May 23, 2008
5:34 pm

... I can tell you that I test-drive plenty of web application features presenter-first and I find it to be a lovely way to work. You don't / have/ to use mock...
J. B. Rainsberger
nails762
Offline Send Email
May 27, 2008
2:54 pm

The trouble with recognizing things such as scaffolding as "waste" is that you can then recognize everything other than the final product as waste. The only...
John Roth
jhrothjr
Offline Send Email
May 27, 2008
6:22 pm

John, ... Maybe recognizing that kind of waste is the genesis of innovation? I mean, if I could figure out a way to build a building with the wave of a ...
Matt
maswaffer
Offline Send Email
May 27, 2008
7:15 pm

... I wonder how many inventions through history has come into being because of people questioning the reasons for inefficiencies in "current affairs". I think...
Olof Bjarnason
olof.bjarnason@...
Send Email
May 27, 2008
7:26 pm

... Having such a definition allows us to measure improvement. Having a definition for "waste" also suggests that we need one for "risk," so that we can...
Jeff Langr
jlangr
Offline Send Email
May 27, 2008
8:38 pm

... Jeff, I wonder if those same organizations count debug time as waste! 8^) GB....
Gary Brown
gb70840
Offline Send Email
May 27, 2008
8:59 pm

... Hi Gary, That's what I was getting at. I view debug time as the result of increased risk, but sure; many places seem to "magically wave away" or otherwise ...
Jeff Langr
jlangr
Offline Send Email
May 27, 2008
9:03 pm

I have known many (too many) places where development costs end upon delivery of "something" to the business. After that everything is either a bug or a change...
Casey Charlton
caseycharlton69
Offline Send Email
May 27, 2008
9:21 pm

A basic question and apologies for distracting from the subject the discussion is going towards. Is the analogy of scaffolding correct with comparison to...
Sriram Gopalan
mgsram
Offline Send Email
May 27, 2008
9:30 pm

Just to clarify a little bit on my previous post - (Creases == Folds) and perhaps (Scaffolding ~ Mocks) -Sriram ... [Non-text portions of this message have...
Sriram Gopalan
mgsram
Offline Send Email
May 27, 2008
9:45 pm

... Beautiful analogy! (The scaffolding analogy wasn't working for me:) --Bill Wake ... -- Bill Wake William.Wake@... www.xp123.com...
William Wake
wwake2
Offline Send Email
May 27, 2008
9:50 pm

Greetings Sriram, ... An elegant analogy. Not being as creative a thinker, I simply view how I do TDD being as close to as pure an incremental approach as...
Jeff Langr
jlangr
Offline Send Email
May 27, 2008
10:10 pm

Hello Jeff, I see the point that waste products will be generated. I was not only struggling with the analogy but also the comments about treating scaffolding ...
Sriram Gopalan
mgsram
Offline Send Email
May 28, 2008
4:21 am

Hello, Sriram. On Wednesday, May 28, 2008, at 12:21:32 AM, you ... Lovely metaphor! Ron Jeffries www.XProgramming.com Wisdom begins when we discover the...
Ron Jeffries
ronaldejeffries
Offline Send Email
May 28, 2008
1:39 pm

Sriram, ... Yes, it's as if, when you build your house, you leave the scaffolding there - it just merges into the house. :-) John D....
Donaldson, John (GEO)
geo_johnfr
Offline Send Email
May 28, 2008
7:56 am

... Neat idea ... Ron Jeffries www.XProgramming.com The man happy in his work is not the narrow specialist, nor the well-rounded man, but the man who is doing ...
Ron Jeffries
ronaldejeffries
Offline Send Email
May 27, 2008
10:19 pm
 First  |  |  Last 
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help