Architecture
Archived Posts from this Category
Archived Posts from this Category
Posted by Chris Sterling on 25 Aug 2008 | Tagged as: Agile, Architecture, Leadership, Product Owner, Scrum, Uncategorized, XP
“The team continues to complain about working with that legacy codebase because it has so much software debt. That software debt slows them down in feature delivery and they are wondering if we can push for priority to be put into paying it back some?” asked the ScrumMaster. The IT Development Manager looked distraught about the request. She knew that paying back some of the software debt would be a valuable effort but what would the business say about the priorities? “Tell the team that we’ll start paying back some of the software debt starting in the next release. We must get the current release out the door and a change in priorities won’t allow us to get there.” the IT Development Manager said.
Considering the circumstances I cannot tell an IT manager that this approach is not the right way to go. In many cases the IT manager is not in a position to push for technical priorities even when they will provide value to the business. As teams continue to develop on a system without managing the software debt effectively feature delivery throughput decreases. The following picture shows a team’s feature delivery throughput versus time spent stabilizing each release over time:
There are many reasons for this software debt accrual:
IT management has looked for ways to minimize the effects of software debt. We introduce processes that in theory will reduce software debt but in reality seem not to lessen the effects at all. Tools are introduced that will ease the software development process but we still see similar or potentially new mistakes made by team members. Individual team members are asked to specialize in particular software development disciplines such as Database Administrator (DBA), Quality Assurance (QA), or Business Analysis (BA). Although we do each of these specialized roles more efficiently it seems that the product delivered still is accruing software debt. So what do we do?
It is my experience that teams that adopt agile test and engineering practices within an organization that supports collaboration between business units and development teams are more successful in the containment of software debt. These teams tend to minimize software debt and will at the very least deliver with consistent throughput release after release. In some cases I have seen teams accelerate the velocity of their feature delivery throughput over time. The following figure represents the problem IT managers have in deciding to manage software debt effectively on existing legacy software:
A team will have to slow their current feature delivery significantly in order to get consistent throughput over time. I would suggest that managing the software debt effectively would be the best decision for a business relying on this software. Software is a valuable asset for businesses that can:
Still, given all of these reasons it is difficult to take on software debt in the wild. We must understand that a typical IT manager has many influences on their decision making, as well:
Given all of these circumstances I believe that IT managers are making the best decisions possible. How can we help IT management support our organizational software assets effectively and minimize the effects of software debt? What approaches will allow the software delivery teams to manage software debt while delivering essential features? How can business get more involved and increase understanding of this dilemma that will affect the organization’s capabilities over time? I am interested to hear from anybody who reads this. What are your suggestions?
Posted by Chris Sterling on 25 Aug 2008 | Tagged as: Acceptance Testing, Agile, Architecture, DotNet, Java, TDD, Uncategorized
A few years ago I was privileged to be on a team with some excellent developers where I currently work, SolutionsIQ. One of whom saw the need to stabilize development on an incredibly unstable codebase with no tests. He came to the team with a proposed tool that he slapped together in his free time. It was a mashup of Selenium and FitNesse along with some modifications to support some special needs we had on the project. His name was Paul Dupuy and the entire team, including Mickey Phoenix, Rand Huso, Jonathon Golden, and Charles Liu, spent some time working on enhancing the tool, now called StoryTestIQ (aka ‘STIQ’), to make it what it is today. Other teams at SolutionsIQ have been using StoryTestIQ, as well, and helping to enhance its capabilities from time to time.
One issue that we have had is that the visual testing portion of StoryTestIQ runs inside a web browser. The security models for each browser is a little bit different but for the most part they restrict cross-site scripting. For most of the projects we have used StoryTestIQ on the customer’s browser was always Microsoft Internet Explorer (IE). Given this constraint we were able to run in a special non-secured mode of IE called HTML Applications (HTA). This mode of IE also has a problem. The browser history is not retained while in HTA mode therefore some JavaScript functions will not work if used in your application.
Recently I have been working on a project that must work in multiple browsers. Also, I have a Mac so the constraint of using IE is not necessarily reasonable without some coaxing. Instead I decided to take on a quick Apache2 with mod_proxy experiment to see if I could serve both StoryTestIQ, which serves its pages from the FitNesse server inside, and the project’s web application server. It worked and so now I will share it with you.
I will assume that you are already using StoryTestIQ and have Apache2 installed already. If not, please make sure each of these run within your environment before moving on. In my first configuration the project I was developing is running on the Jetty web application server on port 8080. I started up StoryTestIQ on port 9999 and left my project’s web application up and running while I configured Apache2. I used MacPorts to install apache2 in the /opt/local/apache2 directory. In my environment the httpd.conf, Apache2 main configuration file, was located at /opt/local/apache2/conf/httpd.conf. In your own Apache2 installation find the default httpd.conf file for configuring the server. Inside the httpd.conf configuration file make sure that mod_proxy is installed and loaded by searching for a line similar to this:
LoadModule proxy_module modules/mod_proxy.so
If you are not currently using mod_proxy then please review their web site to install and configure mod_proxy for your environment. If mod_proxy is successfully installed then you can add the following lines to the httpd.conf file below all of the LoadModule entries:
#
# Proxy configuration for STIQ and local Jetty application
#
ProxyPass /stiq http://localhost:9999/stiq
ProxyPassReverse /stiq http://localhost:9999/stiq
ProxyPass /files http://localhost:9999/files
ProxyPassReverse /files http://localhost:9999/files
ProxyPass /STIQResults http://localhost:9999/STIQResults
ProxyPassReverse /STIQResults http://localhost:9999/STIQResults
ProxyPass /myapp http://localhost:8080/myapp
ProxyPassReverse /myapp http://localhost:8080/myapp
#
# Rewrite ProjectRoot, STIQ repository main content page, to STIQ server
#
RewriteEngine On
RewriteLog “/opt/local/apache2/logs/rewrite.log”
RewriteRule ^/ProjectRoot(.*) http://localhost:9999/ProjectRoot$1 [P]
There are multiple directories which can be easily proxied using basic ProxyPass and ProxyPassReverse directives. These are /stiq, /files, and /STIQResults. Due to the wiki page URL construction the main content page within the STIQ repository cannot use these basic directives. Instead you must use the RewriteEngine with a rule to map any URL starting with /ProjectRoot* to the STIQ Server. The problem was that the wiki page would ask for a URL such as http://localhost:9999/ProjectRoot.StoryTests and the basic proxy directives would see this as a new URL compared to basic /ProjectRoot. The use of the RewriteRule allows anything that starts with /ProjectRoot to get proxied across.
Once you have these configurations added to the httpd.conf you can restart the Apache2 server. In my environment the command was:
/opt/local/apache2/bin/httpd -k restart
After the web server is restarted you can launch StoryTestIQ inside your browser using a URL similar to this one:
http://localhost/stiq/runner.html?startPage=/ProjectRoot&suite=StoryTests
You’ll notice that this is going through the default HTTP port 80 instead of STIQ’s port 9999. We are now proxied on port 80 to port 9999 for STIQ related URL. You can write automated acceptance tests opening a URL starting with http://localhost/myapp and it will proxy to port 8080 where your web application is running. Make sure to have all of the port numbers correct in your configurations if your environment differs from mine.
I have also configured a Ruby on Rails application for automated acceptance tests against with STIQ. In that case I had to configure mod_proxy with the following directive adding an application name to the Apache2 URL to proxy:
ProxyPass /myapp http://localhost:3000
ProxyPassReverse /myapp http://localhost:3000
You can see the welcome page for your application using this basic configuration but once you have any URL locations identified in your web pages that start with ‘/’ they will not be found. In order to support URL which start with ‘/’ you must modify the appropriate environment configuration inside your Ruby on Rails application. The environment configuration are found in the ${project_root}/config/environments directory by default. I added the following to my development.rb environment configuration file which is what I use with STIQ:
# This allows me to run using mod_proxy on Apache2
# Using StoryTestIQ for automated acceptance testing
# It runs in a browser and therefore cross-site scripting is not allowed
# which the mod_proxy allows me to get around by passing both the StoryTestIQ
# server and the application under test through the same root URL
ActionController::AbstractRequest.relative_url_root = “/myapp”
This will cause all requests for URL starting with a ‘/’ to become ‘/myapp/’. This allows them to be found through the Apache2 proxy.
If you are interested in beating the cross-site scripting restrictions of most major browsers for use with StoryTestIQ I hope this blog entry will help you out. This same mechanism could help with other tools out there who have browser restriction issues. Let me know through your comments if this worked for you or if you have any suggestions on modifications that could make this easier.
Posted by Chris Sterling on 21 Aug 2008 | Tagged as: Acceptance Testing, Agile, Architecture, DotNet, Java, Leadership, Product Owner, Scrum, TDD, XP
Last week I was invited to participate in a LAWST-style workshop on Technical Debt. I was honored to be there with such a great group of people from diverse industries and experiences.
Preface: I am writing this blog entry for myself and therefore it may not be as useful to those reading. Also, the perspective on discussion points are from my own understanding. I will link to other portrayals, blogs, and articles on technical debt in the future to round out these understandings. I do have positions on this topic that I have talked about in earlier posts, conference presentations, and in articles that I will continue to build upon in the future with influence from people in the workshop and outside, as well.
On the night before the workshop began, a large group of the participants went out to a Grand Rapids, MI watering hole to get introduced and start lively discussions. I learned some interesting nuggets such as how some roads in Texas are paved cow runs. We also discussed more of the philosophical and metaphorical underpinnings of the term debt in relation to technology artifacts. One item I took away from this was around discretionary income. Some technology shops either do not have discretionary income or choose to use it developing new capabilities rather than investing it to minimize their current technical debt.
Nancy Van Schooenderwoert provided me with many good pieces of information. While discussing our agile coaching experiences with teams she said:
“The only question that matters at the end of an iteration is ‘Did you build more or less trust with the customer?’”
Some people who read this may find this difficult to find true but I have found this question is important to ask each iteration. Scrum and other agile frameworks attempt to build trust between parties that may have played the blame-game with each other in past projects. As a team and customer build trust the motivation of the team and willingness of a customer to collaborate grows stronger. These characteristics enable faster product development with higher quality.
Now for the play-by-play of the workshop itself.
Rick Hower: 10 Warning Signs of Technical Debt
Rick facilitated a brainstorming session to gather warning signs of technical debt in your code. We brainstormed way more than 10 warning signs that I did not write down. Rick and potentially other participants will be writing an article to choose the top 10 warning signs that I will link to once it comes out.
Matt Heusser: Root Causes of Technical Debt
Here are some of the notes I took on Matt’s topic:
Typical training in computer science tends to not entail testing, maintenance of your own code beyond an assignment, or team interaction.
Technical people tend to take a victim position when developing code too fast creating technical debt. For instance “those mean business people pushed me around and I have no power to change their mind”. Non-technical people don’t always understand what they are asking for when making decisions on feature delivery. If they knew the impact of these decisions they may decide to pay off some of the technical debt before investing in new features.
North American businesses tend to look for short-term versus long-term results. This could impact planning and delivery since the short-term goals may be hacks while long-term results show decay of software can be costly.
Engineers have observable physical reasons for qualifying assessments (ie. “This bridge will take traffic going 40 mph”). Software development organizations do not seem to have these types of qualifying assessment tools fully figured out yet. Matt used mechanical engineering in the 1800’s versus electrical engineering during the same time period to support this idea. Mechanical engineering was well established in the late 1800’s yet electrical engineering was still in its infancy. Useful units to measure were known for mechanical engineering yet the electrical engineering folks did not have similar units of measure. Over time the electrical engineering discipline gained new knowledge and developed useful units of measure that we use today. Maybe we as the software industry are still trying to find our useful units of measure.
David Walker: False Starts
Misuse and bad deployment of practices hurts an organization.
David mentioned an organization that may be of interest: ACQ (American Society for Quality). They have a topic on their site called ECQ (Economic Case for Quality) that may be a helpful talking point.
Chris McMahon asked the question “Why would you not do excellent work?” in a discussion on technical people asking for permission to work on technical debt in their software development efforts. I thought this was a great question so I wrote it down.
Steve Poling: Technical Debt is Fascism
Steve got our attention with the name of this topic. Steve wanted us to come up with formulas we could use to calculate technical debt. I thought he had some good ideas and I hope he is able to develop formulas that actually work for particular instances of technical debt.
Steve brought up Godwin’s Law: “As a Usenet discussion grows longer, the probability of a comparison involving Nazis or Hitler approaches one.” I thought this was interesting since the term technical debt could be dilluted in its usage if it covers too much of a spectrum and is not able to be pinned down.
I thought Steve brought up a fairly good metaphor for technical debt revolving around his trailer hitch. He had noticed the need to paint his trailer hitch for some time in order to protect it from the elements. The problem was that other pressing items of business came up and he did not paint the hitch. Over time he went to paint the trailer hitch and now it had rust on it. This meant that the total effort to protect the trailer hitch from the elements had grown exponentially. He now had to clean the hitch and make sure the rust was gone and then he could paint it.
Ron Jeffries asked to draw a picture on the black board to discuss technical debt and he came up with what I thought was an amazing representation of the issue. Here is my attempt at recreating his phenomenal chalk talk in a tool:
We can make incremental progress on a large feature area within a system adding value with each addition. In order to make incremental progress we should keep code clean and easy to change so the addition of more features on top of existing functionality does not slow down. In fact we should be able to deliver features faster on top of each capability already built into system. This does not always (or even usually for that matter) happen in projects and instead we end up with a “big ball of mud” to work with. As a team is working on this system they begin an effort to add a new feature and get caught in a quagmire of old crusty code that is difficult to work with. What is even worse is when there are external dependencies to this big ball of mud that makes changes even more risky than it would be on its own.
David Christiansen: Where did all this $@#% come from?
David was entertaining and provided some instances of what he constituted as technical debt. Here are the sources he listed in the presentation:
Some people in the room thought this list went well beyond what technical debt should be. This list seems to cover almost anything that causes software to become difficult to work with. It was a great list of issues and David went on to say he wasn’t as interested in defining technical so much as help to create tools and practices that would minimize bad software.
David also discussed how documentation is a gamble:
“Like a slot machine the house always wins. Sometimes you get a winner but most of the time it is a loss.”
I will probably use this quote in the future with proper acknowledgements so thank you David.
Brian Marick said the following during the questions and answers portion of the presentation:
“Debt is a property between the people and the code.”
I thought this was interesting and already have multiple thoughts on how this can be applied. I am not sure what is the best way to view this statement yet I found it important enough to write down so I will think about it some more. Also, I hope to ask Brian more about this point in the future.
Michael Feathers also brought to the group a point about the tradeoffs made in terms of “navigability versus changeability in the code”. Some technical folks like code navigation to be explicit and therefore have difficulty reading strongly object-oriented code that separates implementation from interfaces to support change.
Nancy Van Schooenderwoert: A Garden of Metaphors
Nancy proposed that we could start to explain technical debt more succinctly if given a combination of a metaphor and metrics. The metaphor can help people who are non-technical understand the impact of their decisions on technical artifacts. For instance the use of the word debt helps people visualize the problems with just making it work versus craftsmanship (word brought up by Matt Heusser that I thought was useful). She mentioned that technical debt is about expectation setting.
NOTE: Nancy wrote to me and added the following comment - “Metrics and Metaphor have opposite weaknesses so they support each other well. People can be suspicious of metrics, because there is an infinite choice of things to measure and how to measure them. Metaphor, on the other hand rings true because of familiar experiences the listener has had. The only problem is that it depends on tech debt *truly* being like the thing in the metaphor. We have to check back with reality to know if that’s the case. That implies we measure something to see whether and how the behavior of tech debt is different from the behavior of financial debt (or whatever else we used as metaphor).
I think some of the most useful metrics to start with are
* value stream mapping
* bug metrics
* story points delivered, and remaining to be done”
Nancy also brought a great alternative metaphor to debt based on Gerald Weinberg’s “Addiction” trigger responses. Sometimes decisions are made for short-term results without understanding their long-term effects such as in alcohol, smoking, and other drug addictions. To enable better responses to the addiction we must setup a more appropriate environment that allows proper responses to made within. Here is my portrayal of the “Addiction” metaphor drawing Nancy put up:
The “Environmentalist” as a metaphor was also brought up by Nancy. In life nobody has to pay for the air we are dirtying up. Economic systems poorly reflect environmental quality and this has helped lead to issues we are now faced with in global warming.
David Christiansen: You’ve got a lot of Technical Debt, Now What?
I don’t have any notes about David’s talk but Chris McMahon mentioned something I thought was wonderful:
JFDI - Just #%$ Do It
We got to this point when people started asking why wouldn’t a technical person just fix the issues when they seem them. Chris discussed an example of how they decided to use Bugzilla. One of the developers got tired of the old bug tracking system, and he JFDI by installing Bugzilla. It was pointed out that there are also examples of JFDI backfiring and I can think of a situation that impacted a team for multiple days because of JFDI.
The visibility into each task that a person takes on in some organizations makes this approach difficult to follow. How can we help people decide to make the right choices while developing software in these environments?
Matt Heusser: Debt Securities
Matt brought up the term “moral hazard” to describe how technical people act based on their insulation from the long-term effects. For instance, a person may take a shortcut in developing a feature since they are not going to be working on the code 1 year from now when it must be modified to support a new feature. Matt pointed out two practices that may help minimize this effect:
Chet Hendrickson pointed out that a good way to minimize the problem with moral hazard is by:
“Lowering the threshold of pain”
For instance, Chet brought up doing our taxes. Yes he could incrementally update his taxes 2 hours each month. Instead he waits until 2 weeks prior to get his tax forms completed because the potential headache of tax evasion is strong enough that it crosses a threshold.
Brian Marick: Market World
Brian defined the term market world as:
“Get as much for as little”
He then described the term social world as:
“Transactions are not accounted for”
Brian discussed that use of the term “debt” as a talking point may push us into a “market world”. This could be problematic since it leads to the creation of technical debt by only doing enough now to get it out the door. Maybe we could do more to introduce social aspects into the talking points for removing what we now call technical debt.
Brian is a tremendous thinker, IMHO. He brings creative and profound discussion points to the table. Here is one such point he made:
“Agile teams care deeply about business value…the problem with agile teams is they care more about business value than the business does.”
Being an agile coach has lead me to believe this is true many times over. I wonder if this is something we can work on as an industry and should we move more towards social world ideas to identify the right vision for our software delivery focus.
Rob V.S.: Developer in a Non-agile Environment
Rob pointed out some points about development in a non-agile environment. Here are some of those:
I thought Rob’s story was a great addition to the group. Not everybody, maybe not even a majority, of the people who participated were involved in projects that were using an agile framework.
Michael Feathers: Recovery
Michael explained that he saw that the industry was talking about people issues more often today then before. This seemed like a good thing yet he wondered when we would get back to discussing technology issues. Chris McMahon said the following that I thought was a good principle to follow:
“Make the easy things easy and the hard things possible”
I am not sure where I heard something similar before but Chris brought it up so quickly that I attribute it to him until further notice.
(NOTE: Chris said “as far as I know originated as a design principle in the early days of Perl development. I was quoting Larry Wall.”)
David Andersen: Business Models
David pointed out something that I discuss often in training courses on Scrum:
“IT as a cost center versus a profit center”
I was quite interested in this topic and see this as potentially the most important software development environment problem to be solved. Yet the problem may be so large that finding a solution may be near impossible. Therefore I have found discussing the issue one organization at a time sometimes helps.
David expressed that companies who work in a time and materials approach tend to be cost centers. The idea is that we employ a warm body to take on the work. Those companies whose approach is a service for a fee tend to think like a profit center. The right people will emerge and deliver the services based on setting up the proper relationship.
Brian Marick brought up a reference to the Winchester Mystery House that is filled with all kinds of oddities. I can’t remember why he brought this up in terms of business models but it could be something to think about when discussing technical debt and its potential ramifications.
Matt Heusser: Clean Code and the Weaker Brother
Matt presented the idea of the weaker brother and it caused me to take another perspective look at team composition. At least it gave a strong analogy to draw from for conversation about it. One thing that I thought was interesting about Socialtext, where a few of the folks including Matt work, is they are truly distributed as team members. They have communication tools that help them minimize the potential issues with fully distributed team. One of the tools and processes they use is every commit message to source control goes to the development email list. Something that happens in response to this from time to time is other people on the team can challenge the implementation and a healthy, respectful banter goes on that improves quality of the overall software. I will take this away as a talking point on distributed teams and may even use it on one of our projects in the near future to see how it works for us.
Chris McMahon discussed a policy they had at a previous employer that said everyone must work on a team at least 1 week per month, even the iteration leader (similar to a ScrumMaster role). I will have to think about this policy and its ramifications but I truly believe that I must work on a team every once in a while to keep my practices up to snuff.
Michael Feathers: Topic of Unknown Origin but Greatly Appreciated (my own words)
Michael had a question that I thought was interesting:
“Would the world be better if all your code was gone in 3 months?”
The answer to this question for your particular project context may help the team decide what the effect of technical debt is today. I had a couple of comments on the subsequent discussion points but never got them out because there were so many passionate people with great points, ideas, and questions. Here are the points around taking an incremental improvement to these codebases from my own experience with some horrible situations:
Abuse Stories - Mike Cohn brought this up during a presentation and they were not in his slide materials. He has since added them and I believe them to be greatly important and easy to implement types of stories to describe the cost of not addressing what are usually technical debt or more likely architectural features. You can follow the link to an old blog entry I posted on this subject.
“Finding a common enemy” - I find teams are not usually motivated until they have a common purpose. One way to find a common purpose quickly is to find a common enemy. This may be a competitor’s product or another team (I hope not but hey?). This can bring a team together and focus their efforts to defeat the competitor. I have heard of companies who developed this focus and cornered their marketplace in a fairly short timeframe. This could also help to address technical debt since those issues will be fixed in order to continue on the path to defeating the common enemy.
Michael did a great job of describing how companies may not consider the value of their existing software enough. Code has value and organizations who understand this can make better decisions about how they treat their software assets. The idea is to prevent devaluation of a software asset when appropriate.
Ron Jeffries & Chet Hendrickson
OK, now this was fun. Ron and Chet put on a artistic show that put technical debt into a perspective easily understood, IMHO. I will attempt to recreate their drawings and the reasoning behind each one but I hope they write an article on this soon since they are incredibly apt to delivering a message succinctly.
As a team is building a system their velocity will either stay fairly consistent, decelerate, or accelerate.
Each feature implementation is developed using a combination of available system capabilities and newly developed capabilities.
A team can choose within their current envioronmental context to build a rats nest that is hard to work with later or a well-designed system that more easily changes with new business needs.
The punch line, from what I could gather, was the use of a negative term “debt” may be problematic from an emotional point of view. Rather than using a negative to discuss the topic it may be better to discuss how we can build upon what we have. Thus we can call technical debt something like “liquid assets”. We can use our existing code to develop new capabilities for our business quickly and with lower cost then doing so from scratch. I am not sure if this term will stick but I like the building upon what we have already developed point of view.
Chet and Ron also brought up the 4 basic principles of simplicity in code by Kent Beck:
* These are in order of importance since each of last 3 are potentially in conflict with each other.
Wrap Up
There is so much more that I didn’t take down, remember, potentially understood the importance of, and whatever else that stopped me from recording it. The above content may seem somewhat haphazard since I did not create a coherent overview but rather just recorded what I heard from my perspective. I hope it is still something that others can get some ideas from and use effectively. Lets start reducing technical debt for the good of our organizations and customers and the morale of our team.
Posted by Chris Sterling on 02 Jun 2008 | Tagged as: Agile, Architecture, DotNet, Java, Product Owner, Scrum, TDD, XP
One of the most common questions in teaching and coaching agile processes to groups is:
“How do we design our software while delivering iterations of potentially shippable product increments?”
Scrum, an agile process that I teach about and coach organizations on implementation of, asks that each Sprint, analogous to an iteration, delivers a potentially shippable product increment. There is emphasis on potentially shippable since it is quite common to have releases that involve running multiple Sprints until there is enough value for your users. I usually describe potentially shippable product increment is that the software is of a quality that a releasable version would include. This means that each Product Backlog item that is implemented during the Sprint is tested, coded, integrated, documented, and verified. Scrum teams gain a better understanding of what deliverables are necessary to make this happen by creating a Definition of Done.
When I ask what design decisions are difficult in the Scrum process to deliver it usually revolves around high level architecture decisions or data modeling. There are other specific design areas that get brought up but lets focus on these for now. In order to help a Scrum team understand from a conceptual point of view how incremental design works across a release of their software product I use a diagram that I believe Mike Cohn created. Here is my interpretation of the diagram:
This diagram attempts to describe how in new software product development efforts more emphasis in early Sprints is put into implementation of architecture elements. As the architecture is more fully defined and implemented in later Sprints emphasis is increasingly put into feature development. In the final Sprint of a release there may be little to no architecture implementation left to do. This diagram demonstrates the expectations of early release deliverables in terms of technical architecture implementation to support feature delivery. It also shows that each Sprint in the release should deliver features that a user can review.
In a software product team that delivers more than one release may have less architecture emphasis in early Sprints of following releases. This is shown in a modified version of the diagram below:
After describing the above diagrams to a developer named David Wright he approached me to validate his understanding. Within 10 minutes of my description of incremental architecture he had developed a new diagram perspective which I thought was brilliant. His diagram involved two axis with the x-axis representing the surface visible to users and the y-axis representing depth of the architecture. In Sprint 1 of a multiple Sprint release a portion of both the surface and architecture depth are realized. The figure below is a visual representation of the portions implemented of a fully releasable product version. The dark blue areas of the grid show implementation of the surface and depth in Sprint 1 while the empty grid elements represent what has not been implemented yet.

