Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: OO Pattern Container x Elements and Method Chaining (House, Person, Inhabitant)

by karlgoethebier (Abbot)
on Oct 09, 2021 at 12:10 UTC ( [id://11137388]=note: print w/replies, xml ) Need Help??


in reply to Re: OO Pattern Container x Elements and Method Chaining (House, Person, Inhabitant)
in thread OO Pattern Container x Elements and Method Chaining

«…the real model is even more complicated…»

Sure, yes as always in real life. But how does it really look? The «real model» I mean. It is just because I think sometimes oversimplification isn’t such a good idea. Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

  • Comment on Re^2: OO Pattern Container x Elements and Method Chaining (House, Person, Inhabitant)

Replies are listed 'Best First'.
Re^3: OO Pattern Container x Elements and Method Chaining (House, Person, Inhabitant)
by LanX (Saint) on Oct 09, 2021 at 12:17 UTC
    Too complicated!

    (The Container holds Hierarchies and so called Attributes. A Hierarchy is a multi-tree of Elements. Elements and Attributes form a matrix (table) of Values.)

    > oversimplification isn’t such a good idea.

    SSCCE are

    But the problem I described is generic and isn't inherent to above model.

      Method Chaining with member objects becomes troublesome if the model evolves and member objects start to belong to multiple containers.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

      «Too complicated!»

      Ja, ja. Programming on a mobile device is hard 🤪. BTW (and for further inspiration) you might take a look at Tree::MultiNode. Probably totally unrelated. But who knows. Regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

        > you might take a look at Tree::MultiNode

        looked!

        > Probably totally unrelated.

        yep.

        Thanks, implementing Multitrees is not the issue here.

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-25 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found