Docsity

Software Engineering Notes: Waterfall, Spiral, Agile & XP Explained, Study notes of Software Engineering

Toggle sidebar
bg1
UNIT I
Introduction to
Software Engineering
Study notes
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Software Engineering Notes: Waterfall, Spiral, Agile & XP Explained and more Study notes Software Engineering in PDF only on Docsity!

UNIT I

Introduction to

Software Engineering

Study notes

Contents

    1. What is Software Engineering?
    1. The Software Process
    1. Software Engineering Practice
    1. Software Myths
    1. A Generic Process Model
    1. Process Assessment and Improvement
    1. Prescriptive Process Models
    1. Specialized Process Models
    1. Personal and Team Process Models
    1. Agile Process Models
    1. Extreme Programming (XP)
    1. Quick Revision

Failure curves for software Hardware fails from physical wear. Software has no wear, but every change can introduce new defects, so the failure rate never returns to the ideal level. That is deterioration.

1.2 Application domains

DOMAIN DESCRIPTION

System software Programs written to service other programs: compilers, editors, file utilities, operating-system components, drivers, networking and telecom software.

Application software Stand-alone programs that solve a specific business need and support business operations or decision-making.

Engineering / scientific "Number-crunching" algorithms, e.g. CAD and system simulation; increasingly real-time.

Embedded software Resides inside a product or system and controls features and functions for the end user and the system.

Product-line software Provides a specific capability for many customers, from esoteric markets (inventory control) to mass markets.

Web applications Network-centric software; in the simplest form, linked hypertext files presenting information.

Artificial intelligence Non-numerical algorithms for complex problems: robotics, expert systems, pattern recognition.

1.3 New challenges

  • Open-world computing
  • Netsourcing
  • Open source
  • Legacy software : older, often poor-quality systems Legacy software
  • Developed decades ago and continually modified for changing business needs and platforms.
  • Costly to maintain and risky to evolve, yet often essential to core business functions.

Why legacy systems are changed

  • Adapt to new computing environments or technology.
  • Enhance to implement new business requirements.
  • Extend to interoperate with modern systems or databases.
  • Re-architect to work in a network environment.

CHAPTER 2

The Software Process

A process is a collection of activities, actions and tasks performed when some work product is to be created.

2.1 Five framework activities

ACTIVITY PURPOSE

Communication Communicate and collaborate with the customer and stakeholders to understand objectives and gather requirements.

Planning Creates a "map", the software project plan , describing the technical tasks to be conducted.

Modeling Create models to understand the requirements and the design that will meet them.

Construction Code generation (manual or automated) plus the testing needed to uncover errors.

Deployment Software, complete or as an increment, is delivered; the customer evaluates it and gives feedback.

2.2 Umbrella activities

Umbrella activities complement the framework activities and apply throughout the project.

ACTIVITY PURPOSE

Project tracking and control Assess progress against the plan and act to maintain the schedule.

Risk management Assess risks that may affect the outcome or quality.

Technical reviews Find and remove errors before they pass to the next activity.

Software quality assurance Define and conduct the activities that ensure quality.

Measurement Define and collect process, project and product measures.

Configuration management Manage the effects of change throughout the process.

Reusability management Set reuse criteria and mechanisms for reusable components.

Work-product preparation Create models, documents, logs, forms and lists.

Myth If we fall behind schedule, we can add more programmers and catch up.

Reality "Adding people to a late software project makes it later." Newcomers must be trained by existing staff. People can be added only in a planned, well-coordinated way.

Myth If I outsource the project, I can relax and let the firm build it.

Reality If an organization cannot manage and control projects internally, it will struggle with an outsourced one.

4.2 Customer myths

Myth A general statement of objectives is enough to begin; we can fill in the details later.

Reality Poor up-front definition is the major cause of failed software efforts. A formal, detailed description of the information domain, function, behavior, performance, interfaces, design constraints and validation criteria is essential, and comes only from thorough customer-developer communication.

Myth Requirements keep changing, but change is easy because software is flexible.

Reality Requirements do change, but the impact of change grows with time: the later the change, the higher the cost.

4.3 Practitioner myths

Myth Once we write the program and get it working, our job is done.

Reality "The sooner you begin writing code, the longer it will take you to get done."

Myth The only deliverable for a successful project is the working program.

Reality A working program is one part of a software configuration. Documentation is the foundation for engineering and guidance for support.

CHAPTER 5

A Generic Process Model

A generic process framework defines five framework activities (communication, planning, modeling, construction, deployment) and a set of umbrella activities (tracking and control, risk management, quality assurance, configuration management, technical reviews).

A software process framework

Process flows: (a) linear, (b) iterative, (c) evolutionary, (d) parallel

5.1 Defining a framework activity

Which actions are appropriate depends on the problem, the people doing the work, and the stakeholders sponsoring the project. Example actions for the communication activity:

  1. Make contact with the stakeholder by telephone.

CHAPTER 7

Prescriptive Process Models

7.1 Waterfall model

Also called the classic life cycle. A systematic, sequential approach beginning with customer specification of requirements and moving through planning, modeling, construction and deployment. It is the oldest paradigm in software engineering.

Communication > Planning > Modeling > Construction > Deployment

Use it when requirements are fixed and work proceeds to completion in a linear manner.

V-model (a variation)

  • Moving down the left side of the V, requirements are refined into more detailed technical representations.
  • After code generation, the team moves up the right side, running tests that validate each model created on the way down.

The V-model

