If you're within an object and you're doing 2- and 3-deep lookups into $self, you're programming horribly. It's mean, but true.That doesn't sound as a "rule of thumb" to me, but a pretty rigid viewpoint. It's only after being remarked upon that you say something else:
I'm not advocating that all 2- and 3-level deep lookups are bad.You also write:
In my eyes, you need to prove that a 3-deep lookup is necessary, within an object.And in a next post, you write:
I'm not taking the position that it's a necessity or non-necessity.
For me, whenever I see ADT's, I automatically think of using objects and I would need reasons why they aren't necessary.That's fine if it's your own code. But don't go preaching that everyone should be doing so, especially not in a thread where it would not solve the discussed problem. But perhaps your problem is:
I only skimmed the original postHaving good coding and design styles is good. But before you go preaching, open your mind for the alternatives; don't use dogma's but give reasons. And realize that what you find complex enough to wrap inside a method can be trivial for others. Also, keep in mind that while you easily grab to objects, others see Perl's OO system as being far from perfect.
There Is More Than One Way To Do It.
Abigail. (This will be my last post in this thread).
In reply to Re: Help with ADT
by Abigail-II
in thread Help with ADT
by dimmesdale
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |