Re: OO is not that great: many repeated codes
- From: "topmind" <topmind@xxxxxxxxxxxxxxxx>
- Date: 25 Sep 2006 14:15:49 -0700
sjdevnull@xxxxxxxxx wrote:
topmind wrote:
Java is hardly a good role model here. Forcing everything to be a member of
a class is not the same thing as enabling elegant code.
It appears that you are agreeing with the original claim that sometimes
procedural is less code than OO. Java is "bad" because it forces every
function to be a member of a class (or object)
Objects and classes are different things.
It depends on the language and which definition of OO one is using.
Dynamic languages tend to make less distinction between classes and
objects. A "dynamic class" usually looks so much like an object that
one might as well make them an object to simplify the language rather
than support two almost-the-same things.
And yes, to many OO programmers Java is "bad" (or at least sub-optimal)
because it encourages everything to be part of a class; to a Smalltalk
or Python programmer, forcing everything to be in a class is very far
from what OO is about. There is a very large segment of "pure OO"
advocates who aren't big fans of the C++/Java-style class-oriented
verbosity.
A global function may not qualify as an object/class though. Sure, one
can shoehorn it into an object, but anything can be shoehorned with
enough pressure and screaming and/or fancy syntax shortcuts, such as
"default methods".
-T-
.
- Follow-Ups:
- Re: OO is not that great: many repeated codes
- From: Mike Austin
- Re: OO is not that great: many repeated codes
- From: Bruno Desthuilliers
- Re: OO is not that great: many repeated codes
- References:
- OO is not that great: many repeated codes
- From: Shawn
- Re: OO is not that great: many repeated codes
- From: Phlip
- Re: OO is not that great: many repeated codes
- From: topmind
- Re: OO is not that great: many repeated codes
- From: sjdevnull@xxxxxxxxx
- OO is not that great: many repeated codes
- Prev by Date: Re: Polymorphism Downsides (was: what's the future of Object Oriented Programming)
- Next by Date: Re: Abstract public member variales?
- Previous by thread: Re: OO is not that great: many repeated codes
- Next by thread: Re: OO is not that great: many repeated codes
- Index(es):
Relevant Pages
|