CS 530 - Advanced Software Engineering

Agile Software Engineering

Reference: Sommerville, Engineering Software Products, Chapter 2

 

Agile methods

Software products must be brought to market quickly so rapid software development and delivery is essential. Virtually all software products are now developed using an agile approach. Agile software engineering focuses on delivering functionality quickly, responding to changing product specifications and minimizing development overheads. A large number of 'agile methods' have been developed. There is no 'best' agile method or technique. It depends on who is using the technique, the development team and the type of product being developed.

Plan-driven development evolved to support the engineering of large, long-lifetime systems (such as aircraft control systems) where teams may be geographically dispersed and work on the software for several years. This approach is based on controlled and rigorous software development processes that include detailed project planning, requirements specification and analysis and system modelling. However, plan-driven development involves significant overheads and documentation and it does not support the rapid development and delivery of software. Agile methods were developed in the 1990s to address this problem. These methods focus on the software rather than its documentation, develop software in a series of increments and aim to reduce process bureaucracy as much as possible.

Agile Manifesto

All agile methods are based around incremental development and delivery. Product development focuses on the software features, where a feature does something for the software user. With incremental development, you start by prioritizing the features so that the most important features are implemented first. You only define the details of the feature being implemented in an increment. That feature is then implemented and delivered. Users or surrogate users can try it out and provide feedback to the development team. You then go on to define and implement the next feature of the system.

Agile development principles

Extreme programming

The most influential work that has changed software development culture was the development of Extreme Programming (XP). The name was coined by Kent Beck in 1998 because the approach was developed by pushing recognized good practice, such as iterative development, to 'extreme' levels. Extreme programming focused on 12 new development techniques that were geared to rapid, incremental software development, change and delivery. Some of these techniques are now widely used; others have been less popular.

Widely adopted XP practices

Scrum

Software company managers need information that will help them understand how much it costs to develop a software product, how long it will take and when the product can be brought to market. Plan-driven development provides this information through long-term development plans that identify deliverables - items the team will deliver and when these will be delivered. Plans always change so anything apart from short-term plans are unreliable. Scrum is an agile method that provides a framework for agile project organization and planning. It does not mandate any specific technical practices.

Scrum terminology:

Key roles in Scrum:

In Scrum, software is developed in sprints, which are fixed-length periods (2-4 weeks) in which software features are developed and delivered. During a sprint, the team has daily meetings (Scrums) to review progress and to update the list of work items that are incomplete. Sprints should produce a 'shippable product increment'. This means that the developed software should be complete and ready to deploy.

Key Scrum practices

The product backlog is a list of what needs to be done to complete the development of the product. The items on this list are called product backlog items (PBIs). The product backlog may include a variety of different items such as product features to be implemented, user requests, essential development activities and desirable engineering improvements. The product backlog should always be prioritized so that the items that be implemented first are at the top of the list.

Product backlog item states:

Product backlog activities:

PBI estimation metrics:

Products are developed in a series of timeboxed sprints, each of which delivers an increment of the product or supporting software. Sprints are short duration activities (1-4 weeks) and take place between a defined start and end date. Sprints are timeboxed, which means that development stops at the end of a sprint whether or not the work has been completed. During a sprint, the team work on the items from the product backlog.

Sprint activities:

The ideal Scrum team size is between 5 and 8 people. Teams have to tackle diverse tasks and so usually require people with different skills, such as networking, user experience, database design and so on. They usually involve people with different levels of experience. A team of 5-8 people is large enough to be diverse yet small enough to communicate informally and effectively and to agree on the priorities of the team. The advantage of a self-organizing team is that it can be a cohesive team that can adapt to change. Because the team rather than individuals take responsibility for the work, they can cope with people leaving and joining the team. Good team communication means that team members inevitably learn something about each other's areas.

The developers of Scrum assumed that teams would be co-located. They would work in the same room and could communicate informally. Daily scrums mean that the team members know what's been done and what others are doing. However, the use of daily scrums as a coordination mechanism is based on two assumptions that are not always correct. Scrum assumes that the team will be made up of full-time workers who share a workspace. In reality, team members may be part-time and may work in different places. For a student project team, the team members may take different classes at different times. Scrum assumes that all team members can attend a morning meeting to coordinate the work for the day. However, some team members may work flexible hours (e.g. because of childcare responsibilities) or may work on several projects at the same time.

External interactions are interactions that team members have with people outside of the team. In Scrum, the idea is that developers should focus on development and only the ScrumMaster and Product Owner should be involved in external interactions. The intention is that the team should be able to work on software development without external interference or distractions.

In all but the smallest product development companies, there is a need for development teams to report on progress to company management. A self-organizing team has to appoint someone to take on these responsibilities. Because of the need to maintain continuity of communication with people outside of the group, rotating these activities around team members is not a viable approach. The developers of Scrum did not envisage that the ScrumMaster should also have project management responsibilities. In many companies, however, the ScrumMaster has to take on project management responsibilities. They know the work going on and are in the best position to provide accurate information and project plans and progress.

Useful links