June 5, 2008

Plugin [PoEAA]

I’m sure you’re pretty often in the situation that you have to switch something depending on the context you’re currently in. For example most people change their eating habits before summer - I also do :P Sometimes this is what you also want to have in your software. To achieve different behaviour you normally just implement two different classes or aggregates and since they have the same “meaning” they normally share a interface (a. ... Read more

June 2, 2008

Comparing PHP Best Practises

If you’re still wondering whether the single- or double quotes are processed faster in PHP you might want to look at phpbench.com. They don’t provide any ground breaking new insights, but they show in a very nice way what’s best pratice when it comes to arrays, strings and loops…

May 30, 2008

Value Object [DDD]

This metaphor does not fit completely, and the “Money-Example” is omnipresent, but I really like the pattern and so that’s the story: Let’s say you have your grannies recipe for a chocolate cookie and you want to keep this in mind, but also you like to somehow experiment with some new or different ingredients. Normally you just keep in mind what you changed and later you write down the new recipe. ... Read more

May 29, 2008

Today's Rofl

These two storries passed my day and I really like them Oo Calls for free and how this can get back to you… and I hope that I never meet the officer in this story.

May 27, 2008

Prototype [GoF]

Imagine a cookie-oven which produces tasty cookies with chocolate crumbles. How do you ensure that the 1000th cookie still has the same taste as the first? You might think that this is an easy task - just write down the recipe and follow the described steps…you know the result in real life - the 1000th cookie normally tasts like the 1st but you always had the “overhead” to read the recipe and go through the steps again and again. ... Read more

May 26, 2008

Wii Head-tracking

The page and the experiments with the Wii-Remote controll are really great: http://www.cs.cmu.edu/~johnny/projects/wii/ And for the spare time a cool video - I watch it every monday morning to get into the new week with a smile: [youtube]http://www.youtube.com/?v=HIicO-e0hic[/youtube] The second one is also cool: [youtube]http://www.youtube.com/watch?v=6VKE_VoXzNI[/youtube]

May 24, 2008

PHP FastCGI vs. PHP as a module

The apachelounge.org guy published a very interesting stat which compares the memory-usage of PHP/FastCGI and PHP/as module and that’s really interesting: There’s no comment about performance and in early versions FastCGI/PHP was a bottleneck but maybe these days are gone :)

May 23, 2008

Singelton [GoF]

Tis pattern is a very well know and a often discussed one. Explaining it the tasty way: let’s say you have exactly one well know place where you store all your cookies and whenever you need one you can easy point to that place. Normally that’s really comfortable because whatever you do with it, you don’t have to search some place where you can find a cookie, you just go to that single “cookie tin” (or wherever you store cookies) and put a new cookie into it ;) ... Read more

May 22, 2008

PHP sucks? not really!

There are so many people from outside of the PHP World and lots of them are complaining about PHP and their reasons are mostly so ridiculous. In most cases they just say that PHP code sucks. The PHP 10.0 Blog brought up some good arguments about that and I fully agree - it’s not the language that produces sucking code, it’s the guy who wrote it down. Click

© tolleiv 2016 - CC BY-SA 3.0 - Powered by Hugo