October 24, 2008 tools

Tired of writing unit tests yourself? Try Pex!

From the Pex site:

Pex (Program EXploration) produces a traditional unit test suite with high code coverage. … To do so, Pex performs a systematic white box program analysis. Pex learns the program behavior by monitoring execution traces, and uses a constraint solver to produce new test cases with different behavior. At Microsoft, this technique has proven highly effective in testing even an extremely well-tested component.” [ed: emphasis mine]

So, Pex will produce a parameterized set of unit tests for your classes and does all of this integrated with Visual Studio and the unit testing built into VS. I’ve seen the demo and it blew me away. Nikolai Tillmann, a developer at MSR (Microsoft Research), has a nice write-up that discusses his work and when you’re done with that, go download Pex!

September 30, 2008 spout

MS + jQuery: This Is Huge!

Yesterday, the ASP.NET team announced that they were going to ship jQuery, a small, populate open source web client library. And not only is Microsoft going to ship this library, as is, but we’re going to build support into Visual Studio for it, build future versions of our web components assuming it and support it via PSS like any other Microsoft product.

This is huge.

Of course, is it useful for developers using Microsoft tools, because they get another supported library out of the box for them to use to build their applications. But that’s not what makes it huge.

What makes it huge is that, instead of seeing the functionality in jQuery and thinking to themselves, Wow. jQuery is really great. Let’s build something from scratch like that into our products,” the ASP.NET team, in what is the first time in Microsoft history afaik, decided to reuse something from the world that was already working, adding only the thing we do better than anyone else: integration into a suite of libraries and tools.

But isn’t this just embrace and extend?’” I hear you asking. Isn’t Microsoft just going to absorb jQuery, thereby killing it for folks not using Microsoft products?”

There are two ways forward at this point. One, we could push on jQuery in a Microsoft-centric way until the project owners” (which is a slippery concept with an OSS project anyway), decide to either give up and let Microsoft own” it or they decide to fork jQuery, thereby creating jQuery-classic and jQuery-MS. This would not be good for the jQuery community.

The other way to go, and this is the way I hope it goes, is that Microsoft learns to play nicely in this world, submitting features, changes and bug fixes to the jQuery source tree in a way that’s consistent with the vision from which jQuery sprang, making it work better for Microsoft customers and non-Microsoft customers alike.

If we can learn to do that second thing, then we’ve turned a corner at Microsoft. I’m keeping my fingers crossed.

September 24, 2008

Teasers for this year’s PDC

Do you want to know a tiny bit of what’s going to happen at this year’s PDC? Check these out:

Also, we’re giving away so much good stuff at the PDC that we’re putting it onto a 160GB USB2 hard drive for every PDC attendee. You can’t beat that with a stick!

If you haven’t done so yet, you should register quickly before the whole thing sells out.

September 8, 2008 tools

Custom Window Chrome in WPF

Joe Castro, a developer on the WPF product team, has written a very cool article about how to do custom chrome in your WPF applications. But, what makes it even cooler is that he dissects the various ways that shipping apps do custom chrome on various versions of Windows. It's amazing the number of techniques there are. Very nicely done, Joe.
September 6, 2008 oslo

Oslo Defined

I’ve spent the last 3.5 years of my life working in various roles on a project that is now called Oslo.” Both Don and Doug have posted definitions.

See you at the PDC!

September 5, 2008 spout

I don’t pretend to understand advertising

I’ve always liked the Mac vs. PC ads. They’re clever, they make me laugh and I like both actors (Accepted is very under rated, IMO). Of course, I actually prefer my PC running Windows to a Macintosh (I had a Mac IIcx back in the day), I prefer Vista to XP and I’m a Microsoft employee, so I don’t have any trouble seeing the exaggeration, but there’s always a kernel of truth, which is what makes them funny. The part that kinda annoys me is that Apple seems to be claiming they have no such problems, which is, of course, not true.

The Mac vs. PC ads I understand: they’re meant to put down the PC by having the PC guy look like an idiot, leaving the Mac guy to seem non-threatening and therefore better by comparison.

On the other hand, I can’t say I understand the latest Windows ad with Jerry and Bill. I did enjoy it, however. Not only did Bill seem much friendlier and more approachable than I’ve ever seen him, but the image of someone in the shower with their shoes and socks on made me laugh, as did the image of Bill wiggling his butt in a Deep Throat sorta way.

And the commercials are having an effect: they’re being talked about and folks are interested in the next one. How often do you hear about folks looking forward to a commercial? That in and of itself is an achievement.

September 4, 2008 spout writing

Programming WPF goes into 3rd printing

August 27, 2008 spout

Where did my old Word command go in new Word?

I've been using Word for a long time and my fingers knew where the commands were that I used even though my brain didn't. Most of the those commands I've mapped to the new Ribbon-enabled Word without a problem, but sometimes I still search. For those times, the Office guys have put up a cool tool that shows me where the new version of each command is located in the new Word. Enjoy.

← Newer Entries Older Entries →