Docsity

Introduction to Software Engineering and Risks Management, Study Guides, Projects, Research of Software Engineering

Toggle sidebar
bg1
SOFTWARE ENGINEERING โ€” STUDY GUIDE
Prepared as a simple, exam-friendly reference for students
Software Engineering
Unit 1
Introduction to Software Engineering, SDLC Models &
Planning a Software Project
A Simple, Point-wise and Example-based Study Guide
Explained for every student โ€” from beginner to advanced
Topics Covered in this Guide
โœ“ Software & its Characteristics
โœ“ Software Engineering Paradigms (SDLC Models)
โœ“ Waterfall, Incremental, Spiral, Prototype, Big Bang, V-Model, Agile &
DevOps
โœ“ Comparison of SDLC Models
โœ“ Software Failure & Crisis
โœ“ Planning a Software Project
โœ“ Cost Estimation, Scheduling, Team Structure
โœ“ Configuration Management, Quality Assurance, Monitoring & Risk
Management
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24

Partial preview of the text

Download Introduction to Software Engineering and Risks Management and more Study Guides, Projects, Research Software Engineering in PDF only on Docsity!

SOFTWARE ENGINEERING โ€” STUDY GUIDE

Prepared as a simple, exam-friendly reference for students

Software Engineering

Unit 1

Introduction to Software Engineering, SDLC Models & Planning a Software Project

A Simple, Point-wise and Example-based Study Guide

Explained for every student โ€” from beginner to advanced

Topics Covered in this Guide

3 Software & its Characteristics

3 Software Engineering Paradigms (SDLC Models)

3 Waterfall, Incremental, Spiral, Prototype, Big Bang, V-Model, Agile & DevOps

3 Comparison of SDLC Models

3 Software Failure & Crisis

3 Planning a Software Project

3 Cost Estimation, Scheduling, Team Structure

3 Configuration Management, Quality Assurance, Monitoring & Risk Management

Table of Contents

    1. Introduction to Software
    1. Software Characteristics
    1. Introduction to Software Engineering
    1. Software Engineering Paradigms (SDLC Models)
    • 4.1 Waterfall Model
    • 4.2 Incremental Model
    • 4.3 Spiral Model
    • 4.4 Prototype Model
    • 4.5 Big Bang Model
    • 4.6 V - Model
    • 4.7 Agile Model and DevOps
    • 4.8 Comparison of All SDLC Models
    1. Software Failure and Software Crisis
    1. Planning a Software Project
    • 6.1 Software Cost Estimation
    • 6.2 Project Scheduling
    • 6.3 Personnel Planning (Staffing)
    • 6.4 Team Structure
    • 6.5 Software Configuration Management
    • 6.6 Quality Assurance
    • 6.7 Project Monitoring
    • 6.8 Risk Management

System software works for the computer (keeping it running), while application software works for the user (helping them do a job). Every time you install an "app", you are installing application software, which itself depends on the system software (operating system) to function.

2. Software Characteristics

Software is very different from the physical products we normally deal with, like a car or a chair. Because of this, software engineers must think about quality and design in a special way. The important characteristics of software are explained below in very simple language.

2.1 Software is Developed, Not Manufactured

A physical product like a car is manufactured on an assembly line โ€” the same design is copied thousands of times using machines, and each copy costs money and material to build. Software, on the other hand, is developed or engineered. A programmer designs and builds it once (this is the costly and time-consuming part), and after that, making additional copies is almost free โ€” it is just a matter of copying a file.

EXAMPLE

Building the first copy of a mobile game may take a team of 20 people two years and cost lakhs of rupees. But once it is built, the millionth copy downloaded from the Play Store costs almost nothing to "produce" โ€” it is simply copied onto another phone.

2.2 Software Does Not Wear Out

A physical part like a car tyre wears out with use and needs to be replaced after some years. Software does not wear out due to usage โ€” running a program a million times does not make it "old" or damage it physically. However, software does become less useful over time because of bugs discovered later and because it fails to adapt to new hardware, new operating systems, or changing user requirements. This is called software ageing , and it happens due to changes in the environment around the software, not due to physical wear.

2.3 Most Software is Custom-Built, Not Assembled from Ready Parts

In electronics or mechanical engineering, a new product is often built by putting together many existing, ready-made components (like using standard screws, resistors, or motors). In software, although reusable components and libraries do exist, most systems still require a large amount of new, custom-written code designed specifically for that project's requirements.

2.4 Software is Flexible

A major strength of software is that it can be changed. If a business rule changes, a programmer can update the code to reflect the new rule. This flexibility is also a challenge, because it means requirements can keep changing throughout the project, making the software difficult to plan for and finish.

