Design Patterns mit PHP5

In der Zend Developer Zone erscheint zur Zeit eine Serie von Artikeln zur Umsetzung von Design Patterns mit PHP5.

Aufbauend auf einer Einführung in das Thema, werden bis jetzt die drei Muster Observer (Beobachter), Composite (Kompositum) und Visitor (Besucher) vorgestellt. Schritt für Schritt von der Theorie über Klassenmodelle bis hin zu echten PHP-Beispielen stellt der Autor die Modelle detailliert vor. Zum Abschluß wird das Muster noch einmal diskutiert und seine Charaktersitiken werden dargelegt.

AJAX Tutorial: Programmieren ohne Framework

Rasmus Lerdorf ist kein großer Fan komplexer MVC-Frameworks bei der Programmierung von Webanwendungen. In einem Tutorial zeigt er statt dessen, wie man auch mit einfachen Mitteln (PHP, Yahoo! UI Library und JSON) eine Web2.0-Anwendung erstellen kann.

Many frameworks may look very appealing at first glance because they seem to reduce web application development to a couple of trivial steps leading to some code generation and often automatic schema detection, but these same shortcuts are likely to be your bottlenecks as well since they achieve this simplicity by sacrifizing flexibility and performance. Nothing is going to build your application for you, no matter what it promises. You are going to have to build it yourself. Instead of starting by fixing the mistakes in some foreign framework and refactoring all the things that don’t apply to your environment spend your time building a lean and reusable pattern that fits your requirements directly. In the end I think you will find that your homegrown small framework has saved you time and aggravation and you end up with a better product.

(via SitePoint’s PHP Blog)