Re: OOP reminds me of outsourcing versus in-house hiring or partnering

From: Michael N. Christoff (mchristoff_at_sympatico.caREMOVETHIS)
Date: 01/26/04


Date: Mon, 26 Jan 2004 00:38:07 -0500


"Topmind" <topmind@technologist.com> wrote in message
news:4e705869.0401212244.72936915@posting.google.com...
> >
> > Object Oriented Programming (OOP) subsumes
> > Procedure Oriented Programming (POP).
> > It simply *emphasizes* organizationaround
> > [data] objects instead of algorithms.
>
> You only have this partly right. In practice, procedural
> shops tend to shift a lot of the design to database
> schemas and database approaches. OO tends to wrap
> data with behavior, while procedural shops tend to
> treat data and behavior as a separate thing[1].
>
> -T-
>
> [1] In my opinion this is a good thing because
> data is more flexible and can have its
> view be altered to suit your specific needs
> of the time more easily. By combining behavior
> and data, or wrapping data, OO tends to drag
> data down to the lower manipulative ability of
> code.
>
> In other words, modern procedural tends to
> let databases do what they do best, and code
> do what it does best, while OO tries to make
> everything be managed in code.
>
> oop.ismad.com

What do you think about Hibernate? It apparently gives one the best of both
worlds (OO and relational).

http://www.hibernate.org/

>From the site:

Powerful object-oriented query language
-----------------------------------------
Queries expressed in a familiar-looking SQL-like language
Table joins expressed as property paths
Support for SQL functions and operators
Support for SQL aggregate functions sum, avg, min, max, count
Support for left|right outer join, full join
Support for group by, having and order by
Support for subqueries (on databases with subselects)
Queries may return tuples of objects or scalar values (projection)
Support for returning arbitrary data objects via the select new construct
Dynamic fetch profiles using the fetch keyword

Full support for polymorphic queries
------------------------------------
Queries may specify any abstract superclass or interface; from
java.lang.Object will return all persistent objects, for example.

New Criteria queries
---------------------
Alternative object-oriented "query by criteria" API.
full support for association navigation
runtime fetch profiles (dynamic outer join fetching)
extensible Criterion framework
powerful query by Example API

Native SQL queries
--------------------
Queries may be expressed in the native SQL dialect of your database.

=========

l8r, Mike N. Christoff



Relevant Pages

  • Object or class does not support the set of events Error
    ... The error message "Object or class does not support the set ... of events" occurred in my database just after I received a "database ... The corruption error appeared right after I closed ... All my queries had detached themselves from my tables. ...
    (microsoft.public.access.forms)
  • Re: Strange database debug exeption error
    ... both Access and SQLserver (need support for both types of database). ... Earlier I used the BDE and had support for only Access. ... Can I use the same queries and code otherwise with OLEDB, ...
    (borland.public.delphi.database.ado)
  • Re: What so special about PostgreSQL and other RDBMS?
    ... That's exactly the link the licence agreement for the database points to when it ... comes to what wecan expect for paying support. ... > "Oracle may provide additional releases or versions of its programs ... If the requirements are volatile I'd do a long term contract detailing what ...
    (comp.lang.php)
  • Re: access 2003
    ... I would focus on the queries behind the combo boxes. ... the Access 97 database, I wouldn't have thought any expressions would be ... When you select a customer and a job in the two combo boxes, ...
    (microsoft.public.access.conversion)
  • Re: What so special about PostgreSQL and other RDBMS?
    ... > the porting to another database won't be significantly eased. ... not terribly significant and the abstraction can be kept very light ... >> If they where a credible provider of support and development for this ... >> services, exactly like Oracle does, but without trapping you into a ...
    (comp.lang.php)