Module 1 Notes
Module 1 Notes
Module - I
INTRODUCTION:
Software Engineering is a framework for building software and is an engineering
approach to software development. Software programs can be developed without S/E
principles and methodologies, but they are indispensable if we want to achieve good
quality software in a cost-effective manner.
Engineering is the branch of science and technology concerned with the design,
building, and use of engines, machines, and structures. It is the application of science,
tools and methods to find cost effective solutions to simple and complex problems.
Software:
Software is Instructions + Data Structures + Documents
instructions (computer programs) that when executed provide desired function and
performance,
data structures that enable the programs to adequately manipulate information, and
documents that describe the operation and use of the programs.
Characteristics of software
Software is developed or engineered, but it is not manufactured in the classical sense.
Software does not wear out, but it deteriorates due to change.
The figure of failure curve is also called as
bathtub curve indicates that hardware
exhibits relatively high failure rates early in
its life; defects are corrected and the failures
rate drops to a steady state for some period
of time. Failure raises again as hardware
components suffer from cumulative affects of
environmental maladies (hardware wear
.out)
Software Engineering and Project Management (BCS501)
Software applications:
System software: This class of software manages and controls the internal operations
of a computer system. It is a group of programs, which is responsible for using computer
resources efficiently and effectively. For example, an operating system is a system software,
which controls the hardware, manages memory and multitasking functions, and acts as an
interface between application programs and the computer.
Real-time software: This class of software observes, analyses, and controls real world
events as they occur. Generally, a real-time system guarantees a response to an external
event within a specified period of time. An example of real-time software is the software
used for weather forecasting that collects and processes parameters like temperature and
humidity from the external environment to forecast the weather. Most of the defence
organizations all over the world use real-time software to control their military hardware.
Business software: This class of software is widely used in areas where management and
control of 𝑓inancial activities is of utmost importance. The fundamental component of a
business system comprises payroll, inventory, and accounting software that permit the
user to access relevant data from the database. These activities are usually performed with
the help of specialized business software that facilitates efficient framework in business
operations and in management decisions.
Engineering and scientific software: This class of software has emerged as a powerful tool
in the research and development of next generation technology. Applications such as
the study of celestial bodies, under-surface activities, and programming of an orbital path
for space shuttles are heavily dependent on engineering and scientific software. This
software is designed to perform precise calculations on complex numerical data that are
obtained during real-time environment.
Artificial intelligence (AI) software: This class of software is used where the problem-
solving technique is non-algorithmic in nature. The solutions of such problems are
generally non-agreeable to computation or straightforward analysis. Instead, these
problems require specific problem- solving strategies that include expert system, pattern
recognition, and game- playing techniques. In addition, they involve different kinds of
search techniques which include the use of heuristics. The role of artificial intelligence
software is to add certain degrees of intelligence to the mechanical hardware in order to
get the desired work done in an agile manner.
Software Engineering and Project Management (BCS501)
Embedded Software : This type of software is embedded into the hardware normally in
the Read-Only Memory (ROM) as a part of a large system and is used to support certain
functionality under control conditions.
Examples are software used in instrumentation and control applications like washing
machines, satellites, microwaves, etc.
Web-based software: This class of software acts as an interface between the user and
the Internet. Data on the Internet is in the form of text, audio, or video format, linked
with hyperlinks. Web browser is a software that retrieves web pages from the Internet.
The software incorporates executable instructions written in special scripting languages
such as CGI or ASP. Apart from providing navigation on the Web, this software also
supports additional features that are useful while surfing the Internet.
Personal computer (PC) software: This class of software is used for both of𝑓icial and
personal use. The personal computer software market has grown over in the last two
decades from normal text editor to word processor and from simple paintbrush to
advanced image-editing software. This software is used predominantly in almost every
field, whether it is database management system, financial accounting package, or
multimedia-based software. It has emerged as a versatile tool for routine applications.
Legacy Software
Legacy software is an older program that are developed decades ago. The quality of
legacy software is poor because it has inextensible design, convoluted code, poor and
nonexistent documentation, test casesand results that are not achieved.
As time passes legacy systems evolve due to following reasons:
o The software must be adapted to meet the needs of new computing environment or
technology.
o The software must be enhanced to implement new business requirements.
o The software must be extended to make it interoperable with more modern systems or
database
o The software must be rearchitected to make it viable within a network environment.
A Process Framework
Establishes the foundation for a complete software process.
Identifies a number of framework activities applicable to all software projects.
Include a set of umbrella activities that are applicable across the entire software process.
Process framework determines the
processes which are essential for
completing a complex software project.
This framework identifies certain activities,
known as framework activities, which are
applicable to all software projects regardless
of their type and complexity. Some of the
framework activities are listed below.
Communication: It involves
communication with the user so that the
requirements are easily understood.
Planning: It establishes a plan for
accomplishingthe project. It describes the schedule for the project, the technical tasks involved,
expected risks, and the required resources.
Modeling: It encompasses creation of models, which allow the developer and the user to
understand software requirements and the designs to achieve thoserequirements.
Construction: It combines generation of code with testing to uncover errors in the code.
Deployment: It implies that the final product (software) is delivered to the user. The user
evaluates the delivered product and provides feedback based on the evaluation.
In addition to framework activities, process framework also comprises a set of activities known as
umbrella activities, which are used throughout the software process. These activities are listed
below.
Software project tracking and control: It monitors the actual process so that management can
take necessary steps if the software project deviates from the plans laid down. It involves
tracking procedures and reviews to check whether the software project is according to user’s
requirements. A documented plan is used as a basis for tracking the software activities and
revising the plans.
Formal technical reviews: assesses software engineering work products to uncover and
remove errors before they are propagated to the next activity. It assesses the code,
products, and documents of software engineering practices to detect andremoveerrors.
Software quality assurance: Defines and conducts the activities required to ensure
software quality. It assures that the software is according to the requirements. In addition, it
is designed to evaluate the processes of developingand maintainingqualityof the software.
Reusability management: It determines the criteria for products’ reuse and establishes
mechanisms to achievereusablecomponents.
Software configuration management: It manages the changes made in the software
processes of the products throughout the life cycle of the software project. It controls changes
made to the configuration and maintains the integrity in the software development process.
Software Engineering and Project Management (BCS501)
Risk management: Assesses risks that may affect the outcome of the project or the quality
of the product. It identifies, analyses, evaluates, and eliminates the possibility of unfavourable
deviations from expected results, by following a systematic activity and then develops
strategies to manage them.
Measurement: Defines and collects process, project, and product measures that assist the
team in delivering software that meets stakeholders’ needs; can be used in conjunction
with all other framework and umbrella activities.
Work product preparation and production—encompasses the activities required to create work
products such as models, documents, logs, forms, and lists.
1. Understand the problem. It’s sometimes difficult to admit, but most of us suffer from
hubris when we’re presented with a problem.
o Who has a stake in the solution to the problem? That is, who are the stakeholders?
o What are the unknowns? What data, functions, and features are required to
properly solve the problem?
o Can the problem be compartmentalized? Is it possible to represent smaller
problems that may be easier to understand?
o Can the problem be represented graphically? Can an analysis model be created?
2. Plan the solution. Now you understand the problem (or so you think) and you can’t wait
to begin coding.
o Have you seen similar problems before? Are there patterns that are recognizable in
a potential solution? Is there existing software that implements the data, functions,
and features that are required?
o Has a similar problem been solved? If so, are elements of the solution reusable?
o Can subproblems be defined? If so, are solutions readily apparent for the
subproblems?
o Can you represent a solution in a manner that leads to effective implementation?
Can a design model be created?
3. Carry out the plan. The design you’ve created serves as a road map for the system you
want to build. There may be unexpected detours, and it’s possible that you’ll discover an
even better route as you go, but the “plan” will allow you to proceed without getting lost.
o Does the solution conform to the plan? Is source code traceable to the design
model?
Software Engineering and Project Management (BCS501)
o Is each component part of the solution provably correct? Have the design and code
been reviewed, or better, have correctness proofs been applied to the algorithm?
4. Examine the result. You can’t be sure that your solution is perfect, but you can be sure
that you’ve designed a sufficient number of tests to uncover as many errors as possible.
o Is it possible to test each component part of the solution? Has a reasonable testing
strategy been implemented?
o Does the solution produce results that conform to the data, functions, and features
that are required? Has the software been validated against all stakeholder
requirements? It shouldn’t surprise you that much of this approach is common
sense. In fact, it’s reasonable to state that a commonsense approach to software
engineering will never lead you astray.
General Principles
The dictionary defines the word principle as “an important underlying law or
assumption required in a system of thought.” David Hooker [Hoo96] has proposed
seven principles that focus on software engineering practice. They are reproduced in
the following paragraphs:
1) The First Principle: The Reason It All Exists
A software system exists for one reason: to provide value to its users. All decisions
should be made with this in mind. Before specifying a system requirement, before
noting a piece of system functionality, before determining the hardware platforms or
development processes, ask yourself questions such as: “Does this add real value to the
system?” If the answer is “no,” don’t do it. All other principles support this one.
2) The Second Principle: KISS (Keep It Simple, Stupid!)
Software design is not a haphazard process. There are many factors to consider in any
design effort. All design should be as simple as possible, but no simpler. This facilitates
having a more easily understood and easily maintained system. This is not to say that
features, even internal features, should be discarded in the name of simplicity. Indeed,
the more elegant designs are usually the more simple ones. Simple also does not mean
“quick and dirty.” In fact, it often takes a lot of thought and work over multiple iterations
to simplify. The payoff is software that is more maintainable and less error-prone.
3) The Third Principle: Maintain the Vision
A clear vision is essential to the success of a software project. Without one, a project
almost unfailingly ends up being “of two [or more] minds” about itself. Without
conceptual integrity, a system threatens to become a patchwork of incompatible
designs, held together by the wrong kind of screws. Compromising the architectural
vision of a software system weakens and will eventually break even the well-designed
systems. Having an empowered architect who can hold the vision and enforce
compliance helps ensure a very successful software project.
4) The Fourth Principle: What You Produce, Others Will Consume
Seldom is an industrial-strength software system constructed and used in a vacuum. In
some way or other, someone else will use, maintain, document, or otherwise depend
on being able to understand your system. So, always specify, design, and implement
knowing someone else will have to understand what you are doing. The audience for
Software Engineering and Project Management (BCS501)
any product of software development is potentially large. Specify with an eye to the
users. Design, keeping the implementers in mind. Code with concern for those that
must maintain and extend the system. Someone may have to debug the code you write,
and that makes them a user of your code.
5) The Fifth Principle: Be Open to the Future
A system with a long lifetime has more value. In today’s computing environments,
where specifications change on a moment’s notice and hardware platforms are
obsolete just a few months old, software lifetimes are typically measured in months
instead of years. However, true “industrial-strength” software systems must endure far
longer. To do this successfully, these systems must be ready to adapt to these and other
changes. Systems that do this successfully are those that have been designed this way
from the start. Never design yourself into a corner. Always ask “what if,” and prepare
for all possible answers by creating systems that solve the general problem, not just
the specific one. This could very possibly lead to the reuse of an entire system.
6) The Sixth Principle: Plan Ahead for Reuse
Reuse saves time and effort. Achieving a high level of reuse is arguably the hardest goal
to accomplish in developing a software system. The reuse of code and designs has been
proclaimed as a major benefit of using object-oriented technologies. However, the
return on this investment is not automatic. To leverage the reuse possibilities that
object-oriented [or conventional] programming provides requires forethought and
planning. There are many techniques to realize reuse at every level of the system
development process Planning ahead for reuse reduces the cost and increases the
value of both the reusable components and the systems into which they are
incorporated.
7) The Seventh principle: Think!
This last principle is probably the most overlooked. Placing clear, complete thought
before action almost always produces better results. When you think about something,
you are more likely to do it right. You also gain knowledge about how to do it right
again.
SOFTWARE MYTHS
Software myths—erroneous beliefs about software and the process that is used to build it
can be traced to the earliest days of computing. Myths have a number of attributes that make
them insidious. For instance, they appear to be reasonable statements of fact (sometimes
containing elements of truth), they have an intuitive feel, and they are often promulgated by
experienced practitioners who “know the score.”
a. Management myths. Managers with software responsibility, like managers in most
disciplines, are often under pressure to maintain budgets, keep schedules from slipping, and
improve quality. Like a drowning person who grasps at a straw, a software manager often
grasps at belief in a software myth, if that belief will lessen the pressure (even temporarily).
Myth: We already have a book that’s full of standards and procedures for building
software. Won’t that provide my people with everything they need to know?
Reality: The book of standards may very well exist, but is it used? Are software
Software Engineering and Project Management (BCS501)
PROCESS MODEL
A linear process flow executes each of the five framework activities in sequence,
beginning with communication and culminating with deployment (Figure a).
An iterative process flow repeats one or more of the activities before proceeding
to the next (Figure b).
Software Engineering and Project Management (BCS501)
Process Patterns
A process pattern describes a process-related problem that is encountered during
software engineering work, identifies the environment in which the problem has been
Software Engineering and Project Management (BCS501)
encountered, and suggests one or more proven solutions to the problem. Stated in more
general terms, a process pattern provides you with a template —a consistent method for
describing problem solutions within the context of the software process.
Patterns can be defined at any level of abstraction.
a pattern might be used to describe a problem (and solution) associated with a complete
process model (e.g., prototyping).
patterns can be used to describe a problem (and solution) associated with a framework
activity (e.g., planning) or an action within a framework activity (e.g., project
estimating).
Ambler has proposed a template for describing a process pattern:
Pattern Name. The pattern is given a meaningful name describing it within the context
of the software process (e.g., Technical Reviews).
Forces. The environment in which the pattern is encountered and the issues that make
the problem visible and may affect its solution.
Type. The pattern type is specified. Ambler suggests three types:
1. Stage pattern—defines a problem associated with a framework activity for the process. Since
a framework activity encompasses multiple actions and work tasks, a stage pattern
incorporates multiple task patterns (see the following) that are relevant to the stage
(framework activity). An example of a
stage pattern might be Establishing Communication. This pattern would incorporate the task
pattern Requirements Gathering and others.
2. Task pattern—defines a problem associated with a software engineering action or work task
and relevant to successful software engineering practice (e.g., Requirements Gathering is a
task pattern).
3. Phase pattern—define the sequence of framework activities that occurs within the process,
even when the overall flow of activities is iterative in nature. An example of a phase pattern
might be Spiral Model or Prototyping.
Initial context. Describes the conditions under which the pattern applies. Prior to the initiation
of the pattern:
i. What organizational or team-related activities have already occurred?
ii. What is the entry state for the process?
iii. What software engineering information or project information already
exists?
For example, the Planning pattern (a stage pattern) requires that
i. customers and software engineers have established a collaborative
communication;
ii. successful completion of a number of task patterns [specified] for the
Communication pattern has occurred; and
iii. the project scope, basic business requirements, and project constraints are
known.
Problem. The specific problem to be solved by the pattern.
Software Engineering and Project Management (BCS501)
Solution. Describes how to implement the pattern successfully. This section describes how the
initial state of the process (that exists before the pattern is implemented) is modified as a
consequence of the initiation of the pattern. It also describes how software engineering
information or project information that is available before the initiation of the pattern is
transformed as a consequence of the successful execution of the pattern.
Resulting Context. Describes the conditions that will result once the pattern has been
successfully implemented. Upon completion of the pattern:
I. What organizational or team-related activities must have occurred?
II. What is the exit state for the process?
III. What software engineering information or project information has
been developed?
Related Patterns. Provide a list of all process patterns that are directly related to this
one. This may be represented as a hierarchy or in some other diagrammatic form. For
example, the stage pattern Communication encompasses the task patterns: Project
Team, Collaborative Guidelines, Scope Isolation, Requirements Gathering,
Constraint Description, and Scenario Creation.
Known Uses and Examples. Indicate the specific instances in which the pattern is
applicable. For example, Communication is mandatory at the beginning of every
software project, is recommended throughout the software project, and is mandatory
once the deployment activity is under way.
Process patterns provide an effective mechanism for addressing problems associated
with any software process. The patterns enable you to develop a hierarchical process
description that begins at a high level of abstraction (a phase pattern). The description
is then refined into a set of stage patterns that describe framework activities and are
further refined in a hierarchical fashion into more detailed task patterns for each stage
pattern. Once process patterns have been developed, they can be reused for the
definition of process variants—that is, a customized process model can be defined by a
software team using the patterns as building blocks for the process model.
Software Engineering and Project Management (BCS501)
PROCESS MODELS
The waterfall model, sometimes called the classic life cycle, suggests a systematic, sequential
approach to software development that begins with customer specification of requirements and
progresses through planning, modeling, construction, and deployment, culminating in ongoing
support of the completed software (Figure 2.3).
The problems that are sometimes encountered when the waterfall model is applied are:
Software Engineering and Project Management (BCS501)
1. Real projects rarely follow the sequential flow that the model proposes. Although
the linear model can accommodate iteration, it does so indirectly. As a result,
changes can cause confusion as the project team proceeds.
2. It is often difficult for the customer to state all requirements explicitly. The
waterfall model requires this and has difficulty accommodating the natural
uncertainty that exist at the beginning of many projects.
3. The customer must have patience. A working version of the programs will not be
available until late in the project time-span. If a major blunder is undetected then
it can be disastrous until the program is reviewed.
figure 2.4 The V-model
A variation in the representation of the waterfall
model is called the V-model. Represented in Figure
2.4, the V-model depicts the relationship of quality
assurance actions to the actions associated with
communication, modeling, and early construction
activities. As a software team moves down the left
side of the V, basic problem requirements are refined
into progressively more detailed and technical
representations of the problem and its solution. Once
code has been generated, the team moves up the right
side of the V, essentially performing a series of tests
(quality assurance actions) that validate each of the
models created as the team moved down the left side.
In reality, there is no fundamental difference between the classic life cycle and the V-model. The
V-model provides a way of visualizing how verification and validation actions are applied to
earlier engineering work. The waterfall model is the oldest paradigm for software engineering.
However, criticism of this process model has caused even ardent supporters to question its
efficacy.
Today, software work is fast-paced and subject to a never-ending stream of changes (to features,
functions, and information content). The waterfall model is often inappropriate for such work.
However, it can serve as a useful process model in situations where requirements are fixed and
work is to proceed to completion in a linear manner.
Incremental Process Models
Context:
Incremental development is particularly useful when staffing is unavailable for a
complete implementation by the business deadline that has been established for the
project. Early increments can be implemented with fewer people. If the core product is
well received, additional staff can be added to implement the next increment. The
incremental model combines elements of linear and parallel process flows. Referring
to Figure 2.5, the incremental model applies linear sequences in a staggered fashion as
calendar time progresses. Each linear sequence produces deliverable “increments” of
the software.
Software Engineering and Project Management (BCS501)
When an incremental model is used, the first increment is often a core product. That
is, basic requirements are addressed but many supplementary features (some known,
others unknown) remain undelivered. The core product is used by the customer (or
undergoes detailed evaluation).
figure 2.5 The incremental model
The incremental process
model focuses on the
delivery of an operational
product with each
increment. Early
increments are stripped-
down versions of the final
product, but they do
provide capability that
serves the user and also
provide a platform for
evaluation by the user.
Incremental development
is particularly useful when:
staffing is unavailable for
a complete implementation by the business deadline that has been established for the
project. Early increments can be implemented with fewer people. If the core product is
well received, then additional staff (if required) can be added to implement the next
increment. increments can be planned to manage technical risks.
The first step in the prototype paradigm (Figure is communication. Meet with other
stakeholders to define the overall objectives for the software, identify whatever requirements are
known, and outline areas where further definition is mandatory. A prototyping iteration is
planned quickly, and modeling (in the form of a “quick design”) occurs. A quick design focuses
on a representation of those aspects of the software that will be visible to end users (e.g., human
interface layout or output display formats). The quick design leads to the construction of a
prototype. The prototype is deployed and evaluated by stakeholders, who provide feedback
that is used to further refine requirements.
Iteration occurs as the prototype is tuned to satisfy the needs of various stakeholders, while at
the same time enabling you to better understand what needs to be done. Ideally, the prototype
serves as a mechanism for identifying software requirements.
The prototype paradigm is popular with software engineers as well as stakeholders.
Developers can start working on anything right away, while users receive a sense of the real syst
em. However, the following factors make prototyping potentially problematic:
1. Stakeholders see what appears to be a working version of the software, unaware that the
prototype is held together haphazardly, unaware that in the rush to get it working you haven’t
considered overall software quality or long-term maintainability. When informed that the product
must be rebuilt so that high levels of quality can be maintained, stakeholders cry foul and demand
that “a few fixes” be applied to make the prototype a working product. Too often, software development
management relents.
2. As a software engineer, you often make implementation compromises in order to get a prototype
working quickly. An inappropriate operating system or programming language may be used
simply because it is available and known; an inefficient algorithm may be implemented simply to
demonstrate capability. After a time, you may become comfortable with these choices and forget
all the reasons why they were inappropriate. The less-than-ideal choice has now become an
integral part of the system
.The Spiral Model.
The spiral model, which was first put
forth by Barry Boehm [Boe88], is an
evolutionary software process model that
combines the waterfall model's regulated
and methodical features with the iterative
nature of prototyping. It offers the
possibility of quickly developing
progressively more comprehensive
software versions. The model is
described by Boehm [Boe01a] as follows:
The spiral development model is a risk-
driven process model generator that is
used to guide multi-stakeholder
concurrent engineering of software
FIGURE 2.7 A typical spiral mode intensive systems.
Software Engineering and Project Management (BCS501)
The component-based development model leads to software reuse, and reusability provides
software engineers with a number of measurable benefits.
The Formal Methods Model:
The formal methods model encompasses a set of activities that leads to formal
mathematical specification of computer software. Formal methods enable you to
specify, develop, and verify a computer-based system by applying a rigorous,
mathematical notation. A variation on this approach, called cleanroom software
engineering, is currently applied by some software development organizations.
When formal methods are used during design, they serve as a basis for program
verification and therefore enable you to discover and correct errors that might
otherwise go undetected.
Although not a mainstream approach, the formal methods model offers the promise of
defect-free software. Yet, concern about its applicability in a business environment has
been voiced:
• The development of formal models is currently quite time consuming and
expensive.
• Because few software developers have the necessary background to apply
formal methods, extensive training is required.
• It is difficult to use the models as a communication mechanism for technically
unsophisticated customers.
When concerns cut across multiple system functions, features, and information, they
are often referred to as crosscutting concerns. Aspectual requirements define those
crosscutting concerns that have an impact across the software architecture. Aspect-
oriented software development (AOSD), often referred to as aspect-oriented
programming (AOP), is a relatively new software engineering paradigm that provides
a process and methodological approach for defining, specifying, designing, and
constructing aspects.
AOCE uses a concept of horizontal slices through vertically decomposed software
components, called “aspects,” to characterize cross-cutting functional and non- functional
properties of components. Common, systemic aspects include user interfaces,
collaborative work, distribution, persistency, memory management, transaction
processing, security, integrity and so on.
MODULE-1
4. Define a software process and explain the generic software process framework?
a. Waterfall model
b. V model
c. Incremental model
d. Evolutionary models: prototyping model, spiral model, concurrent model