struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Husted <hus...@apache.org>
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.

-Ted.

[1] Patterns of Enterprise Application Architecture 
<http://www.amazon.com/exec/obidos/ISBN=0321127420 /hitchhikeguidetoA/>


-- 
Ted Husted,
Struts in Action <http://husted.com/struts/book.html>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message