410 likes | 577 Views
Unifying Artifacts and Activities in a Visual Tool for Distributed Software Development Teams. Jon Froehlich and Paul Dourish Interactive & Collaborative Technologies Group School of Information and Computer Science University of California, Irvine. Overview. Software development is complex
E N D
Unifying Artifacts and Activities in a Visual Tool for Distributed Software Development Teams Jon Froehlich and Paul Dourish Interactive & Collaborative Technologies Group School of Information and Computer Science University of California, Irvine
Overview • Software development is complex • Involves dealing with complexity of source code (artifact) • Distributed software development is even more complex • Involves dealing with both complexity of artifact and` activities around that artifact • These two sources of complexity are not independent • Our approach seeks to combine them in a familiar visual frame
Frank class String implements Comparable String(charvalue[]){ Daniel Feb ‘04 } Jan ‘04 String substring(int index){ Amy Feb ‘04 } publicintcompareTo(Objecto){ March ‘04 } } Example String.java
Frank class String implements Comparable String(charvalue[]){ Daniel August ‘02 } Jan ‘00 String substring(int index){ Amy July ‘02 } publicintcompareTo(Objecto){ March ‘04 } } Artifact-Based Tools String.java
Frank class String implements Comparable String(charvalue[]){ Daniel August ‘02 } Jan ‘00 String substring(int index){ Amy July ‘02 } publicintcompareTo(Objecto){ March ‘04 } } Activity-Based Tools String.java
Separation • This separation makes it difficult to see elements that involve both artifact and activity: • Who has been working on new sections of code? • Which developers have worked together recently and on what functions/files? • or more complicated questions like • What modules depend on those recently updated
Our Approach • To address this separation, we’ve developed a visualization tool called Augur. • Augur uses the source code itself to reveal information about development activity • The source code becomes a unifying principle with which to reveal information about its development
Our Approach • Augur relies on existing configuration management systems for its activity data • Currently supports CVS • Augur performs language/structural analysis to better understand semantics of code
Visualizations • Visualizations shift load from cognitive system to perceptual system • Leverage visual system’s ability to perceive patterns and structures • Visualizations allow user to process large amounts of information in a consumable way
Date Legend Mar 11 Mar 06 Feb 02 Date Legend Mar 11 Mar 06 Feb 02 SeeSoft 1.3 (edward 11-Mar-04):/** 1.3 (edward 11-Mar-04):*Thisisatestclassto demo Augur! 1.3 (edward 11-Mar-04):*@authorsJon, Sandy, Edward 1.3 (edward 11-Mar-04):*/ 1.1 (jon 02-Feb-04):publicclass HelloWorld { 1.1 (jon 02-Feb-04): 1.3 (edward 11-Mar-04):/** 1.3 (edward 11-Mar-04):*Defaultconstructor 1.3 (edward 11-Mar-04):*/ 1.2 (sandy 06-Mar-04):public HelloWorld(){ 1.2 (sandy 06-Mar-04): Log.println(“Constructor called"); 1.2 (sandy 06-Mar-04): } 1.1 (jon 02-Feb-04): 1.3 (edward 11-Mar-04):/** 1.3 (edward 11-Mar-04):*PrintsHelloWorldmsg&logscall 1.3 (edward 11-Mar-04):*/ 1.1 (jon 02-Feb-04):publicvoid printMessage(){ 1.2 (sandy 06-Mar-04): Log.println("printMessage called"); 1.1 (jon 02-Feb-04): System.out.println("HelloWorld"); 1.1 (jon 02-Feb-04): } 1.1 (jon 02-Feb-04): }//end HelloWorld class HelloWorld.java Temporal Activity
Author Legend Sandy Edward Jon SeeSoft 1.3 (edward 11-Mar-04):/** 1.3 (edward 11-Mar-04):*Thisisatestclassto demo Augur! 1.3 (edward 11-Mar-04):*@authorsJon, Sandy, Edward 1.3 (edward 11-Mar-04):*/ 1.1 (jon 02-Feb-04):publicclass HelloWorld { 1.1 (jon 02-Feb-04): 1.3 (edward 11-Mar-04):/** 1.3 (edward 11-Mar-04):*Defaultconstructor 1.3 (edward 11-Mar-04):*/ 1.2 (sandy 06-Mar-04):public HelloWorld(){ 1.2 (sandy 06-Mar-04): Log.println(“Constructor called"); 1.2 (sandy 06-Mar-04): } 1.1 (jon 02-Feb-04): 1.3 (edward 11-Mar-04):/** 1.3 (edward 11-Mar-04):*PrintsHelloWorldmsg&logscall 1.3 (edward 11-Mar-04):*/ 1.1 (jon 02-Feb-04):publicvoid printMessage(){ 1.2 (sandy 06-Mar-04): Log.println("printMessage called"); 1.1 (jon 02-Feb-04): System.out.println("HelloWorld"); 1.1 (jon 02-Feb-04): } 1.1 (jon 02-Feb-04): }//end HelloWorld class HelloWorld.java
Structure Legend Constructor Comment Method Augur 1.3 (edward 11-Mar-04):/** 1.3 (edward 11-Mar-04):*Thisisatestclassto demo Augur! 1.3 (edward 11-Mar-04):*@authorsJon, Sandy, Edward 1.3 (edward 11-Mar-04):*/ 1.1 (jon 02-Feb-04):publicclass HelloWorld { 1.1 (jon 02-Feb-04): 1.3 (edward 11-Mar-04):/** 1.3 (edward 11-Mar-04):*Defaultconstructor 1.3 (edward 11-Mar-04):*/ 1.2 (sandy 06-Mar-04):public HelloWorld(){ 1.2 (sandy 06-Mar-04): Log.println(“Constructor called"); 1.2 (sandy 06-Mar-04): } 1.1 (jon 02-Feb-04): 1.3 (edward 11-Mar-04):/** 1.3 (edward 11-Mar-04):*PrintsHelloWorldmsg&logscall 1.3 (edward 11-Mar-04):*/ 1.1 (jon 02-Feb-04):publicvoid printMessage(){ 1.2 (sandy 06-Mar-04): Log.println("printMessage called"); 1.1 (jon 02-Feb-04): System.out.println("HelloWorld"); 1.1 (jon 02-Feb-04): } 1.1 (jon 02-Feb-04): }//end HelloWorld class HelloWorld.java
Author Legend Sandy Edward Jon Structure Legend Constructor Comment Method Date Legend Mar 11 Mar 06 Feb 02 Structure Legend Constructor Comment Method Whitespace Augur 1.3 (edward 11-Mar-04):/** 1.3 (edward 11-Mar-04):*Thisisatestclassto demo Augur! 1.3 (edward 11-Mar-04):*@authorsJon, Sandy, Edward 1.3 (edward 11-Mar-04):*/ 1.1 (jon 02-Feb-04):publicclass HelloWorld { 1.1 (jon 02-Feb-04): 1.3 (edward 11-Mar-04):/** 1.3 (edward 11-Mar-04):*Defaultconstructor 1.3 (edward 11-Mar-04):*/ 1.2 (sandy 06-Mar-04):public HelloWorld(){ 1.2 (sandy 06-Mar-04): Log.println(“Constructor called"); 1.2 (sandy 06-Mar-04): } 1.1 (jon 02-Feb-04): 1.3 (edward 11-Mar-04):/** 1.3 (edward 11-Mar-04):*PrintsHelloWorldmsg&logscall 1.3 (edward 11-Mar-04):*/ 1.1 (jon 02-Feb-04):publicvoid printMessage(){ 1.2 (sandy 06-Mar-04): Log.println("printMessage called"); 1.1 (jon 02-Feb-04): System.out.println("HelloWorld"); 1.1 (jon 02-Mar-04): } 1.1 (jon 02-Feb-04): }//end HelloWorld class HelloWorld.java
Big Picture: on March 6th, Sandy added logging functionality to HelloWorld. How? * Adding a constructor * Adding one line to an existing method Augur • Source code is the common artifact around which developer activities take place • The code itself provides a common & familiar space in which to reveal information about development activity • Code becomes a unifying structure for organizing many different types of information /** * This is a test class to demo Augur! * @authors Jon, Sandy, Edward */ publicclass HelloWorld { /** * Default constructor */ public HelloWorld(){ Log.println(“Constructor called"); } /** * Prints HelloWorld msg & logs call */ publicvoid printMessage(){ Log.println("printMessage called"); System.out.println("HelloWorld"); } }//end HelloWorld class
Author Legend Sandy Edward Jon Structure Legend Constructor Comment Method Date Legend Mar 11 Mar 06 Feb 02 LargerFile.java LargestFile.java File.java SmallerFile.java File2.java Augur HelloWorld.java HelloWorld.java
Augur in Practice • Three examples follow that demonstrate how relationships between artifact and activity can be interpreted with Augur
Three Examples • The activity of commenting
Structure Legend Constructor Comment Import Field Method Whitespace Conner Constructor Antoine Comment Conner Method Antoine Comment Conner Method Antoine Comment Conner Method Example One Clearly there is a temporal pattern here, but… Now we see, most recently added lines are comments… And comments were added by a another author! Not just detecting comments, but the activity of commenting! This richer characterization made possible by the combination of information. It appears that there are relationships between temporality and artifact! First the methods were added and then, 6 months later, the comments were added/modified.
Author Activity • Majority of author’s development activity is commenting • This is easily discernible • Tying together multiple views makes this inference possible Project Length: 4 yrs, 4 mos old Author’s First Commit: ~1 year ago Observation: 74% of lines are comments
Three Examples • The activity of commenting • Unification of views reveal richer notions of activity
Three Examples • The activity of commenting • Unification of views reveal richer notions of activity • Exploring changes in context
Structure Legend Constructor Comment Import Field Method Whitespace In Context Commit Log Commit Date: 05/09/04 Author: offkey Comment: TestMultiLabeller.java added Comment: Tests GlobalStringLabeller.java
Controls and Color Legend Primary Visualization Window (Augmented Seesoft View) FileTree Explorer Secondary Visualizations
Extensibility • Supports 1. Multiple Version Control Systems 2. Multiple analytic tools 3. Multiple visualizations
Ongoing & Future Work • Exploring temporal activity patterns in source code • Exploring social networking patterns in source code • Applying Augur philosophy in other environments
Temporal Patterns Past 24 Hours Past 24 Hours Past 2 Years, 3 Months Past 1 Month Past 1 Week Past 1 Year
Author “bmazur” Selected Author “suvarov” Selected Author “oscarmm” Selected Author “hawkprime” Selected
Integrating Augur Philosophy
Conclusion • Activity information is situated within the source code • Source code is an “inhabited space” • Exposing activity information in the context of code provides a richer understanding of the relationship between them
Thank You Download Augur: http://www.isr.uci.edu/projects/augur Contact : jfroehli@ics.uci.edu jpd@ics.uci.edu