Framewerk TUser

Posted on September 28, 2005
&tLast night I added what I think is one of the cooler features in Framewerk last night. The TUser object when initialized with an id or username in the constructor loads the user data as attributes of the object. If you change them, it will automatically save them when it's destroyed. If you initialize by passing nothing to the constructor, it creates a new user. If you update the attributes, it changes them, if you don't, it just removes all reference to the new user. It makes for very easy interaction for dealing with user data.

// Return a formatted user name and email
$user = new TUser(1);
echo $user->returnFormattedName() . "<br />";
echo $user->email.
unset($user);

// Add a new user
$user = new TUser();
$user->username = 'testuser';
$user->email = 'some@email.com';
unset($user);

You know what I hate?

Posted on September 27, 2005
When people reduce their speed to 50 at the foot of Newhall pass on the I-5 south. There's no reason for it. It's not steep or dangerous. It's just an automatic "be rude to the people behind you and slow down." Oh yeah, and do it in the #1 lane. It's quite sad when the #4 lane goes faster over the pass then the #1 lane. But after this week, I will no longer be frustrated with this behavior twice a day. You see I'm going to start taking the commuter bus.

New Podcast

Posted on September 15, 2005
I recently started a new podcast focused on PHP development, Open Source, and technology issues. When checking out the download stats yesterday I found that iTunes Music Store is now listing it in their podcast directory :). I've started to line up future episodes and have some ideas for where to take it. If you're involved in the open source community somehow and are interested in participating in an interview or something let me know.