Why do we need to compare two concerns? It's because we sometime would like to know how much relation there are between two seemingly separated sub-concerns. Say we break a feature investigation down to three components. Now if we want to change one component of this feature, we can take the advantage of comparing the concern for this component with concerns for the other two components. That way we would know how the new change will affect other parts of the source code.
The comparison of two concerns in the same concern graph took place in the Interactions View. However we start from the Concern Graph View.
How to compare two concerns:
- Switch to FEAT perspective if not in yet.
- Hold down Ctrl key and select the two concern/sub-concerns in the Concern Graph View you want to compare.
- When both concerns are selected, right-click on either one of them.
- Choose "Compare" in the pop-up menu and FEAT will star to analyze both concerns.
- Interactions View will come into sight to show comparing results.
For details on how to understand the comparing results, please refer to Interactions View.