Welcome to the DCG Blog: Latest Updates

Archive for the ‘software engineering’ Category

« Older Entries

SEI Report: Correlation between Metrics use and CMMI Appraisals

The SEI have just published a new report by Goldenson and McCurley. The report shows an interesting correlation between what high maturity organizations themselves report about uses of measurement and what appraisal results say about the organizations.


Three keys to ensuring Software Quality

In the June 28, 2010 print edition of Information Week, a long-standing friend of DCG’s, Capers Jones, identifies three keys to ensuring software quality:

  1. Defect Potentials - Make sure they stay below three per function point
  2. Defect Removal Efficiency - Keep it above 95%
  3. Quality Metrics - Apply them from requirements through maintenance

For those of us who, like me, need an occasional reminder on definitions, Defect Potentials are the probable numbers of defects that will be found in the various stages of the software development life cycle.  Defect Removal Efficiency is the percentage of the defect potentials that will be removed (or actually are removed) before an application or project is delivered to users.

Which brings me to a conversation that I had today with a client team who are seeing the numbers of defects increasing on a monthly basis this year.  The explanation is that resources are being diverted from the maintenance teams so less bugs are getting fixed.  The client team has been told that all will be well when resources and budget ad diverted back to the bug fixers.

“Aaargh!” was my thoughtful and considered response.  The client team asked what they could do instead to improve the defect numbers.  I told them that the money =resources=time) needs to be invested further up the supply chain where it can make a much bigger proportional difference to quality.  Peer reviews of requirements, designs, code and test scripts are the most cost effective and quickest way for an organization to change quality outcomes.  To be fair, the client team then remembered that some development teams do conduct code reviews (”… and the quality is pretty good”) but the other teams “… don’t have time.”  This is a classic misunderstanding of the value of time spent in different phases of the software development life cycle.

So I get home this evening and start to catch up on my reading.  The first article I pick up is the Capers Jones article and my conversation earlier today jumps fresh into my mind when I see that Capers has included the following table:

Software Defect Removal Efficiency Ranges:

Activity Range

Formal Requirement Inspections                    50% - 90%

Formal Design Inspections                             45% - 85%

Formal Code inspections                                45% - 85%

Automated Static Analysis                              55% - 90%

Automated Unit Test                                       20% - 60%

Regression Test                                               15% - 30%

Integration Test                                               25% - 40%

Performance Test                                             20% - 40%

System Test                                                     25% - 55%

Estimates are Mission-Critical for Software Product Companies!

Estimates are “mission-critical” for Software Product companies because:

  • In the short term, the quality of the development estimate can win or lose a deal
  • In the medium term, on successful deals, the quality of the development estimate can drive profit or loss on a deal
  • In the long-term, the quality of the estimates drives the evolution of the products – not just what we say we will do in the road maps but what we actually deliver in releases.

Growing acceptance of Open Source

The May 19, 2010 edition of Computerworld magazine contained a couple of articles about the growing evidence that one of the reactions to tightening budgets in software development has been the increased use of open source software and the associated  “Hidden Snags”

It is clear that one of the attractions of open source is the availability of source code which is critical for integrating open source into the enterprise but this brings problems of its own (“Integration Jams”).  I have written before about the benefits of static code analysis and I really want to stress the value of getting a one-off analysis done of any significant open source code that you bring into your enterprise.  Such a one-off analysis can be delivered as a service and does not require purchasing or learning a new tool.

Estimate Early; Estimate Faster with SEER Estimate by Comparison

The SEER estimate by Comparison capability is something that I talk about a lot to company’s who are really struggling because their SWAG approach to estimating projects is neither repeatable nor coherent.  Often, the projects they are failing miserably to estimate professionally are mission-critical either for deliverables to customers or for internal investment (budget) planning.

At some point, these estimate amateurs may need to base their estimates on a repeatable sizing approach (of which Function Points is just one option) but they need to change their ways quickly so I often talk to them about doing estimates by comparison using SEER.

