Thursday, March 13, 2008

Consistency Matters... Sometimes

Consistency is a hallmark of QA. Consistent behaviors are comforting, consistent results are good, consistent steps to reproduce the problem so we can understand it are a goal of most bugs.

But how much consistency is too much?

Consistent production environments are generally common. Consistent test environments are also common. Consistent development environments are often a goal. Consistent requirements generation environments are.... well, funny, that doesn't usually come up!

So let's walk through the development cycle (backwards). Assuming an enterprise deployment (not a consumer application):
  • Consistency in Production Environments: GOOD. Assuming you control this, more consistency is useful; the only changes you want are those you control, and usually fall into the configuration category.
  • Consistency in Test Environments: GOOD. These should match production with certain known exceptions (usually test tools like Wireshark).
  • Consistency in Development Environments: LIMITED. Good developers have a setup that works for them. Within limits it shouldn't matter if one person likes Eclipse and another strongly prefers TextMate. Consistency enforced here is generally for common tools (source control, unit test frameworks), consistent product (matching code styles) and for ease of working together. Beyond that, the product is more important than the environment in which it's created.
  • Consistency in Requirements Creation Environments: NO SUCH LUCK. This s one of those things that doesn't get asked about. As long as the product (spec, story, PRD, whatever) is consistent and correct, who cares how it gets there?
So don't enforce standards for their own sake. Figure out what you really absolutely need to be the same, and enforce that consistency. Beyond that, consistency is really rules for the sake of rules.

Be consistent enough to make your life easy, but not so much you make your life hard.

2 comments:

  1. Consistency in Development Environments: Limited

    In terms of look and feel, sure, but under the covers there should be a lot of consistency. Same OS versions, same library versions, etc... otherwise you get the mysterious "works for me" problems.

    ReplyDelete
  2. Good point. I think it depends on the type of development you're doing. If, for example, I'm developing the next great mail client, it matters whether I and my co-developers are on the same OS using the same graphics libraries, compilers, etc. If, on the other hand, I'm developing a real Facebook killer with Ruby on Rails, then it's fine for me to be on Wndows when my co-developer is on a Mac. In all cases RELEVANT things should be consistent. Relevant will vary by product.

    All that being said, I think the burden is on the developer to prove that any of his inconsistencies are irrelevant to the product and therefore okay.

    ReplyDelete