2.5 Complexity

3. Introduction to Software Engineering

Now that we know what software is, the next question is: how should we build good software in an organised, reliable way โ€” instead of just writing code randomly? The answer is Software Engineering.

Software Engineering is a systematic, disciplined and step-by-step approach to designing, developing, testing and maintaining software. The word "engineering" is important here โ€” just like a civil engineer follows proper planning, design and safety rules before constructing a building instead of randomly stacking bricks, a software engineer follows proper methods, tools and processes instead of randomly writing code.

Why Do We Need Software Engineering? Without a proper process, software projects often run late, cost more than planned, and are full of bugs. Software engineering provides proven models, techniques and best practices that help teams deliver software on time, within budget, and with good quality โ€” even when the project is very large and many people are working on it together.

3.1 Goals of Software Engineering

  • (^) To produce software that meets the user's actual requirements.
  • (^) To deliver the software on time and within the estimated budget.
  • (^) To make sure the software is reliable (works correctly) and maintainable (easy to fix or upgrade later).
  • (^) To make the development process efficient , so that the team does not waste time or effort.

4. Software Engineering Paradigms (SDLC Models)

A Software Development Life Cycle (SDLC) Model is a step-by-step plan that describes how software should be developed, from the very first idea to the final delivery and beyond. Just as there are different recipes to cook the same dish, there are different SDLC models to build software โ€” each suited to a different type of project.

Almost every SDLC model contains some common phases, even though they may be arranged or repeated differently:

  • (^) Requirement Analysis โ€” understanding what the customer wants.
  • (^) Design โ€” planning how the system will be built (architecture, screens, database).
  • (^) Implementation / Coding โ€” writing the actual program.
  • (^) Testing โ€” checking that the software works correctly and has no bugs.
  • (^) Deployment โ€” releasing the software for real use.
  • (^) Maintenance โ€” fixing issues and adding improvements after release.

Key Idea The different SDLC models mainly differ in how these common phases are arranged โ€” one after another, in repeating loops, or all mixed together quickly. This is the single most important idea to remember for this topic.

4.1 Waterfall Model

The Waterfall Model is the oldest and simplest SDLC model. It is called "Waterfall" because it works exactly like a real waterfall โ€” water flows only in one direction, from the top of a mountain downward, and it never flows back up. In the same way, this model moves through its phases in a strict, fixed order, and one phase must be fully completed before the next one begins.

4.2 Incremental Model The Incremental Model solves the biggest problem of the Waterfall Model โ€” having to wait until the very end to see working software. In this model, the whole system is divided into small parts called increments (or builds). Each increment goes through its own mini requirement-design-code-test cycle, and each one adds new, working functionality to the previous increment, until the full system is ready.

Incremental Model Inc 1 Analysis Design Code Test โ†’ Deliverable

Inc 2 Analysis Design Code Test โ†’ Deliverable

Inc 3 Analysis Design Code Test โ†’ Deliverable

Fig 4.2: Incremental Model โ€” each increment repeats Analysis, Design, Code and Test, and delivers a working part of the software.

How it Works

  • (^) The overall requirements are divided into smaller, manageable groups of features.
  • (^) The first increment is built with the most essential (core) features and delivered to the user.
  • (^) The next increment adds more features on top of the first, and is delivered again.
  • (^) This continues until all planned features are completed.

EXAMPLE

An email application can be built incrementally: Increment 1 may deliver basic "send and receive mail"; Increment 2 may add "attachments"; Increment 3 may add "spam filtering". Users can start using the product after Increment 1 itself, instead of waiting for everything.

Advantages Disadvantages

  • Working software is available early, after the first increment.
    • Requires good planning to divide the system into increments correctly.
  • Easier to test and debug smaller increments than one huge system.
    • Total cost can be higher than Waterfall due to repeated activities.
  • Customer feedback from early increments can improve later ones.
    • Needs a well-defined overall architecture from the start, or later increments may not fit well.

4.3 Spiral Model

The Spiral Model combines the step-by-step nature of the Waterfall Model with the repeated cycles (iterations) of the Incremental Model, and adds one more very important ingredient: risk analysis. It is drawn as a spiral because the project passes through the same set of activities again and again, but each loop (round) of the spiral is bigger than the last, representing a more complete version of the software.

Spiral Model (Simplified View)

1. Determine Objectives 2. Identify & Resolve Risks 4. Plan Next Iteration 3. Develop & Test

Repeat each n loop = 1 phase

Fig 4.3: Spiral Model โ€” every loop repeats these four activities, and the software becomes more complete with each loop.

