<?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>Tue, 07 Oct 2008 02:48:29 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[CodeUtopia.net: Is PHP a good first language?]]></title>
      <guid>http://www.phpdeveloper.org/news/10090</guid>
      <link>http://www.phpdeveloper.org/news/10090</link>
      <description><![CDATA[<p>
The CodeUtopia blog <a href="http://codeutopia.net/blog/2008/05/01/is-php-a-good-first-language/">asks the online community</a> for their opinion - what do you think of PHP as a first language?
</p>
<blockquote>
Sometimes I've seen people say PHP is a bad first language, because it teaches bad programming habits. But is this actually true at all? Often those who say that don't really like PHP themselves either, many times because of equally untrue reasons.
</blockquote>
<p>
They <a href="http://codeutopia.net/blog/2008/05/01/is-php-a-good-first-language/">argue</a> both sides of the situation, mentioning what could make for a good first language, why PHP is a "nearly perfect" fit for it and some arguing points for the other side as to why PHP isn't the best option.
</p>]]></description>
      <pubDate>Thu, 01 May 2008 13:39:53 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rails for PHP Developers: Three New Articles Posted (Scope, Variables & RegEx)]]></title>
      <guid>http://www.phpdeveloper.org/news/9659</guid>
      <link>http://www.phpdeveloper.org/news/9659</link>
      <description><![CDATA[<p>
<i>Mike Naberezny</i> has posted a few more articles to the "Rails for PHP Developers" website (based on <a href="http://www.pragprog.com/titles/ndphpr">this book</a>) covering some more of the basics.
</p>
<p>There's three new tutorials posted:</p>
<ul>
<li><a href="http://railsforphp.com/2008/02/18/ruby-block-scope/">Ruby Block Scope</a> - the basics of Ruby block scope, a common point of confusion for PHP developers new to Ruby. 
<li><a href="http://railsforphp.com/2008/02/13/variable-arguments/">Variable Arguments</a> - an article that shows two common API patterns found in Rails, variable arguments and option hashes, and how to implement them both in PHP. 
<li><a href="http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/">Regular Expressions in Ruby</a> - a useful reference that maps all of the common PHP regular expression functions to the equivalents in Ruby. 
</ul>
<p>
Check out the <a href="http://railsforphp.com/">rest of the site</a> for even more great content.
</p>]]></description>
      <pubDate>Tue, 19 Feb 2008 08:44:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Jeff Moore's Blog: Improved Error Messages in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/8800</guid>
      <link>http://www.phpdeveloper.org/news/8800</link>
      <description><![CDATA[<p>
<i>Jeff Moore</i> <a href="http://www.procata.com/blog/archives/2007/10/07/improved-error-messages-in-php-5/">mentions</a> a "sweet improvement" he noticed when comparing the error message from a PHP4 script to a PHP5 one - the location reported for error mesages.
</p>
<blockquote>
Sometimes its the little things that make a difference.
</blockquote>
<p>
His sample script (a function call without the argument needed) errors on the location of the function definition in PHP4, but happily PHP5 recognized the problem for what it's worth and echoed out the location of the call to that function instead for the line number.
</p>
<blockquote>
One more reason to ditch PHP 4 and go php 5.
</blockquote>]]></description>
      <pubDate>Mon, 08 Oct 2007 10:29:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stefan Mischook's Blog: PHP Video Tutorial: Functions]]></title>
      <guid>http://www.phpdeveloper.org/news/8784</guid>
      <link>http://www.phpdeveloper.org/news/8784</link>
      <description><![CDATA[<p>
<i>Stefan Mischook</i> has posted <a href="http://www.killerphp.com/articles/php-video-tutorial-functions/">the latest</a> video tutorials in his introduction to PHP series today - this time they look at the creation of and working with functions in your applications.
</p>
<blockquote>
I just released the first 3 videos on PHP functions that covers some of the basics on this fundamental construct in PHP. In these videos I cover things like: what exactly are functions, what are a functions 'arguments' and why do functions 'return' things.
</blockquote>
<p>
There's three videos in this set - <a href="http://www.killerphp.com/videos/12_functions/functions-part1.php">part 1</a>, <a href="http://www.killerphp.com/videos/12_functions/functions-part2.php">part 2</a> and <a href="http://www.killerphp.com/videos/12_functions/functions-part3.php">part 3</a>. If you're new to PHP and want to get a good, solid base in functions and what they're for, be sure to check these videos out.
</p>]]></description>
      <pubDate>Thu, 04 Oct 2007 08:43:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPit.net: Using globals in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/5705</guid>
      <link>http://www.phpdeveloper.org/news/5705</link>
      <description><![CDATA[<p>
In <a href="http://www.phpit.net/article/using-globals-php/">this new tutorial</a> from PHPit.net today, <i>Dennis Pallett</i> talks about using globals in PHP, desscribing what they are and how to use them.
</p>
<blockquote>
Whenever you're developing a new large-scale PHP script, you're bound to use global variables, since some data needs to be used by multiple parts of your script. Good examples of global data are script settings, database connections, user credentials and more. There are many ways of making this data global, but the most commonly used way is to use the global keyword, which we will explore later on in this article.
</blockquote>
<p>
It's good that he mentions <a href="http://www.phpit.net/article/using-globals-php/">right from the start</a> that most global data is a bad idea, and can really start to clutter up an application. He does help the reader prevent this, though, through the use of a few handy techniques (and design patterns).
</p>
<p>
He looks first at the "global" keyword and its use, followed by three reasons that it's not all that favorable to use. He gives other options for the "just make it global" thinking, including passing the values in function calls, passing by reference, and using the Singleton and Registry patterns to contain things a bit more. He even includes a wrapper for the registry to handle the only other globals left - the superglobals - with the same registry functionality.
</p>]]></description>
      <pubDate>Tue, 27 Jun 2006 14:53:34 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Marcus Whitney's Blog: The PHP Argument]]></title>
      <guid>http://www.phpdeveloper.org/news/4879</guid>
      <link>http://www.phpdeveloper.org/news/4879</link>
      <description><![CDATA[<i>Marcus Whitney</i> has chimed in on <a href="http://www.tbray.org/ongoing/When/200x/2006/02/17/PHP">Tim Bray's comments</a> about PHP in his <a href="http://www.marcuswhitney.com/?p=66">latest blog post</a>.
<p>
<quote>
<i>
PHP has arrived. Tim Bray posted on PHP and it's got the web all hot and heavy. I know that plenty of people like to take these opportunities to flex their blog muscles and tell off all the other languages, proclaim their programming expertise and explain why all those using certain languages are dumb as hell. Greg Beaver has already done a good job of pointing out why this is a waste of time so I wont repeat what he said. 
<p>
So in short, here's the deal. PHP is getting hated on because she is the prom queen. Rails in the new contender, and Java is last year's hot stuff. All three are valuable languages that provide many an over-paid programmer with the tools needed to wow their co-workers. Pick your weapon and go to town.
</i>
</quote>
<p>
He's basically of the same concensus that <a href="http://greg.chiaraquartet.net/archives/116-My-language-is-bigger-than-your-language-so-nyah-nyah.html">others</a> <a href="http://phplens.com/phpeverywhere/?q=node/view/226">stated</a> - it's not about how good one language is overall, it's about what works for you in the situation you're in. It's almost impossible to find a langauge out there that's a perfect fit fo everything.]]></description>
      <pubDate>Wed, 22 Feb 2006 06:45:17 -0600</pubDate>
    </item>
  </channel>
</rss>
