Friday, November 18, 2005

How to be a Programmer

1:52 PM
Robert Read has written an excellent piece on how to be a programmer. I wish every one of my future co-workers will have read this document!

The interesting thing is that he sometimes refers to programming teams as tribes. And they are tribes, in a sense. With their rituals, habits, taboos, village idiots. With hierarchy, pecking order, power struggles, gossip. That's what makes it so hard to leave some teams, and what makes it so easy leaving some others.

Thursday, November 17, 2005

Distro Despair

3:05 PM
DVD Jon posts links to Linux distro "despair" posters.

"Last Post"

10:28 AM
Well, not for this blog. But it's funny to notice how many blogs get started and then slowly die without ever being formally declared dead. It's the only place where the "last post" would regain its literal meaning.

Or.... one could go to Slashdot, find a story that was about to be archived, and post there. 1a57 p057!

Monday, November 14, 2005

Cooking for engineers

2:57 PM
Now this is cool: a cooking site aimed at engineers. People who want to understand exactly why you would want to cook stuff a certain way, instead of simply following instructions. For the aspiring food engineer I also highly recommend Alton Brown's books.

Performance != optimizing inner loops

10:18 AM
Check out Jeroen Vermeulen's wishlist for C++. He states:

The CPU cranking through loops is no longer the major time waster in most computer use. [...] Don't believe the benchmarks. Those tend to measure the straightforward, classic computing tasks that used to take so long, way back when.

He then argues that in everyday desktop usage, most of the time is spent in libraries. This is also the reason that many (semi-)interpreted languages fare reasonably well compared to compiled languages: these languages are typically very high-level, so interpreted programs spend even more time in libraries compared to compiled programs. And if the libraries are fast, then the programs are going to be fast -- even if they have to be interpreted on-the-fly.

Let's be honest, what is the biggest problem in desktop computing today? It's "first-time latency" -- the extra time that is added when you do something for the first time, or for the first time in a while. There are plenty of frustrating examples of this behaviour:
  • Start OpenOffice. It takes bloody ages. To make matters worse, it used to display an always-on-top splash screen as well!
  • Open the Start Menu, or one of its submenus. Usually very quick, but sometimes it suddenly takes ages.
  • Expose the desktop when you have a stretched background image on it. If you've been running some memory-intensive task, then it will take up to ten seconds to render the background. Slooooooowly.
  • Open a Windows Explorer. You press Windows Key+E once, and then again when the explorer hasn't appeared 15 seconds later. After 30 seconds, all of a sudden you get two explorer windows.
  • Open a context menu for an item in Windows Explorer. This may take between zero and thirty seconds, depending on whether you've done it before.
If anything should be addressed in desktop performance, it should be this. First impressions are of the utmost importance, and these are all first impressions. Check out Jeroen's ideas on how we can improve startup performance.

Sunday, November 13, 2005

Train Trickery

8:08 PM
Reading this posting about public transport frustration inspired me to write down some of my own experiences.

I take the train to work every day. It's 80 minutes by train (from Nijmegen to Gouda) followed by a 10-minute sprint on my bike. Or, more accurately: it's 90 minutes by train, on average. The Dutch railways have currently got a timeliness factor of about 85%, which means that 85% of trains leave the station on time. Those just happen to be other trains than the ones I'm riding. Granted, my train usually leaves the first station on time, indeed. But a couple of stops down the line it's practically always delayed. The usual cause: no available platform at Arnhem station, leaving Arnhem with a delay, and then getting stuck behind a local train (that was supposed to leave after my train) on the way to Utrecht.

Thank god I have a notebook that I can do some work on: it doesn't actually cost me any time when the train is late. But in order to use a notebook, I need a seat. To be precise: I need two seats: one for myself, and one for my laptop bag, coat, papers, and arm space while I'm typing.

So, how do I accomplish that?

1. I get in at the first station on the line, and the train is empty when I get there, so I get to pick my seat. I always pick a two-seat bench for myself (with no opposing bench), and I sit in the isle seat. That way, people will have to make contact with me when they want to take the other seat of my bench. People in trains usually avoid human contact like the plague, so that usually doesn't happen unless the train is really full.

2. I make the other seat look really full: I put my laptop bag there, some papers, and I hang up my coat next to the window, above the other seat. If anybody is going to sit there, they'll have to wait until I move all of that stuff out of the way. Any passengers coming into the train will take the path of least resistance -- and that's not the seat next to me, unless every other seat in the carriage is taken. And even then a lot of people choose to stand on the balcony.

3. If things threaten to go wrong, I'll put on earphones. It doesn't matter if I actually play music through them -- people will have to tap my shoulders in order to get my attention so that they can sit next to me. Tapping is even worse than verbal contact. Also, I pretend to be very focused on my work, to have an excuse for not noticing any visible or audible cues that indicate someone might want to sit next to me.

Visual Studio stuff

5:18 PM
With the recent commotion on VS2005 being full of bugs (because they declined to postpone the release even when there was a consensus among customers that it should be done; dissenting post here), I read a number of comments saying that VS2003 is full of bugs as well. Well, I disagree. Compared to VS6, the quality of VS2003 is tremendous. Especially the C++ compiler. In VC6, I would run into an internal compiler error every week on average, while in VS2003 I have only run into one or two compiler bugs to date. I guess they dogfood this part of their product the most: the big internal MSFT apps are probably all written in C++, and not in .NET. If that's true, then it's not surprising that most of the problems that are found in VS2005 are problems in the .NET arena.

Banging Coincidence

4:51 PM
I was browsing a site on London slang when I noticed the following description of the word bangers:

bangers - another name for sausages. Originates from the fact that they explode when cooking if they are not pierced first.

As you can see, there's no mention of a connection to "banging" and the fact that the sausage is the biggest phallus symbol you will ever come across. About five minutes later I dropped into the middle of a movie called Boat Trip, about two straight guys who get stuck on a cruise intended for gay men. I see one of the straight guys going to breakfast, sitting at an empty table. A gay guy joins him, offers the straight guy a sausage (licking it sensually), and says: "You know, in England we call these `bangers'." That's a banging coincidence, I think.