![]() | |
#131
| |||
| |||
|
|
Three tier architecture is "standard" as well as good architecture because it separates UI, Buisness Logic and database. UI only does UI, database only stores data and busines slogic does the rest. |
#132
| |||
| |||
|
|
zigzag... (AT) yahoo (DOT) com> wrote in message news:1180257868.590456.84400 (AT) q69g2000hsb (DOT) googlegroups.com... Three tier architecture is "standard" as well as good architecture because it separates UI, Buisness Logic and database. UI only does UI, database only stores data and busines slogic does the rest. I've always been fascinated by the concept of business logic being totally divorced from data correctness. Either the data is a correct description of the state of the business, or it is not - which means the "business logic" is inherent in the data and enforced by the constraints on the data. You may choose to have as many layers of code as you like to transform the data from one valid state to another valid state; but if you rely on programs to maintain data correctness, you don't have a database, you have a bit-bucket. Three-tier is not an ideal to be aimed for, it is crutch to be used as sparingly as possible until the database technology is good enough to walk unaided. -- Regards Jonathan Lewishttp://jonathanlewis.wordpress.com Author: Cost Based Oracle: Fundamentalshttp://www.jlcomp.demon.co.uk/cbo_book/ind_book.html The Co-operative Oracle Users' FAQhttp://www.jlcomp.demon.co.uk/faq/ind_faq.html You may choose to have as many layers of code as you like to transform the data from one valid state to another valid state; but if you rely on programs to maintain data correctness, you don't have a database, you have a bit-bucket. |
#133
| |||
| |||
|
|
On May 27, 12:38 pm, "Jonathan Lewis" <jonat... (AT) jlcomp (DOT) demon.co.uk wrote: You may choose to have as many layers of code as you like to transform the data from one valid state to another valid state; but if you rely on programs to maintain data correctness, you don't have a database, you have a bit-bucket. Not sure what do you mean by :"if you rely on programs to ....". PL/ SQL is a programming language so are C++ and Java. So you are writing programs either way. |
#134
| |||
| |||
|
|
Most of the software projects I worked on there are three layers (some people call them tiers, tier does not mean separate servers): User Interface, Business/Application Logic and Database. User Interface simply does user interface, displays screens, gets data from the user. Database stores data, there may be some triggers, but database does not use any stored procedures. Business/ Application logic is where all the logic/algorthsm etc are implemented. Business logic calls database to get data and update/ insert/delete data. Thus database code is little. Using OO techniques, it is not all that difficult to write database classes in such as fashion that they are mostly database independent. Sure there will be some differences from one database to another, but differences are lot less than if one was writing stored procedures in database propritery language. Business logic can run on same server as database server then network time is reduced drastically. Middleware/ interprocess communication provides efficient ways to communicate from user interface to business logic and to distribure business logic into many processes/threads. Business logic can use JDBC to connection to databases if business logic language is Java. I have worked so many projects using such architecture and performance has never been an issue. For many software vendors it is more important to be able to support many databases without writing lot of database specific code than reducing performance times by taking advantage every proprietery feature of a database. |
#135
| |||
| |||
|
|
zigzag... (AT) yahoo (DOT) com> wrote in message news:1180257868.590456.84400 (AT) q69g2000hsb (DOT) googlegroups.com... Three tier architecture is "standard" as well as good architecture because it separates UI, Buisness Logic and database. UI only does UI, database only stores data and busines slogic does the rest. I've always been fascinated by the concept of business logic being totally divorced from data correctness. |
|
Either the data is a correct description of the state of the business, or it is not - which means the "business logic" is inherent in the data and enforced by the constraints on the data. |
|
You may choose to have as many layers of code as you like to transform the data from one valid state to another valid state; but if you rely on programs to maintain data correctness, you don't have a database, you have a bit-bucket. Three-tier is not an ideal to be aimed for, it is crutch to be used as sparingly as possible until the database technology is good enough to walk unaided. |
#136
| |||
| |||
|
#137
| |||
| |||
|
|
Regarding the PL/SQL class: just as an update for all of you concerned citizens out there: not enough people signed up to make the class. I could possibly teach it in the fall, so I will prepare for then. If the class does have enough in the fall, I would like to focus on: - making scripts to automate certain tasks - making packages with procedures/functions - making triggers - making methods using the OO features of Oracle (any other critical components?) Since it will be taught in a computer lab, I will be focused more on practical hands on type things than lecture. Thanks for your help every one. I will run some more ideas past you all later on. Also, has any one read this book: Oracle PL/SQL Best Practices Optimizing Oracle Code By Steven Feuerstein Is it good? Is it still relevant (it's a 2001 book)? |
#138
| |||
| |||
|
|
Regarding the PL/SQL class: just as an update for all of you concerned citizens out there: not enough people signed up to make the class. I could possibly teach it in the fall, so I will prepare for then. If the class does have enough in the fall, I would like to focus on: - making scripts to automate certain tasks - making packages with procedures/functions - making triggers - making methods using the OO features of Oracle (any other critical components?) Since it will be taught in a computer lab, I will be focused more on practical hands on type things than lecture. Thanks for your help every one. I will run some more ideas past you all later on. Also, has any one read this book: Oracle PL/SQL Best Practices Optimizing Oracle Code By Steven Feuerstein Is it good? Is it still relevant (it's a 2001 book)? |
#139
| |||
| |||
|
|
On May 30, 7:13 am, "www.douglassdavis.com" douglass_da... (AT) earthlink (DOT) net> wrote: Regarding the PL/SQL class: just as an update for all of you concerned citizens out there: not enough people signed up to make the class. I could possibly teach it in the fall, so I will prepare for then. If the class does have enough in the fall, I would like to focus on: - making scripts to automate certain tasks - making packages with procedures/functions - making triggers - making methods using the OO features of Oracle (any other critical components?) Since it will be taught in a computer lab, I will be focused more on practical hands on type things than lecture. Thanks for your help every one. I will run some more ideas past you all later on. Also, has any one read this book: Oracle PL/SQL Best Practices Optimizing Oracle Code By Steven Feuerstein Is it good? Is it still relevant (it's a 2001 book)? Search for "Do the Fast Thing" A very good Feuerstein presentation on Bulk Collect, FORALL and IN INDICES OF demo. Also new and improved PL/SQL datatypes. And make sure to get the 4th edition http://www.bookpool.com/sm/0596009771 |
#140
| ||||||
| ||||||
|
|
Regarding the PL/SQL class: just as an update for all of you concerned citizens out there: not enough people signed up to make the class. I could possibly teach it in the fall, so I will prepare for then. If the class does have enough in the fall, I would like to focus on: - making scripts to automate certain tasks |
|
- making packages with procedures/functions |
|
- making triggers |
|
- making methods using the OO features of Oracle (any other critical components?) |
|
Since it will be taught in a computer lab, I will be focused more on practical hands on type things than lecture. |
|
Thanks for your help every one. I will run some more ideas past you all later on. Also, has any one read this book: Oracle PL/SQL Best Practices Optimizing Oracle Code By Steven Feuerstein Is it good? Is it still relevant (it's a 2001 book)? |
![]() |
| Thread Tools | |
| Display Modes | |
| |