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: problems with CGI.pm upload feature

2005-09-17 Thread Wiggins d'Anconia
Bill Stephenson wrote: > On Sep 16, 2005, at 7:51 PM, Scott R. Godin wrote: > >> Wiggins d'Anconia wrote: >> >>> Scott R. Godin wrote: >>> script is at http://phpfi.com/78748 I followed the instructions in CGI.pm as best I could, and from what I read the upload() function is su

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: problems with CGI.pm upload feature

2005-09-17 Thread Bill Stephenson
On Sep 16, 2005, at 7:51 PM, Scott R. Godin wrote: Wiggins d'Anconia wrote: Scott R. Godin wrote: script is at http://phpfi.com/78748 I followed the instructions in CGI.pm as best I could, and from what I read the upload() function is supposed to return a filehandle ? (it doesn't say whethe

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: > 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
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 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 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: problems with CGI.pm upload feature

2005-09-17 Thread Scott R. Godin
Wiggins d'Anconia wrote: Scott R. Godin wrote: script is at http://phpfi.com/78748 I followed the instructions in CGI.pm as best I could, and from what I read the upload() function is supposed to return a filehandle ? (it doesn't say whether this is a direct FH to the tempfile or not) I had d

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]