88
NSCET E-LEARNING PRESENTATION LISTEN … LEARN… LEAD… 1 Department of CSE, NSCET, Theni

NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

NSCET

E-LEARNING

PRESENTATION

LISTEN … LEARN… LEAD…

1 Department of CSE, NSCET, Theni

Page 2: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

COMPUTER SCIENCE AND ENGINEERING

Mr.C.PRATHAP M.Tech.,(Phd).,

Assistant Professor

Nadar Saraswathi College of Engineering & Technology,

Vadapudupatti, Annanji (po), Theni – 625531.

CS8494 – SOFTWARE ENGINEERING

II YEAR / IV SEMESTER

PHOTO

2 Department of CSE, NSCET, Theni

Page 3: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

UNIT 01 - SOFTWARE PROCESS

AND

AGILE DEVELOPMENT

Department of CSE, NSCET, Theni

Page 4: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Introduction to

Software

Engineering

01.

Department of CSE, NSCET, Theni

Page 5: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Let us first understand what software

engineering stands for.

The term is made of two words,

Software and Engineering.

Department of CSE, NSCET, Theni

Page 6: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Software • Software is more than just a program code. • A program is an executable code, which serves some computational purpose. • Software, when made for a specific requirement is called software product.

6 Department of CSE, NSCET, Theni

Page 7: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Engineering • Engineering on the other hand, is all

about developing products, using well-defined, scientific principles and methods.

7 Department of CSE, NSCET, Theni

Page 8: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Software engineering • Software engineering is an engineering branch associated with development of

software product using well-defined scientific principles, methods and procedures. The outcome of software engineering is an efficient and reliable software product.

8 Department of CSE, NSCET, Theni

Page 9: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Definitions IEEE defines software engineering as:

• The application of a systematic, disciplined, quantifiable approach to the development , operation and maintenance of software; that is, the application of engineering to software.

9 Department of CSE, NSCET, Theni

Page 10: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Need of Software Engineering

• Why does it take so long to get software finished?

• Why are development costs so high?

• Why can’t we find all errors before we give the software to our customers?

• Why do we spend so much time and effort maintaining existing programs?

• Why do we continue to have difficulty in measuring progress as software is being developed and maintained?

10 Department of CSE, NSCET, Theni

Page 11: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Characteristics of Good Software

• A software product can be judged by what it offers and how well it can be used. This software must

satisfy on the following grounds: • Operational • Transitional • Maintenance

11 Department of CSE, NSCET, Theni

Page 12: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Operational •This tells us how well software works in operations. It can be measured on:

• Budget

• Usability

• Efficiency

• Correctness

• Functionality

• Dependability

• Security

• Safety

12 Department of CSE, NSCET, Theni

Page 13: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Transitional This aspect is important when the software is moved from one platform to another:

• Portability

• Interoperability

• Reusability

• Adaptability

13 Department of CSE, NSCET, Theni

Page 14: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Maintenance This aspect briefs about how well a software has the capabilities to maintain itself in the ever-changing

environment:

• Modularity

• Maintainability

• Flexibility

• Scalability

14 Department of CSE, NSCET, Theni

Page 15: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Software Characteristics

• Software is developed or engineered, it is not manufactured in the classical sense.

15 Department of CSE, NSCET, Theni

Page 16: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Software Characteristics

• Software doesn't

"wear out.“

16 Department of CSE, NSCET, Theni

Page 17: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Software Characteristics

• Although the industry is moving toward component-based assembly

• Most of software is custom build rather than

• assemble from existing component.

• Easy to modify

• Easy to Reproduce

17 Department of CSE, NSCET, Theni

Page 18: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Software Applications

• system software

• application software

• engineering/scientific software

• embedded software

• WebApps (Web applications)

• AI software

18 Department of CSE, NSCET, Theni

Page 19: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Software—New Categories

• Open world computing—pervasive, distributed computing

• Ubiquitous computing—wireless networks

• Netsourcing—the Web as a computing engine

• Open source—”free” source code open to the computing community

19 Department of CSE, NSCET, Theni

Page 20: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Legacy Software • Why must it change?

