Re: Application logic and Business logic
From: Thomas Gagne (tgagne_at_wide-open-west.com)
Date: 02/28/05
- Next message: frebe: "Re: OO programming - illumination?"
- Previous message: Rodger Constandse: "Re: Text-based sequence diagrams?"
- In reply to: topmind: "Re: Application logic and Business logic"
- Next in thread: topmind: "Re: Application logic and Business logic"
- Reply: topmind: "Re: Application logic and Business logic"
- Reply: Alfredo Novoa: "Re: Application logic and Business logic"
- Reply: frebe: "Re: Application logic and Business logic"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 27 Feb 2005 21:40:41 -0500
topmind wrote:
> (* That's an interesting assertion. What evidence do you have to
> support it? *)
>
> "Decision math". The chances of switching to a different GUI or DB
> vendor is relatively small compared to the cost of the extra separation
> layers in terms of coding and maintenence. Add in the "future
> discounting" from finance principles, and the the total weighs in favor
> of not doing it.
I might regret this...
The GUI or DB may not disappear. But put yourself back in the early 90s
before the web was revealed to the unwashed masses. How great it was for
those of us with separated logic to easily and quickly front-end our systems
with HTML.
Later in the 90s and early 00s XML was revealed to the masses. How great it
was for those of us with separated logic to easily and quickly front-end our
systems with XML xactions and eventually web services.
All these great new markets, functionality, and interoperability with nary a
modification to the expensive code.
More simply, imagine you're a bank (or a firetruck) accustomed to doing
transactions for tellers on dumb terminals. Over the course of a few years
you need to handle PCs, windowing interfaces, new ATM networks, POS networks,
and your own private ATM networks.
Would you rather your business logic be wrapped-up inside the dumb-terminal
code or that it be separated into its own layer?
As far as databases are concerned it may not be that I'll change from Oracle
to Sybase, or SQL Server to DB2, but more likely that we'll need to reorganize
the database, move some fields, split some tables up, etc., and for the
business layer to have hardwired itself to a specific table layout is nearly
as restrictive as mixing business and UI logic.
Better to treat the database as a huge object that hides its data (table,
rows, fields, organization, syntax, etc.) behind methods (stored procedures)
which are the only way to transact with it.
- Next message: frebe: "Re: OO programming - illumination?"
- Previous message: Rodger Constandse: "Re: Text-based sequence diagrams?"
- In reply to: topmind: "Re: Application logic and Business logic"
- Next in thread: topmind: "Re: Application logic and Business logic"
- Reply: topmind: "Re: Application logic and Business logic"
- Reply: Alfredo Novoa: "Re: Application logic and Business logic"
- Reply: frebe: "Re: Application logic and Business logic"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|