Wednesday, November 15, 2006

Want to go 300mpH at 70.5mpg?

Do you? Then you will need an Acabion. Apparently, what matters is weight and profile, the opposite of SUVs.

Sunday, November 12, 2006

Debugging skills -- It's not Rocket Science!

Every programmer knows all too well that there will be times when (non-trivial) code does odd things. Yes, I am talking about bugs. Often times they are simple because they easily reproducible and the faulty behavior can be seen in a simplified environment. But what if the bug is not easily reproducible. That's where good debugging skills come to play.

Sometimes debugging feels like detective work but in almost all cases it really isn't much more than breaking a big problem into many smaller problems. Yes, simply breaking an input down to smaller pieces until a problem disappears is often a good way of making one's life a lot easier. Besides having a good grasp of eliminating possibilities, a decent knowledge of debugging techniques and tools is certainly helpful. On my last project, more than once I was asked to help fix some bugs by other developers. When I asked them what they have tried so far or found out they usually said nothing. They just needed help. My first thought was that it was laziness. ASking someone else to fix a problem is certainly easier than fixing it yourself. But after interacting with them it dawned on me that they often had no idea of how to get a handle on the problem. Just asking questions about how and when the problem presents itself are often not asked. Well, bugs never come with a manual on how to fix them so you better ask questions if you want to fix them.

Another helpful aspect for debugging is to know the code itself. A lot of times I have found that developers didn't even know how to debug their own code. Having a good knowledge of the structure of the code helps to eliminate potential sources of errors. I can't claim for myself that I am the world's best debugger nor do I want to do that. But I was surprised how few people actually can debug and provide useful information when helping to find fix a bug. Makes you wonder if the CS curriculum should be extended by a mandatory class: "Introduction to Debugging"

It's not rocket science -- like so many other things applying common sense and using the good ol' divide and conquer technique helps a good deal.

Ridiculous ...

As I was reading the newspaper today I saw an ad to lease a Bentley Continental. The down payment seemed normal and for only $2299/month for 42 month you could drive around in a Bentley. My mortgage payment is less than that ... I guess one would need a lot of disposable income.

The most popular sport in the world ... ? Definitely not American Football.

I am a big sports fan and I like to watch sports, especially team sports that involve a ball. I have never been a big fan of American Football but I do like to watch the highlights. However, there is a few things that simply rub me the wrong way about American Football. First of all, things can't get more artificial than in the NFL. Reviewable, non-reviewable play, eligible and ineligible receivers, two minute warning, taking a knee. All bullshit. But what always bothered me the most actually has nothing to do with the rules or any team and it's really not any team's fault. It's the NFL's fault. They call the Super Bowl winner the "World champs". But hey they are not alone, the NBA champion often refes to itself as the World champ and so does the "World Series" winner in baseball. I know, I know, many Americans believe the world revolves around their three big sports and there probably isn't a better American Football team in the entire world than those that play in NFL. But that's certainly not true anymore for the NBA and baseball. Or do I need to remind everyone of how the basketball dream team came up short repeatedly in the last few years. My problem with this is, that you should only call yourself the world champ if you even gave the rest of the world a chance to participate. Either by qualifying or by inviting teams from abroad to play. And I mean to qualify by playing the sport not by buying yourself into the league through means of an expansion team.
Anyway, as I was reading some sports news today, I came across a quote from the San Diedo Chargers coach, Marty Schottenheimer: ""It took me back to the old AFL days where you just try to find a way to have one more point than they do," Chargers coach Marty Schottenheimer said. "It was the kind of game that makes the NFL the most popular sport in the world. If you couldn't enjoy this -- other than coach Lewis and his crowd -- then you might not enjoy football."
He said this after a remarkable comeback of his team which in itself was probably very exciting and one of the better moments in the NFL. But it truly shows how the three big American sports (NFL, MLB and NBA) have a self-perception problem. Yes, they are not the center of the world and there is many people in the rest of the world that don't even care about any of them. But one thing for sure, American Football is far from being the most popular sport. If you search around a little on the web you will find many top 10 of most popular sports and I have yet to find a list on which you can find American Football. The so-called big three should watch the NHL a bit. They are playing for the Stanley Cup and the winner is the Stanley CUp champ. Nothing more and nothing less. The NFL, MLB and the NBA should do the same.

So Marty, the Super Bowl may be one of the most watched sporting events in the world but to me it's not clear whether it's for the actual game or the halftime show. But football is definitely not the most popular sport in the world. Just count the number of people on a given weekend that participate in a soccer game versus an American football game.