o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to implement new business requirements.

o software must be extended to make it interoperable with other more modern systems or databases.

o software must be re-architected to make it viable within a network environment.

20 Department of CSE, NSCET, Theni

Page 21: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Characteristics of WebApps

• Network intensiveness. A WebApp resides on a network and must serve the needs of a diverse community of clients. • Concurrency. A large number of users may access the WebApp at one time. • Unpredictable load. The number of users of the WebApp may vary by orders of magnitude from day to day. • Performance. If a WebApp user must wait too long (for access, for server-side processing, for client-side formatting and

display), he or she may decide to go elsewhere. • Availability. Although expectation of 100 percent availability is unreasonable, users of popular WebApps often demand

access on a “24/7/365” basis.

21 Department of CSE, NSCET, Theni

Page 22: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Characteristics of WebApps

• Data driven. The primary function of many WebApps is to use hypermedia to present text, graphics, audio, and video content to the end-user.

• Content sensitive. The quality and aesthetic nature of content remains an important determinant of the quality of a WebApp.

• Immediacy. Although immediacy—the compelling need to get software to market quickly—is a characteristic of many application domains, WebApps often exhibit a time to market that can be a matter of a few days or weeks.

• Security. Because WebApps are available via network access, it is difficult, if not impossible, to limit the population of end-users who may access the application.

22 Department of CSE, NSCET, Theni

Page 23: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

A Process Framework

• A process framework establishes the foundation for a complete software engineering process by identifying a small number of framework activities that are applicable to all software projects, regardless of their size or complexity.

• In addition, the process framework encompasses a set of umbrella activities that are applicable across the entire software process.

23 Department of CSE, NSCET, Theni

Page 24: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Framework Activities • Communication

• Planning

• Modeling

o Analysis of requirements

o Design

• Construction

o Code generation

o Testing

• Deployment

24 Department of CSE, NSCET, Theni

Page 25: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Umbrella Activities • Software project tracking and control- against the plan

• Formal technical reviews- Conduct activities to remove error

• Software quality assurance -Testing

• Software configuration management – manage the effects of change

• Work product preparation and production –Models

• Reusability management - reuse

• Risk management- assess the risk

25 Department of CSE, NSCET, Theni

Page 26: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

The Essence of Practice

• Understand the problem (communication and analysis). • Plan a solution (modeling and software design). • Carry out the plan (code generation). • Examine the result for accuracy (testing and quality assurance).

26 Department of CSE, NSCET, Theni

Page 27: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Understand the Problem

• Who has a stake in the solution to the problem? That is, who are the stakeholders? • What are the unknowns? What data, functions, and features are required to properly solve

the problem? • Can the problem be compartmentalized? Is it possible to represent smaller problems that

may be easier to understand? • Can the problem be represented graphically? Can an analysis model be created?

27 Department of CSE, NSCET, Theni

Page 28: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Plan the Solution • Have you seen similar problems before? Are there patterns that are recognizable in a potential

solution? Is there existing software that implements the data, functions, and features that are required?

• Has a similar problem been solved? If so, are elements of the solution reusable?

• Can subproblems be defined? If so, are solutions readily apparent for the subproblems?

• Can you represent a solution in a manner that leads to effective implementation? Can a design model be created?

28 Department of CSE, NSCET, Theni

Page 29: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Carry Out the Plan

• Does the solution conform to the plan? Is source code traceable to the design model? • Is each component part of the solution provably correct? Has the design and code been

reviewed, or better, have correctness proofs been applied to algorithm?

29 Department of CSE, NSCET, Theni

Page 30: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Examine the Result

• Is it possible to test each component part of the solution? Has a reasonable testing strategy been implemented?

• Does the solution produce results that conform to the data, functions, and features that are required? Has the software been validated against all stakeholder requirements?

30 Department of CSE, NSCET, Theni

Page 31: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Hooker’s General Principles

• 1: The Reason It All Exists

• 2: KISS (Keep It Simple, Stupid!)

• 3: Maintain the Vision

• 4: What You Produce, Others Will Consume

• 5: Be Open to the Future

• 6: Plan Ahead for Reuse

