How big is too big?

2005-09-17 Thread Bill Stephenson
How many lines of code does it take in a single CGI script to be considered too big? -- Bill Stephenson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How big is too big?

2005-09-17 Thread Chris Devers
On Sat, 17 Sep 2005, Bill Stephenson wrote: > How many lines of code does it take in a single CGI script to be > considered too big? When it gets to the point that you find it hard to maintain that way. This threshold will be different for different people. When to start breaking things into s

Re: How big is too big?

2005-09-17 Thread Randal L. Schwartz
> "Bill" == Bill Stephenson <[EMAIL PROTECTED]> writes: Bill> How many lines of code does it take in a single CGI script to be Bill> considered too big? There are days when I wanna answer that as "3". :) ... time passes ... And I was just going to leave that as a joke answer, but on serious

Re: How big is too big?

2005-09-17 Thread Tony Frasketi
And I was just going to leave that as a joke answer, but on serious reflection, your CGI "scripts" should be nothing more than configuration and method calls against a testable module. It's hard to test a script, but easy to test a module. Maybe that's why I like frameworks such as Catalyst an

Re: How big is too big?

2005-09-17 Thread Ovid
--- Tony Frasketi <[EMAIL PROTECTED]> wrote: > I'm a newbee... Could you plase explain why it is easier to test a > module out than a CGI script and are you refering to modules you > yourself have created or modules other have created. When you get used to automated testing, you find that modul

Re: How big is too big?

2005-09-17 Thread Tony Frasketi
As you can see, but putting things into packages, we can make nicely encapsulated functions or methods. By depending only on what they accept and not having side-effects, it's very easy to write tests for them. As a result, when you're testing some other code that accidentally passes in a DBI

Re: How big is too big?

2005-09-17 Thread Ovid
--- Tony Frasketi <[EMAIL PROTECTED]> wrote: > Thank a lot Ovid Your explanation enlightened me to the existance > of the variousTest modules... You're quite welcome. > Test::Unit is an > interesting XUnit-style testing library. I wouldn't use tha

Re: How big is too big?

2005-09-17 Thread Tony Frasketi
Ovid wrote: --- Tony Frasketi <[EMAIL PROTECTED]> wrote: Thank a lot Ovid Your explanation enlightened me to the existance of the variousTest modules... You're quite welcome. Test::Unit is an interesting XUnit-style testing libra

Re: How big is too big?

2005-09-18 Thread Bill Stephenson
On Sep 17, 2005, at 8:29 AM, Randal L. Schwartz wrote: There are days when I wanna answer that as "3". :) That's exactly how I felt when I asked this. :) ... time passes ... And my script keeps getting bigger... And I was just going to leave that as a joke answer, but on serious reflec