Let your classes live their own life

posted: December 27th, 2004 · by: Sven

in: Programming · tagged as: , ·  2 comments »

Comparing Google’s results on querying “php event listener” with “java event listener” we could state: so far there’s not too much about events and listeners, observers and notifications in the PHP world, while these basic patterns have gained safe ground in Java, C++, ... for many years.

Thus, it’s no wonder that we’ll find matured Lifecycle implementations in the Java world like in JavaServer Faces, Geronimo, WebWork and others more. Afaik, there are some efforts on event driven application design in the PHP world though, some examples well worth to study are: WACT, Prado, Poseidon.

In this article we’ll examine how to implement a simple Lifecycle in PHP.

Read the rest of this entry

A php way to simple class aggregation

posted: November 30th, 2004 · by: Sven

in: Programming · tagged as: , ·  3 comments »

Well designed OOP is all about code reuse, robustness and self-containment. But a programmer who’s played around with an OOP language longer than a few hours will soon notice that things are not that simple as beginners are being told by OOP tutorials. This article is about a php way of achieving a clean separation of code and enabling the programmer to plug & play classes into others at the same time.

Read the rest of this entry

artweb design
Sven Fuchs
Grünberger Str. 65
10245 Berlin, Germany


http://www.artweb-design.de

Fon +49 (30) 47 98 69 96
Fax +49 (30) 47 98 69 97