struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Husted <>
Subject RE: Opinions: fine or coarse grained actions
Date Fri, 07 Feb 2003 20:12:15 GMT
Fine-grained actions is one pattern. Coarse-grained actions is another. 
Sometimes the circumstances call for one, sometimes the other. Just as 
sometimes you need a singleton, and other times you need a factory.

The beauty of Struts is that it lets you pick and choose which pattern 
to use when.

Personally, I liken the fine-grained Actions to what Fowler [1] calls 
"Transaction Scripts", and coarse-grained Actions to what Fowler calls 
"Domain Models".

In that latter case, the Domain Model is finely grained and so an Action 
can become more coarse.


[1] Patterns of Enterprise Application Architecture 
< /hitchhikeguidetoA/>

Ted Husted,
Struts in Action <>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message