InfoQ

News

Structure101 v2: Dependency and Architecture Analysis Tool

Posted by Floyd Marinescu on Oct 10, 2006 04:05 PM

Community
Architecture,
Java
Topics
Artifacts & Tools ,
Debugging
Tags
Enterprisey ,
Structure101 ,
Visualization
When projects get so big that no one person can visualize the whole thing, some times tools that can visualize the architecture and measure it's complexity are needed.  Headway Software just released version 2 of Structure101, "an interactive tool that shows you dependency graphs from your code-base. It lets you see these as either diagrams (the familiar Directed Graph) or dependency matrices." said Structure101 CTO Chris Chedgey, talking to InfoQ.

According to Chris, for any dependency:
you can discover which code-level references (like class extends class or method calls method) causes higher level dependencies (like package depends on package or jar depends on jar). After that, Structure101 is about helping you find structurally significant dependency graphs. For example it takes you straight to "tangles" (cyclic dependencies) at any level of composition (class, design, jar) and in any hierarchy (e.g. jar or package).
Structure101 also includes a measurement framework that lets you drill down on the size and complexity in your code-base and prioritize problems in terms of how much they are likely costing you in terms of developer productivity.  Structure101 also includes a repository and web application that let you compare the size and complexity of all your projects, track how metrics are changing over time and see exactly how the design or architecture changed between any two builds.

Version 2 adds:
  1. A new Slice perspective that lets you see your whole code-base at any level of composition, for example at the class level, package level or at any design level. 
  2. A dependency structure matrix ('dsm') representation for large dependency graphs (such as slices).
  3. Tagging of code-level items in order to discover how they roll up through different slices and hierarchies.
  4. Hiding of model items.
Structure 101 is being used by a number of large organizations, including Expedia, European commission, Credit Suisse, Delta airlines, the US Airforce and Navy, and others; it is primarily being used in two ways:
The first is to understand and control the complexity of their code-base. The second is to understand and control their architecture. For the former, they are looking to understand the structure of their code, where it is complex and how to go about refactoring or restructuring it in order to maximize ongoing development productivity (what the XP guys call "agility"). For the latter, they are using the "transformation" capability in order to create their "architectural" view, and then monitoring any structural changes (using the snapshot "comparison" capability) with each build in order to control the evolution of the architecture. 
The majority of their customers are working with codebases in the 25-75k lines of code range, "but on the other hand the cost of complexity is really proportional to the number of developers" said Chris. Headway was established late 99. "We have found that the awareness of software structure and the importance of controlling its complexity to be growing enormously over the last 2 years."

1 comment

Reply

The same is also available as open the source project "Bark" by Eirik Maus Posted Oct 11, 2006 2:19 AM
  1. Bark is a dependency analyzer Eclipse plugin, made as part of a Norwegian Computing Center (Norsk Regnesentral) research project. It actually works.

    Here:
    bark.nr.no

    - eirik

Exclusive Content

Diary of a Fence Sitting SOA Geek

In this presentation, Mark Little explains the history of SOAP/WSDL/WS-*-based web services and RESTful HTTP and highlights how the two approaches might converge into a single solution.

Flex for XML and JSON

Platforms need interoperability. In this article Flex interoperability with JSON and XML is explored including direct mapping to chart and grid components.

Measuring Agile in the Enterprise: 5 Success Factors for Large-Scale Agile Adoption

Michael Mah analyzes the development process in 5 companies: 2 Agile (one of them BMC) and 3 classic. He presents the factors which contributed to the success of BMC's Agile adoption.

Tom Preston-Werner on Powerset, GitHub, Ruby and Erlang

In this interview filmed at RubyFringe 2008, Tom Preston-Werner talks about how both Powerset and GitHub use Ruby and Erlang, as well as tools like Fuzed, god, and more.

David Laribee on Alt.NET and its Mission

David Laribee discusses the purpose of ALT.NET, its mission and future.

Discover RailsKits and Stop Writing Redundant Code

Ruby on Rails has become a popular Ruby framework for creating web applications in recent years. An aspect of creating a web application is the need to repeatedly create the same base functionality.

A Formal Performance Tuning Methodology: Wait-Based Tuning

Steven Haines talks about tackling web application performance tuning by proposing a method called wait-based tuning.

Shaw and Fowler About Forging a New Alliance

Shaw and Fowler talk about the need for a new relationship between the business department and the IT department. Studies have shown that projects mostly fail due to miscommunication between the two.