Versioning. For lazy people.
January 26th, 2010
I am a pretty lazy guy and therefore I want to do all things with as little trouble as possible. Usually , I don’t plan a certain methodology for my projects, instead , I use an organic approach. If things are needed, they will be added to my ‘methodology’.
One of the most important issues [...]
Using a decorator for caching purposes
November 18th, 2009
In my previous post I gave some examples on how caching can evolve. However , what annoys me in the second and third approach is that I have some extra code and dependencies which are not really related to my class. The examples bellow detail how you can use a decorator to cache another class.
class [...]
Three simple php caching tehniques
November 10th, 2009
No talking . Just examples
class Foo
{
private static $_bar = null;
private function getBar()
{
if ( null == self::$_bar) {
//very expensive operation
[...]
Rss