# Tuesday, June 06, 2006

This time it's Boris Jabes, who we haven't heard from in ages, who reappears with a pair of handy macros, one to show all your keyboard shortcuts and one to preprocess a file you have open (written as a response to someone who wanted it added as a feature to the IDE.) He credits his blogging once more to the "you can blog from Word 2007" feature. If that's true, the feature is getting my vote as the best of this release :-)


Tuesday, June 06, 2006 6:43:28 PM (Eastern Daylight Time, UTC-04:00)  #    
# Monday, June 05, 2006

One of the prizes at realDEVELOPMENT_06 Toronto was a Microsoft mouse. You're probably thinking "big deal". Well John was using this mouse in his presentation, and at the first break so many of the questions were about the mouse (yes, about the mouse!) that he took a minute to talk about it before we started the next session. Even the emails I got afterwards reflected a lot of mouse interest, with one attendee putting it first on the list of cool things seen that day.

So obviously this is no ordinary mouse. It's called the Laser 6000 and I guess the laser-ness makes it somehow better than an optical mouse. But that's not what all the fuss is about. It has a scroll wheel (nice and smooth) and you can push the scroll wheel sideways for horizontal scroll. But the side button, just under your thumb, is the cool thing. It's a zoomer. It magnifies whatever is under it... really simply and easily. Here's a shrunken screenshot:

You can control how big the zoomed area is and how magnified it is very easily and your choices persist until you change them again. I have the Wireless Laser 6000 and it's ergonomically beautiful, even fitting the little USB dongle into a slot on the underside of the mouse -- and turning it off when you do that since you're obviously putting it away. I really love this mouse... next time you need a new mouse, think of the Laser 6000, especially if you do any speaking.


Monday, June 05, 2006 7:24:49 AM (Eastern Daylight Time, UTC-04:00)  #    
# Sunday, June 04, 2006

Barnaby Jeans took some great pictures at the Toronto event on Thursday.

Here I'm modelling the girly pink speaker shirt, while Sasha is wearing the same boring (incredibly sophisticated, sorry Sasha) black as everyone else :-)

We had over a thousand people, and this shot gives you some idea what that's like. Not an empty seat in the house!

Update: Wendy Markevich sent me this shot of all of us on stage: left to right this is Bruce Johnson, Matt Cassell, Mark Arteaga, Tom Moreau, me, Jerome Carron, Adam Gallant, and Scott Howlett.


Sunday, June 04, 2006 7:08:59 AM (Eastern Daylight Time, UTC-04:00)  #    
# Saturday, June 03, 2006

