Seeking Perfection

Jacob Wright
May 15th, 2006

I find myself always seeking for the perfect code, the perfect library, the perfect system. Is it healthy? My employer might rather a code monkey which will mass produce web applications. Sure, the code would be a pain to maintain, but we would make more money. Or would we?

I was contracted by my company for awhile to one of their clients. While I was there I started making my own JavaScript tree menu in my spare time. The developers I worked with asked why I would do something like that. There are already a handful of tree menus free for download on the web. I was doing it because, one, I thought it would be fun (they thought I was crazy), and two, none of the tree menus gave the functionality I sought. I ended up making a tree menu that is really nice, has a context menu, and works well with Ajax. I have used it in several projects.

I also started building a PHP framework around that time. Pherret was created in my spare time (another “painful” project my coworkers said) because I thought it would be fun and because I didn’t like what was already out there? Arras Template, which became part of Pherret, is a unique and fun templating system. And finally I put together my own JavaScript Ajax library, borrowing some from others like Prototype.

Not being content to use others’ code, others’ frameworks, and others’ hard work is my downfall.

Or is it? I am now the expert at my company in JavaScript. I know the inner workings of what a framework needs to deal with. I know what a template system needs to be able to do, and some of how to do it. I have gone from knowing very little about programming (just 2 years ago) to being a well-versed and well-rounded developer. The drive that has me writing things that have already been done, or even just the drive that has me developing in my spare time instead of just in the workplace is what has made me valuable as a developer. I suppose we call the type a “hacker”. The person who loves to get their hands into code as a hobby.

I’m glad I’m a hacker. I program in a way that my code becomes better and better, day after day. My applications become better layed out. Better organized. Easier to maintain.

AMFPHP 1.0 Ready

Jacob Wright
August 12th, 2005

AMFPHP (Flash Remoting written in PHP) is almost ready to hit a stable version 1.0 release! I’ve been looking forward to this for a long time. We’ve already used it at 4.4 million posts to a remoting service in one month.

setProperties

Jacob Wright
August 5th, 2005

One of the simple and very useful pieces of code in Pherret (a PHP 5 framework) is the setProperties() function in the base Object class. The name originally came from Java Beans and works in a similar manner. I’m sharing it because it could be used in any code with PHP 5 or PHP 4.

Application Built with Pherret

Jacob Wright
June 7th, 2005

The first application being built with Pherret is an ecommerce site for Uclean. It is a full-featured site with alot of extras for the admin. The original site was built off of osCommerce, but because there were so many new features and improvments to be made we needed to rebuild it from ground up. OsCommerce is not very object-oriented and not easy to modify (we have many major changes) so it was determined it would be best to rebuild it. . .

Pherret Tutorial

Jacob Wright
June 7th, 2005

I have just put up the source files for a Pherret tutorial. . .

The Pherret Framework

Jacob Wright
June 5th, 2005

I have looked for a framework and finally started my own PHP framework. . .