Site Archives object oriented

The object in question


For all the talk of object oriented design and patterns on this blog I sometimes question my own take on objects. What are objects? What are their roles? 
Most of my experience in the professional realm has been in ‘enterprise architecture’ (until recently) where layered approaches are king. Most the systems I have worked on and [...]

Share on Facebook Share on Facebook

Model View Controller Explained


According to Wikipedia’s entry on Model View Controller:
Model-view-controller (MVC) is an architectural pattern used in software engineering. Successful use of the pattern isolates business logic from user interface considerations, resulting in an application where it is easier to modify either the visual appearance of the application or the underlying business rules without affecting the other.
MVC [...]

Share on Facebook Share on Facebook

REST Client : Approaches to Implementation


I have covered a couple of REST topics previously, Who Needs REST? and Now for the REST of the Story. I started playing around with a client library used to consume rest services and discuss the experience below.
The approaches
My first approach was to create a version of the client using a strategy pattern. By using [...]

Share on Facebook Share on Facebook

PHP, Query Object Pattern


This continues the discussion of Martin Fowler’s Object Query pattern from the book Patterns of Enterprise Application Architecture. The previous discussion about the Metadata mapper pattern talked about how to map domain objects to database results.
These discussion are really a brief overview of Microsoft’s Repository Factory and how they use Fowler’s patterns with [...]

Share on Facebook Share on Facebook

PHP, Data Access Metadata Mapper


In thinking about the post I made a couple of days ago about PHP and the idea of using a Data Access Layer it had inspired me to do some reading. So I have been digging through Martain Fowler’s book Patterns of Enterprise Application Architecture (pictured to the left). Three patterns I have been [...]

Share on Facebook Share on Facebook

Useful PHP Releated Links


Recommended PHP reading list
A list of recommended reading material on PHP is compiled from a variety of online sources by Web application developers in IBM’s Global Production Services organization.
Five common PHP design patterns
Design patterns are just for Java architects — at least that’s what you may have been led to believe. In fact, design patterns [...]

Share on Facebook Share on Facebook

Why object oriented?


I just read an article from ‘Communications of the ACM’ Magazine. The article discusses the relationship between symmetry in geometry and that of the object oriented paradigm. The articles main point was that when symmetry breaks patterns emerge. It put forward that object oriented design patterns are the breaking of symmetry in object “class based” [...]

Share on Facebook Share on Facebook

PHP, Data Access Layer


In reading about PHP data access one thing that I notice is a lot of example that explain reading and writing to a database have the mysql_connect() function and write/execute SQL statement directly in the page code. Coming from an enterprise architecture background this makes me cringe. It really reminds me of my early days [...]

Share on Facebook Share on Facebook

OO Design Principal: Separate Changing Functionality


Identify the aspects of your application that vary and separate them from what stays the same.
The idea here is to encapsulate functionality that will change, so that they can be easily altered or extended without affecting other parts of the system. The benefits are pretty obvious, there will be fewer unintended consequences from code changes [...]

Share on Facebook Share on Facebook