Programming magic, glory, and juices.

PHP/OOP Hellish Nightmare

February 27th, 2007


PHP, the programming language, is not up to par and is not even worthy of consideration by any object oriented programmer.

PHP cannot do..

Static Binding

<?php
public class A extends B {
   static protected $Name = "A";
}
public class B {
   static protected $Name = "B";
   public function Name()
   {
      echo self::$Name;
   }
}
A.Name(); // returns B
B.Name(); // returns B
?>

Static Constructor Methods

<?php
public class A {
   static function __construct()
   {
   }
}
?>

I wish I would have known this before I wasted a bunch of time. I installed PHP 5 thinking it fully supported all facets of object oriented classes. I know there are work arounds, but you end up losing all the benefits of object oriented programming. I am truly disappointed and I loath PHP. What a piece of shit.

Updated: I just learned C# cannot do the static binding thing either. Horrible. Bullocks.

Wordpress Permalinks, Removing Index.php in IIS

July 2nd, 2006


This plugin tricks Wordpress into displaying the correct post when a user requests a url from your wordpress blog that does not contain index.php in it. In order for it to work you have to have access to your custom 404 error page settings on your web host. Read me file included

Download 0.1.5

PixGallery

January 21st, 2006


PixGallery is a wordpress plugin that.. “automatically checks the actual size of your images agianst the <img> width and height specified in your html and creates a cached thumbnail images based upon your desired image size and links the cached thumbnail it into your html code. PixGallery also has part that works like a photo gallery and the demo of it can be viewed on this site, under Photos. ”

Please see the projects page for more information.