• 7: Think!

31 Department of CSE, NSCET, Theni

Page 32: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

The Reason It All Exists

• ALL Decisions should be made with this in mind… • “ Does this add real value to the system?” • If there is no, don’t do it.

32 Department of CSE, NSCET, Theni

Page 33: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

KISS (Keep It Simple, Stupid!)

“ALL design should be as possible, but no simpler..”

33 Department of CSE, NSCET, Theni

Page 34: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Maintain the Vision

• “ A clear vision is essential to the success of a software project”

• A project almost unfailingly ends up being “ of two [or more] minds”

34 Department of CSE, NSCET, Theni

Page 35: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

What You Produce, Others Will Consume

“ Always specify, design and implement knowing someone else will have to understand what you are doing”

35 Department of CSE, NSCET, Theni

Page 36: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Be Open to the Future

• “ True industrial-strength software systems must endure far longer” • To do this successfully, these systems must be ready to adapt to these and

other changes.

36 Department of CSE, NSCET, Theni

Page 37: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Plan Ahead for Reuse

• “ Achieving a high level of reuse is arguably the hardest goal to accomplish in developing a software system”

• The reuse of code and designs has been proclaimed as a major benefit of using object oriented technologies.

37 Department of CSE, NSCET, Theni

Page 38: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Think!

• Placing clear, complete thought before action almost always produces better results.

• A side effect of thinking is learning to recognize when you don’t know something , at which point you can research the answer.

38 Department of CSE, NSCET, Theni

Page 39: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Process Models

• This Aspect – called process flow • Describes how the frame work activities and the actions and tasks that occur within each

framework activity are organized with respect to sequence and time…

39 Department of CSE, NSCET, Theni

Page 40: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Process Flow

40 Department of CSE, NSCET, Theni

Page 41: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Linear Process flow

• It executes each of the five frame work activities in sequence ,beginning with communication and culminating with deployment…..

41 Department of CSE, NSCET, Theni

Page 42: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Iterative process flow

• It repeats one or more of the activities before proceeding to the next

42 Department of CSE, NSCET, Theni

Page 43: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Evolutionary Process

• It executes the activities in a circular manner • It leads to a more complete version of the software.

43 Department of CSE, NSCET, Theni

Page 44: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Parallel Process flow

• It executes one or more activities in parallel with other activities.

44 Department of CSE, NSCET, Theni

Page 45: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Identifying a Task Set

• A task set defines the actual work to be done to accomplish the objectives of a software engineering action.

o A list of the task to be accomplished

o A list of the work products to be produced

o A list of the quality assurance filters to be applied

45 Department of CSE, NSCET, Theni

Page 46: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Process Patterns

• A process pattern

o describes a process-related problem that is encountered during software engineering work,

o identifies the environment in which the problem has been encountered, and

o suggests one or more proven solutions to the problem.

46 Department of CSE, NSCET, Theni

Page 47: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Prescriptive Models

• Prescriptive process models advocate an orderly approach to software engineering

• That leads to a few questions …

• If prescriptive process models strive for structure and order, are they inappropriate for a software world that thrives on change?

• Yet, if we reject traditional process models (and the order they imply) and replace them with something less structured, do we make it impossible to achieve coordination and coherence in software work?

47 Department of CSE, NSCET, Theni

Page 48: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

The Waterfall Model or Classic life cycle model

Communicat ion

Planning

Modeling

Const ruct ionDeployment

analysis

designcode

t est

project init iat ion

requirement gat hering estimating

scheduling

tracking

delivery

support

f eedback

48 Department of CSE, NSCET, Theni

Page 49: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

The V-Model

49 Department of CSE, NSCET, Theni

Page 50: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

The Incremental Model

C o m m u n i c a t i o n

P l a n n i n g

M o d e l i n g

C o n s t r u c t i o n

D e p l o y m e n t

d e l i v e r y

f e e d b a c k

ana ly s is

des ign c ode

t es t

increment # 1

increment # 2

delivery of

1st increment

delivery of

2nd increment

delivery of

nt h increment

increment # n

project calendar t ime

