• No results found

Introduction. Getting started with software engineering. Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 1 Slide 1

N/A
N/A
Protected

Academic year: 2021

Share "Introduction. Getting started with software engineering. Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 1 Slide 1"

Copied!
41
0
0

Loading.... (view fulltext now)

Full text

(1)

Introduction

λ

Getting started with software

(2)

Why ? – the Therac-25 Failure

• 1985-1987

• Therac-25 Radiation Treatment Machine • Made by Atomic Energy of Canada Ltd.

• Software Bug – Delivered Maximum Power

Regardless of Operator’s Setting

• Four Patients Killed • Huge Lawsuit

(3)

Why ? – Ariane 5 Explosion

June 4, 1996

Rocket destroyed 40 seconds after liftoff

$500 million loss

Problem mapping 64-bit float to 16-bit signed

New powerful engine caused “horizontal velocity” to exceed 32767.

(4)

Why ? – AT&T Network Failure

New York Washington Boston Toledo • 1990

• Error in AT&T Switch Recovery Routines takes down entire long distance network for 9 hours

• huge loss

• Error traced to incorrect use of C-language “break” statement

Case case_n : do_something;

(5)

Why ? – Patriot Missile Failure

• February 25, 1991

• Patriot Failed to track Scud Missile • 28 soldiers killed, 100 injured

• Problem of truncation to 24 bits

• Value of 1/10th is non-repeating in binary.

1/10th =

0.000110011001100110011001100110011001100…… binary

• Truncation to 24 bits causes error of about 0.000000095 decimal.

• In 100 hours, this added up to 500 meters

Correct path

T<14h

(6)

Objectives

λ To introduce software engineering and to explain

its importance

λ To set out the answers to key questions about

software engineering

λ To introduce ethical and professional issues and

to explain why they are of concern to software engineers

(7)

Software engineering

λ The economies of ALL developed nations are

dependent on software

λ More and more systems are software controlled λ Software engineering is concerned with theories,

methods and tools for professional software development

λ Software engineering expenditure represents a

significant fraction of GNP in all developed countries

(8)

Software costs

λ Software costs often dominate system costs. The

costs of software on a PC are often greater than the hardware cost

λ Software costs more to maintain than it does to

develop. For systems with a long life, maintenance costs may be several times development costs

(9)

cost-FAQs about software engineering

λ What is software?

λ What is software engineering?

λ What is the difference between software

engineering and computer science?

λ What is the difference between software

engineering and system engineering?

λ What is a software process?

(10)

FAQs about software engineering

λ What are the costs of software engineering? λ What are software engineering methods? λ What is CASE (Computer-Aided Software

Engineering)

λ What are the attributes of good software?

λ What are the key challenges facing software

(11)

What is software?

λ Computer programs and associated

documentation

λ Software products may be developed for a

particular customer or may be developed for a general market

λ Software products may be

• Generic - developed to be sold to a range of different customers • Bespoke (custom) - developed for a single customer according

(12)

What is software engineering?

λ Software engineering is an engineering discipline

which is concerned with all aspects of software production

λ Software engineers should adopt a systematic and

organised approach to their work and use

appropriate tools and techniques depending on the problem to be solved, the development

(13)

What is software engineering?

λ Term coined at NATO Science Committee

Conference in 1968

λ Engineering – established, scientifically sound

practices that the typical practitioner follows

λ Software – ALL associated documents to assist

with the development, operation, validation and maintenance

(14)

What is software engineering?

λ Software Engineering – the application of

scientific knowledge to the development and maintenance of software systems

λ Parnas: Multi-person construction of

multi-version software

λ Shaw: cost-effective solutions to practical

(15)

Goals of SE

λ Improve productivity λ Improve predictability λ Improve maintainability λ Improve quality

(16)

What is the difference between software

engineering and computer science?

λ Computer science is concerned with theory and

fundamentals; software engineering is concerned with the practicalities of developing and

delivering useful software

λ Computer science theories are currently

insufficient to act as a complete underpinning for software engineering

(17)

What is the difference between software

engineering and system engineering?

λ System engineering is concerned with all aspects

of computer-based systems development including hardware, software and process

engineering. Software engineering is part of this process

λ System engineers are involved in system

specification, architectural design, integration and deployment

(18)

What is a software process?

λ A set of activities whose goal is the development

or evolution of software

λ Generic activities in all software processes are:

• Specification - what the system should do and its development constraints

• Development - production of the software system

• Validation - checking that the software is what the customer wants

(19)

Product stages

Requirements Arch/Design Deployment/ Maintenance Construction Measurement / Evaluation Doc Team work Mgmt Of Artifacts Evolution Products

(20)

Product, process stages

Requirements Arch/Design Construction Measurement / Evaluation Doc Team work Mgmt Of Artifacts Evolution Products Processes

(21)

What is a software process model?

λ A simplified representation of a software process,

presented from a specific perspective

λ Examples of process perspectives are

• Workflow perspective - sequence of activities • Data-flow perspective - information flow

• Role/action perspective - who does what

λ Generic process models

• Waterfall

• Evolutionary development • Formal transformation

(22)

Little-JIL notation

Interface badge Pre-requisite badge Step name Post-requisite badge Step bar Handlers badge Sequencing badge

(23)

Example process

Preorder Process Request Form Order Provide Service Assign Customer To Bundle Update Package Out:customer ID, service types

Out:order Out: bundle update

Receive Service Request ID Customer Update Assign Package To Bundle

(24)
(25)
(26)

