Re: Decouple SQL queries from class in OOP design



On 9 Nov 2005 21:59:18 -0800, "topmind" <topmind@xxxxxxxxxxxxxxxx>
wrote:

>SQL in code is not evil[1].

Agreed. SQL is not evil. But combining it with business rules is
inadvisable.

-----
Robert C. Martin (Uncle Bob) | email: unclebob@xxxxxxxxxxxxxxxx
Object Mentor Inc. | blog: www.butunclebob.com
The Agile Transition Experts | web: www.objectmentor.com
800-338-6716


"The aim of science is not to open the door to infinite wisdom,
but to set a limit to infinite error."
-- Bertolt Brecht, Life of Galileo
.



Relevant Pages

  • Re: dip Notions 2 Major Errors
    ... >> domain objects that are persisted via XML or SQL based on a configuration ... >> infrastructure to isolate the data access. ... "The aim of science is not to open the door to infinite wisdom, ...
    (comp.object)
  • Re: Generating SQL
    ... happens that SQL is the lingua franca of such RDBMS - I don't ask why, ... > builds strings in another language for some other compiler to parse? ... > "The aim of science is not to open the door to infinite wisdom, ...
    (comp.object)
  • Re: Database type independence
    ... >> made a persistence layer that's independent of SQL, ... >But making a persitance layer independaent of SQL will cause you a lot ... >of extra work. ... "The aim of science is not to open the door to infinite wisdom, ...
    (comp.object)
  • Re: Application, database and schema?
    ... I push it down into utility classes on the fringe. ... RDBs and SQL. ... "The aim of science is not to open the door to infinite wisdom, ...
    (comp.object)
  • Re: should developers write technical requirements?
    ... Robert C. Martin (Uncle Bob) | email: ... "The aim of science is not to open the door to infinite wisdom, ...
    (comp.object)