Reason #184 why PHP sucks

class Blah {
        public static function
        hello($id) {
                printf("Static");
        }

        public function
        hello() {
                printf("Instance");
        }
}

Blah::hello(5);
$x = new Blah();
$x->hello();

You knows it......

more

Kohana Virtual Hosts

If you intend to run multiple Kohana applications from the same code base, the separation of the system & modules directories from the application and it's themes is the standard way to go....

more

Flexible PHP Interfaces

While working on converting old and flaky code to our current framework, making it more object orientated, with less duplication and easier to understand and use I thought I'd cover a few things which to me make classes, methods and interfaces "Programmer Friendly"....

more

Abusing Type Hinting in PHP

PHP has the ability to type hint function arguments to only accept that type or derivatives of that class or interface, this can lead to better interface design and much less runtime checking (as calling a type hinted function implicitly requires the parameter be of the correct type)....

more
Page:  1 2 3

About

Harry is a professional developer and sysadmin from London, UK.

He's an atheist, employed at PixelMags LLC, a socialist and has a pragmatic outlook on life, love and religion.

Bookmarks

I'm constantly finding interesting stuff, here are some of the things I've bookmarked recently:

HarryR on Faves.com