Posted by Kevin D Smith @ 8:44 pm on September 12th 2007

Remove your “self” from my premises!

Bruce Eckel made some comments about the upcoming Python 3K (or is it Python 2.9)? While I respect the work that Bruce does and think he is very intelligent, I think I have to agree more with Guido van Rossum’s retort. Yes, the issues that Bruce brings up would be nice to solve. However, as Guido says these are mostly library issues not core issues, and more aptly

It’s open source. What are you waiting for?!

As far as the complaint about self, I realize that this is a religious war and has no clear answer. I do completely agree with Brandon Corfman’s comment about the confusing message TypeError: printString() takes exactly 1 argument (2 given) where one of the arguments is always self. Putting self as the first argument of a method has bothered me about Python since I started using it; however, I do not agree that Python user’s shouldn’t have to use self. when referring to an instance variable. I think Bruce is just plain wrong when he says that “parroting ‘explicit is better than implicit’ is a misuse of that maxim.”This is exactly the kind of thing that maxim is good for. There is no question in anyone’s mind where that variable is coming from when it has self. prefixed to it.

I also prefer things like self. to Ruby’s @, because self at least has a chance of being interpreted correctly without having to look up its meaning. Using an arbitrary character such as @ has no chance of correct interpretation without reading the manual. This is the main reason that I like Python: the syntax is consistent. Okay, it’s not as consistent as Lisp, but it’s pretty consistent. This is also the reason that I hate Python’s decorator syntax, but that’s a discussion for another day.

I think it’s pretty clear that Python 3K isn’t going to solve everyone’s problems and make everyone happy, but it is definitely a step in the right direction.

Posted by Kevin D Smith @ 4:44 am on September 3rd 2007

Moving to Oklahoma: Day Two (You’re not in Kansas anymore)

Day two of our trip got off to an early start. We can thank our cats for that. Our cats don’t like to be out of the house and decided at about 5am that they were ready to get out. Since they made sure to it that we couldn’t sleep, we decided to just get up and go. Not getting much sleep, and driving through Kansas is not exactly a good combination. This is made quite evident by the occasional road sign advertising free coffee at all Kansas rest stops. Unfortunately, neither I nor my wife likes coffee.

We drove for about an hour before stopping the first time. I was feeling pretty much awake by that time, but my wife was still having trouble concentrating on driving. Luckily, one of our cats decided that today was the day to create all kinds of noise during the entire trip to keep here awake. With Prairie Dog Town behind us, there didn’t appear to be any more sites to see in Kansas. The good news is that we soon hit I-135 and started heading south to Oklahoma.

I was excited to see the border of Kansas and Oklahoma. Every truck and rest stop that we visited had all kinds of Wizard of Oz stuff and I was just dying to see a big sign on the border that said “You’re not in Kansas anymore!”. I was, however, greatly disappointed. There was no such sign.

Northern Oklahoma was much like Eastern Colorado and Western Kansas, more nothing than I have ever seen before. However, after getting further south, the landscape got greener, and there were more towns. We stopped in Guthrie on the way through, which is the site of the Oklahoma International Bluegrass Festival in October. Being a banjo player, I’m definitely looking forward to that.

Less than an hour after Guthrie, we were in Norman, our new home. After picking up the keys to our rental unit, we were pleasantly surprised by our new home. It looked a lot better than either of us remembered it when we visited a couple of months earlier. We still plan on making quite a few changes to the place, but there’s no place like home even if we aren’t in Kansas anymore.

Posted by Kevin D Smith @ 4:23 am on September 3rd 2007

Moving to Oklahoma: Day One

It was time for my wife and I to head out of Colorado and make way for Oklahoma where we’ll spend at least one year living. Rather than hiring a moving company like we did for our last move, we decided to rent a truck and move ourselves. This decision was made based mainly on the thought of having to live without our possessions for at least two weeks while the moving truck made it’s way to all of its destinations before coming to our place. Since the trip from Colorado to Oklahoma was mostly freeway the entire way, it would be an easy drive as well. Easy for someone who is experienced at driving a truck that is.

Out with a Bang… Literally

This would be my first experience driving a rental truck. I have driven tractors and wagons, cars with trailers, large vans and large pickups, but nothing quite like a large U-Haul truck. The main difference is that in a U-Haul truck, you can’t see a thing behind you, which I learned the hard way. After picking up the truck and getting back to our townhouse to load the truck, I thought I would back the truck up to the sidewalk to make it easier to load. The driveway to the townhouses in our neighborhood are pretty tight, but it looked like there would be room to do it. Apparently, there was a medium sized high-voltage box right next to the parking spots that I was trying back into. As I wheeled around to bring to truck into the spot, I backed right into it. When I looked back to see what it was that I hit, I finally saw it. At first I thought that I just put a small dent in it, but when I took a second look I realized that I had knocked the metal box off of its mounts so that it was sitting at an angle with the cables inside exposed. This was not a good start to the move…

I got out of the truck to take a closer look. It didn’t look like any major damage had been done. Yes, the box wasn’t mounted to the ground correctly, but it appeared as though all of the electrical equipment was intact. I certainly wasn’t about to touch anything, so we ended up calling the electric company to come take a look. Meanwhile, our hired hands had showed up to load the truck.

After a couple of hours, the electric company showed up and verified my evaluation of the damage. They took down my name and address so they knew where to send the bill and proceeded to put the box back onto its base. The procedure was basically the reverse of my procedure for pushing it off: hook a cable to the box and yank it with the truck. Five minutes later, they were gone. I’m curious to see what they’ll charge for something like that; I guess I’ll find out soon enough.

On the Road

It took about three hours to load the truck. Not too bad, although it wasn’t the best packing job as we would find out later. Now with my nerves all frazzled about running into things with the truck, we headed out. The plan was pretty simple: take I-25 to E-470 to I-70 into Kansas. I’m happy to say that this went without a hitch.

It took a few uneventful hours to get to Kansas through eastern Colorado. This is desolate ground, and I could tell that it was going to be a long drive. Western Kansas was more of the same. I lived in Michigan for most of my life and I’m used to seeing a lot of farmland, but nothing like Kansas. The whole state is farmland. The odd thing is that I didn’t see that many farms. My history of watching horror movies started getting the best of me out there. The sky was cloudy and gray, there was nothing but farmland for hundreds of miles in every direction, and there were only two radio stations, both Christian. If those stations had been preaching fire and brimstone, I think that might have been too much for me. I have seen way too many horror movies that start out this way. Even when towns did pass by, I was creeped out by it. Take Goodland, KS for instance, with the town motto “We’re waiting for you.” No, I am not making this up.

One of the finer landmarks on the way through Kansas was Prairie Dog Town which was advertised about 100 miles on either side. Prairie Dog Town featured such sights as a Russian wild boar, a 5-legged steer, and best of all, the largest prairie dog in the world! Unfortunately, it was late enough in the day that we figured Prairie Dog Town was closed for the night; or maybe my wife just wanted me to think that it was closed.

After driving about six hours, we decided to stop in Hays, KS, the largest town in Northwest Kansas: population 20,000. If you haven’t been to Kansas before, this should give you an idea of what it’s like. The largest town in the entire Northwest quadrant of the state only has 20,000 people in it! After getting there, I think that 20,000 was an optimistic count.

Overall, after hitting the high-voltage box and missing out on Prairie Dog Town, the day was uneventful. And if you know my luck at all, you’re well aware that my life runs in two modes: uneventful and freak-accident. I’ll take uneventful any day.