Archive for July 17th, 2006
PHP Developer - July 17th, 2006
On the Zend Developer Zone, Cal Evans got a chance to site down and talk with Dan Gisolfi, a “Certified IBM Executive IT Architect” and talk about IBM the company, PHP, the Zend Framrwork, and the latest offering from IBM - QEDWiki.
When people mention IBM, the most common mental picture is huge corporate IT. (that and Avery Books starring back at me from my TV demanding to know where the flying cars are) Their reputation for large IT projects borders on legendary. So prevalent is this mental picture that many people lose sight of the fact that IBM has been quietly innovating for the past 20 years.
I was recently blessed with the opportunity to slip below the blue veneer. It was far from the corporate cube farm mentality I expected. What I found was interesting, it was fresh; yes, I’ll say it, it was innovative.
They talk mostly about the QEDWiki technology - an interface to web applications (which can use PHP) to be a “mashup enabler” for developers. They cover what it is and how it’ll help the web in general, and include a mention of IBM’s demo site for the project (for a fictional hardware store).
Continue Reading ·
PHP Developer - July 17th, 2006
Pierre-Alain Joye updates us on the new release of his MnoGoSearch package, reborn into the life of a PECL package:
This release is only a maintenance release. It brings the MnoGoSearch PHP binding back to life. This package is still present in our php 4.4 branche but has not been really tested with any other PHP versions. That’s why I choosed to release it as 1.0.0-alpha (development release).
He’s looking to have a stable release by the end of the year. Until then, check out the MnoGoSearch page and the package homepage for more details.
Continue Reading ·
PHP Developer - July 17th, 2006
DevShed is starting off a new series today with the first part of their look at design patterns, specifically this time, the Observer pattern.
If you have reached the point in your programming life where you are using design patterns, you will want to read this article. The first of a three-part series, it covers the Observer pattern, which can be just the thing for situations where objects need to send information to a centralized mechanism.
I hope you’ll be wondering how all this boring theory can be translated into functional PHP code. That’s what I’m going to do in the course of this article, by introducing some friendly examples of how to implement the Observer pattern in PHP applications.
They just right in and create a more practical example, opting for demonstration over a lot of explaination. Their sample code manipulates strings to change them to uppercase and save them off to a file. They attach a basic error logger to it and then conform it to fit in with the Observer pattern style.
Continue Reading ·
PHP Developer - July 17th, 2006
In this new post on his blog today, Nick Lo provides an entertaining look at getters, setters, and constructors in the context of - what else - a children’s book (in the style of the “Mr. Men” series).
One day, while refactoring a web application from procedural to object oriented code, Mr Dizzy decided to use constructors in a way that anyone in Cleverland would have pointed out was really not very clever.
The cutesy story relates Mr Dizzy’s quest for an easy solution to using setters and getters. Unfortunately, he makes the wrong decision and puts them in the constructors, causing all sorts of trouble all around. Definitely a great way to relate a message (kids books do it all the time, right?) - kudos to Nick for the idea.
Continue Reading ·
PHP Developer - July 17th, 2006
Christian Stocker shares in this new blog post about an update he’s made to the DOM functionality in PHP - adding the getNodePath feature.
With this, you can easily get an XPath for any given DOMNode, works also for attributes, text nodes, comments and all other node types. It’s basically just a simple wrapper for xmlGetNodePath from libxml2, maybe useful for some other people also.
He gives a code example and notes that more information about XML functionality improvements will be coming from his blog soon.
Continue Reading ·