Re: Application logic and Business logic
From: frebe (fredrik_bertilsson_at_passagen.se)
Date: 02/28/05
- Next message: Alfredo Novoa: "Re: Application logic and Business logic"
- Previous message: Patrick May: "Re: Application logic and Business logic"
- In reply to: Thomas Gagne: "Re: Application logic and Business logic"
- Next in thread: Alfredo Novoa: "Re: Application logic and Business logic"
- Reply: Alfredo Novoa: "Re: Application logic and Business logic"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Feb 2005 10:07:10 -0800
> 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.
I spent (wasted) a number of years with developing "3-tier"
applications that did separate "business" logic from presentation
logic. The problem is that in the applications a worked with
(production control and human resource administration), 70% of the
logic was in the "thin" client. Switching from rich client to HTML
client still was a major task. And the price for this was a real code
bloat. Now I am using data-aware GUI components and is a much more
productive programmer.
> Would you rather your business logic be wrapped-up inside the
dumb-terminal
> code or that it be separated into its own layer?
It is impossible to have a client application with 0% "business logic".
But I agree that you should try to separate as much as possible of the
"business logic" from the client code.
> 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.,
Please give an example of a schema change you want to do, that will not
effect your "business logic" (or even presentation logic) too. A lot of
"business logic" is implemented in the database schema. The most common
schema changes is to add columns or tables, and doing this without
changing the rest of the application is a little bit pointless.
> and for the
> business layer to have hardwired itself to a specific table layout is
nearly
> as restrictive as mixing business and UI logic.
Why? Do you have some motivation for this?
> 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.
Using stored procedures will make you database vendor dependent. The
most important customer demand today is database independence. This
approach will also force you to write 1-10 stored procedures for every
table. This is a real code bloat. Besides, you will disable the
programmers to take real advantage of the functionality in a database.
Fredrik Bertilsson
http://butler.sourceforge.net
- Next message: Alfredo Novoa: "Re: Application logic and Business logic"
- Previous message: Patrick May: "Re: Application logic and Business logic"
- In reply to: Thomas Gagne: "Re: Application logic and Business logic"
- Next in thread: Alfredo Novoa: "Re: Application logic and Business logic"
- Reply: Alfredo Novoa: "Re: Application logic and Business logic"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|