The only point I would raise here is that any design pattern /
technology / framework we implement should be done on the merits that
it solves a problem that we feel we will face during the project.
Time and time again I have seen projects that have been over
engineered to the Nth degree, adding layers of abstraction &
complicity, increasing the barrier of entry all without providing any
real world benefit / value to the application.
Structure and convention are essential elements for a successful team
project, but we need to ensure we are using the correct ones for this
project.
This being said I would be interested in seeing Andy's suggested
implementation.
Jay
On 25 May 2011 17:04, ugl...@gm... <ugl...@gm...> wrote:
> I have reviewed mpango code, and I have some remarks:
> 1) Entities, events, listeners, exceptions, beans should be placed in own
> packages, and if necessary create subpackages. Now it is a little mixed.
> 2) Web layer should be separated from back-end. The flow of the application
> could be like this:
> user-action -> spring bean -> facade bean -> service bean -> dao bean
> 3) Next step of separating should be creating of DTOs which will be used in
> web layer. Each entity should have corresponding DTO class. translation
> between entities and DTOs will be perform by builders(entity->dto) and
> factories(dto->entity).
> All actions which will require translations, should be placed in facades,
> facade beans will be used as thin border between core system and user
> interface.
> Service beans will be used to perform calculations.
> As far as mpango grows maybe we should consider creating 2 projects instead
> of one, for example mpango-core, and mpango-web.
> If Eduardo will give me permission I could rearrange code a little in this
> style.
> What do you think about it? Any suggestions are welcome.
> Andrzej
> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1
> _______________________________________________
> Mpango-core mailing list
> Mpa...@li...
> https://lists.sourceforge.net/lists/listinfo/mpango-core
>
>
|