Software Engineering Tutorial
Software Engineering Tutorial
1
Let us understand what Software Engineering stands for. The term is made of two
words, software and engineering.
Engineering on the other hand, is all about developing products, using well-
defined, scientific principles and methods.
1
Software Engineering Tutorial
Operational
Transitional
Maintenance
Well-engineered and crafted software is expected to have the following
characteristics:
Operational
This tells us how well the software works in operations. It can be measured on:
Budget
Usability
Efficiency
Correctness
Functionality
Dependability
Security
Safety
Transitional
This aspect is important when the software is moved from one platform to
another:
Portability
Interoperability
Reusability
Adaptability
Maintenance
This aspect briefs about how well the software has the capabilities to maintain
itself in the ever-changing environment:
Modularity
Maintainability
Flexibility
Scalability
6
Software Engineering Tutorial
7
Software Engineering Tutorial
SDLC Activities
SDLC provides a series of steps to be followed to design and develop a software
product efficiently. SDLC framework includes the following steps:
Communication
This is the first step where the user initiates the request for a desired software
product. The user contacts the service provider and tries to negotiate the terms,
submits the request to the service providing organization in writing.
Requirement Gathering
This step onwards the software development team works to carry on the project.
The team holds discussions with various stakeholders from problem domain and
tries to bring out as much information as possible on their requirements. The
requirements are contemplated and segregated into user requirements, system
requirements and functional requirements. The requirements are collected using
a number of practices as given -
8
Software Engineering Tutorial
Feasibility Study
After requirement gathering, the team comes up with a rough plan of software
process. At this step the team analyzes if a software can be designed to fulfill all
requirements of the user, and if there is any possibility of software being no more
useful. It is also analyzed if the project is financially, practically, and
technologically feasible for the organization to take up. There are many algorithms
available, which help the developers to conclude the feasibility of a software
project.
System Analysis
At this step the developers decide a roadmap of their plan and try to bring up the
best software model suitable for the project. System analysis includes
understanding of software product limitations, learning system related problems
or changes to be done in existing systems beforehand, identifying and addressing
the impact of project on organization and personnel etc. The project team analyzes
the scope of the project and plans the schedule and resources accordingly.
Software Design
Next step is to bring down whole knowledge of requirements and analysis on the
desk and design the software product. The inputs from users and information
gathered in requirement gathering phase are the inputs of this step. The output
of this step comes in the form of two designs; logical design, and physical design.
Engineers produce meta-data and data dictionaries, logical diagrams, data-flow
diagrams, and in some cases pseudo codes.
Coding
This step is also known as programming phase. The implementation of software
design starts in terms of writing program code in the suitable programming
language and developing error-free executable programs efficiently.
Testing
An estimate says that 50% of whole software development process should be
tested. Errors may ruin the software from critical level to its own removal.
Software testing is done while coding by the developers and thorough testing is
conducted by testing experts at various levels of code such as module testing,
9
Software Engineering Tutorial
program testing, product testing, in-house testing, and testing the product at
users end. Early discovery of errors and their remedy is the key to reliable
software.
Integration
Software may need to be integrated with the libraries, databases, and other
program(s). This stage of SDLC is involved in the integration of software with
outer world entities.
Implementation
This means installing the software on user machines. At times, software needs
post-installation configurations at user end. Software is tested for portability and
adaptability and integration related issues are solved during implementation.
Waterfall Model
Waterfall model is the simplest model of software development paradigm. All the
phases of SDLC will function one after another in linear manner. That is, when the
first phase is finished then only the second phase will start and so on.
10
Software Engineering Tutorial
Software Creation
Software Project Management
A project is well-defined task, which is a collection of several operations done in
order to achieve a goal (for example, software development and delivery). A
Project can be characterized as:
Software Project
A Software Project is the complete procedure of software development from
requirement gathering to testing and maintenance, carried out according to the
execution methodologies, in a specified period of time to achieve intended
software product.
15
Software Engineering Tutorial
The image above shows triple constraints for software projects. It is an essential
part of software organization to deliver quality product, keeping the cost within
clients budget constrain and deliver the project as per scheduled. There are
several factors, both internal and external, which may impact this triple constrain
triangle. Any of the three factors can severely impact the other two.
Managing People
Act as project leader
Lesion with stakeholders
Managing human resources
Setting up reporting hierarchy etc.
16
Software Engineering Tutorial
Managing Project
Defining and setting up project scope
Managing project management activities
Monitoring progress and performance
Risk analysis at every phase
Take necessary step to avoid or come out of problems
Act as project spokesperson
Project Planning
Scope Management
Project Estimation
Project Planning
Software project planning is task, which is performed before the production of
software actually starts. It is there for the software production but involves no
concrete activity that has any direct connection with the software production;
rather it is a set of multiple processes, which facilitates software production.
Project planning may include the following:
Scope Management
It defines scope of the project; this includes all the activities, process need to be
done in order to make a deliverable software product. Scope management is
essential because it creates boundaries of the project by clearly defining what
would be done in the project and what would not be done. This makes project to
contain limited and quantifiable tasks, which can easily be documented and in turn
avoids cost and time overrun.
17
Software Engineering Tutorial
Project Estimation
For an effective management, accurate estimation of various measures is a must.
With the correct estimation, managers can manage and control the project more
efficiently and effectively.
Effort estimation
The manager estimates efforts in terms of personnel requirement and
man-hour required to produce the software. For effort estimation software
size should be known. This can either be derived by managers experience,
historical data of organization, or software size can be converted into
efforts by using some standard formulae.
Time estimation
Once size and efforts are estimated, the time required to produce the
software can be estimated. Efforts required is segregated into sub
categories as per the requirement specifications and interdependency of
various components of software. Software tasks are divided into smaller
tasks, activities or events by Work Breakthrough Structure (WBS). The
tasks are scheduled on day-to-day basis or in calendar months.
The sum of time required to complete all tasks in hours or days is the total
time invested to complete the project.
Cost estimation
18
Software Engineering Tutorial
Decomposition Technique
This technique assumes the software as a product of various compositions.
Putnam Model
19
Software Engineering Tutorial
Project Scheduling
Project Scheduling in a project refers to roadmap of all activities to be done with
specified order and within time slot allotted to each activity. Project managers
tend to define various tasks, and project milestones and then arrange them
keeping various factors in mind. They look for tasks like in critical path in the
schedule, which are necessary to complete in specific manner (because of task
interdependency) and strictly within the time allocated. Arrangement of tasks
which lies out of critical path are less likely to impact over all schedule of the
project.
Resource management
All elements used to develop a software product may be assumed as resource for
that project. This may include human resource, productive tools, and software
libraries.
The resources are available in limited quantity and stay in the organization as a
pool of assets. The shortage of resources hampers development of the project and
it can lag behind the schedule. Allocating extra resources increases development
cost in the end. It is therefore necessary to estimate and allocate adequate
resources for the project.
20
Software Engineering Tutorial
Experienced staff leaving the project and new staff coming in.
Change in organizational management.
Requirement change or misinterpreting requirement.
Under-estimation of required time and resources.
Technological changes, environmental changes, business competition.
Identification - Make note of all possible risks, which may occur in the
project.
Categorize - Categorize known risks into high, medium and low risk
intensity as per their possible impact on the project.
Monitor - Closely monitor the potential risks and their early symptoms.
Also monitor the effective steps taken to mitigate or avoid them.
21
Software Engineering Tutorial
Closure - At the end of each major event, end of a phase of SDLC or end
of the project itself, administrative closure is formally announced to update
every stakeholder by sending email, by distributing a hardcopy of document
or by other mean of effective communication.
22
Software Engineering Tutorial
Documentation Tools
Documentation in a software project starts prior to the software process, goes
throughout all phases of SDLC and after the completion of the project.
Documentation tools generate documents for technical users and end users.
Technical users are mostly in-house professionals of the development team who
refer to system manual, reference manual, training manual, installation manuals
etc. The end user documents describe the functioning and how-to of the system
such as user manual. For example, Doxygen, DrExplain, Adobe RoboHelp for
documentation.
Analysis Tools
These tools help to gather requirements, automatically check for any
inconsistency, inaccuracy in the diagrams, data redundancies or erroneous
omissions. For example, Accept 360, Accompa, CaseComplete for requirement
analysis, Visible Analyst for total analysis.
Design Tools
These tools help software designers to design the block structure of the software,
which may further be broken down in smaller modules using refinement
techniques. These tools provides detailing of each module and interconnections
among modules. For example, Animated Software Design.
102
Software Engineering Tutorial
Programming Tools
These tools consist of programming environments like IDE (Integrated
Development Environment), in-built modules library and simulation tools. These
tools provide comprehensive aid in building software product and include features
for simulation and testing. For example, Cscope to search code in C, Eclipse.
Prototyping Tools
Software prototype is simulated version of the intended software product.
Prototype provides initial look and feel of the product and simulates few aspect of
actual product.
Prototyping CASE tools essentially come with graphical libraries. They can create
hardware independent user interfaces and design. These tools help us to build
rapid prototypes based on existing information. In addition, they provide
simulation of software prototype. For example, Serena prototype composer,
Mockup Builder.
Maintenance Tools
Software maintenance includes modifications in the software product after it is
delivered. Automatic logging and error reporting techniques, automatic error
103
Software Engineering Tutorial
ticket generation and root cause Analysis are few CASE tools, which help software
organization in maintenance phase of SDLC. For example, Bugzilla for defect
tracking, HP Quality Center.
104