Search the web
Sign In
New User? Sign Up
altdotnet · Alt Dot.Net Discussions
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

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 + effort != return   Message List  
Reply | Forward Message #15301 of 23389 |
I would like some debate that the following post has provoked me to ask some questions of my  own devlopment process:

http://weblogs.asp.net/rosherove/archive/2008/09/20/goodbye-mocks-farewell-stubs.aspx

I get the impression that a lot of people in the community have been stating and reiterating that TDD, BDD, whatever is just fantastic and we should all do it and anybody who is not, is obviously doing something wrong.

I do practice TDD for the design merits but it has taken me a long time to get up to speed with it.

I made countless (and still do) mistakes at the start and the learning curve has been steep.

My first experience was that all the developers started with the best intentions but our initial tests were un-maintainable as they were affectively integration tests.

Using a mocking framework helped to write maintainable, fast running tests. but took a period of adjustment to get up to speed. 

I do love the test first paradigm but I often wonder if I have actually got the return that my outlay warrants.

I use NHibernate and I rarely mock out ISession, ISessionFactory or ICriteria etc.

If I was after high code coverage (and I am not saying everyone is), I would have to mock out these for no other reason than to get high code coverage.  I use layering to hide this code behind its own abstracted dependency.  

What if I have a WCF or asmx proxy, then should I write tests just to keep my code coverage high (if you are a code coverage zealot)

A side effect of test first is you get unit tests to test your logic but if you are expecting unit tests to catch bugs and keep QA to a minimum then you are approaching the methodology wrong.

I also have a problem with new people coming onto the project who are inexperienced with TDD.  They naturally write unmaintainable bad tests.

Maybe it is different where you are geographically but I struggle to find resource with the relevant skills.  I find myself writing the tests or fixing the broken tests a lot.

TDD is a massive outlay and we should and I am questioning its return or how we could get a quicker return.

I agree refactoring does not make sense without TDD but what about the extra time involved in "getting things out the door".







dagda1@...

Win £3000 to spend on whatever you want at Uni! Click here to WIN!

Sun Sep 21, 2008 10:26 am

dagda1970
Offline Offline
Send Email Send Email

Forward
Message #15301 of 23389 |
Expand Messages Author Sort by Date

I would like some debate that the following post has provoked me to ask some questions of my own devlopment...
Paul Cowan
dagda1970
Offline Send Email
Sep 21, 2008
10:27 am

Tests are written to force you to think about the design up front. They help reduce coupling along the way. Afterward, they are there to ensure that you aren't...
Ayende Rahien
Ayende@...
Send Email
Sep 21, 2008
10:30 am

... It is perceived as the panacea of all things great and I rarely see people question it (perhaps because it is sooo good :-)).The pain points are rarely...
Paul Cowan
dagda1970
Offline Send Email
Sep 21, 2008
10:39 am

You get what you pay for ... Bringing new people onto the project unfamiliar with TDD can slow things down considerably. Did people write loosely coupled code...
Ayende Rahien
Ayende@...
Send Email
Sep 21, 2008
10:40 am

... To: altdotnet@...: Ayende@...: Sun, 21 Sep 2008 13:40:23 +0300Subject: Re: [altdotnet] TDD + effort != return You get what you...
Paul Cowan
dagda1970
Offline Send Email
Sep 21, 2008
10:42 am

Not really. If you want maintainable code, you have to work to get there. If you want to produce crap, just anyone can do that. If you need the skills, it is...
Ayende Rahien
Ayende@...
Send Email
Sep 21, 2008
10:43 am

yeah. that last point.... not so true. ... -- Thanks, Roy Osherove www.TypeMock.com - Simplify Unit Testing Author of "The Art Of Unit Testing" (...
Roy Osherove
royosherove
Offline Send Email
Sep 21, 2008
10:44 am

It was with the teams that I worked with. I also take a radically different approach for how to deal with some of those issues, see JFHCI, which helps....
Ayende Rahien
Ayende@...
Send Email
Sep 21, 2008
10:46 am

The premise we are saying here is that anybody who does not have the TDD skills will need be brought up to speed in order to contribute to the project.THis...
Paul Cowan
dagda1970
Offline Send Email
Sep 21, 2008
10:50 am

Yes, it will. That is why I said that you get what you pay for. If you think this is valuable enough, you will spend the time and money to get this. If you...
Ayende Rahien
Ayende@...
Send Email
Sep 21, 2008
10:52 am

... To: altdotnet@...: roy@...: Sun, 21 Sep 2008 13:44:10 +0300Subject: Re: [altdotnet] TDD + effort != return yeah. that last...
Paul Cowan
dagda1970
Offline Send Email
Sep 21, 2008
10:46 am

Do you want to get maintainable code? If so, you have one of several options: a) get people experienced in TDD, as you mentioned, that isn't that easy. b)...
Ayende Rahien
Ayende@...
Send Email
Sep 21, 2008
10:50 am