As a release progresses the amount of surface visible features and architectural depth implemented is incrementally built upon towards a fully releasable product version. The following diagram shows the incremental architecture progress later in the release cycle.
The adoption of an incremental architecture approach comes with a couple of potential issues:
In order to manage these types of issues we must implement disciplined practices to allow our architecture to accept change as we gain more knowledge. This is why the Extreme Programming practices such as Test-Driven Design (TDD), Continuous Integration (CI), Pair Programming (or continuous code review), and Refactoring have become so common on Scrum teams. TDD gives our design an executable way to prove we have not broken existing functionality at the component and functional level. This does not negate the need for exploratory testing by a person but it will keep manual testing to a manageable level. CI automatically runs builds, automated tests, and deployment of our application then provides feedback to the team about the current state of the integrated system. Pair Programming increases knowledge transfer across the team and provides coherent communication of the products domain into the tests, code, and support artifacts. And finally, refactoring is defined by the guy who wrote the book on it, Martin Fowler, as:
“a disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior”
Refactoring is best support by a high automated test coverage that allows a team to know when the external behavior has not been changed in response to changes deep in the architecture. Here is a visual representation of architectural elements, in red, which could be refactored in response to a new feature.
Each of the refactorings may be small changes but lead to larger positive impact over the span of a release. Effective use of refactoring keeps our architecture flexible and therefore able to meet evolving business needs.
I have used David Wright’s model to describe incremental architecture to other clients in conjunction with the original diagram from Mike Cohn. It has helped provide a clearer picture of incremental design and how to incorporate it into their real world projects. With David’s permission I named it the “Wright Model” and will continue to use it in the future. Thank you, David.
Big design up front (BDUF) is based on the thought that we can lock down business requirements and design our software right the first time. The problem is that business needs change almost as soon as the requirement has been developed. Not only do they change but the functionality requested is better understood once a user touches the feature and provides their feedback. Incremental design of a system throughout a release allows us to incorporate this feedback and change our architecture to satisfy the user’s needs.
Posted by Chris Sterling on 02 May 2008 | Tagged as: Acceptance Testing, Agile, Architecture, Leadership, Product Owner, Scrum, TDD, XP
At a recent Seattle Scrum users group meeting I presented on the topic of “Managing Software Debt”. Here is a link to a PDF of the presentation and the following is a description of the topic:
The Product Backlog in Scrum is used to prioritize implementation of features into software based on value. A Product Owner is charged with managing the Product Backlog to direct software implementation for the greatest possible Return on Investment (ROI). Entirely feature-based Product Backlogs do not consider the decay of software over time, and the resulting software debt can sink a project or company. This presentation will highlight ways Scrum Teams and Product Owners can work with stakeholders to manage software debt over the life cycle of the product.
Posted by Chris Sterling on 24 Feb 2008 | Tagged as: Agile, Architecture, Leadership, Product Owner, Scrum, Uncategorized, XP
Michael Krigsman provided an interesting variation of why blind dates so often fail and changed blind dates to project plans.
The interesting piece to me is the overlap area identified as “rare”. I speak to many folks about their project expectations compared to plans and one phrase which comes up often is “well, it worked in [name of] project fairly close to plan”. The somewhat rare success in planning up front seems to be a beacon for further use of particular project planning tactics.
I am not going to expand right now on this subject but I would like to leave this with something for us to ponder. How many of your projects actually get even close to original plan expectations? What methods in planning are actually adding to the success? What types of projects are finding better success? Let me know if you have any comments or wish to share your answers with the readers of this blog.
Posted by Chris Sterling on 04 Jan 2008 | Tagged as: Agile, Architecture, Leadership, Product Owner, Scrum, TDD, XP
One of the aspects of Agile software development methods that I believe is not well understood is the discipline it takes to implement and continue the use of good practices. Writing the test first, managing your build scripts effectively, and communicating impediments in the Daily Standup are all examples of areas which can slide as difficulty arises. This slow decay of our development processes I would like to coin as “Emergent Misbehavior”.
In the Principles behind the Agile Manifesto the last principle declared is:
At regular intervals, the team reflects on how to become more effective, then tunes and adjusts its behavior accordingly.
As a reader of this principle I may be initially believe this to mean look at your problems and find ways to fix them. In this interpretation “problems” could be processes which are not working well. One issue with this interpretation is that it does not take into consideration what the team is doing well and could make improvements to. As teams continue to reflect only on their problem areas rather than how their entire process of software development can be improved they may slip backwards on their current capabilities and discipline. Below are some real world examples of “Emergent Misbehavior” that I have witnessed.
Daily Standup Now Every Two Days
A few teams I have worked with were having trouble understanding the value of a Daily Standup. As an Agile Coach I found it my duty to find out what in their processes and environment was causing the Daily Standup to be of little value to the team. Here are a few of the issues which emerged during reflections with the teams:
In many instances a “smell” which was observed around Daily Standup value was team members feeling like they are being micro-managed. The teams interpreted their issues as their providing status every day was more of a distraction than valuable use of their time. Most of these teams initially dealt with these issues by conducting the Daily Standup every two days or twice a week in some instances.
Mini-Waterfalls Inside an Iteration
The incremental nature of Agile development methods are extremely difficult to master for teams used to Waterfall. As a team progresses from Sprint to Sprint and begin to “commit and deliver” on a regular basis they may be finding new processes for their software development. Some new processes that they may enact are:
As the codebase becomes more complex and potentially incorporates more integration with other platforms a team may slowly digress to what they knew before implementing an Agile development methodology. Some teams find that ambiguity in platform design means they must document the full design of all Sprint functionality before implementing any code. This reaction may be due to found rework, a failed design, or platform change issues such as database modifications or versioning. Rather than better understand where the ambiguity and problems in changeability are manifesting themselves the team is moving to a method which causes other potentially damaging effects.
Other teams may be having trouble getting a potentially shippable product increment completed each iteration. The team finds that time for QA is inadequate and therefore they institute a code complete date a few days before the end of the iteration. Problems created by this small process change may not show themselves for many iterations when the team is again having issues delivering on the iteration commitments. They may ask why QA team members are taking so long to do their testing or the team may decide to move back the code complete date an extra 1/2 or full day. This has now impacted the amount of business value the team is able to deliver each iteration since they have fewer days to code functionality.
Pressing a Team for Productivity
“Better, faster, cheaper” is a reasonable montra for many businesses. Emphasis on “faster” and “cheaper” without the “better” tends to cause decay in team productivity and product delivery. Product Owners may start out excited about their newly found control of directing product delivery but they can evolve as Mike Cohn points out in this article. This evolution may involve the question “How can we make the team more productive?”. The emergent misbehavior in this case may be falling back on traditional methods to get “productivity” in software environments. These include:
Any one of these may “work” at first and therefore act as confirmation to the Product Owner and/or managers involved in implementing the tool for gaining “productivity”. More iterations go by and quality issues start to arise which are now affecting the team’s ability to deliver even equal to iterations just before instituting the “productivity” gaining tool. The team have been meeting the expectations and incentives by giving more features but with less quality therefore accruing technical debt. Using these traditional methods for increasing a team’s productivity has backfired and now we must pay up the debt which is more costly than it would have been dealt with over each iteration.
Team Leaders Taking Over Team Responsibilites
Agile development methods tend to profess incorporating the thoughts of all team members in decisions based on informed consent. For anybody who has worked with people discussing a divisive issue and looking for common ground it is well understood how difficult consensus can be to achieve. Many issues do not cause the divisions on a team which could break down consensus building.
When an issue does arrive that is not so easily discussed and worked through then a team could jump back to traditional methods of decision making such as seniority or team leader wins. This decision making may not initially or ever cause negative effects if it happens on an infrequent basis. But if this type of decision making continues on a more regular basis it could cause some of the following issues:
These team problems could decrease or cap team productivity, demoralize team members, and make delivery on team commitments less predictable.
Tackling Emergent Misbehavior
In my experience, most of these and other emergent misbehaviors are the result of not fully understanding the causes of process challenges and taking the most easily available fix. The root cause of a challenge is not always easily apparent and may involve asking questions such as:
The answers to these questions may drive better insights into the actual root cause thus giving the team better information upon which to derive solutions from. Look out for Emergent Misbehaviors in your Agile software development process and use the retrospective not only to look for problems but also slippage in current process discipline.
Posted by Chris Sterling on 21 Nov 2007 | Tagged as: Acceptance Testing, Agile, Architecture, Product Owner, Scrum, XP
Recently I was having a discussion about an article that mentioned IT is about managing data. Given the rest of this article I tend to agree with the writer (sorry I have lost the reference or else I would link to it from here) but a colleague of mine, Bill Barr, responded after reading the article quickly with the following:
I crisply remember being yelled at by a VP of Catalog Marketing many years ago. She, in complete frustration, yelled, “Don’t give me data, give me information! I need interpretation!”
My colleague Lance Kind quickly responded in his humorous and creative way:
This is along the lines of Spock explaining to Kirk in his coldly logical way,– ‘Every answer is a response, but not every response is an answer.’
Although it does have a taste of higher level wisdom which could be dismissed because it may not appear valuable to your world right away but then I started to think about it further. As a person who tends towards the values and principles of the Agile Manifesto to direct some decision making in software development it may be very important to understand.
If we dissect what was said by the VP of Catalog Marketing Bill was quoting it may become clearer. The first couple of questions I have are “what is data?” and “what is information?”. Here are their definitions:
data - a collection of facts from which conclusions may be drawn
information - a message received and understood
Although data may be important as a transitory artifact it does not seem to me valuable until it becomes information based on these definitions. This makes me think about our industry’s fetish with data management and is there a different way that we can look at it? I do have some strong opinions about the prevalent activity of managing data and ways that I have witnessed and participated in developing that may be better. But that will be for another blog entry or more in the future.
Posted by Chris Sterling on 20 Nov 2007 | Tagged as: Agile, Architecture, Product Owner, Scrum, XP
Aman, a trustworthy and accomplished IT manager, looks at Scrum and Agile for his first time. After going over timeboxes, value-driven backlogs and potentially shippable product increments, Aman assumes that this method of developing software is not applicable to their projects. Aman sees a problem producing valuable increments of software every iteration. Some of their features are much larger than what could be developed in one iteration. He quickly nudges the Agile Coach, Priya, about this major oversight on the part of their organizational sponsor for Scrum and Agile. Priya is empathetic to Aman’s position since she has held that position before. She decides to learn a little more about Aman’s world and see if they can find a way through this issue.
One of the most often asked questions I get as a Certified Scrum Trainer and Agile Coach is around potentially shippable product increments and value of those increments to the customer. In my opinion this is a question about what is “value” and how does that relate to a “return”. In iterative and incremental methods of developing software such as Scrum and Extreme Programming (XP) there is emphasis on potentially releasable product increments at the end of each iteration. This provides some benefits such as the following:
The product accrues value as we progress from iteration to iteration adding more features into the product. How value is measured for software projects may come in various forms such as:
Although the product may be potentially shippable at the end of each iteration there may not be enough value accrued to ship it. Therefore we use each iteration deliverable as an increment of value towards an ultimate releasable product.

