An Introduction to Software Engineering. Software engineering is concerned with theories, methods and tools for professional software development Software.

Slides:



Advertisements
Similar presentations
©Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 1,3 Slide 1 Software Engineering Software Engineering.
Advertisements

Software Engineering Software Engineering is the science and art of building significant software systems that are: 1) on time 2) on budget 3) with acceptable.
SWE Introduction to Software Engineering
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 1 Slide 1 An Introduction to Software Engineering.
Software Engineering COMP 201
Software Engineering General Project Management Software Requirements
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 1 Slide 1 An Introduction to Software Engineering.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 1: Software and Software Engineering.
Modified from Sommerville’s slidesSoftware Engineering, 7th edition. Chapter 1 Slide 1 An Introduction to Software Engineering.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 1 Slide 1 An Introduction to Software Engineering.
SE 112 Slide 1 SE 112 l
An Introduction to Software Engineering.
An Introduction to Software Engineering
Lecture 1.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 1 Slide 1 System and Software Engineering.
Chapter 1- Introduction
Chapter 1- Introduction Lecture 1 Ready, fire, aim (the fast approach to software development). Ready, aim, aim, aim, aim... (the slow approach to software.
CSI315 Web Applications and Technology Overview of Systems Development (342)
Software Engineering Methodologies (Introduction)
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 1: Software and Software Engineering.
Objectives of the Lecture
SOFTWARE ENGINEERING Hoang Huu Hanh, Hue University hanh-at-hueuni.edu.vn.
UNIVERSITI TENAGA NASIONAL “Generates Professionals” CHAPTER 4 : Part 1 INTRODUCTION TO SOFTWARE DEVELOPMENT: SYSTEM ANALYSIS & DESIGN.
Software EngineeringIntroduction Slide 1 Software Engineering Mr. Ahmad Al-Ghoul.
1 An Introduction to Software Engineering. 2 Objectives l To introduce software engineering and to explain its importance l To set out the answers to.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 1 Slide 1 An Introduction to Software Engineering.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Processes.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 1 Slide 1 Software Engineering The first lecture.
Introduction to Software Engineering
2-Oct-15 1 Introduction to Software Engineering Softwares Importance of SWE Basic SWE Concepts ICS Software Engineering.
2-Oct-15 Introduction to SWE1 Introduction to Software Engineering Softwares Importance of SWE Basic SWE Concepts.
Department of CSE, MIT, Manipal SOFTWARE ENGINEERING By Prakash Kalingrao Aithal.
Topic (1)Software Engineering (601321)1 Introduction Complex and large SW. SW crises Expensive HW. Custom SW. Batch execution.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 1: Software and Software Engineering.
Software Engineering EKT 420 MOHAMED ELSHAIKH KKF 8A – room 4.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 1 Slide 1 An Introduction to Software Engineering.
Chapter 1: Introduction Omar Meqdadi SE 2730 Lecture 1 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 1: Software and Software Engineering.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 1: Software and Software Engineering.
©Ian Sommerville 2000Software Engineering, 6th edition. Chapter 1 Slide 1 Chapter 1 Introduction.
Lecture 1 The University of Lahore Software Engineering Saeed Akhtar
Software Engineering, COMP201 Slide 1 Introduction to software engineering Lecture 1.
1 Software Engineering Ian Sommerville th edition Instructor: Mrs. Eman ElAjrami University Of Palestine.
Introduction to Software Engineering. Why SE? Software crisis manifested itself in several ways [1]: ◦ Project running over-time. ◦ Project running over-budget.
An Introduction to Software Engineering
An Introduction to Software Engineering Support Lecture.
An Introduction to Software Engineering (Chapter 1 from the textbook)
Amit Singh Introduction to Software Engineering. What is Software? The product that software professionals build and then support over the long term.
1 Software Engineering, 8th edition. Chapter 1 Jan 28 th, 2009 Lecture # 1 Courtesy: ©Ian Sommerville 2006 An Introduction to Software Engineering.
An Introduction to Software Engineering. Objectives  To introduce software engineering and to explain its importance  To set out the answers to key.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
BIT SOFTWARE ENGINEERING APPLICATION DEVELOPMENT Referred Textbook: Software Engineering: A Practitioner’s Approach, 7/e, by Roger S. Pressman CHAPTER.
INTRODUCTION TO SOFTWARE DEVELOPMENT (SOFTWARE ENGINEERING-I)
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 1 Software Processes.
1 CSC 4700 Software Engineering John Lewis These slides are based on originals provided by Ian Sommerville.
Chapter 1- Introduction Lecture 1. Topics covered  Professional software development  What is meant by software engineering.  Software engineering.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 1: Software and Software Engineering.
©Ian Sommerville 2000Software Engineering, 6th edition. Chapter 1 Slide 1 Chapter 1 Introduction As modified by Randy Smith.
Software Engineering Introduction Slide 1 Software Engineering Introduction.
L ECTURE 1 Introduction Getting started with software engineering.
Software and Software Engineering By bscshelp.com software engineering 1.
An Introduction to Software Engineering
Chapter 1- Introduction
MISY 301 Mr.Mohammed Rafeeque.
Team Projects Form teams of 5 (± 1?) students
Chapter 1- Introduction
Software Engineering (LECT 1)
Software Engineering Software Engineering is the science and art of
CS385T Software Engineering Dr.Doaa Sami
Software Engineering Software Engineering is the science and art of
Presentation transcript:

An Introduction to Software Engineering

Software engineering is concerned with theories, methods and tools for professional software development Software engineering

Course Themes 1. Leadership of large software projects  Software as a product Clients and their needs Quality  Requirements and specification Usability Evolution  Project management Personnel management Economic, legal, and social factors

Course Themes 2. Large and very large systems  Software design Software architecture Object-oriented design  Dependable systems Reliability Verification

FAQs about software engineering l What is software? l What is software engineering? l What is the difference between software engineering and computer science? l What is the difference between software engineering and system engineering? l What is a software process? l What is a software process model?

FAQs about software engineering l What are the costs of software engineering? l What are software engineering methods? l What is CASE (Computer-Aided Software Engineering) l What are the attributes of good software? l What are the key challenges facing software engineering?

What is software? l Computer programs and associated documentation l Software products may be Generic - developed to be sold to a range of different customers Bespoke (custom) - developed for a single customer according to their specification Embedded Built into hardware Hard to change

Software products l Generic products Stand-alone systems that are marketed and sold to any customer who wishes to buy them. Examples – PC software such as editing, graphics programs, project management tools; CAD software; software for specific markets such as appointments systems for dentists. l 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. 8

Software Applications 1. System software: such as compilers, editors, file management 2. Application software: stand-alone programs for specific needs. 3. Engineering/scientific software: such as automotive stress analysis, molecular biology, orbital dynamics etc 4. Embedded software resides within a product or system. (key pad control of a microwave oven, digital function of dashboard display in a car) 5. Product-line software focus on a limited marketplace to address mass consumer market. (word processing, graphics, database management) 6. WebApps (Web applications) network centric software :remote database and business applications. 7. AI software Robotics, expert system, pattern recognition game playing

Software Engineering Software Engineering is the science and art of building significant software systems that are: 1) on time 2) on budget 3) with acceptable performance 4) with correct operation.

