Back in Canada

I left Sydney on Thursday at 1115 in the morning and arrived in Victoria at approximately 1000 on Thursday morning. How’s that for time travel? Of course, I hadn’t slept for roughly a day, so to take advantage of my “extra time,” I’ve been sleeping for most of the last two days.

Had a great time in Australia and I’ll probably go back. Hopefully in the next week I’ll post more about what I did and what I thought of Australia from a Canadian perspective.

Now that I’m back, I’ve started to catch up on the blogs that I read. From day to day, it seems like I can never keep up with all the posts, but after three weeks, I’m surprised how few posts there actually are. It’s also nice to miss some time because the people that don’t post often have a bit of a back log. The feature in RSS Bandit to “Mark All Posts As Read” is a godsend. Didn’t see as many resolution posts as I thought. I’ll have one of those soon, now that my year is starting three weeks late. 🙂

Back in Sydney

After a whirlwind trip through Hobart, Melbourne and Byron Bay, we’re back in Sydney for the reason we’re here: the wedding.

It’s been really great here. This place is sort of a Bizarro-Canada: you go up in a plane and come down to the same place but in a parallel universe. The good things about Canada are here, but some of the bad things in Canada aren’t. Australia is very clean: even in Sydney, a city of six million, there is virtually no litter or smog. I thought Victoria’s harbour was beautiful, but it’s nothing compared to Sydney’s.

I’ll have more to say when I have more time. I’m off to enjoy the 32 degree weather. (I hear there’s snow in Victoria now. Ha Ha)

G’Day from Down Under

I don’t have a lot of time to write, but I figured I’d post something to get the numbers for January up. December was super busy, hence the few posts. Xmas was quiet and good. I’m now in Australia for a vacation and a wedding.

I’ve been here since the 2nd, even though I left on the 31st of December. Time gets funny around the dateline. We’ve been to Hobart, Tasmania’s capital, and we’re now in Melbourne before we head up to Byron Bay (everyone’s favourite here), and then, finally, Sydney for the wedding and hanging out.

 

Code Coverage with NCover

I can’t remember exactly what drove me to seriously look into it, but for the last two weeks, I’ve been using NCover to calculate the coverage of my unit tests. Boy, am I glad I finally did. I’ve added it to the list of Apps I Use Everyday, and you should too. You shouldn’t use the xsl file it gives you, though: it sucks; use this xsl file instead, by Yves Lorphelin. A good overview of how to setup NCover can be found here, as well as a preview of the good xsl file in action. I think my biggest beef with NCover is the pain involved in setting the damn thing up. I had to put both NCover and NUnit program directories in my path for it to start working. I also tried CoverageEye.NET, but I could not get the damn thing to work. There is almost no documentation for setting it up. But there is a good comparison of the two here; he likes CoverageEye better.

As far as I can tell, NCover is the best free tool that doesn’t muck up you’re project settings. (There is another code coverage tool called NCover at sourceforge that requires you to add a reference to it to use it. Um, no thanks.) Another thing I don’t like is there is no GUI. I’m a GUI guy: I like to look at pictures, shapes, you know: shiny shit; I’m a visual animal. However, I’m not entirely out of luck though: Jeff Key has written a quick little GUI wrapper for NCover. But, alas, I couldn’t get it to work either: It always throws a PathNotFoundException, even after I got NCover working on the command line. And, I note, found in my Google research for this post, and put here for future reference, that he has posted another NCover oriented tool: NCover Browser. I haven’t looked at it yet, but I will soon.

When I started with NCover, we had about 80% of our code covered by unit tests. It took about a day, maybe a bit more, to get that up to hover around 90%, where it sits now. I was surprised it took so long to get what seemed like an insignificant jump. I’m noticing that much beyond 90% isn’t providing much benefit. In other words, the effort of writing the test is not worth the benefit having the test gives me. So my goal now is to stay around 90%. Now that I’m using this tool, I’m finding that I write tests that cover all paths through a method automatically, making my efforts a tad more focused and efficient.

One thing that becomes glaringly obvious with this tool is that overriden GetHashCode() methods NEVER get called. In fact the only reason I override it is the warning I get if I override Equals() but not GetHashCode(). Consequently, I just call base.GetHashCode(). That’s one thing I’ve wondered about for a while. Anybody know?

One More Tablet PC Owner

This kind of surprised me, but I’m now a Tablet owner. Yay! We went to the Future Shop (kind of like a Canadian Best Buy, even though I see, after searching for this post, that Best Buy is now in Canada) Friends and Family night: a night of CRAZY savings for special customers. The criteria for being a special customer is having a heartbeat. 

I was looking around at the computer stuff, not to buy necessarily, when I laid my eyes on a sweet Tablet deal: a tablet for under CAD$2000 (~ $200 US (even though the US dollar is so bad)) plus the 7% discount, plus don’t pay for 12 months. The only bad part is that it’s from a company I have never heard of: Averatec. It was an impulse buy, but since I was planning on getting one within the year, I figured why not; the specs were nothing to sneeze at, and it’s a tablet. I’ve been wanting one ever since they’ve been announced. It also has the distinction of being my first notebook computer.

I brought it home, opened it up, turned it on. I’ve custom built all my machines for the past five years, so I forgot how much a pain in the ass pre-built machines can be. There is a ton of crap software on it by default; it only had Tablet PC edition 2003; and OneNote wouldn’t upgrade to SP1. The CDs they came with are all encrypted Ghost files. So I can’t even re-pave it. I called tech support to solve the OneNote issue: they told me to download the trial version from Microsoft, and then put in my product key. Riiiiight. Why don’t you just include the CD with the product then? Can I do that with the OS? No? Idiots. Anyway, despite my gripes, I like the machine and don’t regret the purchase. Next time I get one, I’ll do what I was planning to do with this one: go with a reputable company. 

Now I just have to think of something to do with it. 🙂 I have VS on it, and a few ideas…

Any recommendations? (Developer tools or cool apps)