Re: [PHP] Function size

2012-05-29 Thread Robert Cummings
On 12-05-29 07:17 AM, Stuart Dallas wrote: > I wasn't going to respond to this thread because I think it's a largely > ridiculous topic, but some of the responses have scared me. Sir Cummings > (hopefully) sarcastic response about using a 5px font size demonstrated > how daft it is to base funct

Re: [PHP] Re: Function size

2012-05-29 Thread Matijn Woudt
On Tue, May 29, 2012 at 11:06 PM, Paul M Foster wrote: > OMG in alpha order?! At best, I might group them together by function > type, with some comment notation in the file. But not alpha order. I > prefer not to have "forward declares" in my files, so I generally > arrange functions so that thos

Re: [PHP] Function size

2012-05-29 Thread Paul M Foster
On Tue, May 29, 2012 at 11:56:47AM -0400, Tedd Sperling wrote: > On May 29, 2012, at 10:20 AM, Stuart Dallas wrote: > > > -snip- Besides, truth is subjective, but then so is everything, > > including that assertion. > > > > -Stuart > > You reply was longer than my monitor was high so I can't gi

Re: [PHP] Re: Function size

2012-05-29 Thread Ashley Sheridan
On Tue, 2012-05-29 at 17:06 -0400, Paul M Foster wrote: > On Tue, May 29, 2012 at 08:52:46AM +0100, Tony Marston wrote: > > > On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: > > > A rule of thumb is no more than 50 lines per > > > function, most much less. Back in the day when we didn'

Re: [PHP] Function size

2012-05-29 Thread Tedd Sperling
On May 29, 2012, at 5:06 PM, Paul M Foster wrote: > > I think a lot of coders try to be kewler than the next 18 guys who are > gonna have to look at the code, so they use a lot of "compression" > techniques to reduce LOC. That's not kewl to me. > Plus, they're lazy. I'd rather see everything > w

Re: [PHP] Re: Function size

2012-05-29 Thread Paul M Foster
On Tue, May 29, 2012 at 08:52:46AM +0100, Tony Marston wrote: > On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: > > A rule of thumb is no more than 50 lines per > > function, most much less. Back in the day when we didn't have nifty > > gui screens and an 24 line terminals (yay green on

Re: [PHP] Function size

2012-05-29 Thread Matijn Woudt
> The art of software development is in taking a problem, breaking it up in to > bite-size chunks, and putting those chunks together to form a practical > solution. Anyone who considers themselves a "better" programmer because their > functions are large due to their ability to handle large func

Re: [PHP] Too many arrays! My head is exploding!

2012-05-29 Thread Tedd Sperling
On May 29, 2012, at 11:41 AM, Adam Richardson wrote: > On Tue, May 29, 2012 at 10:55 AM, Tedd Sperling wrote: >> On 29 May 2012 18:15, Gary wrote: >> >>> Okay, let's assume I have three "things", A, B, and C. I need to produce >>> an array with a list of all possible combinations of them, howeve

Re: [PHP] Function size

2012-05-29 Thread Tedd Sperling
On May 29, 2012, at 10:20 AM, Stuart Dallas wrote: > -snip- > Besides, truth is subjective, but then so is everything, including that > assertion. > > -Stuart You reply was longer than my monitor was high so I can't give an immediate reply -- I have to scroll. :-) However, with that said, you

Re: [PHP] Too many arrays! My head is exploding!

2012-05-29 Thread Adam Richardson
On Tue, May 29, 2012 at 10:55 AM, Tedd Sperling wrote: > On 29 May 2012 18:15, Gary wrote: > >> Okay, let's assume I have three "things", A, B, and C. I need to produce >> an array with a list of all possible combinations of them, however many >> there might be in those combinations: e.g. A, B, C

Re: [PHP] Too many arrays! My head is exploding!

2012-05-29 Thread Tedd Sperling
On 29 May 2012 18:15, Gary wrote: > Okay, let's assume I have three "things", A, B, and C. I need to produce > an array with a list of all possible combinations of them, however many > there might be in those combinations: e.g. A, B, C, D, AB, AC, AD, BC, > ABC (not sure if I've missed any!). Nor

Re: [PHP] Function size

2012-05-29 Thread Stuart Dallas
On 29 May 2012, at 14:38, Tedd Sperling wrote: > On May 29, 2012, at 7:17 AM, Stuart Dallas wrote: >> >> It's a theory, yes, and for many people it may be valid, but it's not for >> me. The resolution of your screen; the size of your font; the colour scheme >> you use. These should not be a fac

Re: [PHP] Too many arrays! My head is exploding!

2012-05-29 Thread Florian Lemaitre
Le 29/05/2012 14:45, Gary a écrit : Okay, let's assume I have three "things", A, B, and C. I need to produce an array with a list of all possible combinations of them, however many there might be in those combinations: e.g. A, B, C, D, AB, AC, AD, BC, ABC (not sure if I've missed any!). Normally

Re: [PHP] Too many arrays! My head is exploding!

2012-05-29 Thread Vikash Kumar
On 29 May 2012 18:15, Gary wrote: > Okay, let's assume I have three "things", A, B, and C. I need to produce > an array with a list of all possible combinations of them, however many > there might be in those combinations: e.g. A, B, C, D, AB, AC, AD, BC, > ABC (not sure if I've missed any!). Nor

Re: [PHP] Function size

2012-05-29 Thread Stuart Dallas
On 23 May 2012, at 15:14, Tedd Sperling wrote: > Hi gang: > > On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: >> A rule of thumb is no more than 50 lines per >> function, most much less. Back in the day when we didn't have nifty >> gui screens and an 24 line terminals (yay green on blac

[PHP] Re: Function size

2012-05-29 Thread Tony Marston
On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: > A rule of thumb is no more than 50 lines per > function, most much less. Back in the day when we didn't have nifty > gui screens and an 24 line terminals (yay green on black!), if a > function exceeded one printed page, it was deemed too