Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^3: A different OO approach

by Aristotle (Chancellor)
on Dec 15, 2002 at 13:31 UTC ( #219992=note: print w/replies, xml ) Need Help??

in reply to Re: Re: A different OO approach
in thread A different OO approach

If you can make everyone adhere to your concept then it will indeed work. But that's not a whole lot different from saying that if everyone puts their data in a hash, prepends their attributes with their package name, and uses accessors only, we avoid all the problems.

But you don't know if everyone does.

With inside out objects, you don't have to care what your superclass does. It can be implemented in any way. Inside out objects always work.

Your approach is nice in theory, but violates the principle that classes inheriting from each other should not - and should not have to - know anything about their base class other than the public interface.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re^3: A different OO approach
by fruiture (Curate) on Dec 15, 2002 at 15:39 UTC

    That's exactly what i meant: You cannot subclass something unknown without using an inside-out object.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://219992]
[Cosmic37]: how big was @stuff corenth?
[Cosmic37]: Fast Artificial Neural Network (FANN) is cross-platform open source programming library for developing multilayer feedforward Artificial Neural Networks
[corenth]: @stuff was pretty big. I think it grew to about 8000.
[corenth]: each element was several three + element references
[corenth]: That FANN thing sounds like something I
[Cosmic37]: When I say I like LGPL what I mean is that I like the GPL aspect. I am a fan of Rishard Stallman and the Free Software Foundation but I wish I could be more virtuous... self-flagellates
[corenth]: . . . I'd like to play with
[corenth]: I'm a pragmatic free-software advocate. I'll play in a walled sandbox when I need to.
[erix]: hm, there's a FANN perl module - looks a bit old

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2018-02-20 18:23 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (274 votes). Check out past polls.