Architectural Validation and Synchronization
In one of the articles that just hit recently around our upcoming "Architectural Validation" feature in VSTS 2010 Team Architect, there was concern around how to "maintain all those diagrams" in context of the Architectural Validation or Layer Diagram feature. I wanted to shed a bit more light on how the association between your code and the diagram is made and maintained. We have not really discussed this nearly as much as we should, other than a quick "Map your physical assets..." comment I made in step five of this post.
Basically, I want to point out that the risk of the Layer Diagram and your source getting out of synch really depends on how you choose to use the tool.
- Association with artifacts can occur in the following ways
- Link to a single artifact e.g. a class
- Out of sync risk = medium high
- Depending on the number of deletes and renames, layers linked to classes can have stale links. However, these are shown as warnings and can be cleaned up quite easily.
- Link to a group of artifacts using a container e.g. namespace
- Out of sync risk = low
- Linking a layer to a namespace indirectly links the layer to all classes in the namespace. Validation will start at the namespace and process everything in it. This indirect link allows the validation to adjust to changes to individual classes rather well.
- Namespaces themselves do not change as often.
- Link to a group of artifacts using a query
- Out of sync risk = very low
- A query links to dynamic collection of artifacts. The query is evaluated every time you validate. Hence, like the namespace example above, changes to the results of the query are automatically factored in.
- Link to a single artifact e.g. a class
- Build time validation
- The integration with builds and check ins make this feature a lot more useful and bring it to the forefront of the development process. This also has the side benefit of forcing updates if they’re required.
Comments
- Anonymous
September 30, 2008
PingBack from http://www.alvinashcraft.com/2008/09/30/dew-drop-september-30-2008-evening-edition/ - Anonymous
October 03, 2008
Brian Harry on Preview of the next TFS Power Tools release Martin Woodward on Radio TFS on Check-in...