Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month, online, via Jitsi Meet.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] php dev's code with warnings and notices



I've had too many experiences where some sloppy coder was flooding the logs
with pointless warnings to the point that the logs were useless for
diagnosing actual problems. The clues I needed in order to diagnose a real
problem were lost in all the noise.

Sloppy coding has a high maintenance cost, and my opinion is that sloppy
coders should be held accountable for those costs.






On Sat, Jul 26, 2014 at 6:45 PM, Bill Horne <bill at horne.net> wrote:

> On 7/26/2014 5:56 PM, Eric Chadbourne wrote:
>
>> Hi All,
>>
>> I've recently been asked to work with a team of PHP developers on a
>> pretty large and complex project.  The code they have submitted works, but
>> it has a bunch of warnings and notices in the logs.  I personally think
>> this is sloppy coding.  My question is, how strong a stand should I take on
>> this issue?  I have the senior role but I am also the "new guy".  I feel
>> that code should have no warnings or notices.  But maybe this is not the
>> norm?  Maybe there exists situations where it can't be avoided that I don't
>> realize.  What do you think?
>>
>> Thanks,
>>
>
> I recommend you tell the coders that all warnings will be looked at
> carefully, and that you'll keep track of whose code produced them. When you
> put your team on notice that warning messages are not something they can
> ignore, you'll see far fewer of them.
>
> Notices, OTOH, might be insignificant. Look them up and decide
> case-by-case.
>
> Bill
>
> --
> E. William Horne
> William Warren Consulting
> 339-364-8487
>
>
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://lists.blu.org/mailman/listinfo/discuss
>



-- 
John Abreau / Executive Director, Boston Linux & Unix
Email: abreauj at gmail.com / WWW http://www.abreau.net / PGP-Key-ID 0x920063C6
PGP-Key-Fingerprint A5AD 6BE1 FEFE 8E4F 5C23  C2D0 E885 E17C 9200 63C6



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org