Handling Collections of Aggregate Roots – the Repository Pattern

Dealing with the oddities of a layer of Data Mappers is quite a burden, often dropped into a “code once/use forever” strategy. The situation can become more awkward when the model starts to bloat and increase in complexity, since additional mappers will be added over time. See how to build a repository from scratch so that you can see its inner workings and how it can tame such problems.

The Dependency Inversion Principle

96290099

The Dependency Inversion Principle talks about making both high and low-level modules dependent on abstractions, but at the same time the high-level modules must have ownership of those abstractions – a subtle yet often overlooked detail. This article shows you how you can fully adhere to the DIP in a pragmatic way in PHP, something that will surely make your applications a lot less vulnerable to future fragility and rigidity issues.

Tim was on the Podcast!

Image via urfin / Shutterstock

As you may or may not know, Sitepoint.com has a podcast each Friday, and just a few weeks ago Tim (the Managing Editor for PHPMaster.com) was kind enough to be interviewed. Given that he knows pretty much everything about PHP, I highly recommend sparing the 20 minutes to take a listen.

Using an Access Database with PHP

12261550

Sometimes a client will already have a database and ask that we make it available on the web, and sometimes that database is in Access. Never fear, for PHP can easily work with Access databases using an ODBC driver. Learn the essential elements you’ll need to put an existing Access database online.

REST – Can You do More than Spell It? Part 2

sleeping cat

This installment in the four-part series focuses on the server-side. You’ll learn how to shift your thinking from the action-focused mindset that’s prevalent in web development today to a more RESTful, resource oriented, approach, and see one way to structure your code and route URI requests in PHP.

REST – Can You do More than Spell It? Part 1

sleeping cat

This four-part series introduces you to REST, a set of principles that define how a server and client can communicate with each other (and external resources) in a simple, straightforward, and robust manner. Though you’ll often see the words “REST” and “architecture” together, REST is not a specific architecture. In this part you’ll learn about REST’s principles why most REST applications use HTTP.

© 1998-2012 SitePoint Pty. Ltd. All Rights Reserved