in reply to Re^3: array of arrays
in thread array of arrays

Marshall,
Please do read cargo cult then as it will be enlightening. In a nutshell, it means blindly following a ritual in the belief it will lead to the desired results. By telling someone who is presumably very new to perl that they should be using a HoA instead of an AoA because it is the more perlish way to do things without explaining why, could and has, resulted in someone always using a HoA even in situations when an AoA is better.

I don't disagree with your position on the power of perl or how it is often misused or underutilized. My issue was that you didn't bother to explain yourself or even make your advice conditional upon stated assumptions. This can lead down the path of cargo culting.

My opinion isn't shared by everyone and there are a number of good counter points. For more, see Breaking The Rules and Breaking The Rules II.

Cheers - L~R

Replies are listed 'Best First'.
Re^5: array of arrays
by Marshall (Canon) on Jun 29, 2009 at 15:14 UTC
    I'm not an English major, but when I started with: "It sounds to me like you need a different data structure, a HoA (Hash of Array)", I reckon, "It sounds to me" implies some amount of uncertainty.

    I don't see a problem here. You are actually paying me a compliment by telling me that what I say does matter! I will strive to be better, but as a practical matter not every post (if any!) I write will ever be "perfect". I am not perfect, but I do try to be helpful in a constructive way.

    Software is devilishly tricky because there are "the heuristics" and then the exceptions to the "rule". Its a situation where in order to "break the rules", you have to know what the "rules are" and why they make sense, which I think goes to your point.