I'm not taking the position that it's a necessity or non-necessity. I'm saying that, as a rule of thumb, using objects where they make sense will make your life easier.
For me, whenever I see ADT's, I automatically think of using objects and I would need reasons why they aren't necessary. I'm not saying that EVERY ADT should be an object. Far from it!
But, I would say that the case is not whether to use objects, but whether not to use objects.
As for n-deep lookups - whenever I see a lookup that's 2 or 3 deep, especially when mixing hashes and arrays, that is a signal to me that something can be abstracted out.
It's the same case, actually. I automatically think of abstracting something out and would need reasons not to. I don't pendantically abstract everything out. I just feel that there would need to be
a reason not to abstract vs. a reason to abstract.
Plus, I"m a little confused as to the tone you're taking with this whole dialogue. I may have been a little curt and know-it-all initially, but I apologized
for that and have been attempting to clarify my initial position. I feel, and this is not meant to be a flame, that you have been deliberately obtuse towards me. Now,
I appreciate the sustained and very direct questioning you've given me, as it's forced me to clarify for myself my position(s) on this matter.
But, I feel I have made a number of good points regarding rules of thumb derived over years of experience. Yet, you haven't acknowledged them at all. Is there
something I'm missing that you haven't made clear to me that would let me know where I'm stepping wrong with you?
------ We are the carpenters and bricklayers of the Information Age. Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement. | [reply] |
| [reply] |
In the mean while, I'll make a patch to remove all looping constructs from Perl. In more than a dozen years, no one has proved those are necessary. (We do have goto after all).
Don't forget recursion :)
Speaking of that, do you happen to know if perl does a tail-end recursion method kind of like Scheme (which interestingly enough doesn't have looping constructs :)
| [reply] |