3. Rapid software development
๏ฒ Why?
๏ง Need to react to changes more quickly than 2 year long waterfall projects
๏ง 2 years and then you got the design wrong anyway! Small deliveries
aren't abstract
๏ฒ How?
๏ง Goal - Deliver working software quickly
โข Compromise - less functionality in a delivery, not lower quality
โข Less documentation
๏ง Focus on the code rather than the design
๏ง Interleave
โข Specification, design and implementation are inter-leaved
๏ง Deliver small versions and get user (stakeholder) input
3
5. Agile manifesto
๏ฒ Our values:
๏ง Individuals and interactions over processes and tools
๏ง Working software over comprehensive documentation
๏ง Customer collaboration over contract negotiation
๏ง Responding to change over following a plan
๏ฒ That is, while there is value in the items on the right, we
value the items on the left more.
5
6. Plan-driven and agile specification
6
separate
development
stages with
the outputs to
be produced
at each of
these stages
planned in
advance.
Not
necessarily
waterfall
model โ plan-
driven,
incremental
development
is possible
Iteration within stage
Iteration of stage
User's full
agreement at
end, not before
code
7.
8. Problems with agile methods
๏ฒ It can be difficult to keep the interest of customers / users who are involved
in the process.
๏ฒ Team members may be unsuited to the intense involvement that
characterizes agile methods.
๏ฒ Prioritizing changes can be difficult where there are multiple stakeholders.
๏ฒ Maintaining simplicity requires extra work.
๏ฒ Contracts may be a problem as with other approaches to iterative
development.
๏ฒ Because of their focus on small, tightly-integrated teams, there are
problems in scaling agile methods to large systems.
๏ฒ Less emphasis on documentation - harder to maintain when you get a new
team for maintenance
8
9. Balance plan driven and agile
๏ฒ Not great for Agile:
๏ง What type of system is being developed?
โข Plan-driven approaches may be required for systems that require a lot of analysis before
implementation (e.g. real-time system with complex timing requirements).
๏ง What is the expected system lifetime?
โข Long-lifetime systems may require more design documentation to communicate the
original intentions of the system developers to the support team.
๏ง What technologies are available to support system development?
โข Agile methods rely on good tools to keep track of an evolving design
๏ง How is the development team organized?
โข Many teams; Outsourcing ---> need design documents to control borders
๏ง Culture or contract needs detailed specification
๏ง Is rapid feedback from users realistic?
๏ง Large scale, not co-located may require more formal communication methods
๏ง Need high level programming skills - refactoring, work with little spec
๏ง Outside regulation documentation requirements
9
10. Extreme programming
๏ฒ A popular form of Agile
๏ฒ Extreme Programming (XP) takes an โextremeโ approach to iterative
development.
๏ง New versions may be built several times per day;
๏ง Increments are delivered to customers every 2 weeks;
๏ง All tests must be run for every build and the build is only accepted if tests run
successfully.
๏ฒ Customer involvement means full-time customer engagement with the
team. - Specifications through user stories broken into tasks
๏ฒ People not process : pair programming, collective ownership and a process
that avoids long working hours.
๏ฒ Regular system releases. - release set of user stories
๏ฒ Maintaining simplicity through constant refactoring of code.
10
12. The Parts and the Whole
Controller
Inspect
Set Target Adapt
โข Clean Design & Code & Refactor
โข User Stories - Late Elaboration
โข Shared Code Ownership
โข Test Driven Developmentโฆ..
โข Iteration Plan
โข Daily Stand-Up
โข Pair Programming
โข Customer Reviews &
Feedback
โข Retrospectives
โข AutoTestโฆ..
Sustainable pace
Collective Ownership with users
Minimal documentation for sprint
18. Refactoring
๏ฒ Programming team look for possible software improvements and
make these improvements even where there is no immediate need
for them.
๏ฒ This improves the understandability of the software and so reduces
the need for documentation.
๏ฒ Changes are easier to make because the code is well-structured
and clear.
๏ฒ However, some changes requires architecture refactoring and this is
much more expensive.
๏ฒ RISK:
๏ฒ Changes the user does not test
๏ฒ Changes to working software break it
18
19. Examples of refactoring
๏ฒ Re-organization of a class hierarchy to remove duplicate
code.
๏ฒ Tidying up and renaming attributes and methods to make
them easier to understand.
๏ฒ The replacement of inline code with calls to methods that
have been included in a program library.
19
21. Test automation
๏ฒ Automate tests (junit)
๏ฒ Run upon checkin
๏ฒ Difficulties:
๏ฒ Time constraints
๏ฒ Programmer preferences to not test
๏ฒ Test coverage
21
22. Pair programming
๏ฒ In XP, programmers work in pairs, sitting together to
develop code.
๏ฒ Common ownership
๏ฒ Knowledge spread
๏ฒ Informal review
๏ฒ Refactoring
๏ฒ Similar output to two people coding
22
23. Scrum
๏ฒ Project Manager's job: - Deliver needed system on time
within budget
๏ฒ The Scrum approach - manage the iterations
๏ฒ There are three phases in Scrum.
๏ง outline planning phase - general picture and architecture
๏ง Sprint cycles releasing increments of the system.
๏ง The project closure phase - final delivery, documentation and
review of lessons learned.
23
25. The Sprint cycle
๏ฒ Every 2โ4 weeks (a fixed length).
๏ฒ 1) Project team with customer: Look at product backlog -
select stories to implement
๏ฒ 2) implement with all customer communication through
scrum master (protecting pgmr at this point)
๏ฒ Scrum master has project manager role during sprint
๏ฒ Daily 15 min meetings
๏ฒStand up often
๏ฒTeam presents progress and impediments
๏ฒScrum master tasked with removing impediments
๏ฒ 3) Review system release with user
25
26. Scrum benefits
๏ฒ The product is broken down into a set of manageable
and understandable chunks.
๏ฒ Unstable requirements do not hold up progress.
๏ฒ The whole team have visibility of everything and
consequently team communication is improved.
๏ฒ Customers see on-time delivery of increments and gain
feedback on how the product works.
๏ฒ Trust between customers and developers is established
and a positive culture is created in which everyone
expects the project to succeed.
26
27. Summary
๏ฒ Plan Driven (Ex: Waterfall) vs Incremental (Ex: Agile )
๏ฒ Structure and benefits and downfalls
๏ฒ XP - an implementation of Agile - Power to the Programmer
๏ฒ User story requirements
๏ฒ Test driven design with continual retest and integration
๏ฒ Pair Programming
๏ฒ Refactoring encouraged
๏ฒ Scrum - project management of Agile using sprints
๏ฒ Iterations of full team contact / Scrum master protection of
programmers / full team release review
27