Re: Application logic and Business logic
alex99_at_medcentral.com.au
Date: 02/26/05
- Previous message: alex99_at_medcentral.com.au: "Re: MVC in C++"
- In reply to: Vijay Singh: "Application logic and Business logic"
- Next in thread: topmind: "Re: Application logic and Business logic"
- Reply: topmind: "Re: Application logic and Business logic"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 25 Feb 2005 17:12:00 -0800
Vijay Singh wrote:
> I just read something in EJB design pattern book which baffled me.
While
> describing the "Data Transfer Object" pattern, the author said that
> application logic and business logic should be kept separate from
each other
> i,e should be decoupled. I was wondering if anybody can make out what
he
> means. Whats the difference between application logic and business
logic?
>
> Thanks
> Vijay
The other guys have answered the difference question well enough so I
won't eloborate.
Why separate them? EJB's are available to many different applications,
therefore mixing in one particular app's logic into the business logic
layer is not appropriate for all the other apps that function
differently.
In an n-tier environment, application specific logic needs to be more
closely tied to each particular application. For that reason you would
keep the business and app logic separate.
That said, I agree with topmind, endless useless separation creates
code that may not even be required or wanted by the customer, bloat.
You need to draw the line somehow and somewhere. Do I separate business
and app logic, no. I'll do it when the customer requires (and pays for)
it.
Cheers,
Alex.
- Previous message: alex99_at_medcentral.com.au: "Re: MVC in C++"
- In reply to: Vijay Singh: "Application logic and Business logic"
- Next in thread: topmind: "Re: Application logic and Business logic"
- Reply: topmind: "Re: Application logic and Business logic"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|