Re: Decouple SQL queries from class in OOP design



>>Robert C. Martin wrote:
>
>>> A huge amount of effort goes into mapping business data into
>>> presentation formats. This mapping is not a business rule, per se;
>>> but is still complicated and important code that needs to be written.
>>> It should be separate from the business rules.
>>
>>The dividing line between such is rather blurry in practice.
>
> It often seems blurry. It is a goal of software design to sharpen the
> focus and discover the true separation between business rules and
> presentation rules.

.... AND....

>
> The point is that separations like this are a major objective of
> software design, and in particular of Object Oriented software design.
>

I agree with the the concept but the wording is too far reaching.

"A goal" of software design is to provide easily manintainable code
that scales well. "A technique" to do this, used by OO software
design, is to sharpen the distinction between business rules and
presentation rules.

Scottf3095@xxxxxxx
-------------------------------------------------
Panton in temperantia , comprehendo temperantia.
-unknown
-------------------------------------------------

.



Relevant Pages

  • Re: Decouple SQL queries from class in OOP design
    ... >>> It should be separate from the business rules. ... We need to separate them. ... > This mapping allows us to express the situation as two ordered pairs. ...
    (comp.object)
  • Re: Data driven people arguments
    ... The RDM provides a /generic/ way to store and access data that is independent of particular problem contexts (i.e., particular business rules). ... capture business rules and policies. ...
    (comp.object)
  • Re: Classes concepts
    ... > backend DB layer that receive an instance of the type and do the DBs ... in this way the business object don;t need to have knowledge ... but I am thinking of the business rules. ... B/L, to the DAL, without changing representations. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: null references
    ... the pointers are allowed to be null, while references must refer an existing variable of required type. ... It makes you write code that corresponds to the business rules, instead of writing code that relies on the business rules never changing. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Who owns, manages and is responsible for the data was Re: Cobols File System Vs. RDBMs...
    ... Generating an Access Audit record/row/segment is often a business ... merged with the competing FileAid product line). ... as a senior Internal Auditor asking what FileAid for IMS was. ... business rules. ...
    (comp.lang.cobol)

Loading