Even if you don’t see yourself buying a tool right now, I recommend investigating this approach so you can attend in real time or review later.  The technique is powerful even if the tool is not right for you.  DCG can also provide the tool as a Service so you can pilot the application or just use it a few times every year for this really important estimates.  For more information on this service, you can contact David Herron at d.herron@davidconsultinggroup.com.

The Estimate by Comparison application has traditionally been used to empower users to develop an understanding of software size; the single most significant driver of development cost, effort, and schedule for software projects.  However, SEER Estimate by Comparison has evolved and can be utilized with all of the SEER solutions to provide an insight into effective definition of scope through a series of project analogies and/or comparisons to a user’s repository of past projects, thus helping users to develop a reliable estimate on a project’s scope even when information is scarce.

SEER Estimate by Comparison further adds capability to the project team when used in a more contemporary manner. It can be manipulated in such a manner that a wide realm of subjective, qualitative alternatives can be evaluated in context of the project as a whole in a robust, repeatable and ultimately measureable manner.

Effective Software Product Line strategies

The May/June 2010 edition of IEEE Software contains an excellent “Focus” on Software Product Line management.  The guest editors (McGregor, Muthig, Yoshimura, Jensen) introduction provides a great definition of an effective software product line strategy:

“The software product line strategy is a blend of business and technical actions that lets an organization satisfy a wide range of customers, gain leverage with suppliers, meet the threats of substitute products, and deter other companies seeking to enter the market.  The strategy is robust over a wide range of technologies and domains and organizations of different structures, cultures and goals.”

The guest editors assert that several elements are common to successful product lines:

  1. The definition of which products belong to the product line provides the context within which my other decisions are made.  Note that this facilitates most branches from the core software line but some are considered members of the product line and some are not.
  2. The organization uses a common software product line architecture as the basis for each product.  The architecture provides the basis for exploiting commonality and managing variation.
  3. Commonality is sufficiently defined to realize economies of scale.  This is particularly true for reuse and maintenance.
  4. Variation is sufficiently well managed to realize economies of scope.  The important message here is that the core has responsibility to support all variations within the product line.
  5. The organization is structured and operated to facilitate building reusable assets and building products using those assets.  This sounds obvious but it is not an easy thing to implement.  Two keys to re-usability are documentation and trust.  The assets to be reused must be clearly documented so that new users understand what they do (and don’t do) bu then the new users must trust the documentation.  It is very tempting for the new user to trust their own new implementation more than the old existing one.

The importance of evidence in software development

Hakan Erdogmus is the Editor-in-chief of the IEEE Software magazine.  In the May/June 2010 issue of the magazine, Hakan has written an impassioned plea for the importance of using evidence as the basis for software development decisions, especially when deciding on the adoption of software engineering ideas.

I totally support Hakan’s position.  Too many of us forget the “science” part of computer science and the “engineering” part of software engineering.  The testing of hypotheses in science and the use of prototypes in engineering are fundamental to those disciplines.  Yet in software development, we rely on methods more akin to building a bridge by adding one brick at a time on either side of the river and hoping that it will meet in the middle and be strong enough (while ignoring those budgets, deadlines, materials and colleagues that get swept away by the river during construction).

For deciding on the adoption of software engineering ideas, Hakan categorizes three types of evidence in increasing order of rigor:

  • Feasibility Check - While it is the weakest of the three, a feasibility check should be able to:

