[Koha-devel] warnings (was: [Koha-patches] [PATCH] kohabug 2345: bad comparisons pervade reports)

Rick Welykochy rick at praxis.com.au
Fri Aug 1 04:56:07 CEST 2008


Andrew Moore wrote:

> On Thu, Jul 31, 2008 at 8:06 AM, Galen Charlton
> <galen.charlton at liblime.com> wrote:
>> Now imagine what would happen if we (as we should) turn on warnings in
>> Koha.  I'll make a proper 3.2 RFC for it shortly, but IMO we really
>> need to start putting in 'use warnings' in a all scripts.  Many bugs
>> have already been fixed that were based on undef scalars that should
>> have had a value, and many more undoubtedly lurk.
> 
> Hi Galen -
> 
> I'm looking forward to that RFC and hearing any resulting discussion.
> At the risk of opening up the discussion too early, I'll say that I'm
> glad to hear that I'm not the only one with that opinion on 'use
> warnings' (and 'use strict'!).

Enterprise perl (LAMP) apps I have worked on demand the following:

- "use strict" in every module and script

- "use warnings" in every module and script

- during testing: monitor error log(s); there must be ZERO entries written by the app to the log
   and no debug information when going into production

cheers
rickw


-- 
________________________________________________________________
Rick Welykochy || Praxis Services || Internet Driving Instructor

When the power of love overcomes the love of power,
the world will know peace.
      -- Jimi Hendrix



More information about the Koha-devel mailing list