Dewald Botha
open source web thoughts
open source web thoughts
Mar 30th
Lately I’ve ventured fully submerged into the world of Test driven development (TDD).
This might start out a bit scary, especially if you have only heard about it, but never done it yourself. There is a couple of good reads on the net, so you might want to start out by familiarising yourself with this exciting way of doing things.
Have a look at http://en.wikipedia.org/wiki/Test-driven_development or Google it.
What is test driven development?Test driven development (TDD) is more a change in coding philosophy than anything else. Some of us might say: “…yip, I’ve written a couple of unit tests when I had some spare More >
Feb 19th
so – you say you want to detect which mobile devices hit your site? – in the past, this has been a bit of an issue, but lately – with really nice projects available out there such as WURFL or DeviceAtlas, you are able to concentrate harder on other issues, instead of having to write a complete library of your own.
so for this, i’ve decided on DeviceAtlas. just head on over to DeviceAtlas and open a developers account – you will get a one year developer’s license to play around to see how cool it is.
Feb 17th
so i finally took the time to write some code to better articulate my thoughts on ‘game theory pattern’.
/*
* Abstract Unifier class to select objects from different sources.
*/
abstract class childObjectUnifier
{
protected $currentObjectLocation;
public function __construct()
{
$this->currentObjectLocation = get_class($this);
}
public function getData()
{
switch ($this->currentObjectLocation)
{
case 'currentServerLoginObject':
return $this->currentServerLoginFunction();
break;
case 'remoteServerLoginObject':
return $this->remoteServerLoginFunction();
break;
default:
die('Current user load not available');
}
}
}
/*
* Login Object which exists on the current server.
* This object could still be hit on the current server if the current user load is not high.
* More > Jan 23rd
so, i’ve been pretty much a zend framework addict, ever since i coded my first bootstrap. thinking back to that countless hours trying to understand the beast that is zf, ahhh, what fond memories… and lately i’ve also been playing around a bit with kohana, which is another web based mvc framework, but definitely a bit more lightweight and easier to use than others.
there is however a bit of an issue with web based mvc frameworks, and in my opinion a large freaking elephant that no one seems to talk about. how can i call a controller from within a view More >