1. Trang chủ
  2. » Công Nghệ Thông Tin

Rapid software development

15 585 2
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Rapid software development
Tác giả Ian Sommerville
Trường học University of Loughborough
Chuyên ngành Software Engineering
Thể loại Thesis
Năm xuất bản 2004
Thành phố Loughborough
Định dạng
Số trang 15
Dung lượng 133,09 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Rapid software development

Trang 1

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 1

Rapid software development

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 2

Objectives

development process leads to faster delivery

of more useful software

methods

extreme programming

software process

Topics covered

Trang 2

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 4

Rapid software development

environments, businesses have to respond

to new opportunities and competition

development and delivery is not often the most critical requirement for software systems

quality software if rapid delivery of essential functionality is possible

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 5

Requirements

often impossible to arrive at a stable, consistent set of system requirements

is impractical and an approach to

development based on iterative specification and delivery is the only way to deliver software quickly

Characteristics of RAD processes

implementation are concurrent There is no detailed specification and design documentation is minimised.

End users evaluate each increment and make proposals for later increments.

an interactive development system.

Trang 3

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 7

An iterative development process

Valida te increment Build system

increment Specify system

incr ement

Design system

architectur e

Define system

deli verab les

System

Valida te system Deli ver final

system

YES

NO

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 8

Advantages of incremental development

Each increment delivers the highest priority functionality to the customer

have to be involved in the development which means the system is more likely to meet their requirements and the users are more committed to the system

Problems with incremental development

• Progress can be hard to judge and problems hard to find has been done.

• The normal contract may include a specification; without a specification, different forms of contract have to be used.

• Without a specification, what is the system being tested against?

• Continual change tends to corrupt software structure making it more expensive to change and evolve to meet new requirements.

Trang 4

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 10

Prototyping

iterative development and delivery may be impractical; this is especially true when multiple teams are working on different sites

is developed as a basis for formulating the requirements may be used This system is thrown away when the system specification has been agreed

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 11

Incremental development and prototyping

Incremental

development

Thro w-a way

prototyping

Deliver ed system

Executa ble pr ototype + System specifica tion

Outline

requir ements

Conflicting objectives

to deliver a working system to end-users The development starts with those

requirements which are best understood

validate or derive the system requirements The prototyping process starts with those requirements which are poorly understood

Trang 5

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 13

Agile methods

methods led to the creation of agile methods 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 quickly to meet changing requirements.

small/medium-sized business systems or PC products.

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 14

Principles of agile methods

Customer involvement The customer should be closely involved throughout the

development process Their role is provide and prioritise new system requirements and to evaluate the iterations of the system Incremental delivery The software is developed in increments with the customer

specifying the requirements to be included in each i ncrement People not process The skills of the development team should be recognised and

exploited The team should be left to develop their own ways of working without prescriptive processes.

Embrace change Expect the system requirements to change and design the system

so that it can acc ommodate these changes.

Maintain simplicity Focus on simplicity in both the software being developed and in

the development process used Wherever possible, actively work

to eliminate complexity from the system.

Problems with agile methods

who are involved in the process.

involvement that characterises agile methods.

multiple stakeholders.

approaches to iterative development.

Trang 6

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 16

Extreme programming

used agile method

‘extreme’ approach to iterative development

day;

weeks;

build is only accepted if tests run successfully.

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 17

The XP release cycle

Break down stories to tasks Select user

stories for this

release

Plan release

Release software Evaluate

system

Develop/integ rate/ test software

Extreme programming practices 1

Incremental planning Requirements are recorded on Story Cards and the Stories to be

included in a release are determined by the time available and their relative priority The deve lopers break these Stories into development ŌTasksÕ.

Small Releases The minimal useful set of functionality that provides business

value is deve loped first Releases of the system are frequent and incrementally add functionality to the first release.

Simple Design Enough de sign is carried out to meet the current requirements

and no more.

Test first deve lopment An automated unit test framework is used to write tests for a new

piece of functionality be fore that functionality itself is implemented.

Refactoring All developers are expe cted to refactor the code con tinuously as

soon as possible code improve ments are found This keeps the code simple and maintainable.

Trang 7

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 19

Extreme programming practices 2

Pair Programming Developers work in pairs, checking ea ch otherÕs work and

providing the suppo rt to always do a good job.

Collective Ownership The pa irs of deve lopers work on all areas of the system, so that

no islands of expe rtise deve lop and all the deve lopers own a ll the code Anyon e can chang e anything.

Continuous Integration As soon as work on a task is complete it is integrated into the

whole system After any such integration, all the unit tests in the system must pass.

Sustainable pace Large amounts of over-time are not considered acceptable as the

net effect is often to reduce code qua lity and medium term productivity

On-site Customer A representative of the end -user o f the system (the Customer)

extreme prog ramming process, the customer is a member of the deve lopment team and is respon sible for bringing system requirements to the team for implementation.

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 20

XP and agile principles

small, frequent system releases.

engagement with the team.

