From: Anders Bengtsson Date: 2003-05-16T16:21:23+09:00 Subject: Re: Test::Unit sequencing --- Mark Wilson wrote: > I don't think I agree with the statement that decoupling logic from > database code is a good thing. I'm a little uncertain on my views as > to > the statement because I don't understand what it means to decouple > logic from database code, and I am not sure I understand what Mr. > Bengtsson means by "database code". By database code I meant the parts of the code that knows about the database. If your application is written in a mostly OO-style you'll probably have the "business logic" of the app separated from the gritty details about how to store a value in a database column. But then again, most small apps that use a database are built very much around the database, without that separation. It makes them easier to develop, but less object oriented, which makes them much harder to unit test. (But other kinds of testing works ok). /Anders ===== __________________________________________________ Anders Bengtsson ndrsbngtssn@yahoo.se Stockholm, Sweden _____________________________________________________ G� f�re i k�n och f� din sajt v�rderad p� nolltid med Yahoo! Express Se mer p�: http://se.docs.yahoo.com/info/express/help/index.html