<?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, 22 May 2012 12:05:15 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Court Ewing's Blog: Common, Cryptic PHP Errors]]></title>
      <guid>http://www.phpdeveloper.org/news/17892</guid>
      <link>http://www.phpdeveloper.org/news/17892</link>
      <description><![CDATA[<p>
<i>Court Ewing</i> has a new post to his blog describing some of the most <a href="http://epixa.com/2012/04/common-cryptic-php-errors.html">common cryptic errors</a> that you might come across in your day-to-day development.
</p>
<blockquote>
If you've been programming for awhile, then you've probably experienced your fair share of cryptic error messages. It's understandable that building in detailed error messages that are clear to even novice developers is not always a high priority for programming languages when there are so many other features to create and issues to address. The PHP language has decent error messages, but it is by no means an exception to this rule.
</blockquote>
<p>
The three errors he covers are probably familiar to anyone that's been working with PHP for any length of time:
</p>
<ul>
<li>Fatal error: Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
<li>Fatal error: Can't use function return value in write context
<li>Fatal error: Exception thrown without a stack frame in Unknown on line 0
</ul>]]></description>
      <pubDate>Tue, 01 May 2012 13:09:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ServerGrove Blog: Common problems designers have when working with Symfony]]></title>
      <guid>http://www.phpdeveloper.org/news/17891</guid>
      <link>http://www.phpdeveloper.org/news/17891</link>
      <description><![CDATA[<p>
On the ServerGrove blog there's a new post that helps to bridge a gap between Symfony PHP developers and the designers that might be working with the result of their hard work. The post <a href="http://blog.servergrove.com/2012/04/30/common-problems-designers-have-when-working-with-symfony/">shares solutions to four common problems</a> the designer might have.
</p>
<blockquote>
For designers, Symfony2 has been a welcome change from those old flat PHP files. Twig is beautiful, the framework separates the code from the layout, and we no longer have to find our way through lines of PHP code. But if you are a designer working on a symfony project for the first time, these are a few tips that can help you get up and running quickly.
</blockquote>
<p>The four common problems they've seen are:</p>
<ul>
<li>How do I disable the toolbar at the bottom of the page?
<li>Errors about missing libraries/files
<li>No Javascript or no-css showing up
<li>A completely blank page
</ul>]]></description>
      <pubDate>Tue, 01 May 2012 12:17:28 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Padraic Brady's Blog: Interfacing The PHP World Would Be Good]]></title>
      <guid>http://www.phpdeveloper.org/news/17051</guid>
      <link>http://www.phpdeveloper.org/news/17051</link>
      <description><![CDATA[<p>
<i>Padraic Brady</i> has <a href="http://blog.astrumfutura.com/2011/10/interfacing-the-php-world-would-be-good/">posted his own response</a> to some of the recent talk about <a href="http://phpdeveloper.org/news/17034">making</a> <a href="http://phpdeveloper.org/news/17042">standard</a> <a href="http://pooteeweet.org/blog/2008">interfaces</a> in PHP applications. His perspective focuses on interfaces and coupling as related to the Zend Framework.
</p>
<blockquote>
Every PHP framework has it's own unique set of interfaces for common operations such as logging, caching, http clients, filtering, validation, etc. This creates a situation where a framework tends to be loosely coupled but only within the scope of its own interfaces. [...] Loose coupling is therefore a bad joke. It is a narrowly defined concept usually described within the scope of one particular application. We never really apply the concept across multiple applications written with different frameworks because, at that point, the disparate interfaces of both frameworks would immediately make loose coupling unobtainable.
</blockquote>
<p>
He goes on to talk about a simple example, ZendFeedReader, and how it's very difficult to swap something as simple as the HTTP client out for one from another framework. He mentions the common scapegoat for over-interfacing - Java - and how PHP's is a bit more "practical and flexible" in that department (a good and bad thing).
</p>
<blockquote>
So yes, common interfaces would benefit PHP and would make framework libraries more interoperable and thus usable within competing frameworks. Hey, if you can't beat them at least make sure you can inject your classes into them. Hmm, still sounds dirty.
</blockquote>]]></description>
      <pubDate>Thu, 27 Oct 2011 11:36:30 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DZone.com: Debate - How to Interface the PHP World]]></title>
      <guid>http://www.phpdeveloper.org/news/17042</guid>
      <link>http://www.phpdeveloper.org/news/17042</link>
      <description><![CDATA[<p>
In a new post to DZone.com today <i>Mitchell Pronschinske</i> <a href="http://php.dzone.com/news/debate-how-interface-php-world">responds to some comments</a> that were <a href="http://pooteeweet.org/blog/0/2008#m2008">made by Lukas Smith</a> about working with interfaces in PHP and what he sees as an ideal "drop in" solution.
</p>
<blockquote>
The PHP community was reacting to Lukas Smith's "Interfacing the PHP world" for most of last weekend. [...] It's a pretty major propositon to start 'interfacing the PHP' world.  Catch up on the conversation and let us know what you think.
</blockquote>
<p>
<i>Mitchell</i> summarizes <i>Lukas'</i> thoughts into three points - interfaces in separate repositories, PHP frameworks not adopting 5.3 yet and the customization of method names/naming conventions across frameworks and tools. Another response to <i>Lukas</i> came from <a href="http://www.hermanradtke.com/blog/please-do-not-interface-the-php-world/">Herman Radtke</a> with <i>Lukas</i> following up his original post with <a href="http://pooteeweet.org/blog/2014">"Why Bother?"</a>
</p>]]></description>
      <pubDate>Wed, 26 Oct 2011 08:33:53 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Lukas Smith's Blog: Why bother?]]></title>
      <guid>http://www.phpdeveloper.org/news/17034</guid>
      <link>http://www.phpdeveloper.org/news/17034</link>
      <description><![CDATA[<p>
<i>Lukas Smith</i> has put together a recent post to his blog with <a href="http://pooteeweet.org/blog/0/2014#m2014">some thoughts on standardization</a> of interfaces in PHP applications to help improve code quality and interoperability.
</p>
<blockquote>
In my previous blog post I was brainstorming the possibility of collaboration between various frameworks to define a set of common interfaces. But I kind of failed to explain why this would be useful. Herman's "rebuttal" made this omission on my part quite clear. [...] That being said the open questions left in my previous blog might still prevent this idea to take off, even if I manage to convince the general community that the above mentioned negative effects are not such a significant concern.
</blockquote>
<p>
He talks first about some of the things he sees PHP as having done right (citing its popularity) and contrasts it to Java based on the standards they impose. He goes on to mention how interfaces, introduced early enough in the process, can help with the "best tool for the job" idea (with an example involving Symfony2, Zend Framework and Doctrine).
</p>]]></description>
      <pubDate>Tue, 25 Oct 2011 08:33:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DeveloperDrive.com: Common Mistakes to Avoid When Coding in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17012</guid>
      <link>http://www.phpdeveloper.org/news/17012</link>
      <description><![CDATA[<p>
On the DeveloperDrive.com site today, there's a new post with a few reminders for PHP developers out there of things it's easy to forget when writing your applications - some <a href="http://www.developerdrive.com/2011/10/common-mistakes-to-avoid-when-coding-in-php/">common mistakes to avoid</a>.
</p>
<blockquote>
Despite the high expectations placed on them at times, developers are human. They were the last time we checked anyways. As humans, we are bound to make mistakes from time to time. And simple, common mistakes often slip past our filters the more comfortable we become with something. [...] But knowing what these common mistakes are and how to avoid them can really help speed up the development process and keep our clients smiling.
</blockquote>
<p>
His list includes three big ones that, if forgotten, could end up being detrimental to your application (sooner or later) - poor housekeeping/organization of code, forgetting punctuation and forgetting to validate input from users.
</p>]]></description>
      <pubDate>Wed, 19 Oct 2011 09:17:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Lars Tesmer's Blog: Learning Ruby: Gotchas and Pitfalls for PHP Programmers]]></title>
      <guid>http://www.phpdeveloper.org/news/16856</guid>
      <link>http://www.phpdeveloper.org/news/16856</link>
      <description><![CDATA[<p>
<i>Lars Tesmer</i> is currently in the process of learning Ruby. He' been working through the tutorials and some sample scripts and has come across some pitfalls along the way. In his <a href="http://lars-tesmer.com/blog/2011/09/13/learning-ruby-gotchas-and-pitfalls-for-php-programmers/">latest post</a> he shares four of them that've stood out in his development so far.
</p>
<blockquote>
I'm currently learning Ruby. In this post I'll list some pitfalls for programmers coming from PHP that would probably cause some confusion if you aren't aware of them. This list is by no means complete, while I learn Ruby I'll very probably encounter more gotchas, which I will blog about, too.
</blockquote>
<p>
For each of his four examples, he gives the code PHP developers are used to seeing and the Ruby code that may or may not do what you'd expect:
</p>
<ul>
<li>Arrays are continuous
<li>Zero is not falsy
<li>The keywords private and protected
<li>There's no static keyword
</ul>]]></description>
      <pubDate>Wed, 14 Sep 2011 09:48:42 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SearchCo.de: List of Most Commonly Used PHP Functions]]></title>
      <guid>http://www.phpdeveloper.org/news/16056</guid>
      <link>http://www.phpdeveloper.org/news/16056</link>
      <description><![CDATA[<p>
In a new post to the SearchCo.de blog <i>Ben Boyter</i> generated a listing of the <a href="http://searchco.de/blog/view/list-of-most-commonly-used-php-functions">most commonly used PHP functions/structures</a> based on the contents of several of the major PHP projects from around the web.
</p>
<blockquote>
One thing that I considered some time ago was working out which are the most common functions in a language and adding this as an additional signal to ranking. I couldn't find anywhere else on the web with this question answered so I took my own approch. The method was to take a collection of large PHP projects, including, Wordpress, Mambo, Sphider, Smarty, Drupal, CodeIgniter, dump all their source code into a single file stripped of comments, and then run some simple regex over this file counting the occurance of each function. 
</blockquote>
<p>
His results show the top five as: array, isset, define, empty and assert. The last five ended up being: filemtime, sha1, array_unshift, get_current_user and strchr.
</p>]]></description>
      <pubDate>Wed, 16 Mar 2011 13:26:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Mayflower Blog: JavaScript Pitfalls for PHP-Developers]]></title>
      <guid>http://www.phpdeveloper.org/news/15554</guid>
      <link>http://www.phpdeveloper.org/news/15554</link>
      <description><![CDATA[<p>
On the Mayflower blog there's <a href="http://blog.mayflower.de/archives/624-JavaScript-Pitfalls-for-PHP-Developers.html">a new post</a> talking about some of the common pitfalls for PHP developers that are starting their work with the front end Javascript language.
</p>
<blockquote>
If we take a look at our <a href="http://mayflower.de/de/karriere">current job advertisement</a>, these knowledge is still important, but also skills in JavaScript are asked and strongly desired. If you wonder why JavaScript is so popular at these times, my answer is quite simple: The browser is no longer a stupid instrument to view some static websites on the internet- the browser turned into an (Web-) Application Platform that provides more content then plain text. 
</blockquote>
<p>
They start by comparing some of the data types common between the two (with most things on the Javascript side ending up as an object). They also talk about the fact that arrays are not (technically) arrays like PHP developers think of them. They finish it off with two more common problems PHP devs have when making the move - looping through arrays and "the thing with the semicolon".
</p>]]></description>
      <pubDate>Thu, 09 Dec 2010 10:56:26 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DZone.com: Zend_Glossary]]></title>
      <guid>http://www.phpdeveloper.org/news/15486</guid>
      <link>http://www.phpdeveloper.org/news/15486</link>
      <description><![CDATA[<p>
If you're new to using the <a href="http://framework.zend.com">Zend Framework</a>, you there's one big hurdle you might have to overcome. There's a lot of terms used in the system that might not be all that familiar to you. Thankfully <i>Giorgio Sirnoi</i> has <a href="http://css.dzone.com/articles/zendglossary">written up a guide</a> (he calls it a "Zend_Glossary") to help smooth over the rough parts.
</p>
<blockquote>
When you're approaching a framework with a learning curve as steep as ZF, it's easy to be overwhelmed by new terms and declare them buzzwords. Instead, they have often a very precise meaning. I've creates this glossary to collect all the defined terms I could find, so that the PHP developer new to Zend Framework would have a place to come and lookup in the time of confusion.
</blockquote>
<p>
He breaks it up into a few different sections - generic/reused terms, common component names, what MVC and the bootstrap are as well as the different parts of Zend_Forms.
</p>]]></description>
      <pubDate>Wed, 24 Nov 2010 12:13:18 -0600</pubDate>
    </item>
  </channel>
</rss>

