Docsity

Software Engineering: Understanding the Complexities and Challenges, Slides of Software Engineering

Partial preview of the text

Download Software Engineering: Understanding the Complexities and Challenges and more Slides Software Engineering in PDF only on Docsity!

LECTURE 1: INTRODUCTION

Software Engineering

1 Why Software Engineering?

  • Software development is hard.
  • Important to distinguish “easy” systems (one developer, one user, experimental use only) from “hard” systems (multiple developers, multiple users, products).
  • Experience with “easy” systems is misleading. One-person techniques do not scale up.
  • Analogy with bridge building:

— over a stream = easy, one person job — over River Severn... The techniques don’t scale.

2 Goals of Software Development

  • Satisfy users requirements.
  • High reliability.
  • Low maintenance costs.
  • Delivery on time.
  • Low production costs.
  • High performance.
  • Ease of reuse.

Note importance of tradeoffs.

2.1 Satisfying User Requirements

  • Many programs simply don’t do what end users want.
  • Typical percentages for large-scale commissioned systems: 45% delivered but not used 27% paid for but not delivered 17% abandoned 6% used after changes 5% used as delivered
  • Users find it hard to articulate what they want.
  • Developers find it hard to understand what users say!

2.3 Low Maintenance Costs

  • Maintenance is what is done to software after it starts being used.
  • Maintenance may be: - corrective — fixing bugs (21%); - adaptive — altering software to fit changing software (25%); - perfective — to meet new requirements (50%); - preventative — to reduce further maintenance (4%).
  • Maintenance is expensive — much software is “finely balanced”, with apparently small changes having a major impact. (Imagine being a car mechanic, and having to figure out from scratch how the engine works every time you start work on a new car.)
  • Maintenance typically accounts for 65% of overall project costs.

2.4 Delivery on Time

  • Software projects are notorious for overrunning.
  • It is extraordinarily hard to reliably predict how much effort a software project will require, and when it will be completed.
  • The relationship between person months devoted and development time is almost never linear: - adding person months of effort to a project frequently has no effect; - adding person months of effort often makes the project slower.

2.6 High Performance

  • Systems that are specially tailored to work quickly are optimised.
  • Optimization can improve throughput (speed) and memory usage, but: - resource intensive; - results in systems tailored to a specific environment; - less comprehensible to developers; - less easy to change; - less easy to port to other environments.

2.7 Ease of Reuse

  • Goal of software reuse: use same software in different systems and software environments: - reduce development costs; - improve reliability.
  • Most software has two parts: - environment independent part — can be moved between environments quite easily (usually includes the “logic” of the system); - environment dependent part — cannot be moved easily (includes e.g., GUI, hardware controllers,... )

A clear separation between the 2 is crucial.

  • Requires designing for reuse.
  • Requirements analysis and definition. - The system’s services, constraints, and goals are established. - Requirements analysis means long consultations with the end-user to establish exactly what they want. - Requirements definition means stating what the user wants, in terms that are understandable by both end-users and system developers; relatively informal. - Requirements specification is a more formal statement which sets out proposed system services in detail. This document may act as contract between system procurer and developer. - Software specification is an abstract description of system structure & operation, intended to serve as the basis for the design stage. - Deliverables: requirements definition document, requirements specification document & software specification document.
  • System and software design. - Requirements are divided into those relating to hardware and those relating to software. - Software design then means representing the functions of each unit in a way that may be transformed into code. - Deliverables: unit and system designs.
  • System testing. - Individual programs & units are integrated (gradually!) and tested to ensure that system requirements have been met. - The system is then installed. - The system is then maintained. - Deliverables: implemented, tested system.

4 Other Development Models

  • Prototyping: - develop “quick and dirty” system quickly; - expose to user comment; - refine;

until adequate system developed. Particularly suitable where:

- detailed requirements not possible; - powerful development tools (e.g., GUI) available.

  • Formal transformation: - inolves use of mathematical methods for specification, development, verification; - despite several decades of effort, not usable without special skills; - used in certain applications (e.g., verification of DS1 controller).
  • The heterogeneity challenge. - Isolated software systems — once the norm — are now the exception. - Most commercial systems are now networked. - Implies that software systems must cleanly integrate with other different software systems, built by different organisations & teams using different hardware and software platforms.
  • The delivery challenge. - Software projects are notorious for being overdue and over budget. - The delivery challenge is about consistently being able to deliver systems on budget and on schedule. - As the complexity of systems that we develop increases, this challenge becomes harder.