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.
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 answerHide 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:
-
Customer Satisfaction: Highest priority is to satisfy the customer through early and continuous delivery of valuable software.
-
Welcome Changing Requirements: Agile processes welcome changing requirements, even late in development, to provide competitive advantage to the customer.
-
Frequent Delivery: Deliver working software frequently, from a couple of weeks to a couple of months, with preference for shorter timescales.
-
Collaboration: Business people and developers must work together daily throughout the project.
-
Motivated Individuals: Build projects around motivated individuals. Give them the environment and support they need, and trust them to get the job done.
-
Face-to-Face Communication: The most efficient and effective method of conveying information is face-to-face conversation.
-
Working Software as Progress Measure: Working software is the primary measure of progress.
-
Sustainable Development: Agile processes promote sustainable development. The sponsors, developers, and users should be able to maintain a constant pace indefinitely.
-
Technical Excellence: Continuous attention to technical excellence and good design enhances agility.
-
Simplicity: Maximizing the amount of work not done is essential.
-
Self-Organizing Teams: The best architectures, requirements, and designs emerge from self-organizing teams.
-
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
| Technique | Key Feature |
|---|---|
| Extreme Programming (XP) | Pair programming, TDD, small releases |
| Scrum | Sprints, daily stand-ups, backlog |
| Test-Driven Development | Tests written before code |
| Pair Programming | Two developers, one workstation |
| Continuous Integration | Frequent code merging and testing |
| Refactoring | Continuous code improvement |
Note: XP is highlighted as the most significant agile development technique that changed software development culture.
Plan-Driven vs. Agile Development
2080 · 5 marks
Differentiate plan driven and agile development. [5]
Show solved answerHide 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
| Basis | Plan-Driven Development | Agile Development |
|---|---|---|
| Planning | All process activities are planned in advance | Planning is incremental and easier to change |
| Iteration | Iteration occurs within activities | Interaction/iteration occurs across activities |
| Requirements | Used when a very detailed specification and design is available | Used when very limited planning is required to get started |
| Skill Level | Sometimes requires lower skill levels | Sometimes requires higher skill levels |
| System Size | More suitable for large systems | More suitable for smaller systems |
| Flexibility | Less flexible; changes are difficult once plan is set | Highly flexible; easy to change plan and software to reflect changing customer requirements |
| Customer Involvement | Limited after initial requirements phase | Continuous collaboration with customer throughout |
| Delivery | Delivered as a whole at the end | Rapid, 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.
Agile Development
2079 · 5 marks
Explain the Agile software development and its applications. [5]
2077 · 10 marks
Explain the agile software development. Compare between agile software development with prototyping software development.[10]
Make Unit 3 stick
Practice CSC375 with flashcards & quizzes