Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

thinking...

by archen (Pilgrim)
on Sep 14, 2001 at 01:45 UTC ( [id://112313]=note: print w/replies, xml ) Need Help??


in reply to Why perl is more OO than C++ or Java...

Object orientation is way more than implementation. OO programing is sort of a philosophy of doing things. Probably the two languages which best embody OO programming are Java (of course) and Small Talk. I've also found that to be the weakness of these languages. Despite what many people say, not everything has a wonderful OO solution. Many problems are very strait foreward, but a language such as Java will force you to take the object oriented approach. The strength of C++ (and Perl I guess) is that it lets you choose what you want to do, whenever you feel it is appropriate. When the next big craze in programming overtakes Object Orentation, I wonder where Java will sit? C++ will obviously be able to adapt to just about anything, and more than likely Perl will too.

Replies are listed 'Best First'.
Re: thinking...
by Nitsuj (Hermit) on Sep 14, 2001 at 14:53 UTC
    True enough on the C++, however, this is actually viewed as a design flaw by many, as it creates ambiguity in the language and other problems.

    A lot of people never really think about this, as it's easy enough to pick implementations that makes sense... but have you ever seen code that one minute tries to use cout, or cerr, and the next min fprintfs to stout n stderr? That's solvable enough, but what about creating an object from a c header with a function that exit(1)'s, which is obviously inappropriate, and now should be handled differently... or when people mix using C code and methodology with C++. Everbody's been stuck debugging code at some point in their life that somehow has a linked list of objects in it (the linked list being started with *my_list, the objects being improperly instantiated somewhere, and you with a debugger and a big pot of coffee.

    This of course is not to detract from the merits of C++

    Just Another Perl Backpacker
Re: thinking...
by charnos (Friar) on Sep 18, 2001 at 21:47 UTC
    You seem to be using C++ synonymously with C, when I think it is quite case sensitive here. C++ was the C community's answer to Object Orientation. Your node suggests that some other paradigm will eventually overtake Object Orientation, which is true enough, but the result will be a different C variant, it would seem silly (at least to me) to tack on another backwardly compatible paradigm to C (C+=2?).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://112313]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-29 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found