Toxicity Chart

Erik Doernenberg from ThoughtWorks has created the Toxicity Chart which is a neat “practical” visualization displayed as a bar chart in a spreadsheet that shows what classes in your system are toxic as defined by classes being larger than a threshold for certain software metrics. The metrics include file length, class complexity, class coupling, inner class length, method length, number of parameters per method, cyclomatic complex methods, nested “if” and “try” depths, complexity of boolean expressions, and missing switch defaults. Erik describes the visualization and some existing tools to create this visualization in his blog post How toxic is your code?

The image below shows the Toxicity Chart for Hibernate, from Erik’s post.

Advertisements

About Craig Anslow

Craig Anslow is a Lecturer in Software Engineering at Victoria University of Wellington, New Zealand, with research interests in software visualization.
This entry was posted in Visualization Techniques and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s