Agile Methods

Steven J Zeil:

Last modified: Apr 21, 2014

A modern variant of incremental development.

Emphasis on

Agile Development is

The Agile Manifesto

We are uncovering better ways of developing software by doing it and helping others do it. Through this work we have come to value:

That is, while there is value in the items on the right, we value the items on the left more.

The Twelve Principles of Agile Software

1) Our highest priority is to satisfy the customer through early and continuous delivery of valuable software.

2) Welcome changing requirements, even late in development. Agile processes harness change for the customer’s competitive advantage.

3) Deliver working software frequently, from a couple of weeks to a couple of months, with a preference to the shorter timescale.

4) Business people and developers must work together daily throughout the project.

5) Build projects around motivated individuals. Give them the environment and support they need, and trust them to get the job done.

6) The most efficient and effective method of conveying information to and within a development team is face-to-face conversation.

7) Working software is the primary measure of progress.

8) Agile processes promote sustainable development. The sponsors, developers, and users should be able to maintain a constant pace indefinitely.

9) Continuous attention to technical excellence and good design enhances agility.

10) Simplicity – the art of maximizing the amount of work not done – is essential.

11) The best architectures, requirements, and designs emerge from self-organizing teams.

12) At regular intervals, the team reflects on how to become more effective, then tunes and adjusts its behavior accordingly.

Variations

1. User stories

Key idea in all agile variations.

A user story is a mechanism for incremental requirements elicitation and analysis.

1.1 Writing User Stories

Examples of User Stories

As a calendar owner, I want to view my schedule for the coming week.

As a visitor, I want to see when a calendar owner has free time in their schedule.

As a calendar owner, I want to receive email notication when someone accepts a proposed appointment.

As a systems administrator, I want to back up all calendars so that the data is safeguarded.

These illustrate some common patterns:

Non-functional stories

Stories can describe new functionality or improvements to existing functionality:

May be hard to define precise completion criteria.

Stories are not Requirements

…despite the focus on functionality and non-functional characteristics.

Story Boards

storyBoardImg

1.2 Characteristics of good stories

Customer centric

Stories should express a customer’s point of view, using the customer’s language.

One way to achieve this is to ask the customers to write the stories.

Estimatable

“Bad” Stories

Automate integration build

Improve performance

Implement interfaces between subsystems

1.3 Special Stories

The traditional user story is customer-centric.

But sometimes there are units of work required that don’t fit the traditional definition.

Documentation stories

Bug Stories

Spike Stories

2. Common Practices of Agile Development

source: The Agile Alliance

2.1 Fundamentals

Teams

Iterative development

Incremental development

Version Control

2.2 Common Intersections

Iteration Planning


Velocity

Rate at which functionality (user stories) completed per iteration.


Task Board

taskBoardImg Contains stories to be completed in current iteration

Sustainable pace

Meetings

Rules of Simplicity

(Kent Beck)

Each code unit

TDD

Test-Driven Development goes beyond our previously-cited “test first, code later” rule

  1. write a “single” unit test describing an unimplemented functionality
  2. run the test (it should fail at this stage)
  3. write “just enough” code to make the test pass
  4. refactor the code until it conforms to the rules of simplicity

The four steps above are repeated, adding new, tested functionality each time.

Simple Design

Familiar Intersections