Docsity

Software Engineering: An Introduction to Principles and Fundamentals, Lecture notes of Software Engineering

Partial preview of the text

Download Software Engineering: An Introduction to Principles and Fundamentals and more Lecture notes Software Engineering in PDF only on Docsity!

Software Engineering-1, 371CSM-

Software Engineering 9th Ed, Sommerville, PEARSONISBN-10 : 0-13-705346-0.

Chapter 1 Introduction 1

King Khalid University College of Computer Science Department of Computer Science

Chapter 1- Introduction

Topics covered

 Professional software development

 Compare Civil Eng.  What is SE?  S/w cost  S/w product  Product Specification  FAQ

Chapter 1 Introduction 3

Topics covered

 Basics of SE

 Definitions  Importance of SE  SE Principles  S/w Process Activities  General issues  SE fundamentals

 Software engineering ethics

 Case studies

Chapter 1 Introduction 4

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 costs

 Software costs often dominate computer 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.

 Software engineering is concerned with cost-effective software development.

Software products

 Generic products

 Stand-alone systems that are marketed and sold to any customer who wishes to buy them.  Examples – PC software such as graphics programs, project management tools; CAD software; software for specific markets such as appointments systems for dentists.

 Customized products

 Software that is commissioned by a specific customer to meet their own needs.  Examples – embedded control systems, air traffic control software, traffic monitoring systems.

Chapter 1 Introduction 9

Product specification

 Generic products

 The specification of what the software should do is owned by the software developer and decisions on software change are made by the developer.

 Customized products

 The specification of what the software should do is owned by the customer for the software and they make decisions on software changes that are required.

Chapter 1 Introduction 10

Basics of Software engineering

 Software engineering is an engineering discipline that is concerned with all aspects of software production from the early stages of system specification through to maintaining the system after it has gone into use.

 Engineering discipline

 Using appropriate theories and methods to solve problems bearing in mind organizational and financial constraints.

 All aspects of software production

 Not just technical process of development. Also project management and the development of tools, methods etc. to support software production.

Chapter 1 Introduction 13

Importance of software engineering

 More and more, individuals and society rely on advanced software systems. We need to be able to produce reliable and trustworthy systems economically and quickly.

 It is usually cheaper, in the long run, to use software engineering methods and techniques for software systems rather than just write the programs as if it was a personal programming project. For most types of system, the majority of costs are the costs of changing the software after it has gone into use.

Chapter 1 Introduction 14

15

Software Engineering Principles

 There are a number of general principles underlying and driving all software engineering techniques  They aim at dealing with the inherent complexity of software and help achieve quality goals, e.g., reliability, evolvability  Rigor and formality  Separation of concerns  Modularity  Abstraction  Anticipation of change  Generality

Software Engineering Principles

16

Software Engineering Principles

 Rigor and Formality  Formality, the highest degree of rigor, require the software process to be driven by mathematical laws  No need to be always formal – tradeoff  Rigor: well-defined, repeatable, technically sound steps (based on method, technique)  Separation of Concerns  Decompose a complex problem into simpler problems  Concerns may be separated in time (e.g., life cycle phases), qualities, product views (e.g., UML views), product parts (subsystems, components)  However, many interdependencies among decisions in SE

Software Engineering Principles (cont’)

General issues that affect most software

 Heterogeneity

 Increasingly, systems are required to operate as distributed systems across networks that include different types of computer and mobile devices.

 Business and social change

 Business and society are changing incredibly quickly as emerging economies develop and new technologies become available. They need to be able to change their existing software and to rapidly develop new software.

 Security and trust

 As software is intertwined with all aspects of our lives, it is essential that we can trust that software.

Chapter 1 Introduction 19

Software engineering fundamentals

 Some fundamental principles apply to all types of software system, irrespective of the development techniques used:  Systems should be developed using a managed and understood development process. Of course, different processes are used for different types of software.  Dependability and performance are important for all types of system.  Understanding and managing the software specification and requirements (what the software should do) are important.  Where appropriate, you should reuse software that has already been developed rather than write new software.

Chapter 1 Introduction 20

Software engineering ethics

 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 the law but involves following a set of principles that are morally correct.

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 out with their competence.

Ethical dilemma

 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 weapons systems or nuclear systems.

Case studies

 A personal insulin pump

 An embedded system in an insulin pump used by diabetics to maintain blood glucose control.

 A mental health case patient management system

 A system used to maintain records of people receiving care for mental health problems.

 A wilderness weather station

 A data collection system that collects data about weather conditions in remote areas.

Chapter 1 Introduction 26

A patient information system for mental health care

 A patient information system to support mental health care is a medical information system that maintains information about patients suffering from mental health problems and the treatments that they have received.

 Most mental health patients do not require dedicated hospital treatment but need to attend specialist clinics regularly where they can meet a doctor who has detailed knowledge of their problems.

 To make it easier for patients to attend, these clinics are not just run in hospitals. They may also be held in local medical practices or community centres.

Chapter 1 Introduction 27

MHC-PMS

 The MHC-PMS (Mental Health Care-Patient Management System) is an information system that is intended for use in clinics.

 It makes use of a centralized database of patient information but has also been designed to run on a PC, so that it may be accessed and used from sites that do not have secure network connectivity.

 When the local systems have secure network access, they use patient information in the database but they can download and use local copies of patient records when they are disconnected.

Chapter 1 Introduction 28

MHC-PMS key features

 Individual care management

 Clinicians can create records for patients, edit the information in the system, view patient history, etc. The system supports data summaries so that doctors can quickly learn about the key problems and treatments that have been prescribed.

 Patient monitoring

 The system monitors the records of patients that are involved in treatment and issues warnings if possible problems are detected.

 Administrative reporting

 The system generates monthly management reports showing the number of patients treated at each clinic, the number of patients who have entered and left the care system, number of patients sectioned, the drugs prescribed and their costs, etc. Chapter 1 Introduction 31

MHC-PMS concerns

 Privacy

 It is essential that patient information is confidential and is never disclosed to anyone apart from authorised medical staff and the patient themselves.

 Safety

 Some mental illnesses cause patients to become suicidal or a danger to other people. Wherever possible, the system should warn medical staff about potentially suicidal or dangerous patients.  The system must be available when needed otherwise safety may be compromised and it may be impossible to prescribe the correct medication to patients.

Chapter 1 Introduction 32