<?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, 18 Jun 2013 00:15:52 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Timothy Boronczyk: Composing Music with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/19644</guid>
      <link>http://www.phpdeveloper.org/news/19644</link>
      <description><![CDATA[<p>
<i>Timothy Boronczyk</i> has a recent post to his site with an interesting thing to use PHP for - <a href="http://zaemis.blogspot.com/2013/05/composing-music-with-php.html">composing music</a>.
</p>
<blockquote>
I'm not an expert on probability theory, artificial intelligence and machine learning, and even my Music 201 class from years ago has been long forgotten. But if you'll indulge me for the next 10 minutes, I think you'll find that even just a little knowledge can yield impressive results if creatively woven together into an application. I'd like to share with you how PHP can be taught to compose music.
</blockquote>
<p>
He shows examples of some basic melodies generated by PHP (not the prettiest) and talks about how he "taught" PHP to get better at it. He transcribed other music into <a href="http://soundcalledmusic.com/scientific-pitch-notation/">Scientific Pitch Notation</a> and used a Markov process to create a "next note selection" method based on the notes around it. He includes the code for his "robot composer" class with its "train" and "compose" methods and and example of its usage.
</p>
Link: http://zaemis.blogspot.com/2013/05/composing-music-with-php.html]]></description>
      <pubDate>Wed, 29 May 2013 10:56:37 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Freek Lijten's Blog: Expressing algorithm complexity: the big O notation explained]]></title>
      <guid>http://www.phpdeveloper.org/news/16675</guid>
      <link>http://www.phpdeveloper.org/news/16675</link>
      <description><![CDATA[<p>
<i>Freek Lijten</i> has put together a new post to his blog looking at a method for showing how complex an algorithm is without having to get too deep into how it works - <a href="http://www.freeklijten.nl/home/2011/08/04/Expressing-algorithm-complexity-the-big-O-notation-explained">the big O notation</a> (with examples written in PHP).
</p>
<blockquote>
I'd like to share a topic today which was re-introduced to me by a  <A href="http://en.wikipedia.org/wiki/Lightning_talk">lightningtalk</a> of a colleague of mine. His talk was on the "big O notation". The big O notation is a tool you can use to express the order of complexity of an algorithm. It is useful because it lets you express the order of complexity of an algorithm without taking a lot of time profiling or researching the underlying algorithm. In other words: it gives you a quick way to gain an understanding of what might be wrong (or right) with a specific algorithm. 
</blockquote>
<p>
He introduces the notation as the result of a series of steps needed to solve a problem (ex. 2+2 is less complex than 2+2+2). He illustrates with PHP examples that show adding complexity to a class, adding sets of numbers, looping to find needles in haystacks and finding duplicates in an array of strings. Each of these expand on the theory and show more complexity as the article progresses.
</p>]]></description>
      <pubDate>Thu, 04 Aug 2011 11:28:29 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Justin Carmony's Blog: PHP Itch to Scratch: Object Notation]]></title>
      <guid>http://www.phpdeveloper.org/news/16199</guid>
      <link>http://www.phpdeveloper.org/news/16199</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Justin Carmony</i> talks about a few "itches" he's wanted to scratched when it comes to features of the PHP language - in this post it's the <a href="http://www.justincarmony.com/blog/2011/04/12/php-itch-to-scratch-object-notation/">notation that's used surrounding the use of objects</a>.
</p>
<blockquote>
At the end [of <a href="http://blog.tabini.ca/2011/04/is-php-running-out-of-itches-to-scratch/">Marco's post to his blog</a>], he states it ultimately boils down to find a better way to bring features build downstream back upstream. So I thought I would do my part by first my blogging about a few "itches" I'd love to see scratched. My first itch would be some form of Object Notation for PHP.
</blockquote>
<p>
He talks about the notation method that Javascript has always had and how it can help to make objects more flexible by not forcing their creation through a method/argument interface. He offers one potential solution - using arrays for settings values - but notes that it could be more trouble than it's worth in the implementation. He proposes a new sort of notation instead, one that allows the passing of something similar to the Javascript JSON-ish definition of values and callbacks as anonymous functions.
</p>]]></description>
      <pubDate>Thu, 14 Apr 2011 13:42:33 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[David Otton's Blog: Neat PHP tricks: Casting Arrays to Objects]]></title>
      <guid>http://www.phpdeveloper.org/news/10834</guid>
      <link>http://www.phpdeveloper.org/news/10834</link>
      <description><![CDATA[<p>
<i>David Otton</i> has a <a href="http://www.otton.org/2008/08/14/neat-php-tricks-casting-arrays-to-objects/">handy little tip</a> if you're looking for a cleaner way to deal with array data - casting it to an object.
</p>
<blockquote>
Array notation is fine, but it can look a bit clunky when you're working with complex structures. [...] Casting the array to an object allows us to use object notation (->) and makes the code more readable.
</blockquote>
<p>
He includes examples of the casting, showing the difference between the array and object notations including a method for creating an object based on a simple array that has basic properties built in. This sort of transformation can be useful if you want consistency through out the application - just passing objects with their properties rather than arrays.
</p>]]></description>
      <pubDate>Thu, 14 Aug 2008 13:38:10 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Nick Halstead's Blog: Reverse Polish Notation in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/8399</guid>
      <link>http://www.phpdeveloper.org/news/8399</link>
      <description><![CDATA[<p>
As a follow up to a <a href="http://blog.assembleron.com/2007/08/06/back-to-basics-of-programming-part-1/">previous post</a> where he discussed reverse polish notation, <i>Nick Halstead</i> has decided to split off the code he created for that previous post into a new, sleeker post without much of the explanation and heavy on the code.
</p>
<blockquote>
My <a href="http://blog.assembleron.com/2007/08/06/back-to-basics-of-programming-part-1/">last post</a> about back to basics covered <a href="http://blog.assembleron.com/2007/08/06/back-to-basics-of-programming-part-1/">reverse polish notation</a> including a link to a <a href="http://code.assembleron.com/rpn">RPN parser</a> which I wrote to allow people to learn by example (best way in my opinion and <a href="http://blog.assembleron.com/2007/07/13/quick-programming-poll-self-taught-vs-college-taught/">in yours</a>). The post got quite long and the PHP code was not really relevant to the subject so I have decided to include in this separate post instead.
</blockquote>
<p>
There's <a href="http://blog.assembleron.com/2007/08/06/reverse-polish-notation-in-php/">two parts to the post</a> - a pseudo-code explanation that an overview of how things work and the actual code, a block of code (in the 30 line area) that runs through each item and, based on a token, pushes the value into the array differently.
</p>]]></description>
      <pubDate>Mon, 06 Aug 2007 16:56:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Utah PHP Users Group: PHP and JSON]]></title>
      <guid>http://www.phpdeveloper.org/news/4722</guid>
      <link>http://www.phpdeveloper.org/news/4722</link>
      <description><![CDATA[According to <a href="http://uphpu.org/article.php?story=20060124144346125">this post</a> on the Utah PHP User Group's website today, there's been talk of adding <a href="http://en.wikipedia.org/wiki/JSON">JSON</a> support to the Core portion of the PHP distributions.
<p>
<quote>
<i>
There has been some recent activity on the PHP Developer mailing list about the addition of JSON into the PHP Core. After reading the thread, I did a little research on JavaScript Object Notation (JSON). Here is a <a href="http://www.crockford.com/JSON/">great website</a> to read more about it.
</i>
</quote>
<p>
You can check out the discussion over on <a href="http://marc.theaimsgroup.com/?l=php-dev">the archived copy</a> of the php-dev mailing list...]]></description>
      <pubDate>Wed, 25 Jan 2006 06:30:14 -0600</pubDate>
    </item>
  </channel>
</rss>
