| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: What databases have taught me
On 2006-06-28 23:45:52 -0500, frebe73_at_gmail.com said:
>> 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.
Yes, the addition of the new attribute can cause multiple modules to change; but they all change for different reasons. For example, the first release might add new business rules around the phone number, but not necessarily change the existing report. The new reports could come in a subsequent release.
The changes to both modules may need to be done at the same time, but the structure of the software does not demand that they both change at the same time.
-- Robert C. Martin (Uncle Bob) | email: unclebob_at_objectmentor.com Object Mentor Inc. | blog: www.butunclebob.com The Agile Transition Experts | web: www.objectmentor.com 800-338-6716 |Received on Fri Jun 30 2006 - 20:13:51 CDT
![]() |
![]() |