... How I wish I could do this one.>> use an architecture that lend itself easily to TDD, such as JFHCII would say I do that. I have seemless IOC. Seemless...
Paul Cowan
dagda1970
Offline Send Email
Sep 21, 2008
10:54 am

A while ago I was working for a company that specified that the app I was working on should be built using the stupidest methods possible. That was a @!#$@#%$...
Ayende Rahien
Ayende@...
Send Email
Sep 21, 2008
10:58 am

... To: altdotnet@...: Ayende@...: Sun, 21 Sep 2008 13:58:12 +0300Subject: Re: [altdotnet] TDD + effort != return A while ago I was...
Paul Cowan
dagda1970
Offline Send Email
Sep 21, 2008
11:05 am

Why? Good doesn't equate to easy....
Ayende Rahien
Ayende@...
Send Email
Sep 21, 2008
11:06 am

As Roy's article states there is a whole article written my Martin Fowler (not just another blogger) saying "Mocks are not stubs" or something.The fact we have...
Paul Cowan
dagda1970
Offline Send Email
Sep 21, 2008
11:12 am

The fact that we get so hung up on labels is annoying. I don't really like labels, and I try to avoid them when possible. I also don't follow the association...
Ayende Rahien
Ayende@...
Send Email
Sep 21, 2008
11:16 am

TDD is great. unit testing is great.but it feels like it is unrealistic to ask the world to know all the things that need to be known for these things to work....
Roy Osherove
royosherove
Offline Send Email
Sep 21, 2008
11:22 am

... To: altdotnet@...: Ayende@...: Sun, 21 Sep 2008 14:16:05 +0300Subject: Re: [altdotnet] TDD + effort != return The fact that we...
Paul Cowan
dagda1970
Offline Send Email
Sep 21, 2008
11:23 am

Allow me to retort... :) I am a contractor, and I like to think my bread and butter is all of the things you seek in other contractors. I'm absolutely agile....
johnboyglasgow
Offline Send Email
Sep 21, 2008
3:42 pm

how are these processes sold in JPMorgan?Perhaps there is something to be learned and adopted from their way of doing things. could you elaborate? ... -- ...
Roy Osherove
royosherove
Offline Send Email
Sep 21, 2008
3:45 pm

Well you have to be at VP level mostly, as these are the people who have to sell to the architecture board, stripe managers and CTOs. Unlike the rest of the...
johnboyglasgow
Offline Send Email
Sep 21, 2008
4:53 pm

... To: altdotnet@...: dagda1@...: Sun, 21 Sep 2008 11:03:02 +0000Subject: RE: [altdotnet] TDD + effort != return ... To:...
Paul Cowan
dagda1970
Offline Send Email
Sep 21, 2008
11:07 am

... I think this is your fundamental problem, and I'm about to say something that I'm sure others will disagree with, but here goes: Contractors are...
Brad Wilson
bradw_64
Offline Send Email
Sep 21, 2008
11:10 am

... Hey, watch who you're painting with that brush!! (unless you were deliberately throwing out some flame bait) I work for a consulting firm at the moment...
Richard Banks
richardbanks...
Offline Send Email
Sep 21, 2008
12:01 pm

+1 to that. A good contractor wants to build a collaborative relationship with the client - with the goal of ideally getting extended and seen as someone who ...
Aaron Erickson
ericksoa04
Offline Send Email
Sep 21, 2008
12:09 pm

... You're the exception, not the rule (already evidenced by the fact that you're on this list). My point is this: these skills and passions are very rare. If...
Brad Wilson
bradw_64
Offline Send Email
Sep 21, 2008
5:23 pm

I wonder if there's a language difference causing problems here. Maybe in the UK, "contractor" has much better connotations than it does when I hear it here...
Kelly Leahy
kellypleahy
Offline Send Email
Sep 21, 2008
7:56 pm
First  | < Prev  |  Last 
Advanced

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