The Four Activities in Every Loop

  • (^) Determine Objectives โ€” decide the goals and alternatives for this loop.
  • (^) Identify and Resolve Risks โ€” analyse what could go wrong, and reduce those risks.
  • (^) Develop and Test โ€” build and verify the next version of the product.
  • (^) Plan the Next Loop โ€” review progress with the customer and plan the next, bigger loop.

EXAMPLE

A banking software project, where security and data-loss risks are very serious, is well suited to the Spiral Model. Before building the online transfer feature fully, the team first studies the risk of fraud and builds a small, safe test version, then expands it loop by loop.

Advantages Disadvantages

  • Strong focus on identifying and reducing risk early. โ€ข Can be expensive, since risk analysis needs skilled experts.
  • Good for large, expensive and complex projects. โ€ข More complex to manage than simpler models.
  • Customers see and approve progress at the end of every loop.
    • Not ideal for small, low-risk projects โ€” too much overhead.
  • Helps discover the real requirements when the customer is unsure.
    • Customer may mistakenly think the rough prototype is the final product.
  • Reduces the risk of building the wrong product. โ€ข Can increase development time and cost due to repeated refining.
  • Customer stays involved and satisfaction is usually higher.
    • Prototype code, if reused carelessly, may lead to a poor-quality final system.

4.5 Big Bang Model

The Big Bang Model is the simplest โ€” and riskiest โ€” of all SDLC models. The name comes from the "Big Bang" theory of the universe, where a huge amount of energy is released all at once with no fixed plan for what forms afterward. Similarly, in this model, whatever money, effort and time is available is simply put into development, often with very little planning, formal process, or clearly defined requirements. Coding usually starts almost immediately.

Big Bang Model

Little or No Formal Planning

Gather Whatever Requirements/Resources are Available

Start Coding Almost Immediately

Test, Fix and Adjust as Problems Appear

Fig 4.5: The Big Bang Model has almost no formal structure โ€” development just begins right away.

When it is Used

  • (^) Very small projects, or projects made by a single developer/student for learning purposes.
  • (^) Research-oriented or experimental projects where the final requirements are unknown at the start.
  • (^) Situations where the exact outcome does not need to be predicted in advance.

EXAMPLE

A student experimenting with a new programming idea over a weekend, without writing any requirement document or design first, and simply coding and testing as ideas come to mind, is following the Big Bang Model โ€” often without even realising it has a name.

Advantages Disadvantages

  • Extremely simple; needs almost no planning or process overhead.
    • Very high risk of failure, since there is no proper plan.
  • Very few resources needed to get started. โ€ข Not suitable at all for large or complex, real-world projects.
  • Gives developers full freedom and flexibility. โ€ข Very difficult to predict cost, time, or final outcome in advance.

bottom is checked by the smallest, most detailed testing (unit testing). This means test planning starts very early , right alongside the matching design phase, instead of waiting until coding is finished.

EXAMPLE

While designing the "Module Design" for a login feature, the test team simultaneously writes the Unit Test cases for that login module โ€” they do not wait until the whole application is coded to start thinking about tests.

Advantages Disadvantages

  • Very disciplined; each phase has clear entry and exit steps.
    • Like Waterfall, it is not flexible โ€” hard to handle changing requirements.
  • Testing is planned early, so fewer bugs slip through undetected.
    • The working software is still available only quite late in the project.
  • Works well for projects where requirements are clear and fixed.
    • Not suitable for large, complex projects where requirements evolve.

4.7 Agile Model and DevOps

4.7.1 Agile Model

All the models discussed so far struggle when requirements keep changing. The Agile Model was created specifically to handle this problem. Instead of planning the entire project in advance, Agile breaks the project into many very short cycles called sprints (usually 1 to 4 weeks each). At the end of every sprint, a small, working piece of the software is delivered, and the customer's feedback is used to adjust what is built next.

Agile Sprint Cycle (Repeats Every Sprint)

Plan

Design

Develop

Test

Review with Customer

Release

Fig 4.7: One Agile sprint cycle. This entire loop repeats every 1โ€“4 weeks throughout the project.

Core Ideas of Agile

  • (^) Individuals and interactions are valued over rigid processes and tools.
  • (^) Working software is valued over spending too much time on documentation.
  • (^) Customer collaboration is valued over strict, fixed contracts.
  • (^) Responding to change is valued over blindly following an old plan.

Popular Agile Framework Scrum is the most widely used way of practising Agile. Work is organised into a "Product Backlog" (a prioritised list of features), and small chunks of this backlog are picked into each sprint. Short daily meetings, called "Daily Stand-ups", keep the whole team updated on progress and blockers.

EXAMPLE