C o m m u n i c a t i o n

P l a n n i n g

M o d e l i n g

C o n s t r u c t i o n

D e p l o y m e n t

d e l i v e r y

f e e d b a c k

analy s is

des ign c ode

t es t

C o m m u n i c a t i o n

P l a n n i n g

M o d e l i n g

C o n s t r u c t i o n

D e p l o y m e n t

d e l i v e r y

f e e d b a c k

ana ly s is

des ignc ode

t es t

50 Department of CSE, NSCET, Theni

Page 51: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Evolutionary Models: Prototyping

Construction of prototype

Communicat ion

Qu ick p lan

Const ruct ion

of

prot ot ype

Mo d e lin g

Qu ick d e sig n

De live ry

& Fe e dback

Deployment

communication

Quick plan

Modeling Quick design

Construction of prototype

Deployment delivery & feedback

51 Department of CSE, NSCET, Theni

Page 52: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

SPIRAL MODEl

• It is the combination of Waterfall and Iterative model. • Each phase in spiral model begins with design goal and ends with client

reviewing. • Software is developed in a series of incremental releases

52 Department of CSE, NSCET, Theni

Page 53: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Evolutionary Models: The Spiral

communication

planning

modeling

construction deployment delivery feedback

start

analysis design

code test

estimation scheduling risk analysis

53 Department of CSE, NSCET, Theni

Page 54: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

TASK REGION

• TASK 1 : CONCEPT DEVELOPMENT

• TASK 2 : SYSTEM DEVELOPMENT

• TASK 3 : SYSTEM ENHANCEMENT

• TASK 3 : SYSTEM MAINTENANCE

54 Department of CSE, NSCET, Theni

Page 55: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Detailed Spiral Model

55 Department of CSE, NSCET, Theni

Page 56: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

When to use Spiral Model

• When Project is large • When releases are required to be frequent • When risk and cost analysis are important • When requirements are unclear and complex • When Changes may require at any time • For medium to high risk project.

56 Department of CSE, NSCET, Theni

Page 57: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Evolutionary Models: Concurrent

Under review

Baselined

Done

Under

revision

Await ing

changes

Under

development

none

Modeling act ivit y

represents the state

of a sof tware engineering

act ivity or task

57 Department of CSE, NSCET, Theni

Page 58: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Concurrent MODEL

• Its also called Concurrent Engineering • The frame work activities or software development tasks are represented as states. • It is applicable to all types of software development and provides an accurate picture of the

current state of a project.

58 Department of CSE, NSCET, Theni

Page 59: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Specialized Model

• Component based development—the process to apply when reuse is a development objective. S/w reusability , it reduces the time and cost.

• Formal methods—emphasizes the mathematical specification of requirements.

• it overcomes problems like ambiguity, incompleteness and inconsistency.

• AOSD—provides a process and methodological approach for defining, specifying, designing, and constructing aspects

59 Department of CSE, NSCET, Theni

Page 60: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Component Based Model-Steps

• Identify the component based products and analyzed • Analyze the component integration issues. • Design the s/w architecture. • Integrate the components into the s/w architecture. • Conduct the comprehensive testing.

60 Department of CSE, NSCET, Theni

Page 61: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Formal methods- Defect free software

• Yet, concern about its applicability in a business environment has been voiced:

• The development of formal models is currently quite time consuming and expensive.

• Because few software developers have the necessary background to apply formal methods, extensive training is required.

• It is difficult to use the models as a communication mechanism for technically unsophisticated customers.

61 Department of CSE, NSCET, Theni

Page 62: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

AOSD • When concerns cut across multiple system functions, features, and information,they are

often referred to as crosscutting concerns.

• Aspectual requirements define those crosscutting concerns that have an impact across the software architecture.

• Aspect-oriented software development (AOSD), often referred to as aspect-oriented programming (AOP), is a relatively new software engineering paradigm that provides a process and methodological approach for defining, specifying, designing, and constructing

aspects.

62 Department of CSE, NSCET, Theni

Page 63: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Unified Process

• “use-case driven, architecture-centric, iterative and incremental” software process closely aligned with the Unified Modeling Language (UML)

