tag:blogger.com,1999:blog-1697388841986104302.post6487375184204087056..comments2023-07-02T10:36:44.294-05:00Comments on Agile in a Flash: Stopping the Bad Test Death SpiralAgileotterhttp://www.blogger.com/profile/10773578598860454277noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-1697388841986104302.post-38244120716991962742009-09-11T18:12:15.355-05:002009-09-11T18:12:15.355-05:00Hi Tim,
Love the article, but I think you're ...Hi Tim,<br /><br />Love the article, but I think you're mischaracterizing NHibernate as ActiveRecord in your comment. I think of NHibernate as being a DataMapper. Is that wrong?<br /><br />I'm working with a legacy code base using ActiveRecord and am looking at NHibernate as a way of moving away from that. If we're given the green light, it's going to be a lot of work.<br /><br />If you don't mind my asking, how are you doing your migration away from ActiveRecord?Jason Diamondhttp://jason.diamond.name/noreply@blogger.comtag:blogger.com,1999:blog-1697388841986104302.post-7775165357634022312009-09-10T11:57:35.321-05:002009-09-10T11:57:35.321-05:00Mat: Agreed.
ActiveRecord has had a big surge in ...Mat: Agreed.<br /><br />ActiveRecord has had a big surge in popularity (Django, Rails, NHibernate, etc) and it is great for getting something started. In some cases it is good enough for some pretty big web pages and apps. Still, I keep finding that the repository pattern works better. <br /><br />I do a lot of work in legacy code. Often the legacy code uses ActiveRecord heavily, and often it is one of the biggest testability problems. <br /><br />My current team is starting the migration out of active record.<br /><br />Maybe we need to create a card on architectural patterns that are known to frustrate testing efforts....Agileotterhttps://www.blogger.com/profile/10773578598860454277noreply@blogger.comtag:blogger.com,1999:blog-1697388841986104302.post-65949737958178489782009-09-10T10:53:44.537-05:002009-09-10T10:53:44.537-05:00Hi Tim,
Having been working at TDD for many years,...Hi Tim,<br />Having been working at TDD for many years, the big breakthrough I've had recently is using the repository pattern for data access rather than active record. <br />I'm sure this is old news to you. But for me, this design change has been a major plus both for testability, and the design in general.<br />Cheers<br />Matmat robertshttp://moleseyhill.comnoreply@blogger.com