Search the web
Sign In
New User? Sign Up
agilefinland · Agile Finland
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

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
TDD - developing throw interfaces   Message List  
Reply | Forward Message #366 of 669 |
Hei,
as far as i remember it was once or twice when i did participate to
the coding sojo sessions (long time ago). Actually i didn't like the
apprroach how we did start the developing of application. We just
started from the smallest thik not thinking about whole application at
all.
Probably something was changed due the next sessions - hard to know.
But here is the think i learned and i think it's really good.

TDD is cool, but starting from smallest things distroys big picture. I
like to design big picture and from this approach start to implement
application. In this case i usually think about actors, objects etc.
So i create domain model (POJO way). This model don't need to be
tested if it has only setters and getters. I think you agree at this
point.
When i have some simple model then it's simple to start to write some
layers of application. Probably they are dao, service and some other.
But if we start from those interfaces it will be probably the best
way. Interfaces doesn't implement functionality, so we don't need to
test them at this point. Still we already have application that can be
implemented throw mock way.

This is the point when TDD starts. We have some interface we want to
implement. We create implementation class with all declared methods
and inside this methods we just put throw unsupportedoperationesception.

The next step is creation of test class with test mehtods for all
implementation class methods. When we first time run test class we
have red bar. After that we start to change red to green step by step
in TDD way.

What do you think? Or is that in use already by all of you and i'm
just lag behind?

Antoni




Fri May 16, 2008 8:44 am

antonialatalo
Offline Offline
Send Email Send Email

Forward
Message #366 of 669 |
Expand Messages Author Sort by Date

Hei, as far as i remember it was once or twice when i did participate to the coding sojo sessions (long time ago). Actually i didn't like the apprroach how we...
antonialatalo
Offline Send Email
May 16, 2008
8:44 am

Hi Antoni Using TDD and an agile approach doesn't mean that you can't do any design up front. You probably do want to think about the big picture before...
Daniel Wellner
daniel.wellner
Offline Send Email
May 16, 2008
9:40 am

... Sorry, but yes: it does. "TDD" came out of a history of supplanting architecture with test- writing. Though many people make contemporary use of the term...
James O. Coplien
agilechef
Offline Send Email
May 16, 2008
10:07 am

Hi James ... You are write about the difference between Test Driven vs Test first and Feature Driven, My mistake, words mean things :) / Daniel...
Daniel Wellner
daniel.wellner
Offline Send Email
May 16, 2008
10:34 am

Hi Jim & others, ... writing. ... development ... leading ... Some people may have suggested not doing any up-front architectural design in the past but that's...
Lasse Koskela
lassekoskela
Offline Send Email
May 17, 2008
11:17 am

... Hej, Lasse, Sure could be. And I'm glad you're doing things right. But let's not wax revisionist here. Here are some of the sources from which I drew my...
James O. Coplien
agilechef
Offline Send Email
May 17, 2008
12:01 pm

Hi, ... I'm aware of Cedric and Hani's views on TDD (or test-first in general) but I've talked to Steve so many times that it's hard to believe he'd suggest...
Lasse Koskela
lassekoskela
Offline Send Email
May 17, 2008
4:06 pm

... Actually, TFD was Kent's original term for TDD. It was a term that he used with the Chrysler C3 team and they did do some up front design via CRC. Kent...
Michael Feathers
mfeathers256
Offline Send Email
May 17, 2008
5:15 pm

Hello. My quick and short answer got a little out of hand. In any case I hope you will find this useful. ... (Some context to people not familiar with the...
tarvaina
Offline Send Email
May 16, 2008
11:03 am

Hi. ... I believe many attendees have wished for agreeing on the main direction before pairs start pushing the design to their own paths. I think this is a...
Mika J Viljanen
mjviljan@...
Send Email
May 16, 2008
11:11 am

Hi, thank you all for replies. Those are good and well argumented, specially Anttis mail. I agree on the most arguments, but for the now i'm staing behind the ...
antonialatalo
Offline Send Email
May 16, 2008
1:09 pm

... I have heard and experienced that it's better to do deep slices to implement end-to-end features. So if you need to have two teams working on the same...
Timo Rantalaiho
timorantalaiho
Offline Send Email
May 17, 2008
12:06 pm
Advanced

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