What is Software Engineering? Some Definitions and Issues “state of the art of developing quality software on time and within budget” l Trade-off between perfection and physical constraints SE has to deal with real-world issues l State of the art! Community decides on “best practice” + life-long education

What is Software Engineering? “multi-person construction of multi-version software” l Team-work Scale issue (“program well” is not enough) + Communication Issue l Successful software systems must evolve Change is the norm, not the exception

13 Why Study Software Engineering? l To acquire skills to develop large programs. Exponential growth in complexity and difficulty level with size. The ad hoc approach breaks down when size of software increases

What is the difference between software engineering and system engineering? l 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 l System engineers are involved in system specification, architectural design, integration and deployment

What is a software process? l A set of activities whose goal is the development or evolution of software l 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 Evolution - changing the software in response to changing demands

Engineering Process Model l Specification: Set out the requirements and constraints on the system. l Design: Produce a model of the system. l Manufacture: Build the system. l Test: Check the system meets the required specifications. l Install: Deliver the system to the customer and ensure it is operational. l Maintain: Repair faults in the system as they are discovered.

Component Diagram

Deployment Diagram

Collaboration Diagram

Statechart Diagram

Activity Diagram

What is a software process model? l A simplified representation of a software process, presented from a specific perspective l Examples of process perspectives are Workflow perspective - sequence of activities Data-flow perspective - information flow Role/action perspective - who does what Waterfall Evolutionary development Formal transformation Integration from reusable components

Generic Software Process Models l Waterfall Separate and distinct phases of specification and development l Evolutionary Specification and development are interleaved l Formal Transformation A mathematical system model is formally transformed to an implementation l Reuse-based The system is assembled from existing components

Waterfall Process Model

Evolutionary Process Model

Spiral Process Model

