Download Agile Methods-Software Engineering-Lecture Slides and more Slides Software Engineering in PDF only on Docsity!
AGILE SOFTWAREDEVELOPMENTDr. Amir Hayat
1
Agile software development
Topics covered 2 ^ Agile methods ^ Plan-driven and agile development ^ Extreme programming ^ Agile project management ^ Scaling agile methods
Agile software development
Agile methods 4 ^ Dissatisfaction with the overheads involved in software designmethods of the 1980s and 1990s led to the creation of agilemethods. These methods:^ ^ Focus on the code rather than the design^ ^ Are based on an iterative approach to software development^ ^ Are intended to deliver working software quickly and evolve this quicklyto meet changing requirements. ^ The aim of agile methods is to reduce overheads in thesoftware process (e.g. by limiting documentation) and to beable to respond quickly to changing requirements withoutexcessive rework.
Agile software development
Agile manifesto 5 ^ We are uncovering better ways of developing^ software by doing it and helping others do it.^ Through this work we have come to value:^ ^ Individuals and interactions over processes and toolsWorking software over comprehensive documentationCustomer collaboration over contract negotiationResponding 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.
Agile software development
Agile method applicability 7 ^ Product development where a software company isdeveloping a small or medium-sized product for sale. ^ Custom system development within an organization,where there is a clear commitment from the customer tobecome involved in the development process and wherethere are not a lot of external rules and regulationsthat affect the software. ^ Because of their focus on small, tightly-integratedteams, there are problems in scaling agile methods tolarge systems.
Agile software development
Problems with agile methods 8 ^ It can be difficult to keep the interest of customers who areinvolved in the process. ^ Team members may be unsuited to the intense involvement thatcharacterises agile methods. ^ Prioritising changes can be difficult where there are multiplestakeholders. ^ Maintaining simplicity requires extra work. ^ Contracts may be a problem as with other approaches toiterative development.
Agile software development
Technical, human, organizationalissues 10 ^ Most projects include elements of plan-driven and agileprocesses. Deciding on the balance depends on:^ ^ Is it important to have a very detailed specification and design beforemoving to implementation? If so, you probably need to use a plan-drivenapproach.^ ^ Is an incremental delivery strategy, where you deliver the software tocustomers and get rapid feedback from them, realistic? If so, consider usingagile methods.^ ^ How large is the system that is being developed? Agile methods are mosteffective when the system can be developed with a small co-located teamwho can communicate informally. This may not be possible for largesystems that require larger development teams so a plan-driven approachmay have to be used.
Agile software development
Technical, human, organizationalissues 11^ ^ What type of system is being developed?^ ^ Plan-driven approaches may be required for systems that require a lot ofanalysis before implementation (e.g. real-time system with complex timingrequirements).^ ^ What is the expected system lifetime?^ ^ Long-lifetime systems may require more design documentation tocommunicate the original intentions of the system developers to the supportteam.^ ^ 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?^ ^ If the development team is distributed or if part of the development is beingoutsourced, then you may need to develop design documents to communicateacross the development teams.
Agile software development
Extreme programming 13 ^ Perhaps the best-known and most widely used agilemethod. ^ 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 isonly accepted if tests run successfully.
Agile software development
XP and agile principles 14 ^ Incremental development is supported through small, frequentsystem releases. ^ Customer involvement means full-time customer engagementwith the team. ^ People not process through pair programming, collectiveownership and a process that avoids long working hours. ^ Change supported through regular system releases. ^ Maintaining simplicity through constant refactoring of code.
Agile software development
Extreme programming practices (a) 16 Principle or practice
Description Incremental planning
Requirements are recorded on story cards and the stories to beincluded in a release are determined by the time available andtheir relative priority. The developers break these stories intodevelopment ‘Tasks’. See Figures 3.5 and 3.6. Small releases
The minimal useful set of functionality that provides businessvalue is developed first. Releases of the system are frequentand incrementally add functionality to the first release. Simple design
Enough design is carried out to meet the current requirementsand no more. Test-first development
An automated unit test framework is used to write tests for anew^ piece
of^ functionality
before^ that
functionality
itself^ is
implemented. Refactoring^
All developers are expected to refactor the code continuously assoon as possible code improvements are found. This keeps thecode simple and maintainable.Agile software development
Extreme programming practices (b) 17 Pair programming
Developers
work^ in^ pairs,
checking^ each
other’s^ work
and
providing the support to always do a good job. Collective ownership
The pairs of developers work on all areas of the system, so thatno islands of expertise develop and all the developers takeresponsibility for all of the code. Anyone can change anything. Continuous integration
As soon as the work on a task is complete, it is integrated intothe whole system. After any such integration, all the unit tests inthe system must pass. Sustainable pace
Large amounts of overtime are not considered acceptable asthe net effect is often to reduce code quality and medium termproductivity On-site customer
A representative of the end-user of the system (the customer)should be available full time for the use of the XP team. In anextreme programming process, the customer is a member ofthe development team and is responsible for bringing systemrequirements to the team for implementation.
Agile software development
A ‘prescribing medication’ story 19
Agile software development
Examples of task cards forprescribing medication 20
Agile software development