Steve Teixeira has linked to the webcasts from a C++ day held in Paris in May. These were done in English, but if you want to download the WMVs you're going to need a tiny bit of French, or to have gone through the downloading-a-webcast-from-MSDN process often enough that you don't really need the prompts. I qualify on both counts, and since the French for video is video, it's not too terribly difficult. Well actually Herb's talk starts with a French introduction, but having heard myself introduced in French a time or two I can tell you it's OK if you can't follow that bit. (Most of the time you can't tell that Herb and I did our undergrad at the same place, but we did, and occasional sesquilingualism is a clue. The difference is that while Herb remains a little nervous about engineers, I became one.)


These are good talks with demos and they cover a lot of ground for C++ programming today and in the future. Go get them.


Saturday, June 03, 2006 6:53:59 AM (Eastern Daylight Time, UTC-04:00)  #    
# Friday, June 02, 2006

What at blast I had yesterday speaking at realDEVELOPMENT 06! We had over a thousand people to hear about Atlas, Ajax, Infocard, and security for web developers. Already I am getting emails from attendees asking for the powerpoint decks. Here's the deal: the session notes are online already, and the powerpoints will be there when everyone is back home from the tour and has time to upload them -- some time after the middle of June.

Thankyou all for coming and if you have questions you didn't get to ask, you can leave a comment on this post or drop me an email.


Friday, June 02, 2006 1:00:36 PM (Eastern Daylight Time, UTC-04:00)  #    
# Thursday, June 01, 2006

This one is with Louis Lafreniere about the C++ backend compiler. What can I tell you, go there and watch it!

Thursday, June 01, 2006 12:06:13 PM (Eastern Daylight Time, UTC-04:00)  #    
# Wednesday, May 31, 2006

Once upon a time, there was a highway called Highway 35. It ran north from a major east-west highway and got less and less important until it kind of trickled to a stop in the semi-wilderness near Algonquin Park. The southernmost sections of this highway were twinned with Highway 115, with a concrete median, exit and entrance ramps, and a speed limit of 90 km/hr. From what's known as the 35/115 split, it ran north, one lane each way, with gravel roads crossing it and driveways opening on to it, with only a handful of traffic lights to control traffic flow every twenty or thirty miles.

Update: here's a map of the area.

Now there was a bit of a problem with this highway. People get killed on it. The section between the 115 split and Lindsay is hilly, and it gets a lot more traffic than it used to. There are trucks delivering Important Stuff, people dragging trailers and boats up to cottage country, tractors going from one place to another, and Toronto folks in a hurry. From time to time, impatient people pass when they shouldn't, like going up hill, and there's a head on collision and people die. It's not the most dangerous stretch of road in Ontario, but it is bad and there started to be noises made that Something Should Be Done.

Well just about any idiot can see that the head on collisions are caused by dangerous passing, and the survivors can tell you that the passing happened because one vehicle was really slow and another really impatient. So an obvious solution would be passing lanes on the steeper hills. So in 1999 a study was commissioned to decide where to put the passing lanes. They discovered that in one 22 km stretch of highway, about 13 km -- over half -- of the road would be three laned, and parts of that four laned, with passing lanes coming up both sides of a hill and needing four lanes at the top. Now passing lanes do reduce head on collisions from unsafe passing, but they open up the possibilities for accidents wherever people are changing lanes, and without a median these accidents can involve traffic coming in the other direction, so you can't assume that building all these passing lanes would actually reduce the accident rate.

They decided in this 1999 study:

Implementing spot improvements on an as-needed basis represents the low cost solution but is cost-effective only if it conforms to a future plan. In the absence of a plan for the ultimate design of Highway 35, the planning and design process for extensive [passing lanes and truck climbing lanes] becomes difficult. Road improvements proposed as part of the ultimate plan may even eliminate the need for [passing lanes and truck climbing lanes].

So what does that mean? Time for another study, this one on four-laning the whole highway or at least from the split to Lindsay. This one would also deal with the possibility that highway 407 would be extended out to the 35/115 split. This study started in 2000.

Here's the first problem when you four-lane a highway that has cross-roads and gravel roads meeting it. Imagine someone coming out of a cross road or a driveway and wanting to turn left. They are going to need to cross two lanes of traffic, and they'll be turning into the fast lane of the highway. That's not good. And then imagine someone who is on the highway and wants to turn left into their own driveway, but has to stop to let oncoming traffic go by. They are going to be stopped in the fast lane. Over time these two kinds of left turners are going to cause more accidents than the inappropriate passing you were trying to solve in the first place. So you need to implement some sort of controlled access to the highway, as they did on the 115. Typically you let people turn right onto and off of the highway, and you have some overpasses and underpasses so you can go past your target then turn around and come back to make a right turn. You also have a median of some kind so that people cannot turn left or make U turns.

Well, boy oh boy did that need studying. Should the median be a wide grassy strip between the north and southbound sections? That consumes a ton of land and would wipe out dozens of houses currently located along the highway. While that might seem to solve the pesky problem of driveways, it's not really a popular approach. Perhaps it should be a concrete wall? And those exits, should there be one at every corner with a sideroad? If it's only every other corner or so, how do you decide who gets them? And you know the corners tend to have houses on them. Maybe the exits should be between the roads? Study, study, study. Measure the traffic on the road now on a variety of different days over the years. Read the official plans of municipalities in the area to see where growth is planned, and guess what traffic will be some day. Count fatal accidents, which continue to occur.

Meanwhile the rural areas the highway goes through were amalgamated into the City of Kawartha Lakes. Meanwhile the Oak Ridges Moraine was defined and protected in law, which dramatically restricted some construction options. Meanwhile plans for the 407 were batted around that involved bringing it all the way out to the 35/115 split. (Update: the folks doing the 407 study have their web site up to date now.) So they kept having to adjust their study to cope with the world changing around them.

At some point somebody noticed that a big piece of the traffic on 35 was folks who were really on 7A. 7A coming East from Toronto meets 35, goes south a very short distance along 35, and then carries on east again. All those people have to turn left across 35 and that's part of the problem. So the highway study scope expands again, to include rerouting 7A to eliminate the jog. Half the population wants them to reroute it away from the school and arena so as not to worry about traffic for the kids, and half wants to be sure they don't cut the school off so we have to drive further to reach it or the kids have to get on the bus sooner for a longer bus ride. More studying. Roughly 20 different ways you could solve that particular problem.

Along the way they produce a TON of arial photographs all marked up with pink and yellow and white and green. Each suggested approach gets more and more complicated. They hold public information centres where people come and tell them "you can't do that, it will ruin this pond" or "you can't close that, we all use that road to get to the arena" and so they make even more complicated plans.

And now what has it become? You won't believe it unless you see it (and the website isn't up to date, so you could have only seen it by going to the public meeting.) It's going to cost a fortune, several houses will actually have to be bulldozed, and many many people will be losing stripes of their land, not only to the wider highway but to the "access roads" that will be built parallel to the highway so that we locals can drive from a road that doesn't get an exit north or south to some road that does get an exit so we can get on the highway. (These access roads don't particularly connect to each other though, which is probably deliberate to reduce traffic and to let them run the roads wherever happens to be convenient.) Countless roads closed, neighbours cut off from each other, even farmers cut off from their own land and needing a three or four mile detour to go to the other side of the highway.There were some very sad faces at the public information centre all right.

My opinion? This is a good time for someone to step back from the huge pile of coloured pictures and say "what is the problem we were trying to solve again?" It has grown out of control and needs to be made simple once again. My only consolation is that it will probably be 20 years till they build it and I hope to be even further from the big city by the time all that rolls around. Yet each step and decision along the way was logical and grew from the current circumstances. This is how projects spiral into huge and unmanageable monsters that end up not helping anyone. It's as true for software as for anything else.


Wednesday, May 31, 2006 7:58:42 AM (Eastern Daylight Time, UTC-04:00)  #    
# Tuesday, May 30, 2006

Microsoft has a team of people who concern themselves with non-professional programmers. This includes students, hobbyists, and anyone who isn't primarily paid to write code, but finds themselves writing it anyway, typically at home and on their own nickel. (Apparently they outnumber professional developers four to one.) John Montgomery, of that team, says that non-professional programmers use HTML and Javascript the most, followed by (believe it or not) C++. While I suppose the presence of CS students who are taking C++ courses must skew the numbers, I still find it surprising. There are a lot of languages that are easier to pick up and noodle with in your free time than C++. I think it shows that people will move towards a tool that does what they need.


Tuesday, May 30, 2006 10:50:18 AM (Eastern Daylight Time, UTC-04:00)  #