PHPDeveloper.orghttp://www.phpdeveloper.org
Up-to-the Minute PHP News, views and communityen-usTue, 03 Mar 2015 13:00:50 -060030http://www.phpdeveloper.org/news/20378http://www.phpdeveloper.org/news/20378
Following up on his previous post talking about going "beyond inheritance" in object-oriented development in PHP, Anthony Ferrara has a new post extends the subject, focusing more on types of classes and how his thoughts would apply.

In the last post Beyond Inheritance, we talked about looking past "types" and reasoning about objects differently. The conclusion was that inheritance wasn't necessary for OOP, and often results in more problems than it solves. Well, let's go beyond that and explore more of what will come from treating objects as containers of behavior. Let's look at what this means for various kinds of classes.

He looks at five different class types and gives a brief summary of the concepts they represent - Representers, Doers, Plumbers, Translators and Makers. He then shifts over to investigating how this all applies to the SOLID development principles. He follows this pattern of thought through and looks at how it breaks things down into decomposable behaviors and, ultimately, functional programming/code structures (including the suggestions that creating ValueObjects is directly related).

Link: http://blog.ircmaxell.com/2013/11/beyond-object-oriented-programming.html]]>Tue, 12 Nov 2013 11:56:36 -0600http://www.phpdeveloper.org/news/16115http://www.phpdeveloper.org/news/16115
Based on his Beyond Frameworks session presented at this year's PHP UK Conference 2011, Stuart Herbert is in the process of creating a series of posts based about its contents:

[In my session] I explained how a component-based architecture can help answer some of the important (i.e. expensive!) questions you might face when creating long-lived apps that rely on a PHP framework. In this series of blog posts, I'm going to look at how to go about creating and working with components.

As of the time of this post, there's three different sections - "Getting Started", "The Tools We Use" and "Working with PHP Components" - and lots of posts to match. The large part of the series has been focused in the components area with articles about planning, unit tests and making PEAR-compatible packages.