During my current exam phase I'm working on some tiny private project to relax after learning. In there I'm using a main controller class, which implements a singleton pattern and initializes several sub-controllers while being created. The singletons purpose is, that the other controllers can access to main controller and its functionality whenever they need, without storing a reference each. The code for the singleton looked about like this: [Read full post…]
At our weekly usergroup meeting, which is taking place just right now, we again discussed our beloved topic, the Ternary Operator. I like that thing really much and I believe it makes code much more readable in a lot of cases. Anyway, I tend to stack ternary operators and I didn't even know, that the PHP manual recommends to not do that. I think this recommendation is only valid of you don't add appropriate braces, to indicate the precendences. Anyway, while having a beer, we thought about some more "funny" things you could do with it... For example, executing mutliple statements, within one section of the operator... here is the result: [Read full post…]
Wietse Venema, the creator of the Postfix MTA, posted a proposal for a "taint mode" to the PHP internals list. Before commenting his proposal, I'd like to give a short intro about what a "taint mode" is: [Read full post…]
Jakob (a good friend of mine from the PHP UG Dortmund) has written a bash script to create class graphs (non UML conform, but what shalls?) from a PHP source directory. The resulting SVG is generated through GraphViz. He just ran the script on the eZ components. Here is a small excerpt: [Read full post…]
During his keynote on the International PHP Conference 2006 Bray performed a little comparison between Java, Ruby (mainly Rails) and PHP. While I first thought, this could only be some dumb marketing stuff, the presentation was actually really good. Tim first introduced his comparison basis (Scaling, Dev Tools, Dev Speed and Maintainability) and explained his views on the 4 topics and which keywords he considers under each of them. This introduction was really good and well-founded. After that, he showed and explained a diagram to make the actual comparison: [Read full post…]
I tried a several times to get eZ components (and other eZ projects) into Ohloh. Ohloh claims to do "Mapping the open source world by collecting objective information on open source projects", which fits the website content quite well. If I got the basic project idea correctly, it should give managers an impression on the quality and usability of open source projects. Since managers usually want to have "hard facts", Ohloh tries to masure numbers it can extract from various public project data (e.g. from SVN). [Read full post…]
The october issue of the International PHP Magazine has been published, including "The PHP OO candy store", an article about PHP5s cool OO features and SPL. The article looks cool and I was really suprised to see that it became the cover story. :) [Read full post…]
As promised a while ago we'll have a bunch of presentations during the next PHP usergroup meeting in Dortmund. Sadly the date for this event was been moved several times, mainly because of my rare time in the past weeks (thanks guys!). But now the time has come: [Read full post…]
Yesterday evening was the second meeting I attended of the PHP user group Dortmund. Sadly we've only been 5 people, although there are currently 12 members on the mailinglist. Since we wanna start some kind of useful project with the group members (what project this will be is not ready for the public, yet) and have a huge variaty of states of knowledge in the group, we decided to have an educational session in our next meeting. All of the 5 attendants from yesterday took a topic to prepare a little presentation (30-45 minutes) for the next meeting (in 2 weeks, 5th of May). [Read full post…]
phpPatterns introduces a new pattern example on the (IMHO) most redundant software implementation world wide. It implements the "Hello world!" tool (which is a common way to start learning a new programming language) using a MVC pattern in PHP. In my opinion it shows pretty well, how much overhead OO development adds to small software implementations. [Read full post…]