<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 19 Jun 2013 22:49:42 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Volker Dusch: Errors will be fixed. Warnings will be 'looked at']]></title>
      <guid>http://www.phpdeveloper.org/news/18554</guid>
      <link>http://www.phpdeveloper.org/news/18554</link>
      <description><![CDATA[<p>
In a new post to his site <i>Volker Dusch</i> shares his thoughts about <a href="http://edorian.posterous.com/errors-will-be-fixed-warnings-will-be-looked">warnings in coding style checks</a> (and how they differ from real errors).
</p>
<blockquote>
When it comes to coding standards there is one rule that always makes me cringe when I stumble upon it: "Lines SHOULD be less than 120 chars long. If not a warning will be issued." Let me try to make a point why I consider WARNINGS in coding guideline checks hurtful.
</blockquote>
<p>
He defines a warning first, so there's no confusion (something that should be done, but doesn't have to) and why he thinks there's not much of a place for them in the code guidelines. He suggests that, by having them, they take away time from the real issues, the errors. He notes that "should" rules on formatting shouldn't be added to your QA tools right away. Adding too many of these that spit out too many warnings (not errors) could just muddy the waters and make the developers more confused.
</p>]]></description>
      <pubDate>Thu, 04 Oct 2012 08:25:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Alexander Netkachev's Blog: PHP coding tip: Convert notices and warnings into Exceptions]]></title>
      <guid>http://www.phpdeveloper.org/news/6520</guid>
      <link>http://www.phpdeveloper.org/news/6520</link>
      <description><![CDATA[<p>
Exceptions and warnings can be tossed out from your code at some odd locations sometimes. There's a few options that you have when they jump out, including pushing them out to an error log or just ignoring them completely. <i>Alexander Netkachev</i> has a different solutions, though - handling them with something already built into PHP, <a href="http://www.alexatnet.com/Blog/Index/2006-10-18/php-coding-tip-convert-notices-and-warnings-into-exceptions">using exception reporting</a>.
</p>
<blockquote>
This coding tip demonstrates how to deal with PHP core notices and warning (aka recoverable errors) in the exception way, using try/catch statement.
</blockquote>
<p>
IT's a simple idea, but it can definitely help you keep all of you errors in one place. The sample code he gives shows both a basic idea of the solution and a bit more complex example, providing more detailed messages for different exception types.
</p>]]></description>
      <pubDate>Wed, 18 Oct 2006 07:19:54 -0500</pubDate>
    </item>
  </channel>
</rss>
