<?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>Fri, 24 May 2013 14:48:02 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Reddit.com: Am I asking too much from my PHP applicant exercise?]]></title>
      <guid>http://www.phpdeveloper.org/news/17310</guid>
      <link>http://www.phpdeveloper.org/news/17310</link>
      <description><![CDATA[<p>
On Reddit.com there's a recent post asking about <a href="http://www.reddit.com/r/PHP/comments/nljrl/am_i_asking_too_much_from_my_php_applicant/">testing developers as a part of the hiring process</a> and how difficult it should be.
</p>
<blockquote>
I developed an exercise for applicants. They must use an open source framework to make a simple bulletin board. It requires account creation, login, thread creation, message creation, unread message indication per thread, and logout. Every applicant is given this exercise after passing an initial test. The initial test is a simple disqualifier and is not challenging for anyone not lying on their resume.
</blockquote>
<p>
There's some great discussion in the comments about things like the suggested time limit, opinions on other methods that could yield the same results, thoughts on the validity of even taking the test based on the level of the job. The popular opinion, though, is that it's too much work for an applicant to go through unless there's a very specific need. As one commentor put it:
</p>
<blockquote>
Most of the excellent programmers will have jobs. Those that don't will probably have several options (unless you're in a very small market) for where to work. When it comes down to applying to the place that wants you to spend a bunch of your own time on their application, or some other company... They'll go with some other company.
</blockquote>]]></description>
      <pubDate>Tue, 27 Dec 2011 10:39:53 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Gonzalo Ayuso's Blog: Building a small microframework with PHP (Part 2). Command line interface]]></title>
      <guid>http://www.phpdeveloper.org/news/16786</guid>
      <link>http://www.phpdeveloper.org/news/16786</link>
      <description><![CDATA[<p>
Continuing on with his <a href="http://phpdeveloper.org/news/16756">previous investigations</a> into microframworks and what it takes to create them, <i>Gonzalo Ayuso</i> has <a href="http://gonzalo123.wordpress.com/2011/08/29/building-a-small-microframework-with-php-part-2-command-line-interface/">posted his second part</a> of the series - a look at working on the command line.
</p>
<blockquote>
In my last post we spoke about building a small microframework with PHP. The main goal of this kind of framework was to be able to map urls to plain PHP classes and become those classes easily testeable with PHPUnit. Now we're going to take a step forward. [...] It's pretty straightforward to create a command line interface (CLI) for our microframework. 
</blockquote>
<p>
He shows how to use the <a href="http://php.net/getopt">getopt</a> function and the $GLOBALS superglobal to pull in arguments given to the command line script. He hooks this into the framework and makes it possible to define the controller and action to execute (with a few examples to show it in action). You can find this updated code on <a href="https://github.com/gonzalo123/microFramework">his github account</a>.
</p>]]></description>
      <pubDate>Mon, 29 Aug 2011 13:19:11 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Gonzalo Ayuso's Blog: Building a small microframework with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16756</guid>
      <link>http://www.phpdeveloper.org/news/16756</link>
      <description><![CDATA[<p>
In investigating microframeworks and some of the offerings out there <i>Gonzalo Ayuso</i> has done a little exploring of his own. He's <a href="http://gonzalo123.wordpress.com/2011/08/22/building-a-small-microframework-with-php/">worked up a basic microframework</a> and shared it in a new post as a sort of academic exercise.
</p>
<blockquote>
Nowadays microframewors are very popular. Since Blake Mizerany created <a href="http://www.sinatrarb.com/">Sinatra</a> (Ruby), we have a lot of Sinatra clones in PHP world. Probably the most famous (and a really good one) is <a href="http://silex-project.org/">Silex</a>. But we also have several ones, such as <a href="http://www.limonade-php.net/">Limonade</a>, <a href="http://gluephp.com/">GluePHP</a> and <a href="http://www.slimframework.com/">Slim</a>. Those frameworks are similar. 
</blockquote>
<p>
He looks at how several of these frameworks handle routing and setup, mostly using the closures/anonymous function callbacks available in PHP 5.3. His <a href="https://github.com/gonzalo123/microFramework">simple example framework</a> does some basic URI handling to find the requested module, class and function (action) to call. You can even define the output format from options like json, txt, css, js and jsonp. A sample "controller" is included with a "Hello world" and there's a mention of some other options he's exploring including <a href="http://twig-project.org">Twig</a> and <a href="https://github.com/kriswallsmith/assetic">Assetic</a> integration.
</p>]]></description>
      <pubDate>Tue, 23 Aug 2011 09:48:27 -0500</pubDate>
    </item>
  </channel>
</rss>
