is a mechanism to transform user requirements into some suitable
form, which helps the programmer in software coding and implementation.
Software Design
It deals with representing the client’s requirement, as described in SRS (Software
Requirement Specification) document, into a form, i.e., easily implementable using
programming language.
Software Design
6 Objectives of Software Design
Correctness
Completeness
Efficiency
Flexibility
Consistency
Maintainability
are concerned with providing means to handle the
complexity of the design process effectively. Effectively managing the complexity will
not only reduce the effort needed for design but can also reduce the scope of
introducing errors during design.
Software Design Principles
These are recommendations that help you write code that is clear, manageable, and
scalable. These principles give a foundation for developing software systems that are
both robust and responsive to change.
Software Design Principles
4 Software Design Principles
Problem Partitioning
Abstraction
Modularity
Top Down & Bottom up Strategy
For small problem, we can handle the entire problem at once but for the significant
problem, divide the problems and conquer the problem it means to divide the
problem into smaller pieces so that each piece can be captured separately.
Problem Partitioning
Problem Partitioning
6 Benefits of Problem Partitioning
A module is specified by the method it performs.
Functional Abstraction
is a tool that enables a designer to consider a component at an
abstract level without bothering about the internal details of the implementation.
Abstraction can be used for existing element as well as the component being
designed.
Abstraction
two common abstraction mechanisms:
Functional Abstraction
Data Abstraction
The details of the algorithm to accomplish the functions are not visible to the
user of the function.
Functional Abstraction
forms the basis for Function oriented design approaches.
Functional Abstraction
Details of the data elements are not visible to the users of data.
Data Abstraction
forms the basis for Object Oriented design approaches.
Data Abstraction
specifies to the division of software into separate modules which are
differently named and addressed and are integrated later on in to obtain the
completely functional software.
Modularity
It is the only property that allows a program to be intellectually manageable. Single
large programs are difficult to understand and read due to a large number of
reference variables, control paths, global variables, etc.
Modularity
Advantages of Modularity
Disadvantages of Modularity
is achieved by developing
functions that perform only one kind of task and do not excessively interact with other
modules. Independence is important because it makes implementation more accessible
and faster. The independent modules are easier to maintain, test, and reduce error
propagation and can be reused in other programs as well. Thus, functional
independence is a good design feature which ensures software quality.
Functional Independence:
It measures the relative function strength of a module.
Cohesion
It is measured using two criteria:
Cohesion:
Coupling:
It measures the relative interdependence among modules.
Coupling: