|
 Saturday, February 09, 2008

VS2008 HotFix Posted Yesterday

vslogo Phoenix, we have had a problem... not anymore though... :) The web dev tools team posted a note about the release here.

The fix includes Html Source View Performance fixes, Design View Fixes, Html Editing Fixes, Javascript Editing Fixes, Web Site Build Performance improvements. Read the full post here.

Download the fix here.

#    Comments [0] |
 Friday, February 08, 2008

Podcast for PowerShell - PowerScripting.net

In a previous post I wrote about staying up to date and how I do it. I included Blogs, Podcasts, Screencasts, etc.

This is one more Podcast to add to the list. The podcast covers all things PowerShell and I must say, its pretty good!

If there is one thing to add to your toolbelt this year, its PowerShell - even Jeffrey Snover agrees. I guess he doesn't count though ... he is one of the architects of it. :)

Apple ITunes Link For Podcast

#    Comments [0] |

The FooTheory Community

I'm very happy to announce that I was recently invited to join the the Foo Theory community. This is something I'm very excited about as I respect the other Foo-Theorians that also post here. This does not mean that Ill stop posting on my regular blog - I will be cross posting all content to my personal blog as well. You can think of that site as a mirror to this site (or vice versa) from here on out.

 

Feeds To Add

While taking a look around Foo Theory be sure to check out two of my favorite blogs on this site:

Trust me, they're two of the smartest guys out there - be sure to add them to your feed catcher.

Look forward to some great content in the near future. :)

#    Comments [0] |
 Thursday, February 07, 2008

Gleaning Clarity Through Unit Test Names

You're unit testing, right? .... right? (If not... shame on you... ) It's known that TDD/nDD types of development dramatically increase the ability to refactor with confidence, increase code readability and help define and enforce business rules (in the tests). Unit testing helps with TONS of things in development (literally the list could go on and on), but what about the unit test names? What do those do for us as developers? 

Predecessors In The Name Game

Roy Osherove has a good post on Unit Test names. Jean-Paul also has tons of good info about unit test names on his blog. I tend to follow these same guidelines. Also - awhile back on the altnet list there was a thread which spawned this post, but unfortunately I could not find it. If I do run across the post I'll augment this thread with the link.

Background

But what about when a bug report comes in? In my work I've used an alternative method so I thought I'd post it here.

  • Lets say the bug report says that "CalculatePayment" is returning the wrong value when the system is in a certain state. This kind of test was completely missed during development. Heck, it happens! Your task is to implement a solution for this bug.
  • Most likely you're going to write a unit test to assert that the solution you specified has been implemented as expected.

 

Naming Convention

When naming these unit tests I will add the word FIX_<WorkItemNumber>_<MethodName>_<StateUnderTest>_<ExpectedBehavior>() as the method name.

Example:

FIX_186_CalculatePayment_WhenRateLessThan1000_ThrowPaymentException()
{ ... }

From this test fixture name I can glean that this is a fix for bug 186, for the CalculatePayment method, for the state when a rate is less than 1000, the method should throw an exception. I've now documented my code as well as created a very readable and understandable unit test name.

I know this is not something everyone wants to do or would do, but in certain companies I've worked at this has helped with work item issue resolution and tracking.

#    Comments [0] |
 Monday, January 21, 2008

MSN Run Once Bombs...

It happens to the best of us, even the creators of the technology...

image

#    Comments [0] |