- quickly evaluate major advantages, risks, limitations
- roughly estimate the size of the problem
- assess the novelty of the solution
- test the cost effectiveness
- help to decide if the idea is worth exploring further and under what controlled but real-world circumstances

  • Anecdotal Evidence - This is effectively “crowd sourcing” your evidence gathering in support of a new idea with all of the advantages (the pioneers are the ones with all the arrows in their backs) and disadvantages (has the author really tested the idea under similar circumstances as you?  Do they have a vested interest in supporting the idea?) of that approach.  Nonetheless, external data points ARE valuable and a significant step up on a purely internal feasibility check.
  • Systematic Evidence - Of course, researched and documented evidence of the merits of an idea is the best type of evidence but it is difficult to find or produce if the ideas are new.  Mature organizations can make this type of evidence much easier to discover and use by adopting a methodical approach to capturing lessons learned from projects.

Hakan makes the excellent point that the SIZE of the decision or idea should dictate the threshold of the quality of evidence required.

Managing a Software Product Line?

Software development for software products shares all of the opportunities and challenges of software development in corporations with a few majors quirks all of its own.  One of these is the issue of managing a code line for a single product while accommodating (or not) variations for specific customers.  If you are working or have worked for a software product developer, you will be familiar with this problem.

Essentially, the easiest, cheapest and most efficient way to maintain a software product is to have a single code line with all clients on the same, latest version.  In this ideal model, any defects can be fixed in the single code base and provided to clients in the next maintenance release (maybe with a short-term patch to get over any short-term delay).  This model is illustrate below:

At the other extreme, different clients for a software product each have different versions of the software in production with differing levels of maintenance releases and patched loaded.  Many of the clients have their own special customizations to the code some of which overlap with the core product code. A simple example of the challenges is illustrated below:

Many software products will acknowledge more complicated scenarios than this.  Over the years, managing these scenarios has been made slightly easier by more sophisticated configuration management software which manages code branches and code line re-mergers.  That said, such systems still require a level of discipline comparable to the complexity they offer to manage and it is crucial to remember that some code branches just cannot be “automatically” re-merged.

If it is so difficult to manage code branches, why do software product vendors allow or even facilitate the branching of the core product code line?  The following drivers are all relevant:

  1. New software product releases of any kind require effort from the clients to acceptance test before loading into  production.
  2. A big license deal requires some updates to the product that are needed before the next release will be ready so the software product vendor creates a custom version for the “special”client.  When the next release comes out, the client is in the middle of configuration and implementation and does not want to take the new release.
  3. There is pressure on software product vendors to provide minimal patch fixes to a clients specific problems to avoid the need to load maintenance releases which fix every clients problems.
  4. All clients believe that they are unique and need changes to software products to reflect their specific operating methods (instead of changing their operating methods to suit the software).
  5. All clients understand the long-term costs of customizing software products and so strive to stay on the core product line without necessarily loading every release (Why load a new release if WE don’t need the new functionality or bug fixes?).

An Operating Model for Implementing a Static Code Analysis Tool

In the April 26, 2010 print edition of Informationweek, the Dr Dobb’s Report contained a an article by Sid Sidner of ACI Worldwide describing his teams choice and implementation of a Static Code Analysis tool.  ACI looked at:

  • AdaCore’s CodePeer
  • Coverity’s Prevent
  • GrammaTech’s CodeSonar
  • Greenhill’s DoubleCheck
  • Klocwork’s Insight
  • Lattix’s LDM
  • Microsoft’s StyleCop
  • Ounce Labs’ Ounce Core

You can read Sid’s comments on each of these tools in his article.

The article is a very good description of how to integrate a software analysis tool into the development environment. Some engineering shops like ACI are a little bit ahead of IT organizations in building quality and security into their products.

Sid offers the following “Tips for Success”:

  • Define an “initial issue” policy - what will you do with the code issues that identified by the first analysis run?
  • Get the global mechanics working - many of the tools require license managers and centralized result servers
  • Attack one product at a time
  • Identify SMEs - those product experts who will also be experts in the tool
  • Train the SMEs
  • Work with the SMEs
  • Train the developers
  • Perform initial analysis on existing code and defer all issues - this is Sid’s suggested choice of “Initial Issue” policy.  Note that he suggested to defer not ignore.
  • Deliver help from SME’s to developers as required
  • Run the build anlaysis often
  • Review deferred issues

