Author Archives for mark lewis
Web Development Cheat Sheets
Doing a google blog search on PHP I ran across a blog for someone that compiles ‘cheat sheets’ for web development technologies. What great about this is they are free in PDF/PNG formats.
PHP cheat sheet features things like functions, expressions, and techniques.
Subversion cheat sheet is good to have while working with saving source and managing [...]
Use WordPress functions externally
I did some quick research and was surprised to find how easy it was to add wordpress function to pages that were external to the blog site folder.
Find the path on which your blogs root it, on the path there is a file wp-config.php. This file once reference on your external page opens the WordPress [...]
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 [...]
Now for the REST of the story
What is REST?
When boiled down, REST is an architectural style that defines a set of constraints. These constrains describe what HTTP and the World Wide Web are based on. These constraints can be defined as follows (list and image below used from A Brief Introduction to REST):
Give every “thing” (resources) an ID
Link things together
Use [...]
What is a mashup?
I have recently have been hearing the term mashup thrown around a lot. To not be left behind, I looked up the Wikipedia entry on mashups. According to the article a mashup is a web application hybrid. By including content or functionality offered through third party services (typically through web services), making a new application [...]
Developers Plight
Refactoring in older systems is rarely just a technical issue. Most of the time a developer has to navigate organization and political issues as well.
Let’s say you are given small project that is low priority project to fix a bug in an existing application. The project is expected to have a quick turn around and [...]
Who needs REST?
I have been reading a bunch of online articles about REST (REpresentational State Transfer) which was first discussed in Roy Thomas Fielding’s Dissertation ‘Architectural Styles and the Design of Network-based Software Architecture’. Though in this body of work Fielding never argues that either REST or HTTP constituted a sufficient basis for a web services architecture, [...]
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 [...]
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 [...]
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 [...]


