<?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, 21 May 2013 08:51:58 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Reddit.com: Good guidance for shifting to OO from Procedural coding]]></title>
      <guid>http://www.phpdeveloper.org/news/19333</guid>
      <link>http://www.phpdeveloper.org/news/19333</link>
      <description><![CDATA[<p>
On Reddit.com there's a conversation kicked off by user <i>swiftpants</i> about making the move from procedural PHP programming to the world of object-oriented programming. They <a href="http://www.reddit.com/r/PHP/comments/1a9003/good_guidance_for_shifting_to_oo_from_procedural/">ask for advice</a> from the community for the next steps to take to make the jump.
</p>
<blockquote>
One thing I always have in the back of my head is that all my code is procedural and I should be making use of classes and ?? more. I have a very basic understanding of OO programming but I rarely implement it. Is there a good book or online guide that can get me on my way to OO programming in php. I am especially looking for feed back from self taught programmers. 
</blockquote>
<p>
There's lots of comments on <a href="http://www.reddit.com/r/PHP/comments/1a9003/good_guidance_for_shifting_to_oo_from_procedural/">the post</a> talking about everything from:
</p>
<ul>
<li><a href="http://www.killerphp.com/tutorials/object-oriented-php/">Introductory videos</a> from KillerPHP
<li>Reading lots of other people's (OOP) code
<li>That OOP is more about code reusing and simplicity (DRY) than abstraction.
<li>You can learn a lot by working with one of the MVC/OO frameworks. Download one and build something.
<li>The suggestion of <a href="http://phptherightway.com/">phptherightway.com</a>
</ul>
<p>
Have any other thoughts on the best ways to learn OOP in PHP? <a href="http://www.reddit.com/r/PHP/comments/1a9003/good_guidance_for_shifting_to_oo_from_procedural/">Share them here!</a>
</p>]]></description>
      <pubDate>Tue, 19 Mar 2013 12:33:29 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Anthony Ferrara: Programming With Anthony - Paradigm Soup]]></title>
      <guid>http://www.phpdeveloper.org/news/18787</guid>
      <link>http://www.phpdeveloper.org/news/18787</link>
      <description><![CDATA[<p.
<i>Anthony Ferrara</i> has <a href="http://blog.ircmaxell.com/2012/11/programming-with-anthony-paradigm-soup.html">posted about his first video</a> in a series he's creating about programming and related topics. In this first one he talks about "Paradigm Soup".
</p>
<blockquote>
So, for the past few days I've been talking about a secret project that I've been working on. Well, today I'm pleased to announce the project. I've been working on starting a series of YouTube videos about programming. The first of these videos is about Paradigms (Procedural, OOP, Functional). Plenty of future ones are planned, but the topics, order and even if they happen is completely up to you!
</blockquote>
<p>
He goes through some common practices in things like OOP, functional and procedural programming as well as how they relate to each other. You can view the video <a href="http://blog.ircmaxell.com/2012/11/programming-with-anthony-paradigm-soup.html">in the post</a> or you can <a href="http://youtu.be/CV4vPsEizJM">watch it over on Youtube</a>. If you want to keep up with the series, you can <a href="http://www.youtube.com/playlist?list=PLM-218uGSX3DQ3KsB5NJnuOqPqc5CW2kW">follow this playlist</a>.
</p>]]></description>
      <pubDate>Thu, 22 Nov 2012 09:50:23 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Slawek Lukasiewicz's Blog: Working with date and time in object oriented way]]></title>
      <guid>http://www.phpdeveloper.org/news/16451</guid>
      <link>http://www.phpdeveloper.org/news/16451</link>
      <description><![CDATA[<p>
<i>Slawek Lukasiewicz</i> has a new post today about <a href="http://www.leftjoin.net/2011/06/working-with-date-and-time-in-object-oriented-way/">working with dates and times in PHP</a> on a more object-oriented fashion than in the more traditionally procedural way of just calling PHP date/time functions on the string values.
</p>
<blockquote>
Date and time manipulation in PHP is mostly connected with functions like: date, time or strtotime. They can be sufficient, but if we want to deal with dates like with objects - we can use DateTime class. DateTime class is not only straightforward wrapper for standard functions, it has a lot of additional features - for example timezones.
</blockquote>
<p>
He shows how to use the <a href="http://php.net/datetime">DateTime</a> functionality to return an object you can call several different methods on. He gives examples of the formatting call, comparing one DateTime object to another, how to update the date after the object's created, calculating the difference between two dates and iterating through a certain time period.
</p>]]></description>
      <pubDate>Fri, 10 Jun 2011 08:13:14 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Aleksey Martynov's Blog: Getting started with lexa-tools: Blog in 15 Minutes]]></title>
      <guid>http://www.phpdeveloper.org/news/16383</guid>
      <link>http://www.phpdeveloper.org/news/16383</link>
      <description><![CDATA[<p>
<i>Aleksey Martynov</i> has submitted a new tutorial showing you how to (create a) "blog in 15 minutes" with the help of the <a href="http://blog.amartynov.ru/?p=535">lexa-tools framework</a>, a set of utilities that gives you a procedural API to some handy tools.
</p>
<p>
<a href="http://blog.amartynov.ru/archives/getting-started-with-lexa-tools-blog-in-15-minutes/">The tutorial</a> walks you through all the steps you'll need:
</p>
<ul>
<li>setting up the environment
<li>creating a site skeleton
<li>making the blog posts model (with the CRUD generator)
<li>make the main page to display the latest posts
<li>adding comments
<li>creating a page for each posts's detail
<li>and the comments view
</ul>
<p>
If you'd like to just skip to the end, you can <a href="http://blog.amartynov.ru/storage/lexa-tools-1/code.zip">download the source here</a>.
</p>]]></description>
      <pubDate>Wed, 25 May 2011 11:10:58 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[James Cohen's Blog: Working with Date and Time in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16292</guid>
      <link>http://www.phpdeveloper.org/news/16292</link>
      <description><![CDATA[<p>
<i>James Cohen</i> has <a href="http://webmonkeyuk.wordpress.com/2011/05/04/working-with-date-and-time-in-php/">a new post to his blog</a> today looking at some of the built-in functionality that PHP has to work with dates and times including simple things like <a href="http://php.net/strtotime">strtotime</a> and the <a href="http://php.net/datetime">DateTime</a> feature.
</p>
<blockquote>
A lot of people ask questions relating to date and time in PHP. Here are some answers to the most commonly asked questions and common mistakes.
</blockquote>
<p>
He covers the differences between working with dates in strtotime, worrying about timezone settings and compares the strtotime/DateTime methods for formatting and returning dates, modifying dates, converting between timezones as well as finding the difference between two timezones. 
</p>]]></description>
      <pubDate>Wed, 04 May 2011 08:59:23 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Web Builder Zone: The PHP paradigms poll results: OOP wins]]></title>
      <guid>http://www.phpdeveloper.org/news/15231</guid>
      <link>http://www.phpdeveloper.org/news/15231</link>
      <description><![CDATA[<p>
According to <a href="http://css.dzone.com/articles/php-paradigms-poll-results-oop">this new post</a> on the Web Builder Zone, the results of a poll taken about the best programming method for PHP these days is - by far - object-oriented programming.
</p>
<blockquote>
After two weeks of gathering votes, the PHP paradigms poll is now closed. With 216 votes (73%), the winner paradigm in popularity is Object-Oriented Programming. The old procedural approach to PHP, which has given fame to Wordpress and Drupal, is coming to an end. Even Drupal 7 has an object-oriented database layer as a primary component, and this paradigm is by far the most diffused in the world for web sites and applications written in high level languages (different from C).
</blockquote>
<p>
While the overwhelming amount of votes went to OOP, there were still a few for some of the other options including the second place winner - procedural programming. He also talks a bit about OOP's current place in the PHP ecosystem and how it has allowed for certain great tools to be developed, but how it also has a good ways to go in functionality.
</p>]]></description>
      <pubDate>Tue, 05 Oct 2010 11:21:17 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NETTUTS.com: Object-Oriented PHP for Beginners ]]></title>
      <guid>http://www.phpdeveloper.org/news/14768</guid>
      <link>http://www.phpdeveloper.org/news/14768</link>
      <description><![CDATA[<p>
If you're just making the move from procedural PHP development into the next level - object oriented programming - and are having a bit of trouble getting the hang of it, you might want to <a href="http://net.tutsplus.com/tutorials/php/object-oriented-php-for-beginners">read this new tutorial</a> from NETTUS.com introducing the topic.
</p>
<blockquote>
For many PHP programmers, object-oriented programming is a frightening concept, full of complicated syntax and other roadblocks. As detailed in my book, <a href="http://www.amazon.com/gp/product/1430228474">Pro PHP and jQuery</a>, you'll learn the concepts behind object-oriented programming (OOP), a style of coding in which related actions are grouped into classes to aid in creating more-compact, effective code. 
</blockquote>
<p>
He introduces the concepts behind objects and working with them in your code first then moves into how they relate to classes (with a housing metaphor). He talks about class structure, properties, methods (both magic and user-defined) as well as using __toString, visibility and using DocBlock comments in your code. They also have a comparison between procedural code and object-oriented code in the form of a few reasons to lean towards OOP.
</p>]]></description>
      <pubDate>Fri, 09 Jul 2010 08:56:25 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Giorgio Sironi's Blog: The dangers of Late Static Bindings]]></title>
      <guid>http://www.phpdeveloper.org/news/14346</guid>
      <link>http://www.phpdeveloper.org/news/14346</link>
      <description><![CDATA[<p>
<i>Giorgio Sironi</i> has a new post that <a href="http://giorgiosironi.blogspot.com/2010/04/dangers-of-late-static-bindings.html">warns you of the dangers</a> that could come from the use of a technology just recently introduced to PHP - late static binding.
</p>
<blockquote>
There's a lot of (justified) excitement about <a href="http://php.net/">PHP</a> 5.3 new features, such as the support of namespaces and anonymous functions. Though, some glittering capabilities of the language are definitely not gold: the goto statement is probably the most debated example, but also the long-awaited Late Static Bindings support is an hammer which may hurt your fingers...
</blockquote>
<p>
He talks about how two of the characteristics of late static binding - the fact that it involves something being static and that there's a sort of hierarchy involved. He gives a code example of how it could be used and notes that static functions should be used sparingly since they are a more procedural way of doing things.
</p>
<p>
The post also includes a good example - an abstract Factory method - and a bad example - Active Record that doesn't evolve towards a Repository pattern being used.
</p>]]></description>
      <pubDate>Wed, 14 Apr 2010 07:06:41 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Doug Brown's Blog: Do You Really Need a Framework for Writing PHP?]]></title>
      <guid>http://www.phpdeveloper.org/news/11578</guid>
      <link>http://www.phpdeveloper.org/news/11578</link>
      <description><![CDATA[<p>
<i>Doug Brown</i> <a href="http://www.brownphp.com/2008/12/do-you-really-need-a-framework-for-writing-php/">asks a question</a> on his blog today that is coming up more and more, especially on those programmers new to the language that don't quite get what frameworks really have to offer. Do you really need a framework for writing PHP?
</p>
<blockquote>
The simplicity in using PHP sometimes acts against it. Since there are very few coding restrictions, developers tend to write a bad code. The answer to this is definitely to use a framework. There are various PHP Frameworks available today like Zend Framework, CakePHP Framework and CodeIgniter. They provide a strong organization for your application and follow the commonly used MVC pattern.
</blockquote>
<p>
To help out those new to frameworks, offers a few things they have to offer that normal procedural/library-based development may not. These include maintaining code standards, attractive URLs and getting help when you need it from other developers using the same system.
</p>]]></description>
      <pubDate>Tue, 16 Dec 2008 08:42:44 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Eran Galperin's Blog: Common misconceptions in web application development]]></title>
      <guid>http://www.phpdeveloper.org/news/10644</guid>
      <link>http://www.phpdeveloper.org/news/10644</link>
      <description><![CDATA[<p>
<i>Eran Galperin</i> has a few <a href="http://www.techfounder.net/2008/07/20/common-misconceptions-in-web-application-development/">misconceptions in web development</a> posted to his blog today (for both front and back-end development).
</p>
<p>Here's his list:</p>
<ul>
<li>OO code is less performant than procedural code
<li>The backend is the most important part of development
<li>Graphical designers are good at user interface design
<li>The existence of a superior programming language
<li>XML is more economic than a DB
</ul>
<p>
While the others touch on some topics that could be PHP related, he focuses on it in #1. He points out that sometimes making classes and objects and interfaces and...well, you get the idea...is just too much and that procedural code can be the quick hit you need.
</p>]]></description>
      <pubDate>Mon, 21 Jul 2008 09:37:07 -0500</pubDate>
    </item>
  </channel>
</rss>
