Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: What databases have taught me

Re: What databases have taught me

From: <frebe73_at_gmail.com>
Date: 28 Jun 2006 21:45:52 -0700
Message-ID: <1151556351.963613.206280@x69g2000cwx.googlegroups.com>


> It's called "The Single Resonsibility Principle" (SRP). This
> principle says that a software module should have one, and only one
> reason to change. For example, a module that contains business rules
> should not also contain report formatting. Business rules and report
> formatting change for completely different reasons, and should
> therefore be isolated in completely different modules.

Ok, lets say we want to add a module formatting the report and one module doing the "business logic". The formatting module should only change if you need to change the format, right? The business module should only change if you need to change the business logic, right?

Now we want to add a new atttribute, telephoneno. This new attribute should also be printed in the report. Doesn't this change in business logic also force the format module to change? The format module may change by other reasons than formatting reasons.

Fredrik Bertilsson
http://frebe.php0h.com Received on Wed Jun 28 2006 - 23:45:52 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US