63 Department of CSE, NSCET, Theni

Page 64: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

The Unified Process (UP)

soft ware increment

Release

Incept ion

Elaborat ion

const ruct ion

t ransit ion

product ion

64 Department of CSE, NSCET, Theni

Page 65: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

UP Work Products Incept ion phase

Elaborat ion phase

Const ruct ion phase

Transit ion phase

Vision document

Init ial use-case model

Init ial project glossary

Init ial business case

Init ial risk assessment .

Project plan,

phases and it erat ions.

Business model,

if necessary .

One or more prot ot ypes I n c e p t i o

n

Use-case model

Supplement ary requirement s

including non-funct ional

Analysis model

Soft ware archit ect ure

Descript ion.

Execut able archit ect ural

prot ot ype.

Preliminary design model

Rev ised risk list

Project plan including

it erat ion plan

adapt ed workf lows

milest ones

t echnical work product s

Preliminary user manual

Design model

Soft ware component s

Int egrat ed sof t ware

increment

Test plan and procedure

Test cases

Support document at ion

user manuals

inst allat ion manuals

descript ion of current

increment

Delivered sof t ware increment

Bet a t est report s

General user feedback

65 Department of CSE, NSCET, Theni

Page 66: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

UP Phases Incept ion Elaborat ion Const ruct ion Transit ion Product ion

UP Phases

Workflows

Requirements

Analysis

Design

Implementation

Test

Iterations #1 #2 #n-1 #n

Support

66 Department of CSE, NSCET, Theni

Page 67: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

The Manifesto for Agile Software Development

“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 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.”

Kent Beck et al

67 Department of CSE, NSCET, Theni

Page 68: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

What is “Agility”?

o Effective (rapid and adaptive) response to change (team members, new technology,

requirements)

o Effective communication in structure and attitudes among all team members, technological

and business people, software engineers and managers。

o Drawing the customer into the team. Eliminate “us and them” attitude.

o Organizing a team so that it is in control of the work performed

o Planning in an uncertain world has its limits and plan must be flexible

o Eliminate all but the most essential work products and keep them lean

o Emphasize an incremental delivery strategy as opposed to intermediate products that gets

working software to the customer as rapidly as feasible

68 Department of CSE, NSCET, Theni

Page 69: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

What is “Agility”? Yielding …

Rapid, incremental delivery of software

The development guidelines stress delivery over analysis and design although these activates are not discouraged, and active and continuous communication between developers and customers.

69 Department of CSE, NSCET, Theni

Page 70: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Why and What Steps are“Agility”

Why? The modern business environment is fast-paced and ever-changing. It represents a reasonable alternative to conventional software engineering for certain classes of software projects. It has been demonstrated to deliver successful systems quickly.

What? May be termed as “software engineering lite” The basic activities- communication, planning, modeling, construction and deployment remain. But they morph into a minimal task set that push the team toward construction and delivery sooner. The only really important work product is an operational

“software increment” that is delivered.

70 Department of CSE, NSCET, Theni

Page 71: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Agility and the Cost of Change

Conventional wisdom is that the cost of change increases nonlinearly as a project progresses. It is relatively easy to accommodate a change when a team is gathering requirements early in a project. If there are any changes, the costs of doing this work are minimal. But if the middle of validation testing, a stakeholder is requesting a major functional change. Then the change requires a modification to the architectural design, construction of new components, changes to other existing components, new testing and so on. Costs escalate quickly.

A well-designed agile process may “flatten” the cost of change curve by coupling incremental delivery with agile practices such as continuous unit testing and pair programming. Thus team can accommodate changes late in the software project without dramatic cost and time impact.

71 Department of CSE, NSCET, Theni

Page 72: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Agility and the Cost of Change

72 Department of CSE, NSCET, Theni

Page 73: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

An Agile Process Is driven by customer descriptions of what is required

(scenarios). Some assumptions:

Recognizes that plans are short-lived (some requirements will persist, some will change. Customer priorities will change)

Develops software iteratively with a heavy emphasis on construction activities (design and construction are interleaved, hard to

say how much design is necessary before construction. Design models are proven as they are created. )