Software Quality... l Usability Users can learn it and fast and get their job done easily l Efficiency It doesn’t waste resources such as CPU time and memory l Reliability It does what it is required to do without failing l Maintainability It can be easily changed l Reusability Its parts can be used in other projects, so reprogramming is not needed

28 Emergence of Software Engineering l Early Computer Programming (1950s): Programs were being written in assembly language. Programs were limited to about a few hundreds of lines of assembly code.

Early Computer Programming (50s) l Every programmer developed his own style of writing programs: according to his intuition (exploratory programming).

 Software development style was still exploratory.  Typical program sizes were limited to a few thousands of lines of source code. High-Level Language Programming (Early 60s)

31 Control Flow-Based Design (late 60s) l Size and complexity of programs increased further: exploratory programming style proved to be insufficient. l Programmers found: very difficult to write cost-effective and correct programs.

Control Flow-Based Design (late 60s) l Programmers found: programs written by others very difficult to understand and maintain.

Control Flow-Based Design (late 60s) l Using flow charting technique: one can represent and design a program's control structure. Usually one understands a program: by mentally simulating the program's execution sequence.

Control Flow-Based Design (Late 60s) l It was found: GO TO ) JUMP ( statements makes control structure of a program messy GO TO statements alter the flow of control arbitrarily. The need to restrict use of GO TO statements was recognized.

Control Flow-Based Design (Late 60s) l But, soon it was conclusively proved: A program is called structured only three programming constructs are sufficient to express any programming logic: sequence (e.g. a=0;b=5;) selection ( e.g. if(c=true) k=5 else m=5;) iteration (e.g. while(k>0) k=j-k;)

Data Structure-Oriented Design (Early 70s) l Soon it was discovered: it is important to pay more attention to the design of data structures of a program than to the design of its control structure.

37 Data Flow-Oriented Design (Late 70s) l Data flow-oriented techniques advocate : the data items input to a system must first be identified, processing required on the data items to produce the required outputs should be determined.

Data Flow Model of a Car Assembly Unit Fit Engine Paint and Test Fit Wheels Fit Doors Chassis Store Door Store Wheel Store Engine Store Car Partly Assembled Car Assembled Car Chassis with Engine

Simple design tools State diagram

40 Object-Oriented Design (80s) l Object-oriented technique: an intuitively appealing design approach: natural objects (such as employees, pay-roll-register, etc.) occurring in a problem are first identified.

41 Object-Oriented Design (80s) l Relationships among objects: such as composition, reference, and inheritance are determined. l Each object essentially acts as a data hiding (or data abstraction) entity.

When software projects go wrong London Ambulance Service –1992, computerised ambulance despatch system fails Therac-25 –2 people died and several others exposed to dangerous levels of radiation because of software flaws in radiotherapy device OSIRIS –£5M University financial package –Expenditure to date more like £20-25M NPfIT? –NHS £12 billion IT project comp.risks is a great source of others...

Testing Testing cannot show the absence of defects, it can only show that software defects are present. 1. Testing is a process of executing a program with the intent of finding an error. 2. A good test case is one that has a high probability of finding an as yet undiscovered error. 3. A successful test is one that uncovers an as yet undiscovered error.

Testing Methods Black-box testing Knowing the specified function that a product has been designed to perform, tests can be conducted that demonstrate each function is fully operational. White-box or glass-box testing Knowing the internal workings of a product, tests can be conducted to ensure that "all the gears mesh". 1. independent paths at least once 2. logical decisions both true and false 3. loops 4. internal data structures

Design patterns l Programs regularly employ similar design solutions l Idea is to standardise the way these are implemented Code re-use Increased reliability Fewer errors, shorter development time l An array is special case of a container type Way of storing a collection of possibly ordered elements. List, stack, queue, double-ended list, etc l Templates in C++ offer a way of providing libraries to implement these standard containers

Future Experience What will you be doing one year from now? Ten years from now?

© Oscar Nierstrasz ESE — Introduction ESE 1.47 Course schedule WeekLesson 1 Introduction — 2 The Software Lifecycle 3 Project Management 4 Requirements Collection 5 Waterfall lifecycle model 6 Iterative model 7 Agile model 8 Modeling Objects and Classes 9 UML 10 Software Architecture 11 User Interface Design 12 Software Metrics 13 Software Quality Software Validation

Projects  Project teams, about 3 to 5 people.  Select your own project, any branch of software engineering  Real project for real client who intends to use the software in production.  Presentations: requirements design final

Client (a.k.a Customer)  The client provides resources and expects some product in return.  Client satisfaction is the primary measurement of success. Question: Who is the client for Microsoft Excel?