I discussed this article with Lev Lesokin of CAST Software who have their own static analysis application, the Application Intelligence Platform (AIP).  Lev highlighted a couple of considerations which Sid’s paper did not cover:

  1. ACI probably do a very good job building quality into their code at a module level, but they should also look at quality at a broad architecture level. Interactions between modules, between distributed components, and most importantly between the database and the code base. Some of the most risky quality issues actually reside in that application level and they are the hardest to identify by code walk-throughs or localized static analysis.
  2. When analyzing your software, there’s an opportunity to also use that to introduce measurement. Sid could put some metrics in place to make sure his teams are getting better at building quality and security in. Also, risk metrics can be used to make go/no-go decisions at stage gates. This might be a point for his VP of Engineering, though. He/she can introduce productivity measures and drive the organization towards continuous improvement.

These two uses of software analysis and measurement products might not be as relevant for ACI, because much of the software they build is monolithic products that they ship and don’t see in a distributed environment until they implement at a customer. In an IT organization you will have many moving parts, connected through a services layer or various other interfaces. This is where app-level quality issues become much more present. Also, getting apples-to-apples measures across development teams in Java, .NET, DB stored procs, etc., is much more challenging. Once ACI’s customers integrate their newly acquired payments system into their bank’s accounts and cash management systems, they might consider an architecture-level analysis to determine how structurally strong their environment is in terms of stability, performance and security.

Key software development problem - too many customers!

How can too many customers be a problem for software development?  That’s the goal, right?  Well, yes, but here at DCG many of the suffering organizations we see are suffering because they are crossing a size threshold that requires them to scale up their processes and metrics to a new level of maturity.

I attended a meeting of the Eastern Technology Council recently (good networking organization for those of you in the Philadelphia region).  Scott Fraser, CTO of Portico,  presented his ideas on what you should include in a modern software development platform.  It was a good session so I will only pick out the (my) highlights here.

Scott’s basic premise was that, as a software product developer, your problems grow disproportionately to your customer base growth.  Making the software configurable rather than depending on customization is critical to persuading customers that your code is truly enterprise-ready.  Scott highlighted a number of ways to achieve this enterprise-ready recognition including:

  • Architecting your software as a framework using scripting and meta data from which customers had instantiate implementations
  • Building a graphical front-end for configuration to lower the entry barrier for staff who can do configuration (maybe, a little).
  • Choose and use  “tools” that will lower you pain for achieving and sustaining enterprise readiness (see below)
  • Implement strong QA on 3rd party vendors
  • Need to be able to run all all platforms (see below)
  • Integrate or DIE!

As examples of the tools that Scott and his team have found invaluable, he cited Crucible, a online tool for managing distributed code review (DCG actively promotes the value of formal and informal reviews throughout the SDLC), and Fortify360, a static code analysis tool (see other postings on CAST Software) focused on security.  Interestingly, i just read an article, “Integrating Application Security into Software Development,” by Jeffery Payne in IEEE IT Pro magazine, March/April 2010 edition, which supports Scott’s assertion of the importance of tools like Fortify360 and adds similar tools such as AppScan (IBM), HP WebInspect (HP) and Coverity5 (Coverity).

Scott confessed that some of the most important tools were the ones he didn’t need to buy.  His choice of Oracle and Java early on left much of the application interoperability heavy lifting on those (larger) shoulders.

Finally, Scott mused on the importance of good developers and what that means today.  He asserts that good developers are always “lazy” developers in that they design, build (and test) simple structures that they can reuse many times.  However, increasingly god developers are also polyglot programmers who have the knowledge and skills to think about the network environment and program for virtualization.

« Older Entries
DCG Corporate Office
1770 E. Lancaster Ave, Suite 15
Paoli, PA 19301
v: 610.644.2856
f: 866.293.0120
info@davidconsultinggroup.com