Analysis, design, construction and testing are not predictable.

Thus has to Adapt as changes occur due to unpredictability

Delivers multiple ‘software increments’, deliver an operational prototype or portion of an OS to collect customer feedback for adaption.

73 Department of CSE, NSCET, Theni

Page 74: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Agility Principles - I 1. Our highest priority is to satisfy the customer through early and continuous delivery of valuable software.

2. Welcome changing requirements, even late in development. Agile processes harness change for the customer's competitive advantage.

3. Deliver working software frequently, from a couple of weeks to a couple of months, with a preference to the shorter timescale.

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

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

6. The most efficient and effective method of conveying information to and within a development team is face–to–face conversation.

74 Department of CSE, NSCET, Theni

Page 75: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Agility Principles - II

7. Working software is the primary measure of progress.

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

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

10. Simplicity – the art of maximizing the amount of work not done – is essential.

11. The best architectures, requirements, and designs emerge from self–organizing teams.

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

75 Department of CSE, NSCET, Theni

Page 76: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Human Factors The process molds to the needs of the people and team, not the other way around

key traits must exist among the people on an agile team and the team itself: Competence. ( talent, skills, knowledge)

Common focus. ( deliver a working software increment )

Collaboration. ( peers and stakeholders)

Decision-making ability. ( freedom to control its own destiny)

Fuzzy problem-solving ability.(ambiguity and constant changes, today problem may not be tomorrow’s problem)

Mutual trust and respect.

Self-organization. ( themselves for the work done, process for its local environment, the work schedule)

76 Department of CSE, NSCET, Theni

Page 77: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Extreme Programming (XP) The most widely used agile process, originally proposed by Kent Beck in 2004. It uses an object-oriented approach.

XP Planning Begins with the listening, leads to creation of “user stories” that describes required output, features, and functionality. Customer assigns

a value(i.e., a priority) to each story.

Agile team assesses each story and assigns a cost (development weeks. If more than 3 weeks, customer asked to split into smaller stories)

Working together, stories are grouped for a deliverable increment next release.

A commitment (stories to be included, delivery date and other project matters) is made. Three ways: 1. Either all stories will be implemented

in a few weeks, 2. high priority stories first, or 3. the riskiest stories will be implemented first.

After the first increment “project velocity”, namely number of stories implemented during the first release is used to help define subsequent delivery dates for other increments. Customers can add stories, delete existing stories, change values of an existing story, split stories as development work proceeds.

77 Department of CSE, NSCET, Theni

Page 78: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Extreme Programming (XP) XP Design ( occurs both before and after coding as refactoring is encouraged)

Follows the KIS principle (keep it simple) Nothing more nothing less than the story.

Encourage the use of CRC (class-responsibility-collaborator) cards in an object-oriented context. The only design work product of XP. They identify and organize the classes that are relevant to the current software increment. (see Chapter 8)

For difficult design problems, suggests the creation of “spike solutions”—a design prototype for that portion is implemented and evaluated.

Encourages “refactoring”—an iterative refinement of the internal program design. Does not alter the external behavior yet improve the internal structure. Minimize chances of bugs. More efficient, easy to read.

XP Coding

Recommends the construction of a unit test for a story before coding commences. So implementer can focus on what must be implemented to pass the test.

Encourages “pair programming”. Two people work together at one workstation. Real time problem solving, real time review for quality assurance. Take slightly different roles.

XP Testing

All unit tests are executed daily and ideally should be automated. Regression tests are conducted to test current and previous components.

“Acceptance tests” are defined by the customer and executed to assess customer visible functionality

78 Department of CSE, NSCET, Theni

Page 79: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Extreme Programming (XP)

unit test

continuous integration

acceptance testing

user stories

values

acceptance test criteria

iteration plan

simple design

CRC cards

spike solutions

prototypes

refactoring

pair programming

Release

software increment

project velocity computed

79 Department of CSE, NSCET, Theni

Page 80: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

The XP Debate Requirements volatility: customer is an active member of XP team, changes to requirements are requested informally and frequently.