7.2 Incremental model

  • Combines elements of linear and parallel process flows.
  • The first increment is a core product : basic requirements are met, many supplementary features are not.
  • The customer uses or evaluates it, and a plan for the next increment follows.
  • The plan modifies the core product and adds features; this repeats until the product is complete.
  • Each increment delivers an operational product.

The incremental model

7.3 Evolutionary model: prototyping

  • Begins with communication : define overall objectives, known requirements and areas needing more definition.
  • A quick iteration is planned and a quick design is made, focused on what end users will see (interface layout, output formats).
  • The design leads to a prototype , which stakeholders evaluate; their feedback refines the requirements.
  • The prototype identifies requirements and can serve as "the first system".

The prototyping paradigm

Comparison

MODEL KEY IDEA BEST WHEN

Waterfall Linear, sequential phases Requirements are fixed

Incremental Deliver working increments, core first Early delivery is needed

Prototyping Build a quick prototype, refine from feedback

Requirements are vague

Spiral Iteration with risk analysis each loop Large, high-risk systems

Concurrent Activities run in parallel as event-driven states

Overlapping work

CHAPTER 8

Specialized Process Models

8.1 Component-based development

  • Uses COTS (commercial off-the-shelf) components with targeted functionality and well-defined interfaces.
  • Has many characteristics of the spiral model: evolutionary and iterative, but built from prepackaged components.
  • Modeling and construction begin by identifying candidate components. Steps
  1. Research and evaluate available component-based products.
  2. Consider component integration issues.
  3. Design an architecture to accommodate the components.
  4. Integrate the components.
  5. Test comprehensively. The result is software reuse, which brings measurable benefits.

8.2 Formal methods model

Leads to a formal mathematical specification , letting you specify, develop and verify a system using rigorous notation. A variation is cleanroom software engineering. Drawbacks

  • Formal models are time-consuming and expensive to develop.
  • Few developers have the background, so extensive training is needed.
  • Hard to use as a communication tool with technically unsophisticated customers.

8.3 Aspect-oriented software development

  • A methodology for defining, specifying, designing and constructing aspects : mechanisms beyond subroutines and inheritance for localizing a crosscutting concern.
  • Common aspects: user interfaces, collaborative work, distribution, persistency, memory management, transaction processing, security, integrity.

CHAPTER 9

Personal and Team Process Models

Personal Software Process (PSP)

PSP defines five framework activities:

  1. Planning
  2. High-level design
  3. High-level design review
  4. Development
  5. Postmortem

Team Software Process (TSP) is listed in your syllabus, but your slides give no detail on it.

CHAPTER 10

Agile Process Models

10.1 Agility principles

The Agile Alliance defines these principles for those who want to achieve agility.

  1. Satisfy the customer through early and continuous delivery of valuable software.
  2. Welcome changing requirements , even late; agile processes harness change for the customer's advantage.
  3. Deliver working software frequently , from a couple of weeks to a couple of months, preferring the shorter timescale.
  4. Business people and developers work together daily.
  5. Build projects around motivated individuals ; give them support and trust them.
  6. Face-to-face conversation is the most effective way to convey information.
  7. Working software is the primary measure of progress.
  8. Promote sustainable development at a constant pace.
  9. Continuous attention to technical excellence and good design enhances agility.
  10. The best architectures, requirements and designs emerge from self-organizing teams.
  11. At regular intervals the team reflects on how to become more effective and adjusts.

10.2 Human factors

Agile development focuses on the talents and skills of individuals, molding the process to specific people and teams.

11.3 Industrial XP (IXP)

An organic evolution of XP with a customer-centric, test-driven spirit. It differs from XP in its greater inclusion of management, expanded role for customers, and upgraded technical practices.

PRACTICE MEANING

Readiness assessment

Checks that (1) a suitable development environment exists, (2) the right stakeholders are on the team, (3) a quality program supports continuous improvement, (4) the culture supports agile values, (5) the wider project community is populated appropriately.

Project community People must be well trained, adaptable and skilled, with the right temperament for a self-organizing team.

Project chartering Examines how the project complements, extends or replaces existing systems or processes.

Test-driven management

Needs measurable criteria to assess project state and progress.

Retrospectives A specialized technical review after each software increment is delivered.

Continuous learning Team members are encouraged to learn new methods that lead to higher quality.

Your slides end with the heading "The XP Debate" but give no details; check your textbook for it.

CHAPTER 12

Quick Revision

TOPIC RECALL

IEEE definition Systematic, disciplined, quantifiable approach to development, operation and maintenance.

Software vs hardware Software does not wear out, but deteriorates through change.

7 domains System, application, engineering/scientific, embedded, product-line, web, AI.

5 framework activities Communication, planning, modeling, construction, deployment.

Umbrella activities Tracking and control, risk, reviews, SQA, measurement, SCM, reusability, work-product preparation.

7 principles Reason it exists, KISS, vision, others consume, open to future, reuse, think.

Myth groups Management, customer, practitioner.

Process flows Linear, iterative, evolutionary, parallel.

Pattern types Stage, task, phase.

Assessment SCAMPI, CBA IPI, SPICE, ISO 9001:2000.

Prescriptive models Waterfall (and V-model), incremental, prototyping, spiral, concurrent.

TOPIC RECALL

Specialized models Component-based, formal methods, aspect-oriented.

PSP phases Planning, high-level design, design review, development, postmortem.

XP values Communication, simplicity, feedback, courage, respect.

IXP practices Readiness assessment, community, chartering, test-driven management, retrospectives, continuous learning.