Erik Meier
Member since May 30, 2012
- Profile: /members/10003-erik-meier.htm
- Comments: 6
Recent Blog Comments By Erik Meier
-
Application Services vs. Infrastructure Services vs. Domain Services
Posted on Jun 7, 2012 at 7:43 AM
@Sean My general mantra is to try to keep things as simple as possible and only as complex as necessary. I think this is really the key. One of ColdFusion's strengths is its simplicity and adding multiple layers of abstraction really goes against that. I find that it is sometimes difficult to ... read more »
-
Application Services vs. Infrastructure Services vs. Domain Services
Posted on Jun 6, 2012 at 11:56 AM
Nice in depth analysis, I haven't spent the time to break it down at a high level like you have, we've just been building and separating concerns as we go. For our structure, we maintain a /lib directory for the "Infrastructure services" layer, but maintain an "application service&qu... read more »
-
A Better Understanding Of MVC (Model-View-Controller) Thanks To Steven Neiland
Posted on Jun 1, 2012 at 12:28 AM
@Ben, Ouch, yeah, not much can be done about that. As Steven said, that is just an issue with code design. One of the huge benefits of separation of concerns is testability. If you've designed your components properly, you should be able to write test cases that can give you some peace of mind. ... read more »
-
A Better Understanding Of MVC (Model-View-Controller) Thanks To Steven Neiland
Posted on May 30, 2012 at 5:22 PM
@Ben, ColdSpring can manage circular references, no problem, see the bottom of this page: http://www.coldspringframework.org/coldspring/examples/quickstart/index.cfm?page=constructor It probably is a good idea to take on one thing at a time, but there are a lot of benefits to using a bean factor... read more »
-
A Better Understanding Of MVC (Model-View-Controller) Thanks To Steven Neiland
Posted on May 30, 2012 at 4:34 PM
@Ben, Yeah, we have service objects that are highly-interdependent, e.g. our UserService: <!--- dependencies ---> <cffunction name="setSiteService" returntype="void" output="false"> <cfargument name="siteService" type="any" ... read more »
-
A Better Understanding Of MVC (Model-View-Controller) Thanks To Steven Neiland
Posted on May 30, 2012 at 2:26 PM
@Ben, The way I have architected our application, Gateways are "dumb" and contain no business logic at all. They simply perform CRUD operations and return either query objects or true/false depending on the operation (find*,save* or delete*). It is up to the service layer to perform any ... read more »