Tuesday, August 03, 2004

In a comment discussion, I mentioned my disdain for using Perl for anything larger than simple scripts or line-based text parsing (which is what it was invented for...see below). I received some pushback on this opinion from Shelly, obviously from her own experiences with the language.  I enjoy pondering a dissenting opinion when based on experiences or data.  She says:

Using a good OO design and programming techiques, a perl program is not a nightmare for maintainability...just like any other language (yes even assembly).

Obviously, I need to open my mind here. I guess my question becomes: Once you get to the point where you need to apply OO design and programming techniques, are there not more suitable languages for a project like that?  I'm curious to know what other people's opinions are on this.  What are the advantages of Perl over other truly OO languages?  Why would you choose it instead of another language?

For your enjoyment, here's the original manpage for perl:

 NAME
  perl | Practical Extraction and Report Language

 SYNOPSIS
     perl [options] filename args

 DESCRIPTION
      Perl is a interpreted language optimized for scanning  arbi-
      trary  text  files,  extracting  information from those text
      files, and printing reports based on that information.  It's
      also  a good language for many system management tasks.  The
      language is intended to be practical  (easy  to  use,  effi-
      cient,  complete)  rather  than  beautiful  (tiny,  elegant,
      minimal).  It combines (in  the  author's  opinion,  anyway)
      some  of the best features of C, sed, awk, and sh, so people
      familiar with those languages should have little  difficulty
      with  it.  (Language historians will also note some vestiges
      of csh, Pascal, and  even  BASIC|PLUS.)   Expression  syntax
      corresponds  quite  closely  to C expression syntax.  If you
      have a problem that would ordinarily use sed or awk  or  sh,
      but  it exceeds their capabilities or must run a little fas-
      ter, and you don't want to write the silly thing in C,  then
      perl  may  be  for  you.  There are also translators to turn
      your sed and awk scripts  into  perl  scripts.   OK,  enough
      hype.
posted on Tuesday, August 03, 2004 10:32:41 AM (Pacific Standard Time, UTC-08:00)  #    Comments [4]

Ever pine for the days of 16 color, 160x120 resolution adventure games?  HomestarRunner.com has expanded its Trogdor-related franchise by adding Peasant's Quest.  Last week, they had this preview of it, which was also hilarious.  Becky loved the rabbit algebra line.  I just went through a couple of screens of the game here on my lunch break, and laughing my rear off (ouch).  Looks like you can save and everything.  I can imagine it would be the most fun to play with a friend.  Maybe I can play it with Dave sometime.

If you've never visited homestarrunner.com, start with the welcome and go from there.  Alot of stuff won't make much sense until you've meet the characters, which you can do from one of the hilarious main menus.  Strong Bad's emails are my favorite and have been the birthplace of many of the funniest things on the site, including Trogdor himself.  Enjoy.

[Update: fixed spelling of Strong Bad. I think String Bad should be a new character]

posted on Tuesday, August 03, 2004 8:59:31 AM (Pacific Standard Time, UTC-08:00)  #    Comments [1]
 Sunday, August 01, 2004

This week has been pretty crazy. While doing some routine caulk replacement in the master bathroom, I discovered some water damage behind the tiles.  After removing some tiles and discovering some nastyness, I decided I could get into the wall from the outside more easily to clean it out and repair damage.

That wall of the house is obscured by some thick bushes.  I pulled an old picture of the house so you could see. I cut the bushes back so I could get to it.  I then discovered that the panelling was pretty nasty near the bottom that was being obscured and I had some ant problems.

To make a long story short, I spent the weekend ripping off the outside wall and replacing it.  Andrew came down Saturday and helped me put the new panelling up.  It was that Hardi-Plank stuff that's more like concrete than wood, and was MUCH heavier than wood.  It was also difficult to cut.  It pretty much destroyed a saw blade with one cut.  But it's supposed to not ever rot or mildew or anything, so it should be worth it.

Andrew and I replaced the panels I had removed, and as you can see we actually removed the window.  It was in the shower and I was tired of people being able to see me take a shower.  Also, it was the source of the tiling problem in the shower that lead to the water damage and an ant infestation.  We'll be redoing the shower/bath over the next few weeks, and Becky is looking forward to that.

Thank goodness I hadn't removed more panels, or we would have died.  It's pretty hot outside.  The heat index is well over 100 degrees.  I also hit my thumb with the hammer way too many times. I just finished caulking the wall and thought I share what's going on.  There's still quite a bit of work to do.  I need to replace the remaing 2 panels, but I'll need some cooperation from the utilities to remove all the crap they've screwed into the wall on the outside.

posted on Sunday, August 01, 2004 11:50:55 AM (Pacific Standard Time, UTC-08:00)  #    Comments [3]
 Friday, July 30, 2004

Webdell finished the BAR and relates the experience.  In there somewhere, he mentions having some bad dreams or nightmares. Peter mentions Clinton's entrance to the world of blogging. In honor of all these things, I will tell you about a dream I had last night that included all of those people...oh, Jenkies and Andrew were in it too, but Andrew doesn't have a blog and Jenkies hardly ever posts anything.  I know what you're saying and it's true. I have really bizarre dreams.  Here we go, I'll try to remember it as best I can.

Ok, so Peter, Webdell, Clinton, Andrew, Jenkies and I were driving to Waco in an RV. So it was alot like some kind of bizzare Segues reunion, but missing some people.  For some reason we were going south on I-35 from the Temple-Belton area, but were still headed to Waco.  It was a big RV and I think Webdell was driving, although I think the driver kept changing.  Whoever was driving was driving like a maniac, running over things and knocking down signs.

We got to Waco and went to the Baylor campus.  Evidently we were going to the library. Unfortunately, they wouldn't let us in because we didn't have a library card. So we sat outside on the steps and threw rocks at birds.  Then for some reason we started throwing rocks at each other, but the rocks would become like water-balloons when they would hit, so it was alot like that Nissan Sentra commercial.

Anyway, we got back in the RV and somehow it became a submarine and was like “The hunt for Red October”. Webdell was doing a Sean Connery impersonation, but it was alot like his Saddam Hussein impression, which mostly involves him putting his fingers under his nose and smiling really big.

I don't remember anything from there, so I guess it's a bit anti-climactic.  I just thought I would share.

posted on Friday, July 30, 2004 6:46:43 PM (Pacific Standard Time, UTC-08:00)  #    Comments [3]
 Wednesday, July 28, 2004

Today I needed an AVL tree implementation for some time-based indexing of cached data.  Unfortunately, I can't use the wonderful-looking OrderedDictionary in the PowerCollections project since .NET 2.0 is not due out for a while.  I searched around without any luck, so I rolled my own.  It's been a while since I messed with tree-based data structures.  I was pretty pleased with its performance characteristics, even with millions of records.

I'm thinking about releasing it as a short-term alternative for people having to wait on 2.0 and Peter Golde's PowerCollections project, so I thought I write a short blurb about it and link to some appropriate sites to generate some referrals and feedback.  Anyone interested in using it?

For those unfamiliar with AVL trees, it's a self-balancing binary search tree. Its characteristics that are of interest to me are:

  • self-ordering - values are stored and can be retrieved in order simply by traversing the tree, something a hashtable cannot give you.
  • self-balancing - This ensures that search times are O(log(n))
  • fairly straightforward to implement, as opposed to Red-Black, or other self-balancing BSTs

Again, if you're interested in using it, leave me some feedback and maybe I'll make it a sourceforge or GDN project.

posted on Wednesday, July 28, 2004 4:23:06 PM (Pacific Standard Time, UTC-08:00)  #    Comments [5]
 Tuesday, July 27, 2004

That title probably doesn't mean what you think it means.

After using Gmail for a few months for my personal email, searching for things in Outlook is the worst kind of ridiculous.  Lookout is an Outlook add-in that indexes for email for super-fast (like less than a second) searches.  The company was recently aquired by Microsoft, and they are continuing to provide it for free.  I'm sure they are interested in integrating this kind of searching for everything.

I just installed it here at work because I was tired of waiting for a search to complete only to have it give me nothing.  If you use Outlook, I'd highly recommend it.  It takes a little while to index for the first time (especially if all your mail is on a remote Exchange server), but works great when it finishes.

posted on Tuesday, July 27, 2004 8:44:40 AM (Pacific Standard Time, UTC-08:00)  #    Comments [2]
 Saturday, July 24, 2004

Today, Becky and I celebrate our 5th anniversary!  Pretty hard to believe it's been that long.  Happy anniversary Becky.  I love you more each year.

posted on Saturday, July 24, 2004 8:16:30 AM (Pacific Standard Time, UTC-08:00)  #    Comments [5]
 Friday, July 23, 2004

We just got back from seeing The Bourne Supremacy with the Barnes.  It was really good, but they went way overboard with the handheld shots.  There were lots of the movie where I had to look away to keep from getting a headache.  Other than that it was really awesome.  I was pleasantly surprised to see the actor who played Eomer in the Lord of the Rings.

My advice is to sit toward the back of the theater unless you like motion sickness.  I really think the director, Paul Greengrass, could have conveyed the same effect without so much camera shake.  It was really distracting.  But, really, it was awesome.  I love that kind of movie.

posted on Friday, July 23, 2004 6:48:16 PM (Pacific Standard Time, UTC-08:00)  #    Comments [2]
 Thursday, July 22, 2004

I finally got the rest of the good pictures from our vacation up on the gallery [password: marklio].  I put them all under one main album with sub-albums for each category.  I tried to keep the album sizes under control.  There are way too many Busch Gardens pictures.  Enjoy!

[UPDATE: 03/09/2005] The gallery is no more.  I have removed the link.

posted on Thursday, July 22, 2004 6:13:34 PM (Pacific Standard Time, UTC-08:00)  #    Comments [0]
 Tuesday, July 20, 2004

I just uploaded the cream of the crop pictures from our 2-day Busch Gardens adventure to the gallery (as always, password: marklio).  Enjoy.  I'll have more from the rest of the vacation up at a later date.

[UPDATE: 03/09/2005] The gallery is no more.  I'm using Flickr to host my pictures.  Here's a link to the photoset for the Busch Gardens pictures.

posted on Tuesday, July 20, 2004 6:58:03 PM (Pacific Standard Time, UTC-08:00)  #    Comments [0]

I just had a guy knock on my door from the Democratic National Convention.  It was too annoying/funny/angrifying for me to not share the experience.  I let him give his shpeel for a few minutes.  First, he decried Bush for raising money to run a negative campaign against John Kerry, which I thought was pretty funny.  He then listed what he deemed to be the “issues” of the election.  Things like health care, social security, and what he called an “attack” on our constitution were among them.  Wow, yes! Those are the issues!  Based on that list, he wanted me to give him a check for $100.  He then showed me a “statement of support” form, which at first glance appeared to be filled out by people in my neighborhood.  On closer inspection, the handwriting had been laser-printed as part of the form.  When I asked him what Kerry's plans were for those issues, he pointed me to john kerry dot com (where later I couldn't find real plans for them either).  I told him I wasn't interested.  He then asked if I wanted to see George Bush defeated, to which I said, “no”.  He then turned and left.

If you find someone a similar person at your door.  I'd encourage you to press them on their candidate's plans for those important “issues“.  And if they have one of those phoney forms, I'd grill them about attempting to manipulate people.

posted on Tuesday, July 20, 2004 4:53:58 PM (Pacific Standard Time, UTC-08:00)  #    Comments [0]