3 Agile Software Development

Software Engineering · Unit 3 · 3 hrs

Agile Software Development

Exam-focused notes for Agile Software Development (Software Engineering, CSC375): what the TU syllabus asks and how it has actually been tested, with 4 solved past questions from this unit.

Agile Software Development in short

Agile software development responds directly to the business and social change challenge introduced earlier: it structures a process so software can be delivered quickly and can absorb changing requirements throughout development, rather than only at the start.

Agile Software Development: notes

Agile Development

Agile development is a software development method based on iterative and incremental development, in which requirements and solutions evolve through close collaboration between self-organising, cross-functional teams and their customers. It is also called rapid software development, and was created to help teams adapt quickly to changing requirements while still delivering a working product rapidly. Agile development rests on a small set of principles:

  • Customer involvement: customers are closely involved throughout development, evaluating each new increment and providing feedback.
  • Incremental delivery: the software is built and delivered in increments, with the customer specifying which requirements go into each increment.
  • People, not process: the skills of the development team are recognised and respected, and team members are left to work in the way that suits them.
  • Embrace change: the process expects, rather than resists, requirements changing as development proceeds.
  • Maintain simplicity: the team actively works to remove unnecessary complexity from the system and the process wherever possible.

The advantages of agile methods include rapid, continuous delivery of useful software that satisfies the customer, face-to-face conversation as the primary channel of communication, regular adaptation to changing circumstances, and welcoming even late changes to requirements. The disadvantages are that a lack of formal documentation can create confusion and make later maintenance harder, a project can drift off track if the customer is unclear about the final outcome they want, and only senior, experienced programmers may be able to make the design decisions agile development demands quickly. Agile methods suit a project when new changes must be absorbed cheaply and often, when only a few days' or hours' work would be lost by rolling back a change, and when only limited up-front planning is possible before the project must start.

What this unit covers

  • Agile Development
  • Plan-Driven vs. Agile Development
  • Agile Methods
  • Agile Development Techniques
  • Introduction to Agile Project Management

Agile Development Techniques

2081 · 5 marks

What are the principles of agile development? Explain agile development techniques. [5]

Show solved answer

Principles of Agile Development and Agile Development Techniques

Principles of Agile Development

Agile development is based on the Agile Manifesto, which emphasizes flexibility, collaboration, and customer satisfaction. The core principles are:

  1. Customer Satisfaction: Highest priority is to satisfy the customer through early and continuous delivery of valuable software.

  2. Welcome Changing Requirements: Agile processes welcome changing requirements, even late in development, to provide competitive advantage to the customer.

  3. Frequent Delivery: Deliver working software frequently, from a couple of weeks to a couple of months, with preference for shorter timescales.

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

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

  6. Face-to-Face Communication: The most efficient and effective method of conveying information is face-to-face conversation.

  7. Working Software as Progress Measure: Working software is the primary measure of progress.

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

  9. Technical Excellence: Continuous attention to technical excellence and good design enhances agility.

  10. Simplicity: Maximizing the amount of work not done is essential.

  11. Self-Organizing Teams: The best architectures, requirements, and designs emerge from self-organizing teams.

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


Agile Development Techniques

The most significant approach to changing software development culture was the development of Extreme Programming (XP). The major agile development techniques are described below:

1. Extreme Programming (XP)

  • XP is the most well-known agile technique that introduced a new approach to software development culture.
  • It involves practices such as pair programming, test-driven development (TDD), continuous integration, and small releases.
  • Requirements are expressed as user stories, and the team works in short iterations called sprints.
  • XP emphasizes frequent feedback, simplicity in design, and constant communication among team members.

2. Scrum

  • Scrum is an agile framework that organizes work into fixed-length iterations called sprints (usually 2-4 weeks).
  • Key roles include: Scrum Master, Product Owner, and Development Team.
  • Key artifacts include: Product Backlog, Sprint Backlog, and Increment.
  • Daily stand-up meetings (Scrum meetings) are held to track progress.

3. Test-Driven Development (TDD)

  • In TDD, developers write tests before writing the actual code.
  • The cycle is: Write a failing test --> Write code to pass the test --> Refactor the code.
  • This ensures that the software is always testable and meets requirements.

4. Pair Programming

  • Two developers work together at one workstation.
  • One writes the code (driver) while the other reviews it (observer/navigator).
  • This improves code quality and encourages knowledge sharing.

5. Continuous Integration

  • Code changes are integrated into the shared repository frequently (multiple times a day).
  • Automated tests are run after each integration to detect errors early.

6. Refactoring

  • The code is continuously improved and restructured without changing its external behavior.
  • This keeps the codebase clean, simple, and maintainable.

Summary Table

TechniqueKey Feature
Extreme Programming (XP)Pair programming, TDD, small releases
ScrumSprints, daily stand-ups, backlog
Test-Driven DevelopmentTests written before code
Pair ProgrammingTwo developers, one workstation
Continuous IntegrationFrequent code merging and testing
RefactoringContinuous code improvement

Note: XP is highlighted as the most significant agile development technique that changed software development culture.

Open this answer on its own page →

Plan-Driven vs. Agile Development

2080 · 5 marks

Differentiate plan driven and agile development. [5]

Show solved answer

Differentiate Plan-Driven and Agile Development

Definition

Plan-Driven Development is an approach where all of the process activities are planned in advance and progress is measured against this plan.

Agile Development is a software development method based on iterative and incremental development in which requirements and solutions evolve through collaboration between self-organizing, cross-functional teams.


Comparison Table

BasisPlan-Driven DevelopmentAgile Development
PlanningAll process activities are planned in advancePlanning is incremental and easier to change
IterationIteration occurs within activitiesInteraction/iteration occurs across activities
RequirementsUsed when a very detailed specification and design is availableUsed when very limited planning is required to get started
Skill LevelSometimes requires lower skill levelsSometimes requires higher skill levels
System SizeMore suitable for large systemsMore suitable for smaller systems
FlexibilityLess flexible; changes are difficult once plan is setHighly flexible; easy to change plan and software to reflect changing customer requirements
Customer InvolvementLimited after initial requirements phaseContinuous collaboration with customer throughout
DeliveryDelivered as a whole at the endRapid, incremental delivery of functionality

Summary

In short, plan-driven development prioritizes structure, documentation, and upfront planning, making it ideal for large, well-defined projects. Agile development prioritizes responsiveness, collaboration, and iterative delivery, making it ideal for projects where requirements are likely to change frequently.

Open this answer on its own page →

Agile Development

2079 · 5 marks

Explain the Agile software development and its applications. [5]

Agile development is a software development method based on iterative and incremental development in which requirements and solutions evolve through collaboration between self-organizing, cross-functional teams. It is also known as rapid software development or agile methods. It was developed to ...

Open this answer on its own page →

2077 · 10 marks

Explain the agile software development. Compare between agile software development with prototyping software development.[10]

--- Agile Development is a software development method based on iterative and incremental development in which requirements and solutions evolve through collaboration between self-organizing, cross-functional teams. It was mainly intended to help developers build a project that can adapt to trans...

Open this answer on its own page →