Docsity

Software Engineering Principles: Modularity, Separation of Concerns, and Incrementality, Slides of Software Engineering

Partial preview of the text

Download Software Engineering Principles: Modularity, Separation of Concerns, and Incrementality and more Slides Software Engineering in PDF only on Docsity!

Software Engineering

Lecture 08 - 09

Dr. Mohammad Jaudet, DEE

[email protected]

Pakistan Institute of Engineering and Applied Sciences

October, 2010

Outline of the Lecture 08 - 09 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

Methods & Techniques Methods and Techniques do not have sharp boundries Methods Methods are general guidelines that govern the execution of some activity Methods are rigorous, systematic and disciplined approaches Techniques Techniques are more technical and mechanical Techniques have restricted applicability Methods are followed and techniques are applied

A visual representation

Rigor and formality Software engineering is a creative design activity and has tendency to be neither precise nor accurate It must be practiced systematically Rigor is a necessary complement to creativity that increases our confidence in our developments Repeatedly produces reliable products Control the cost of products Increase confidence in product’s reliability

Rigor and formality ... Rigor is intuitive quality that can not be defined in rigorous way Formality is rigor at the highest degree software process to be driven and evaluated by mathematical laws Formality implies rigor but not otherwise There is no need to be always formal in design Rigorous documentation of development steps helps project management and assessment of timeliness More in Chapter 5 & Chapter 6

Separation of concerns ... Issues related to development process The development environment the organization and structure of teams Scheduling Control procedures Design strategies Error recovery mechanism Financial concerns

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

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

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

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

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)

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

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