Geeks With Blogs
Lee Brandt's Blog You're only as smart as your last line of code

I belong to the LinkedIn TDD group and one of the other members, Raphaël Parrée (CTO of Trivera Technologies), recently posted about a flaw he sees in test driven development. The post is very thoughtful and comes from their experience with TDD. What I read from his post is that mid-level and junior-level developers are not strong enough developers to do it effectively. I disagree... sort of.Drill_Sgt

It does take a certain amount of skill in development to understand the essence of TDD/BDD, but that should be a reason for not doing it. It takes a certain level of competence with programming to write good code, but that shouldn't mean that we stop expecting mid-level and junior-level developers to turn out good code. I don't consider myself a coding wizard, but I have been doing this stuff for awhile and I have picked up some good techniques (and some bad ones). Software development (good software development anyway) is supposed to be hard. It's supposed to be an intellectual challenge and people who do well in this industry tend to be people who like that challenge.

I am also considered a senior-level developer on my team. I think that it most shops that might just mean I have to do the "hard stuff", but it should mean that I should be writing higher quality code and helping my peers, and those less experienced than myself, do the same. So everything flows. This does NOT mean that the new coders can't teach the senior guys a few tricks. Sometimes just mentoring junior developers teaches a more experienced coder a new way to look at a problem. I understand that this may slow development a bit. That may not please the business, but the other choice is lower-quality code. Helping a business understand that higher quality code costs less overall, is part of our jobs as TDD/BDD evangelists.

As usual, I am interested to see what people have to say, so please leave a comment, and read Raphaël's Post as well.

Posted on Wednesday, March 4, 2009 6:58 PM | Back to top


Comments on this post: Is TDD Too Hard?

# re: Is TDD Too Hard?
Requesting Gravatar...
Hopefully it will be the defacto way to write software in the future. Maybe it's ultimately in the hands of universities. If they start teaching TDD, it may not be hard thing to do then.
Left by Troy Tuttle on Mar 05, 2009 9:21 AM

# re: Is TDD Too Hard?
Requesting Gravatar...
@Troy that's an excellent point. perhaps training developers to do things like TDD should be introduced (if they don't already) in college courses. Then grads would come out with at least some exposure to testing and mocking frameworks.

~Lee
Left by Lee Brandt on Mar 05, 2009 3:32 PM

# re: Is TDD Too Hard?
Requesting Gravatar...
TDD is too hard for a lot of developers. True. That's why every company should do TDD. Seperates the wheat from the chaff. The problem is, most organizations don't do anything once they realize they have chaff. You have two options. Build them up or get rid of them. Most organizations choose to do neither.
Left by james peckham on Mar 11, 2009 2:55 PM

Your comment:
 (will show your gravatar)


Copyright © Lee Brandt | Powered by: GeeksWithBlogs.net