A value-driven approach such as Scrum will prioritize the implementation of the highest value features first. This means that each potentially shippable product increment delivered will contain the most valuable feature elements to produce a releasable product. As the release schedule progresses the Delivery Team will increase production of valuable software as the architecture becomes stable and unknowns lessen. Since we are continually working on the next most valuable features for the release the amount of value we produce per iteration will begin to level off. The following shows the value per feature added throughout a release cycle.
Although the software has continued to get more valuable, the value is not realized until there is a release and the end users are using the software. In an Agile environment we tend towards shorter release cycles in order to maximize return on our investment of valuable features implemented in the software.
As Priya and Aman discuss the implications of potentially shippable product increments delivered each iteration Aman gets a clearer picture of what is required in breaking down the features into consumable chunks a Delivery Team can implement inside an iteration. Priya describes the accrual of value as each iteration passes. Aman finished by describing how the customers of their product can then realize this value once it is released and they start using the software. Aman now understands that a release still contains essential elements such as the sufficient amount and correct valuable features to give the customers the best experience possible with the software.
Posted by Chris Sterling on 13 Nov 2007 | Tagged as: Agile, Architecture, Java, TDD, XP
Introduction
I am a strong proponent of Test-Driven Development (TDD) which has the mantra “write test, write code, refactor”. One of the most important parts of TDD is the ability to gain immediate feedback regarding the state of the code. After using TDD in many projects I have found that there are some potential areas for optimization:
I have found that running all unit tests when saving a file in Eclipse has increased our team effectiveness with TDD and decreased our manual integration woes over time. Even though TDD can help tremendously in minimizing technical debt, manual portions of the TDD process can be prone to errors which lead to longer feedback cycles. Thus decreasing the team’s velocity per iteration.
Prerequisites
Before getting started we must identify the parts that will be used in setting up the environment:
After you have these installed please move onto the next step.
Setup Maven 2 Integration for Eclipse
There is a great flash tutorial for setting up the plugin here and another tutorial on how to use its features here.
Once you have installed and reviewed the tutorial of features you can start importing your own Maven 2 project. In the root directory of your Maven 2 project type:
mvn eclipse:eclipse
This will generate the Eclipse project files so that this project can be imported into Eclipse. Once this command has ran successfully go to Eclipse and choose “File->Import…” from the main menu. This will open up a dialog which looks like the following:
Choose “General->Existing Projects into Workspace” from the tree component and click “Next >”. Browse to your project root directory and click “Finish”. After you clicked “Finish” the project will be imported into Eclipse, perform a full build of the project, and then it is ready to be worked on. If you get a problem such as “M2_REPO not defined”, or something similar, make sure that you have set your M2_REPO classpath variable in “Windows->Preferences…Java->Build Path->Classpath Variables” to the path of your Maven 2 local repository which is usually “${USER_HOME_DIR}/.m2/repository”.
Once you have the project successfully imported and building, you may add the Maven 2 project nature by right-clicking your project and selecting “Maven 2->Enable”. This will allow for easier browsing of the Maven 2 repository and adding of dependencies into your project POM.
Running Unit Tests on Every Save
We should have a successfully building project in Eclipse along with a Maven 2 External Tool builder that runs successfully, or at least as well as the command line `mvn test` for your project runs. It is time to add your builder into the “Builders” list for your project. Right-click on your project and choose “Properties”. Choose “Builders” from the left-hand pane. The project properties should look something like this now:
Click “New…” and select “m2 build” as the external tool type to create. This will create a new configuration for a Maven 2 enabled runner to be filled in with the appropriate information. In the “Name:” field type “Project Unit Tests”. In “Base directory” click “Browse workspace” and select your project’s root. In the “Goals” field type “test” which will do all of the steps up to and including running all unit tests for your project (same as running `mvn test` from the command line). Under the “Common” tab our teams usually make the external tool builder a shared file in the project root and check “Display in Favorites menu”, as well. The configuration should look something like the following:
After you have completed all of that click “Apply” and then test it by clicking “Run”. Please review the steps above if you find any errors.
The Wrap Up
TDD can be effective way to reduce technical debt in your code and provide increased delivery capability for your product delivery team. An important piece of TDD is the more immediate feedback to a team member regarding broken components and functionality. Providing a mechanism in your Java project with Eclipse to automate and decrease the duration for feedback can make a team even more effective than using TDD alone. This article focused on the use Maven 2 for building your project and for integration with Eclipse. A similar approach could be taken for creating external tool builders for Ant or Eclipse-based unit test targets.
Please let me know if you are using these tips and how it is working out for you along with any additional information you would like to provide. Good luck.