Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)

From: Bruno Desthuilliers <bdesth.quelquechose_at_free.quelquepart.fr>
Date: Thu, 01 Jun 2006 03:02:17 +0200
Message-ID: <447e0d1a$0$30323$626a54ce_at_news.free.fr>


Marshall a écrit :
> Joe Van Dyk wrote:
>

>>frebe73_at_gmail.com wrote:
>>>
>>>But there are many (enterprise) applications there OOAD is not
>>>suitable. Some OO languages (such as java) has disadvantages because
>>>they don't allow first-order functions and function pointers.
>>
>>I don't know Java, but if your statement about Java disadvantages is
>>true, that's a problem with Java -- not with OO.

>
> It is simple, if not particularly convenient, to use what are
> essentially
> first-order functions and function pointers in Java. However,
> the fact that you have to fake it illustrates why OOP is merely
> a useful point of view that works a lot of the time, as opposed
> to a true foundationally complete approach to programming.

[Quoted] Have mercy, stop confusing Java with OO. I do OO everyday, and could not live without HOFs.

> Don't get me wrong; I really like OOP and it's what I use
> when I need to program. But don't mistake its usefulness
> for profundity. OOP has some deep problems, and some
> of its features, like encapsulation and inheritance, will be
> sloughed off when better techinques become widely available.

[Quoted] Dynamic typing + real support for automatic (yet controlable) delegation, and you don't need inheritance no more (still can use it - as an implementation detail - when it's convenient).

[Quoted] wrt/ encapsulation, I'm afraid you're confusing it with data-hiding, which is not a necessary pain if you have support for computed attributes.

What about ditching Java in favor of an OO language ?-) Received on Thu Jun 01 2006 - 03:02:17 CEST

Original text of this message