Linked by Adam S on Fri 6th Oct 2006 18:32 UTC
General Development There's an interesting challenge in writing a good book about programming. At a certain point, you'll lose the newbies and alienate the technical. Below the line is a safe introductory book, above it is aimed at a smaller crowd. We had an opportunity review No Starch Press' Object-Oriented PHP, and found it fits nicely into the gap.
Thread beginning with comment 169221
To read all comments associated with this story, please click here.
OOP for PHP or just OOP in PHP?
by John Nilsson on Fri 6th Oct 2006 21:11 UTC
John Nilsson
Member since:
2005-07-06

So does this book focus on some of the special concerns of PHP?

Assuming a web system we have this to think about:
* Each class is parased, compiled and initialized for each and every request.
* The whole execution is geared towards a single request, and thus has no other concern other than to service this uniqe request.
* The execution is probably single threaded and is thus shielded froma alot of concurrency problems.
* Request data is availible in globals.
* Code in each layer can make theese basic assumptions about the execution.

In this environment there's a whole slew of patterns and idoms coming from the Java-OOP world that just doesn't make sense.

Edited 2006-10-06 21:11