Conflicting customer needs: different customers' needs need to be assimilated. Different vision or beyond their authority.

Requirements are expressed informally: Use stories and acceptance tests are the only explicit manifestation of requirements. Formal models may avoid inconsistencies and errors before the system is built. Proponents said changing nature makes such models obsolete as soon as they are developed.

Lack of formal design: XP deemphasizes the need for architectural design. Complex systems need overall structure to exhibit quality and maintainability. Proponents said incremental nature limits complexity as simplicity is a core value.

80 Department of CSE, NSCET, Theni

Page 81: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Adaptive Software Development (ASD) Originally proposed by Jim Highsmith (2000) focusing on human collaboration and team self-organization as a technique to build complex software and system.

ASD — distinguishing features Mission-driven planning

Component-based focus

Uses “time-boxing” (See Chapter 24)

Explicit consideration of risks

Emphasizes collaboration for requirements gathering

Emphasizes “learning” throughout the process

81 Department of CSE, NSCET, Theni

Page 82: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Three Phases of ASD

1. Speculation: project is initiated and adaptive cycle planning is conducted. Adaptive cycle planning uses project initiation information- the customer’s mission statement, project constraints (e.g. delivery date), and basic requirements to define the set of release cycles (increments) that will be required for the project. Based on the information obtained at the completion of the first cycle, the plan is reviewed and adjusted so that planned work better fits the reality.

82 Department of CSE, NSCET, Theni

Page 83: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Three Phases of ASD 2. Collaborations are used to multiply their talent and creative output beyond absolute number (1+1>2). It encompasses communication and teamwork, but it also emphasizes individualism, because individual creativity plays an important role in collaborative thinking.

It is a matter of trust. 1) criticize without animosity, 2) assist without resentments, 3) work as hard as or harder than they do. 4) have the skill set to contribute to the work at hand, 5) communicate problems or concerns in a way that leas to effective action.

3. Learning: As members of ASD team begin to develop the components, the emphasis is on “learning”. Highsmith argues that software developers often overestimate their own understanding of the technology, the process, and the project and that learning will help them to improve their level of real understanding. Three ways: focus groups, technical reviews and project postmortems.

83 Department of CSE, NSCET, Theni

Page 84: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Adaptive Software Development

adaptive cycle planning

uses mission statement

project constraints

basic requirements

time-boxed release

plan

Requirements gathering

JAD

mini-specs

components

implemented/tested focus

groups for feedback formal

technical reviews

postmortems

software increment

adjustments for subsequent cycles

Release

84 Department of CSE, NSCET, Theni

Page 85: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Dynamic Systems Development Method

• Active user involvement is imperative.

• DSDM teams must be empowered to make decisions.

• The focus is on frequent delivery of products.

• Fitness for business purpose is the essential criterion for acceptance of deliverables.

• Iterative and incremental development is necessary to converge on an accurate business solution.

• All changes during development are reversible.

• Requirements are baselined at a high level

• Testing is integrated throughout the life-cycle.

85 Department of CSE, NSCET, Theni

Page 86: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Dynamic Systems Development Method

DSDM Life Cycle (with permission of the DSDM consortium)

86 Department of CSE, NSCET, Theni

Page 87: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to

Scrum A software development method Originally proposed by Schwaber and Beedle (an activity occurs during a rugby match) in early 1990.

Scrum—distinguishing features

Testing and documentation are on-going as the product is constructed Development work is partitioned into “packets”

Work units occurs in “sprints” and is derived from a “b acklog” of existing changing prioritized requirements

Changes are not introduced in sprints (short term but stable) but in backlog.

Meetings are very short (15 minutes daily) and sometimes conducted without chairs ( what did you do since last meeting? What obstacles are you encountering? What do you plan to accomplish by next meeting?)

“demos” are delivered to the customer with the time-box allocated. May not contain all functionalities. So customers can evaluate and give feedbacks.

87 Department of CSE, NSCET, Theni

Page 88: NSCET E-LEARNING PRESENTATION NOTES/unit 1/CS8494_SE.pdf · o software must be adapted to meet the needs of new computing environments or technology. o software must be enhanced to