Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)
- From: Robert Martin <unclebob@xxxxxxxxxxxxxxxx>
- Date: Wed, 31 May 2006 14:35:44 -0500
On 2006-05-31 08:10:16 -0500, frebe73@xxxxxxxxx said:
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.
If by "First order functions" you mean "blocks" or "Closures" then I'll happily agree with you. Anonymous inner classes are a poor substitute. If, on the other hand, you are just referring to regular global functions, then you are incorrect. One can very simple create them in Java by making them a static method of a class named Global.
As for function pointers, that's what OO is really all about. OO is a formalism that gives you function pointer capability without the "danger". Anything you can do with a function pointer in C, I can do with polymorphism in Java.
--
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 |
.
- References:
- Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)
- From: bruno at modulix
- Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)
- From: frebe73
- Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)
- From: Robert Martin
- Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)
- From: frebe73
- Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)
- Prev by Date: Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)
- Next by Date: Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)
- Previous by thread: Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)
- Next by thread: Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)
- Index(es):
Relevant Pages
|