[nflug] PHP (switch vs. nested if)

Franklin Kumro Jr fkumro at gmail.com
Thu Feb 21 15:46:37 EST 2008


"Someone once told me, size doesn't matter... She must've been an  
experienced programmer too."

Blanket statements don't work well with software engineering...

Specific implementation always plays a role, so saying size doesn't  
matter is incorrect...

-Frank

On Feb 21, 2008, at 3:31 PM, Roelant Ossewaarde wrote:

>
> On Feb 21, 2008, at 3:08 PM, Rob Dege wrote:
>
>>
>> nah, this won't work, since the arrays I'm referencing are already  
>> two-dimensional arrays.  I mean I could create one large 2-dim  
>> array, and pass that to each page every single time, but that would  
>> take up more memory than it would need to.
>>
>> Each 2-dim array has at least 5 entries.  So that would be over 400  
>> entries in on big array.  Seems bloated to load that big of an  
>> array when I only need 5 entries from it.
>
> Not at all. Really, trust memory management to your compiler and  
> interpreter, they're better at it. A 400-entry array is not  
> necessarily slower to access than a 10-entry array. I have only one  
> pair of keys, and I lose it all the time; however, I have many,  
> many, books, and I don't lose track of them at all, because they are  
> well organized.
>
> Someone once told me, size doesn't matter... She must've been an  
> experienced programmer too.
>
> _______________________________________________
> nflug mailing list
> nflug at nflug.org
> http://www.nflug.org/mailman/listinfo/nflug



More information about the nflug mailing list