Ch. 31 Software Engineering Principles CSC 3910 Software Engineering Time: 1:30 to 2:20Meeting Days: MWFLocation: Oxendine 1256 Textbook: Fundamentals.

Slides:



Advertisements
Similar presentations
Software Engineering Principles
Advertisements

Software Design Fundamentals
Ch:8 Design Concepts S.W Design should have following quality attribute: Functionality Usability Reliability Performance Supportability (extensibility,
1 Software Processes A Software process is a set of activities and associated results which lead to the production of a software product. Activities Common.
Object-Oriented Software Development CS 3331 Fall 2009.
The software process A software process is a set of activities and associated results which lead to the production of a software product. This may involve.
Chapter 2 – Software Processes
ISNE101 Dr. Ken Cosh. Recap  We’ve been talking about Software…  Application vs System Software  Programming Languages  Vs Natural Languages  Syntax,
Introduction to Software Engineering Lecture 4 André van der Hoek.
© Janice Regan, CMPT 102, Sept CMPT 102 Introduction to Scientific Computer Programming The software development method algorithms.
Ch3: Software Engineering Principles 1 What is a principle?  Definition:  Goals of accounting principles:  Goals of software engineering principles?
Architectural Design Principles. Outline  Architectural level of design The design of the system in terms of components and connectors and their arrangements.
9 1 Chapter 9 Database Design Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
© 2006 Pearson Addison-Wesley. All rights reserved2-1 Chapter 2 Principles of Programming & Software Engineering.
Software Architecture Quality. Outline Importance of assessing software architecture Better predict the quality of the system to be built How to improve.
Chapter 3 Software Processes.
Basic Concepts The Unified Modeling Language (UML) SYSC System Analysis and Design.
UML Unified Markup Language Ziya Karakaya Atılım University, Computer Engineering
Introduction to RUP Spring Sharif Univ. of Tech.2 Outlines What is RUP? RUP Phases –Inception –Elaboration –Construction –Transition.
CLEANROOM SOFTWARE ENGINEERING.
Design Patterns OOD. Course topics Design Principles UML –Class Diagrams –Sequence Diagrams Design Patterns C#,.NET (all the course examples) Design Principles.
GENERAL CONCEPTS OF OOPS INTRODUCTION With rapidly changing world and highly competitive and versatile nature of industry, the operations are becoming.
1/19 Component Design On-demand Learning Series Software Engineering of Web Application - Principles of Good Component Design Hunan University, Software.
ICS 52: Introduction to Software Engineering Lecture Notes for Summer Quarter, 2003 Michele Rousseau Topic 3 Partially based on lecture notes written by.
Ch 031 Software Engineering Principles. Ch 032 Outline Principles form the basis of methods, techniques, methodologies and tools Seven important principles.
Software Engineering Principles Ch. 31. Outline Principles form the basis of methods, techniques, methodologies and tools Seven important principles that.
CSE 303 – Software Design and Architecture
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Processes.
©Ian Sommerville 2000, Mejia-Alvarez 2009 Slide 1 Software Processes l Coherent sets of activities for specifying, designing, implementing and testing.
Topic (1)Software Engineering (601321)1 Introduction Complex and large SW. SW crises Expensive HW. Custom SW. Batch execution.
Software Processes lecture 8. Topics covered Software process models Process iteration Process activities The Rational Unified Process Computer-aided.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 3 Slide 1 Software Processes l Coherent sets of activities for specifying, designing,
COMP 354 Software Engineering I Section BB Summer 2009 Dr Greg Butler
University of Palestine software engineering department Testing of Software Systems Testing throughout the software life cycle instructor: Tasneem Darwish.
SOFTWARE DESIGN.
Overview of Formal Methods. Topics Introduction and terminology FM and Software Engineering Applications of FM Propositional and Predicate Logic Program.
Design engineering Vilnius The goal of design engineering is to produce a model that exhibits: firmness – a program should not have bugs that inhibit.
Software Engineering Principles Principles form the basis of methods, techniques, methodologies and tools Principles form the basis of methods, techniques,
1 Systems Analysis and Design in a Changing World, Thursday, January 18, 2007.
An Introduction to Software Engineering. Communication Systems.
Design Concepts and Principles Instructor: Dr. Jerry Gao.
Notes of Rational Related cyt. 2 Outline 3 Capturing business requirements using use cases Practical principles  Find the right boundaries for your.
UHD::3320::CH121 DESIGN PHASE Chapter 12. UHD::3320::CH122 Design Phase Two Aspects –Actions which operate on data –Data on which actions operate Two.
Software Engineering Principles. SE Principles Principles are statements describing desirable properties of the product and process.
Cmpe 589 Spring 2006 Lecture 2. Software Engineering Definition –A strategy for producing high quality software.
1 CSCD 326 Data Structures I Software Design. 2 The Software Life Cycle 1. Specification 2. Design 3. Risk Analysis 4. Verification 5. Coding 6. Testing.
Chapter 2 – Software Processes Lecture 1 Chapter 2 Software Processes1.
Data Structures Using C++ 2E
© 2006 Pearson Addison-Wesley. All rights reserved2-1 Chapter 2 Principles of Programming & Software Engineering.
© 2006 Pearson Addison-Wesley. All rights reserved 2-1 Chapter 2 Principles of Programming & Software Engineering.
CSE 303 – Software Design and Architecture
Topic 4 - Database Design Unit 1 – Database Analysis and Design Advanced Higher Information Systems St Kentigern’s Academy.
Review of Parnas’ Criteria for Decomposing Systems into Modules Zheng Wang, Yuan Zhang Michigan State University 04/19/2002.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 1 Software Processes.
Software Development Process CS 360 Lecture 3. Software Process The software process is a structured set of activities required to develop a software.
Lectures 2 & 3: Software Process Models Neelam Gupta.
Design CS 470 – Software Engineering I Sheldon X. Liang, PH.D.
Chapter 10 Software quality. This chapter discusses n Some important properties we want our system to have, specifically correctness and maintainability.
Basic Characteristics of Object-Oriented Systems
© Chinese University, CSE Dept. Software Engineering / Topic 3: Software Engineering Principles Your Name: _____________________ Computer Science.
DESIGN PROCESS AND CONCEPTS. Design process s/w design is an iterative process through which requirements are translated into a “blueprint” for constructing.
Software Design and Development Development Methodoligies Computing Science.
Advanced Computer Systems
The Development Process of Web Applications
Software Processes (a)
Rapid Application Development Model
Object-Oriented Analysis
Chapter 1 Introduction(1.1)
Presentation transcript:

Ch. 31 Software Engineering Principles CSC 3910 Software Engineering Time: 1:30 to 2:20Meeting Days: MWFLocation: Oxendine 1256 Textbook: Fundamentals of Software Engineering, Author: Carlo Ghezzi, et al, 2003, Pearson Spring 2011

Ch. 32 Outline Principles form the basis of methods, techniques, methodologies and tools Seven important principles that may be used in all phases of software development Modularity is the cornerstone principle supporting software design Case studies

Ch. 33 Application of principles Principles apply to process and product Principles become practice through methods and techniques –often methods and techniques are packaged in a methodology –methodologies can be enforced by tools

Ch. 34 A visual representation

Ch. 35 Key principles Rigor and formality Separation of concerns Modularity Abstraction Anticipation of change Generality Incrementality

Ch. 36 Rigor and formality Rigor is precision and exactness Software engineering is a creative design activity, BUT It must be practiced systematically Rigor is a necessary complement to creativity that increases our confidence in our developments Formality is rigor at the highest degree –software process driven and evaluated by mathematical laws Rigor and formality Separation of concerns Modularity Abstraction Anticipation of change Generality Incrementality

Ch. 37 Examples: product Mathematical (formal) analysis of program correctness Systematic (rigorous) test data derivation

Ch. 38 Example: process Rigorous documentation of development steps helps project management and assessment of timeliness

Ch. 39 Applying Rigor and Formality Requirements –Mostly rigor, but formality will help in programming phase Programming –Traditional place where formality is applied Software process Benefits maintainability, reusability, portability, understandability, and interoperability

Ch. 310 Separation of concerns To dominate complexity, separate the issues to concentrate on one at a time "Divide & conquer" (divide et impera) Supports parallelization of efforts and separation of responsibilities Rigor and formality Separation of concerns Modularity Abstraction Anticipation of change Generality Incrementality

Ch. 311 Example: process Go through phases one after the other (as in waterfall) –Does separation of concerns by separating activities with respect to time

Ch. 312 Example: product Keep product requirements separate –functionality –performance –user interface and usability

Ch. 313 Types of Separations Time –Life cycle models Qualities Views –Flow of activity vs flow of control Parts –See modulairty Problem Domain from Implementation Domain

Ch. 314 Modularity A complex system may be divided into simpler pieces called modules A system that is composed of modules is called modular Supports application of separation of concerns –when dealing with a module we can ignore details of other modules Rigor and formality Separation of concerns Modularity Abstraction Anticipation of change Generality Incrementality

Ch. 315 Cohesion and coupling Each module should be highly cohesive –module understandable as a meaningful unit –Components of a module are closely related to one another Modules should exhibit low coupling –modules have low interactions with others –understandable separately

Ch. 316 A visual representation high coupling high cohesion and low coupling

Ch. 317 Abstraction Identify the important aspects of a phenomenon and ignore its details Special case of separation of concerns The type of abstraction to apply depends on purpose Example : the user interface of a watch (its buttons) abstracts from the watch's internals for the purpose of setting time; other abstractions needed to support repair Rigor and formality Separation of concerns Modularity Abstraction Anticipation of change Generality Incrementality

Ch. 318 Abstraction ignores details Example: equations describing complex circuit (e.g., amplifier) allows designer to reason about signal amplification Equations may approximate description, ignoring details that yield negligible effects (e.g., connectors assumed to be ideal)

Ch. 319 Abstraction yields models For example, when requirements are analyzed we produce a model of the proposed application The model can be a formal or semiformal description It is then possible to reason about the system by reasoning about the model

Ch. 320 An example Programming language semantics described through an abstract machine that ignores details of the real machines used for implementation –abstraction ignores details such as precision of number representation or addressing mechanisms

Ch. 321 Abstraction in process When we do cost estimation we only take some key factors into account We apply similarity with previous systems, ignoring detail differences

Ch. 322 Anticipation of change Ability to support software evolution requires anticipating potential future changes It is the basis for software evolvability Example: set up a configuration management environment for the project (as we will discuss) Rigor and formality Separation of concerns Modularity Abstraction Anticipation of change Generality Incrementality

Ch. 323 Generality While solving a problem, try to discover if it is an instance of a more general problem whose solution can be reused in other cases Carefully balance generality against performance and cost Sometimes a general problem is easier to solve than a special case Rigor and formality Separation of concerns Modularity Abstraction Anticipation of change Generality Incrementality

Ch. 324 Incrementality Process proceeds in a stepwise fashion (increments) Examples (process) –deliver subsets of a system early to get early feedback from expected users, then add new features incrementally –deal first with functionality, then turn to performance –deliver a first prototype and then incrementally add effort to turn prototype into product Rigor and formality Separation of concerns Modularity Abstraction Anticipation of change Generality Incrementally

Ch. 325

Ch. 326 Case study: compiler Compiler construction is an area where systematic (formal) design methods have been developed –e.g., BNF for formal description of language syntax

Ch. 327 Separation of concerns example When designing optimal register allocation algorithms (runtime efficiency) no need to worry about runtime diagnostic messages (user friendliness)

Ch. 328 Modularity Compilation process decomposed into phases –Lexical analysis –Syntax analysis (parsing) –Code generation Phases can be associated with modules

Ch. 329 Representation of modular structure boxes represent modules directed lines represent interfaces

Ch. 330 Module decomposition may be iterated further modularization of code-generation module

Ch. 331 Abstraction Applied in many cases –abstract syntax to neglect syntactic details such as begin…end vs. {…} to bracket statement sequences –intermediate machine code (e.g., Java Bytecode) for code portability

Ch. 332 Anticipation of change Consider possible changes of –source language (due to standardization committees) –target processor –I/O devices

Ch. 333 Generality Parameterize with respect to target machine (by defining intermediate code) Develop compiler generating tools (compiler compilers) instead of just one compiler

Ch. 334 Incrementality Incremental development –deliver first a kernel version for a subset of the source language, then increasingly larger subsets –deliver compiler with little or no diagnostics/optimizations, then add diagnostics/optimizations

Ch. 335 Case study (system engineering): elevator system In many cases, the "software engineering" phase starts after understanding and analyzing the "systems engineering” issues The elevator case study illustrates the point

Ch. 336 Rigor&formality (1) Quite relevant: it is a safety critical system – Define requirements must be able to carry up to 400 Kg. (safety alarm and no operation if overloaded) emergency brakes must be able to stop elevator within 1 m. and 2 sec. in case of cable failures –Later, verify their fulfillment

Ch. 337 Separation of concerns Try to separate –safety –performance –usability (e.g, button illumination) –cost although some are strongly related –cost reduction by using cheap material can make solution unsafe

Ch. 338 A modular structure Elevator Control apparatus B3 B2 B1 buttons at floor i

Ch. 339 Module decomposition may be iterated

Ch. 340 Abstraction The modular view we provided does not specify the behavior of the mechanical and electrical components –they are abstracted away

Ch. 341 Anticipation of change, generality Make the project parametric wrt the number of elevators (and floor buttons)