What are the costs of software engineering?

λ Roughly 60% of costs are development costs,

40% are testing costs. For custom software,

evolution costs often exceed development costs

λ Costs vary depending on the type of system being

developed and the requirements of system attributes such as performance and system reliability

(27)

What are software engineering methods?

λ Structured approaches to software development

which include system models, notations, rules, design advice and process guidance

λ Model descriptions

• Descriptions of graphical models which should be produced

λ Rules

• Constraints applied to system models

λ Recommendations

(28)

What is CASE (Computer-Aided

Software Engineering)

λ Software systems which are intended to provide

automated support for software process activities. CASE systems are often used for method support

λ Upper-CASE

• Tools to support the early process activities of requirements and design

λ Lower-CASE

(29)

What are the attributes of good software?

λ The software should deliver the required

functionality and performance to the user and should be maintainable, dependable and usable

λ Maintainability

• Software must evolve to meet changing needs

λ Dependability

• Software must be trustworthy

λ Efficiency

(30)

What are the key challenges facing

software engineering?

λ Coping with legacy systems, coping with

increasing diversity and coping with demands for reduced delivery times

λ Legacy systems

• Old, valuable systems must be maintained and updated

λ Heterogeneity

• Systems are distributed and include a mix of hardware and software

(31)

Professional and ethical responsibility

λ Software engineering involves wider

responsibilities than simply the application of technical skills

λ Software engineers must behave in an honest and

ethically responsible way if they are to be respected as professionals

λ Ethical behaviour is more than simply upholding

(32)

Issues of professional responsibility

λ Confidentiality

• Engineers should normally respect the confidentiality of their employers or clients irrespective of whether or not a formal confidentiality agreement has been signed.

λ Competence

• Engineers should not misrepresent their level of competence. They should not knowingly accept work which is outwith their competence.

(33)

Issues of professional responsibility

λ Intellectual property rights

• Engineers should be aware of local laws governing the use of intellectual property such as patents, copyright, etc. They should be careful to ensure that the intellectual property of employers and clients is protected.

λ Computer misuse

• Software engineers should not use their technical skills to misuse other people’s computers. Computer misuse ranges from relatively trivial (game playing on an employer’s machine, say) to extremely serious (dissemination of viruses).

(34)

ACM/IEEE Code of Ethics

λ The professional societies in the US have

cooperated to produce a code of ethical practice.

λ Members of these organisations sign up to the

code of practice when they join.

λ The Code contains eight Principles related to the

behaviour of and decisions made by professional software engineers, including practitioners,

(35)

Code of ethics - preamble

λ Preamble

• The short version of the code summarizes aspirations at a high

level of the abstraction; the clauses that are included in the full version give examples and details of how these aspirations change the way we act as software engineering professionals. Without the aspirations, the details can become legalistic and tedious; without the details, the aspirations can become high sounding but empty; together, the aspirations and the details form a cohesive code.

• Software engineers shall commit themselves to making the

analysis, specification, design, development, testing and maintenance of software a beneficial and respected profession. In accordance with their commitment to the health, safety and

(36)

Code of ethics - principles

λ 1. PUBLIC

• Software engineers shall act consistently with the public interest.

λ 2. CLIENT AND EMPLOYER

• Software engineers shall act in a manner that is in the best interests of their client and employer consistent with the public interest.

(37)

Code of ethics - principles

λ JUDGMENT

• Software engineers shall maintain integrity and independence in their professional judgment.

λ 5. MANAGEMENT

• Software engineering managers and leaders shall

subscribe to and promote an ethical approach to the management of software development and maintenance.

λ 6. PROFESSION

• Software engineers shall advance the integrity and

(38)

Code of ethics - principles

λ 7. COLLEAGUES

• Software engineers shall be fair to and supportive of their colleagues.

λ 8. SELF

• Software engineers shall participate in lifelong learning regarding the practice of their profession and shall promote an ethical approach to the practice of the profession.

(39)

Ethical dilemmas

λ Disagreement in principle with the policies of

senior management

λ Your employer acts in an unethical way and

releases a safety-critical system without finishing the testing of the system

λ Participation in the development of military

(40)

Key points

λ Software engineering is an engineering discipline which is

concerned with all aspects of software production.

λ Software products consist of developed programs and

associated documentation. Essential product attributes are maintainability, dependability, efficiency and usability.

λ The software process consists of activities which are involved

in developing software products. Basic activities are software specification, development, validation and evolution.

λ Methods are organised ways of producing software. They include

(41)

Key points

λ CASE tools are software systems which are designed to

support routine activities in the software process such as editing design diagrams, checking diagram consistency and keeping track of program tests which have been run.

λ Software engineers have responsibilities to the engineering

profession and society. They should not simply be concerned with technical issues.

λ Professional societies publish codes of conduct which set out

References

Related documents

include database programming languages form include database programming languages, form generation tools and links to office applications. z A throw-away prototype is used

The Category Association Editor function within the repository plugin also allows for content exclusion from the search by pairing Moodle categories with Helix Media Library

[r]

● Legacy systems are not just application software but also include business processes, support. software

incorporating it without change into other systems (COTS reuse) or by developing application families.. l

©Ian Sommerville 1995 Software Engineering, 5th edition.. Chapter 21

Law firms and corporate legal departments arguing to bring more eDiscovery services in- house point to the evolution of more user-friendly software, the ability to maintain control of

l The requirements themselves are the descriptions of the system services and constraints that are generated during the requirements engineering process... What is