Updated: 25/03/2003; 11:27:05 p.m..
Andres Aguiar's Weblog
Right here, right now
        

Martes, 29 de Octubre de 2002

Patterns of Enterprise Application Architecture.

I tend to rely more on the Transaction Script model. The biggest problem with Transaction Scripts is the duplication of logic. But through copious amounts of refactoring, I can keep that at a minimum. Transaction Scripts allow me to treat one page as an application. It knows how to get the data it wants and how to display it. That's it. It doesn't use an object model that might have to make use of 4 other objects in order to get all the data you want to display.

[News from the Forest]

That's the approach we follow in DeKlarit.  Your domain classes are not the usual 'normalized' domain classes, but unnormalized views of the data required in a transaction (i.e., the Order class has a CustomerName). The good news is that DeKlarit manages the 'duplication' itself, so you don't have to worry about it.

If you don't like it, you can also work with a more traditional Domain Model.

 


10:10:47 AM    comment []

© Copyright 2003 Andres Aguiar.
 
October 2002
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Sep   Nov



Click here to visit the Radio UserLand website.

Subscribe to "Andres Aguiar's Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.