collective ownership and a process that avoids long working hours.

code.

Requirements scenarios

scenarios or user stories

development team break them down into implementation tasks These tasks are the basis of schedule and cost estimates

inclusion in the next release based on their priorities and the schedule estimates

Trang 8

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 22

Story card for document downloading

Downloading and printing an article

First, you select the article that you want from a displayed list You then have to tell the system how you will pay for it - this can either

be through a subscription, through a company account or by credit card.

After this, you get a copyright form from the system to fill in and,

when you have submitted this, the article you want is downloaded

onto your computer

You then choose a printer and a copy of the article is printed You tell the system if printing has been successful.

If the article is a print-only article, you canÕt keep the PDF version

so it is automatically deleted from your computer

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 23

XP and change

engineering is to design for change It is worth spending time and effort anticipating changes as this reduces costs later in the life cycle

worthwhile as changes cannot be reliably anticipated

improvement (refactoring) to make changes easier when they have to be implemented

Testing in XP

scenarios

validation

component tests each time that a new release is built

Trang 9

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 25

Task cards for document downloading

Task 1: Implement principal workflow

Task 2: Implement article catalog and selection

Task 3: Implement payment collection

Payment may be made in 3 dif ferent ways The user selects which way they wish to pay If the user

has a library subscription, then they can input the

subscriber key which should be checked by the

system Alternatively, they can input an or ganisational account number If this is valid, a debit of the cost

of the article is posted to this account Finally , they may input a 16 digit credit card number and expiry date This should be checked for validity and, if

valid a debit is posted to that credit card account.

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 26

Test case description

Test 4: Test credit card validity

Input:

Astringrepresentingthecreditcardnumberandtwointegersrepresenting

the month and year when the card expires

Tests:

Check that all bytes in the string are digits

Check that the month lies between 1 and 12 and the

year is greater than or equal to the current year

Using the first 4 digits of the credit card number ,

check that the card issuer is valid by looking up the

card issuer table Check credit card validity by submitting the card number and expiry date information to the card

issuer

Output:

OK or error message indicating that the card is invalid

Test-first development

requirements to be implemented

data so that they can be executed

automatically The test includes a check that

it has executed correctly

run when new functionality is added Thus checking that the new functionality has not introduced errors

Trang 10

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 28

Pair programming

develop code.

spreads knowledge across the team.

of code is looked at by more than 1 person.

benefit from this.

productivity with pair programming is similar to that

of two people working independently.

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 29

Rapid application development

attention but other approaches to rapid application development have been used for many years

data-intensive business applications and rely on programming and presenting information from a database

RAD environment tools

Trang 11

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 31

A RAD environment

DB

prog ramming

langua ge

Inter face

gener ator

Office systems

Repor t gener ator

Da ta basemana gementsystem

Rapid application development environment

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 32

Interface generation

and developing these forms manually is a time-consuming activity.

generation including:

• Interactive form definition using drag and drop techniques;

• Form linking where the sequence of forms to be presented is specified;

• Form verification where allowed ranges in form fields is defined.

Visual programming

support visual programming where the prototype is developed by creating a user interface from standard items and

associating components with these items

support this type of development

application requirements

Trang 12

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 34

Visual programming with reuse

File Edit Views Layout Options Help

General Index

Menu component Date component

Range checking

script

Tree display component

Draw canvas

component

User prompt component + script

12th January 2 000

3.8 76

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 35

Problems with visual development

development

program can cause maintainability problems

COTS reuse

is to configure and link existing off the shelf systems

system could be built by using:

format reports;

Trang 13

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 37

Compound documents

by developing a compound document.

spreadsheet) that allow user computations.

which is invoked when that element is selected.

applications.

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 38

Application linking

Word processor Spreadsheet Audio player

Text 1 Text 2 Text 3

Text 5 Table 1 Sound 1

Text 4 Table 2 Sound 2

Compound document

Software prototyping

used to demonstrate concepts and try out design options

with requirements elicitation and validation;

develop a UI design;

Trang 14

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 40

Benefits of prototyping

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 41

Back to back testing

Test data

Results comparator

System

prototype

Application system

Difference repor t

The prototyping process

Establish

prototype

objecti ves

Define

prototype

functionality

Develop prototype

Evalua te prototype

Prototyping

plan

Outline

definition

Executa b le prototype

Evalua tion repor t

Trang 15

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 43

Throw-away prototypes

development as they are not a good basis for a production system:

non-functional requirements;

through rapid change;

organisational quality standards.

©Ian Sommerville 2004 Software Engineering, 7th edition Chapter 17 Slide 44

Key points

to faster delivery of software.

that aim to reduce development overhead and so produce software faster.

systematic testing, continuous improvement and customer involvement.

where executable tests are developed before the code is written.

Key points

include database programming languages, form generation tools and links to office applications

requirements and design options

start with the requirements you least understand; in incremental development, start with the best-understood requirements

Ngày đăng: 14/09/2012, 11:27

w