<?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:06:12 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[SitePoint: The 3 Myths of Learning Programming Languages]]></title>
      <guid>http://www.phpdeveloper.org/news/19149</guid>
      <link>http://www.phpdeveloper.org/news/19149</link>
      <description><![CDATA[<p>
SitePoint.com has a new article sharing three of the things they see as common myths around <a href="http://www.sitepoint.com/the-3-myths-of-learning-programming-languages/">learning new programming languages</a>.
</p>
<blockquote>
Are you yet to learn your first programming language? Why is it that you're putting it off? If you think it's going to be too hard, like learning a real, spoken language - you are wrong. In fact, you've fallen victim to what I like to call The Big Programming Language Fallacy - the mistaken belief that programming languages are analogous to real languages.
</blockquote>
<p>
They go through each of their myths and explain what's wrong about them, each building on the previous ones in the list:
</p>
<ul>
<li>Myth 1: Programming Languages are the 'Languages of Computers'
<li>Myth 2: Programming Languages are Foreign and Hard to Read
<li>Myth 3: Programming Languages Take Years to Learn
</ul>
<p>
They point out that, in the case of most programming languages these days, they've been designed to be "readable" and something that can relate to basic terms (a subset of a completely new language).
</p>]]></description>
      <pubDate>Thu, 07 Feb 2013 11:43:52 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Larry Garfield's Blog: readfile() not considered harmful]]></title>
      <guid>http://www.phpdeveloper.org/news/17909</guid>
      <link>http://www.phpdeveloper.org/news/17909</link>
      <description><![CDATA[<p>
In <a href="http://www.garfieldtech.com/blog/readfile-memory">this new post</a> to his blog <i>Larry Garfield</i> tries to dispel a common misconception in the PHP development world - that the <a href="http://php.net/readfile">readfile</a> function should be considered harmful and can cause memory issues in your code.
</p>
<blockquote>
If you're like me, you've probably read a dozen or two articles about PHP performance in your career. Many of them are quite good, but some are simply flat out wrong, or misinformed. One of the old truisms that has been repeated for as long as I can recall is "don't use readfile() if you have big files, because it reads the whole file into memory and your server will explode." [...] There's just one problem with that age-old truism: It's not true.
</blockquote>
<p>
He created some benchmarks to illustrate the differences between several of the common methods for working with files via the <a href="http://php.net/fread">fread</a>, <a href="http://php.net/fpassthru">fpassthru</a>, <a href="http://php.net/stream_copy_to_stream">stream_copy_to_stream</a> and of course <a href="http://php.net/readfile">readfile</a>. He reports the results based on the runtime and the peak memory usage and noted, ironically, that while the times varied slightly, the memory consumption was exactly the same for all of the approaches. Since there's no real reason not to use "readfile", he looks at three reasons why there might be this stigma attached to it (including the issues that could come up with output buffering enabled).
</p>]]></description>
      <pubDate>Fri, 04 May 2012 09:51:38 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Nikita Popov's Blog: Disproving the Single Quotes Performance Myth]]></title>
      <guid>http://www.phpdeveloper.org/news/17369</guid>
      <link>http://www.phpdeveloper.org/news/17369</link>
      <description><![CDATA[<p>
In <a href="http://nikic.github.com/2012/01/09/Disproving-the-Single-Quotes-Performance-Myth">this new post</a> to his blog <i>Nikita Popov</i> aims to dispel the popular micro-optimization myth of using single quotes over double quotes for a performance boost.
</p>
<blockquote>
If there is one PHP related thing that I really hate, then it is definitely the Single Quotes Performance Myth. [...] Let's do a random Google search for <a href='https://www.google.com/search?q=php+single+quotes+performance'>"PHP single quotes performance"</a>: <a href='http://stackoverflow.com/questions/482202/is-there-a-performance-benefit-single-quote-vs-double-quote-in-php'>You</a> <a href='http://stackoverflow.com/questions/3316060/single-quotes-or-double-quotes-for-variable-concatenation'>will</a> <a href='http://atomized.org/2005/04/php-performance-best-practices/'>get</a> <a href='https://github.com/fabpot/Twig/issues/407'>many</a> <a href='http://classyllama.com/development/php/php-single-vs-double-quotes/'>results</a> telling you that single quotes are faster than double quotes and that string interpolation is much slower than string concatenation. Most of them advise to use single quotes and concatenation to improve the performance of your application. Let's be clear here: <b>This is pointless.</b>
</blockquote>
<p>
He did some benchmarking of his own to see how the myth would hold up and, as it turns out, it doesn't - "There is none". His proof compares two strings, one normal single-quoted and the other a double-quoted, and the opcodes they generate. They end up exactly the same. Since it's the opcodes that matter, he recommends using something like <a href="http://php.net/manual/en/book.apc.php">APC</a> if you're really worried about the performance. He also includes an example using the <a href="http://php.net/token_get_all">token_get_all</a> function of PHP to see how fast the strings run through the lexer too (again, almost no difference).
</p>
<p>
As an added bonus, he also throws in a bit about string concatenation versus string interpolation with some <a href="http://codepad.viper-7.com/p4aUGN">benchmarking scripts</a> and results of their own.
</p>]]></description>
      <pubDate>Tue, 10 Jan 2012 09:47:55 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Hartjes' Blog: CakePHP Mythbusters!]]></title>
      <guid>http://www.phpdeveloper.org/news/11668</guid>
      <link>http://www.phpdeveloper.org/news/11668</link>
      <description><![CDATA[<p>
In an effort to dispel some of the rumors and myths around the CakePHP framework (as presented most recently by <a href="http://www.isolani.co.uk/blog/web/PhpFrameworksComparingCakePhpAndSymfony">a different blogger</a>) <i>Chris Hartjes</i> has <a href="http://www.littlehart.net/atthekeyboard/2009/01/04/cakephp-mythbusters/">made a new "mythbuster" post</a> to his blog today with a rebuttal to the points from the other article.
</p>
<blockquote>
I ran across an article comparing CakePHP and Symfony and found that the writer had a number of preconceived ideas about CakePHP. These same ideas keep popping up everywhere, used by people looking to get their hate on about CakePHP. I sent a very well-reasoned email to the writer clearing up some of those misconceptions [...] So, in the interest of clarifying things about CakePHP I thought I would share that email, slightly rewritten for this blog posting, but the content is roughly the same. 
</blockquote>
<p>
The <a href="http://www.littlehart.net/atthekeyboard/2009/01/04/cakephp-mythbusters/">post/email</a> covers a few different topics some might have misconceptions about concerning the framework:
</p>
<ul>
<li>Lack of Documentation
<li>Scaffolding
<li>Models are tied to controllers in a 1:1 relationship
<li>Cake's Ajax and Javascript helpers do not support graceful degradation
<li>Cake's HTML and Form helpers produces bad markup
<li>Unit tests are an afterthought
<li>CakePHP is not an "enterprise capable framework"
</ul>]]></description>
      <pubDate>Mon, 05 Jan 2009 08:47:16 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Jaybill McCarthy's Blog: 10 PHP Myths Dispelled]]></title>
      <guid>http://www.phpdeveloper.org/news/9358</guid>
      <link>http://www.phpdeveloper.org/news/9358</link>
      <description><![CDATA[<p>
As mentioned on the <a href="http://devzone.zend.com/article/2907-Jaybill-McCarthy-Dispells-10-PHP-Myths-">Zend Developer Zone</a>, <i>Jaybill McCarthy</i> has written up a <a href="http://jaybill.com/2008/01/02/10-php-myths-dispelled/">Blog post</a> about ten of the PHP myths that are common on the web and the facts that dismiss them.
</p>
<blockquote>
I am a PHP developer. Maybe even a halfway decent one. As such, I often find myself engaged in conversations on the subject of web application development in general and PHP in particular. I am continually flustered by the myths, half-truths and outright falsehoods that technical and non-technical people alike hold about this humble programming language.
</blockquote>
<p>
Some of the points included in his "top ten" list are things like "PHP Encourages Sloppy Code", "PHP is slow because it's interpreted" and "PHP apps all look the same".
</p>]]></description>
      <pubDate>Fri, 04 Jan 2008 14:17:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[YoungCoders.com: Debunking the Bloated Smarty Myth]]></title>
      <guid>http://www.phpdeveloper.org/news/6477</guid>
      <link>http://www.phpdeveloper.org/news/6477</link>
      <description><![CDATA[<p>
As mentioned in <a href="http://devzone.zend.com/node/view/id/1026">this new post</a> on the Zend Developer Zone, there's a <a href="http://youngcoders.com/showthread.php?t=22695">forum posting</a> over on the YoungCoders.com website that looks to dispell the "age old" myth about <a href="http://smarty.php.net">Smarty</a> - it's suposed bloated nature.
</p>
<blockquote>
There has been a lot of talk about how <a href="http://smarty.php.net/">Smarty</a>, a popular template engine for PHP, is bloated and not useful because PHP is already a templating engine and that you're essentially creating a template engine out of a template engine. As everything I read could just say that it was bloated without backing up their statement, I decided to investigate it myself.
</blockquote>
<p>
He describes what Smarty is and how to can help you and your site with compiled templates. There's a brief look at the syntax it uses and how it can help make the output of the site simpler than invoking PHP each time. He also gets a bit more indepth on the templating system, showing the process it uses to check the template and update if it needs to.
</p>
<p>
His <a href="http://youngcoders.com/showthread.php?t=22695">conclusion</a>? Smarty isn't that much different than any other kind of simple PHP-based templating language out there. So, what about the slowness? Well, he recommends checking your compiling setting - that's where the overhead is when the pages are loading.
</p>]]></description>
      <pubDate>Wed, 11 Oct 2006 11:16:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Aaron Wormus' Blog:  What's Wrong with PEAR?]]></title>
      <guid>http://www.phpdeveloper.org/news/5950</guid>
      <link>http://www.phpdeveloper.org/news/5950</link>
      <description><![CDATA[<p>
In his <a href="http://www.wormus.com/aaron/stories/2006/08/04/whats-wrong-with-pear.html">latest blog post</a>, <i>Aaron Wormus</i> asks the PHP community exactly "what's wrong with PEAR?"
</p>
<blockquote>
<p>
I didn't attend Theo's talk, so the only information that I got was from the blog entries and slides. I realize that this short presentation was humorous, but it still brings up some points that have been nagging at the back of my head for a while now.
</p>
<p>
The comment in question is part of the Six Reasons PHP Sucks lightning talk.
</p>
</blockquote>
<p>
<a href="http://www.wormus.com/aaron/stories/2006/08/04/whats-wrong-with-pear.html">The comment</a> jokes about the quality of PEAR code. OF course, as <i>Aaron<i> notes, these types of comments aren't anythng new. The real issue at stake is that people don't understand PEAR. To help further the cause behind this (in)famous set of libraries, he's written an article for <a href="http://www.phparch.com">php|architect</a> to dispell some of the myths.
</p>
<blockquote>
I would like to dedicate this blog entry to people who think that PEAR does suck, and open up the discussion to what it is exactly that sucks. PEAR has issues, but I truly believe that most of the trash talking that is done is mainly due to the ignorance. So please, if you have issues, whether technical or package specific feel free to vent here.
</blockquote>]]></description>
      <pubDate>Fri, 04 Aug 2006 05:47:06 -0500</pubDate>
    </item>
  </channel>
</rss>
