The Artima Developer Community
Sponsored Link

Agile Buzz Forum
TDD-supporting (DDD Motivation 5)

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jimmy Nilsson

Posts: 694
Nickname: jimmyn
Registered: Aug, 2003

Jimmy Nilsson is a developer, author and trainer for JNSK in Sweden.
TDD-supporting (DDD Motivation 5) Posted: Mar 19, 2008 5:30 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by Jimmy Nilsson.
Original Post: TDD-supporting (DDD Motivation 5)
Feed Title: Jimmy Nilsson's weblog
Feed URL: http://www.jnsk.se/weblog/rss.xml
Feed Description: Patterns, OO, DB, .NET, ...
Latest Agile Buzz Posts
Latest Agile Buzz Posts by Jimmy Nilsson
Latest Posts From Jimmy Nilsson's weblog

Advertisement

Quite a few have tried, and failed with, TDD. Pretty often I believe they have tried to use TDD for an old application structured with Transaction Scripts together with an Anemic Domain Model and quite often every test will touch the database. TDD just doesn't work well in such a situation before you have taken pretty big steps to make the whole situation more test-friendly.

On the other hand, if TDD is used together with an application that has been structured according to DDD, I find the combination is very strong and you don't have to fight to make it work. (Sure, it still requires a lot of work and attention over time, but it's much more harmonious.)

I have quite often been asked whether you should choose DDD or TDD? To me, that's obviously a question that I want to answer with "both". When I have a first sketch of my model, I try it out with TDD. It's like thinking about the model from DDD as a clay model, and the tests of TDD are like hands working the clay.

Read: TDD-supporting (DDD Motivation 5)

Topic: Is the software field advancing? Previous Topic   Next Topic Topic: Code Debt

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use