Saturday, October 15, 2005

TDD: Microsoft is close but no cylindrical smoking thing!

MSDN has a page entitled Guidelines for Test-Driven Development
It has steps for getting going with TDD that state:

1. Define the requirements of your application.
2. Familiarize yourself with the feature areas of your application, and decide on a single feature, or the requirements of a feature, to work on.
3. Make a list of tests that will verify the requirements. A complete list of tests for a particular feature area describes the requirements of that feature area unambiguously and completely.
4. File work items for feature requirements and for the tests that need to be written.
5. In Visual Studio, create a project of the type you want. Visual Studio supplies the initial production code in the form of files such as Class1.cs, Program.cs, and Form1.cs, depending on the project type.
6. Define the interfaces and classes for your feature or requirement. You can add a minimum of code, just enough to compile. Consider using the Class Designer to follow this step. For more information, see Designing Classes and Types.

Note
The traditional TDD process does not contain this step. Instead, it advises that you create tests first. This step is included here so that, while creating tests, you can take advantage of two features in Visual Studio 2005 Team System: the GUI design capabilities of the Class Designer, and the automatic test-generation capabilities of Team Edition for Testers.

7. Generate tests from your interfaces and classes. For more information, see How to: Generate a Unit Test.
8. Compare the tests that have been generated with the list of tests you prepared in step 3. Create any tests that are missing from the list you wrote in step 3. For more information, see How to: Author a Unit Test.
it goes on...

While they do bother to make the note about traditional TDD, they are missing out on several major benefits of TDD:
• TDD is design as you go.
• When you use TDD the interfaces and classes you create emerge as an outcome of writing the tests. This helps to keep the code as simple as possible.
• TDD is about writing one test at a time to DRIVE the DEVELOPMENT of the code. This way the developer does not attempt to predict how the code (interfaces+classes) will look when finished, rather code that passes the tests will be written and refactored as needed.

Thursday, October 13, 2005

Dave Glover: How to Globalise/Internationalise Dates and Numbers using the Compact Framework

I was chatting to Dave Glover from the Australian Microsoft team on MSN IM last night. He built this cool conversion app for the Smartphone. Some of the people who were downloading it in France were having some issues. I thought the issue was a globalisation issue and Dave figured out the rest: How to Globalise/Internationalise Dates and Numbers using the Compact Framework

Saturday, October 08, 2005

Becoming Agile: How TDD improves development speed and is very cost effective

A common misconception is that test driven development will take longer and cost more.
Dan has a go at answering this on his blog .
A good read.
Becoming Agile: How TDD improves development speed and is very cost effective

Tuesday, October 04, 2005

Windows SideShow

Windows SideShow is a new technology that will be shipping as part of Windows Vista. It enables hardware to support auxiliary displays whose contant can be defined in Windows Vista software.
SideShow is a project I helped out on by reviewing the APIs and building some sample code. Some of that sample code has been morphed into the examples that will ship with the Windows Vista Platform SDK.
I am looking forward to getting my first machine that supports SideShow.

Monday, October 03, 2005

New Forums section on ViaVirtualEarth

We have just launched a new section on the ViaVirtualEarth site to help developers communicate about building with VirtualEarth - check it out.

Saturday, September 17, 2005

Microsoft Professional Developer of the Year?

Recently sited this developer is believed to be an imposter.
A fairly good disguise, but the hair gives him away!

Thursday, September 15, 2005

Channel 9 Video

Last month I dropped by Robert Scoble's office and we had a chat about what I've been doing around Microsoft's campus for a couple of weeks. You can see the video Robert took here http://channel9.msdn.com/Showpost.aspx?postid=113881

Monday, September 12, 2005

Where is PDC 2005?

I have built a little site using Virtual Earth to help PDC attendees find their way between hotels and the convention center.
http://viavirtualearth.com/PDC/PDC2005.htm
Want to build your own Virtual Earth page?
Check out all the cool things going on at ViaVirtualEarth.

Friday, August 19, 2005

How they built Virtual Earth

Check out this video on how they built Virtual Earth. Too funny.

Monday, August 15, 2005

PDC - will you be where?

I will be at PDC this year.
Where is PDC this year? It is here.
Thanks to Paul Neeve for building such an awesome Flash app that sucks data from Virtual Earth.

Tuesday, August 02, 2005

Visual Studio 2005 and Windows Vista

I know I should not be pushing the limits by trying to use a beta development tool on a beta operating system! Sometimes life requires a few little trials and this is one of them.
If you have a few issues with getting it installed you should have a look at this: http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=64277

Oh and one more thing if you try this at home...
Good Luck :)

Tuesday, July 26, 2005

Where in the World was Dr. Neil?

So you want to know where I have been this year, well here is the answer:
WhereWasDrNeil?

Monday, July 25, 2005

Via Virtual Earth goes live

If you have wondered what has kept me so quiet for the last few weeks, now I can tell you.
I have been working on a developer website to help you build applications that use Microsoft's Virtual Earth.
Check out ViaVirtualEarth

Friday, June 24, 2005

eXtreme .NET Quick Links

A number of people who have attended the talks I have been doing have asked for links to resources. Here you go:
Tools
Build batch file
Short presentation

Saturday, June 18, 2005

eXtreme .NET MSDN Technical Briefing

Yesterday I presented for a full day on eXtreme .NET in London. It was a lot of fun and I hope everyone who attended had a great day.
Many thanks to John allwright for kicking the day off and to Sean Puffett and Marcus Perryman for their superb demos that provided the audience with relief from my voice!
Topics discussed included:
-Automating the build process
-The Planning Game
-Test Driven Development
-Refactoring
-MSF Agile
& plenty of demos showing off new features in Visual Studio 2005

Thursday, June 16, 2005

Mobile Developer Center: Mobile PC Network Location Awareness

This great article has been recently released on the MSDN site.
The full sample can be downloaded
here.

Wednesday, June 15, 2005

Mobile.Dev.Challenge

I am really looking forward to MEDC Australia next week. I will be presenting a session on using MapPoint in Mobile Applications; Putting Maps in Your Mobile Apps.
There is also a great competition running where developers can showcase their mobile applications. Find out more here. I am looking forward to seeing the entries. It is always good to see what other developers are doing with the technology.

Saturday, June 11, 2005

I got PodAttacked!

I have to say it was not a huge surprise to be assaulted by the PodSquad in the middle of my TechEd session. Thanks guys for adding that extra special something to my presentation!.

download the PodAttack

Thursday, June 09, 2005

Calling all Virtual Earthlings

Virtual Earth is being talked about so much that there is going to be another demo of Virtual Earth on Thursday between 12 and 1pm at the Mobile Cabana.
If you are at TechEd then I recommend you get there.

Wednesday, June 08, 2005

eXtreme.NET

Lot's of interest in eXtreme .NET here at TechEd. I was at the TDD discussion last night and it is great to see so much interest in developing better code.
The best news is the book is selling fast in the event store.