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
- Subject: [Discuss] php dev's code with warnings and notices
- From: abreauj at gmail.com (John Abreau)
- Date: Sat, 26 Jul 2014 19:52:40 -0400
- In-reply-to: <53D42F97.7010703@horne.net>
- References: <53D423F3.6060301@gmail.com> <53D42F97.7010703@horne.net>
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
- References:
- [Discuss] php dev's code with warnings and notices
- From: eric.chadbourne at gmail.com (Eric Chadbourne)
- [Discuss] php dev's code with warnings and notices
- From: bill at horne.net (Bill Horne)
- [Discuss] php dev's code with warnings and notices
- Prev by Date: [Discuss] php dev's code with warnings and notices
- Next by Date: [Discuss] php dev's code with warnings and notices
- Previous by thread: [Discuss] php dev's code with warnings and notices
- Next by thread: [Discuss] php dev's code with warnings and notices
- Index(es):