Topics 1 to 14 • Waterfall, Prototyping, Spiral, RAD, Scrum, XP, CPM/PERT Scheduling & Risk Management
Software Engineering (IEEE 610.12) is defined as "the application of a systematic, disciplined, quantifiable approach to the development, operation, and maintenance of software; that is, the application of engineering to software."
The field originated during the 1968 NATO Software Engineering Conference in Garmisch, Germany, in response to the Software Crisis characterized by projects running chronically over budget, missing schedules, exhibiting high defect densities, and failing to satisfy user requirements.
| Dimension | Ad-Hoc Programming (Hacker Paradigm) | Software Engineering Discipline |
|---|---|---|
| Primary Goal | Writing code to make a program work for the immediate user. | Building reliable, maintainable, scalable software over a multi-year lifecycle. |
| Documentation | Minimal or non-existent; implicit in developer's memory. | Comprehensive formal artifacts (SRS, SAD, Test Plans, SCM logs). |
| Lifecycle Focus | Development and debugging phase ($< 20\%$ of lifecycle cost). | Maintenance, evolution, and re-engineering ($> 70\%$ of lifecycle cost). |
| Team Scalability | Fails on teams $> 3$ developers due to exponential $O(n^2)$ communication channels. | Hierarchical team structures, interface contracts, and automated CI/CD pipelines. |
A Software Process Model is an abstract representation of the software development lifecycle (SDLC). It specifies the sequence of engineering activities, entry/exit criteria, and intermediate deliverables.
| Process Model | Architectural Workflow | Key Strengths | Primary Limitations & Risks |
|---|---|---|---|
| Classical Waterfall | Strict linear sequential phases: Inception $\rightarrow$ Requirements $\rightarrow$ Design $\rightarrow$ Implementation $\rightarrow$ Testing $\rightarrow$ Deployment. | High discipline, explicit milestones, exhaustive documentation. | Zero customer feedback until final deployment; catastrophic rework if requirements change. |
| Prototyping Model | Rapid build of mockups $\rightarrow$ User evaluation $\rightarrow$ Requirement refinement $\rightarrow$ Final engineering. | Discovers tacit user needs; eliminates requirement ambiguity early. | Risk of "prototype becoming production code"; developer scope creep. |
| Iterative / Incremental | System is partitioned into functional increments delivered in staggered calendar releases. | Early business value delivery; lowers initial capital risk. | Requires robust modular architecture; risk of interface drift between increments. |
| RAD (Rapid Application) | Time-boxed (60–90 days) component assembly using 4GL tools and reusable frameworks. | Ultra-rapid time-to-market; high user collaboration. | Requires heavy team commitment; poor fit for high-performance low-level systems. |
| Boehm's Spiral Model | Risk-driven metamodel traversing 4 quadrants iteratively across expanding angular cycles. | Explicit risk assessment in every cycle; ideal for mission-critical complex systems. | High overhead; heavily dependent on expert risk management acumen. |
The Agile Manifesto (2001) established 4 core values and 12 principles prioritizing adaptability over rigid prediction:
Project managers balance the Iron Triangle (Scope, Time, Cost) under quality constraints. Network scheduling models analyze task dependencies to identify project bottlenecks.
A software engineering project consists of 6 activities with dependencies and durations:
| Activity | Predecessors | Duration ($D$) | $ES$ | $EF$ | $LS$ | $LF$ | Total Float ($TF$) | Critical? |
|---|---|---|---|---|---|---|---|---|
| A (SRS) | — | 4 days | 0 | 4 | 0 | 4 | $0 - 0 = \mathbf{0}$ | YES |
| B (DB Design) | A | 3 days | 4 | 7 | 4 | 7 | $4 - 4 = \mathbf{0}$ | YES |
| C (UI Mockups) | A | 2 days | 4 | 6 | 6 | 8 | $6 - 4 = \mathbf{2}$ | NO |
| D (Backend API) | B | 5 days | 7 | 12 | 7 | 12 | $7 - 7 = \mathbf{0}$ | YES |
| E (Frontend Code) | C | 4 days | 6 | 10 | 8 | 12 | $8 - 6 = \mathbf{2}$ | NO |
| F (Integration) | D, E | 3 days | 12 | 15 | 12 | 15 | $12 - 12 = \mathbf{0}$ | YES |
Risk ($R$) is a probabilistic future event with negative consequence. Risk Exposure ($RE$) is quantified as:
$$\mathbf{RE = P(\text{Risk Event}) \times \text{Impact Cost} \ (C)}$$| Dimension | Waterfall | Boehm's Spiral | Agile Scrum |
|---|---|---|---|
| Requirements | Fixed and frozen upfront. | Refined iteratively per spiral. | Dynamic, captured as user stories. |
| Risk Handling | No explicit risk mechanism. | Explicit risk analysis in Quadrant II. | Continuous risk reduction via short 2-week sprints. |
| Customer Involvement | Only at start and end. | At completion of each spiral. | Continuous active daily collaboration. |
| Delivery Paradigm | Monolithic single release at end. | Progressive spiral releases. | Potentially shippable software every sprint. |
| Cost of Change | Exponential $O(n^2)$ late in lifecycle. | Moderate; planned per iteration. | Low; embraced by design. |
The V-Model maps each development phase directly to its corresponding dynamic testing phase, establishing rigorous traceability between specification and verification:
| Left Wing: Decomposition & Verification | Corresponding Right Wing: Integration & Validation | Primary Testing Objectives |
|---|---|---|
| Business Requirements & Concept | User Acceptance Testing (UAT) | Validates software satisfies customer business goals and operational workflows. |
| System Requirements Specification (SRS) | System Testing | Verifies complete end-to-end functional and non-functional performance bounds. |
| High-Level Architecture Design | Integration Testing | Verifies subsystem communication interfaces, data streaming, and API contracts. |
| Detailed Low-Level Module Design | Unit Testing | Verifies algorithmic correctness of individual classes and private functions. |
Kanban is a Lean workflow management method emphasizing continuous delivery and Work-In-Progress (WIP) constraints:
A software engineering sub-project has 3 critical activities with estimated durations in days:
| Activity | Optimistic ($a$) | Most Likely ($m$) | Pessimistic ($b$) | Expected Time ($T_e$) | Variance ($\sigma^2$) |
|---|---|---|---|---|---|
| Architecture Design | 4 | 7 | 16 | $\frac{4 + 4(7) + 16}{6} = \mathbf{8.0}$ | $(\frac{16 - 4}{6})^2 = 2^2 = \mathbf{4.0}$ |
| Core Microservice Coding | 6 | 12 | 24 | $\frac{6 + 4(12) + 24}{6} = \mathbf{13.0}$ | $(\frac{24 - 6}{6})^2 = 3^2 = \mathbf{9.0}$ |
| Performance Tuning | 2 | 5 | 8 | $\frac{2 + 4(5) + 8}{6} = \mathbf{5.0}$ | $(\frac{8 - 2}{6})^2 = 1^2 = \mathbf{1.0}$ |
When a project must meet an accelerated statutory deadline, Project Crashing compresses activity durations by allocating additional engineering resources:
Rule of Optimal Crashing: Always crash the activity on the Critical Path that has the Lowest Cost Slope!
Critical path consists of Activity A ($D_n = 5, D_c = 3, C_n = \$1000, C_c = \$1600$) and Activity B ($D_n = 8, D_c = 5, C_n = \$2000, C_c = \$3200$):
| Rank | Software Risk Item | Standard Engineering Mitigation Strategy |
|---|---|---|
| 1 | Personnel Shortfalls | Staff with top talent, job matching, cross-training, retention incentives. |
| 2 | Unrealistic Schedules and Budgets | Detailed COCOMO/FP estimation, design-to-cost, incremental feature scoping. |
| 3 | Developing Wrong Software Functions | Prototyping, user journey mapping, early user surveys, acceptance tests. |
| 4 | Developing Wrong User Interface | Task analysis, prototyping, human factors interaction design, usability tests. |
| 5 | Gold Plating (Unnecessary Complexity) | Requirements scrubbing, cost-benefit analysis, strict Change Control Board. |
| 6 | Continuing Stream of Requirements Changes | High-change threshold baseline, information hiding, agile sprints. |
| 7 | Shortfalls in Externally Furnished Components | Benchmarking, vendor audits, formal capability assessments. |
| 8 | Shortfalls in Externally Performed Tasks | Pre-award audits, competitive team design, milestone inspections. |
| 9 | Real-Time Performance Shortfalls | Simulation, high-speed prototyping, architectural instrumentation. |
| 10 | Straining Computer Science Capabilities | Technical analysis, proof-of-concept prototyping, fallback algorithms. |
| Practice Category | Core Engineering Practice | Operational Rule & Quality Objective |
|---|---|---|
| Fine-Scale Feedback | 1. Test-Driven Development | Automated unit tests written before functional code; tests must pass 100%. |
| Fine-Scale Feedback | 2. Planning Game | Business determines scope and priorities; engineering estimates story points. |
| Fine-Scale Feedback | 3. Whole Team / On-Site Customer | Real business user sits with the engineering team to provide immediate domain feedback. |
| Fine-Scale Feedback | 4. Pair Programming | Two developers collaborate at one screen to perform continuous real-time code inspection. |
| Continuous Process | 5. Continuous Integration (CI) | Code integrated, built, and tested against trunk multiple times per day. |
| Continuous Process | 6. Design Improvement (Refactoring) | Ruthless restructuring of internal code without changing external behavior. |
| Continuous Process | 7. Small Releases | Deploying working increments into production every 1 to 2 weeks. |
| Shared Understanding | 8. Simple Design | System designed to pass current tests with zero speculative premature optimization. |
| Shared Understanding | 9. System Metaphor | Shared naming taxonomy and conceptual architectural story. |
| Shared Understanding | 10. Collective Code Ownership | Any developer can modify and refactor any module at any time. |
| Shared Understanding | 11. Coding Standards | Enforced uniform formatting and naming conventions across the codebase. |
| Programmer Welfare | 12. Sustainable Pace (40-Hour Week) | Zero sustained overtime to prevent developer burnout and cognitive defect injection. |
For an activity with duration $D = 6$, predecessor $EF = 10$, successor $LS = 22$, and successor $ES = 18$:
A team completes 35, 40, and 45 story points over three 2-week sprints. Total project backlog is 360 story points:
Prioritize 3 technical project risks with probabilities and damage costs:
In DSDM time-boxed iterations, project scope is dynamically adjusted using the MoSCoW Rules:
In Planning Poker, team members independently estimate user story complexity using modified Fibonacci cards $[1, 2, 3, 5, 8, 13, 20, 40, 100]$. If estimates diverge widely (e.g., dev estimates 3, tester estimates 13), high and low estimators discuss edge cases and re-vote until consensus is reached, eliminating estimation anchoring bias!
At CMMI Level 4, process performance models use historical statistical control limits $(\mu \pm 3\sigma)$ to quantitatively predict whether a project will finish within target schedule and budget parameters!
For a sprint of 10 working days with 6 developers working 6 productive hours/day: $\text{Team Capacity} = 6 \times 10 \times 6 = \mathbf{360 \text{ Productive Engineering Hours}}$. If average historical conversion is $8 \text{ hours/story point}$, the team commits to $\frac{360}{8} = \mathbf{45 \text{ Story Points}}$!
For a project with Planned Value $\text{PV} = \$100,000$, Earned Value $\text{EV} = \$90,000$, and Actual Cost $\text{AC} = \$110,000$:
Process tailoring adapts standard organizational SDLC frameworks to project-specific constraints (e.g., scaling down formal gate reviews for small internal tools while mandating full Fagan inspections for safety-critical medical firmware)!
• Lead Time: Total calendar duration from initial customer story creation to production deployment.
• Cycle Time: Active engineering duration from when a developer begins writing code on a task to when it passes code review and CI tests. Measuring both exposes organizational approval bottlenecks!
• Burndown Chart: Tracks remaining backlog work downwards towards zero, clearly showing whether the team will hit the sprint deadline.
• Burnup Chart: Tracks completed work upwards towards total scope line, distinguishing between team velocity slowdowns and customer scope creep additions!
Studies show pair programming reduces defect density by $60\%$ with only a $15\%$ increase in initial development time, saving $> 80\%$ in total lifecycle maintenance and bug patching costs!
For a team of $n = 10$ software engineers: $\text{Channels} = \frac{n(n - 1)}{2} = \frac{10 \times 9}{2} = \mathbf{45 \text{ Communication Channels}}$. In agile, breaking into two 5-person squads slashes channels to $2 \times 10 = \mathbf{20}$, cutting communication overhead by $\mathbf{55.6\%}$!
• DoR: Criteria a user story must satisfy before entering a sprint (clear acceptance criteria, estimated, dependencies resolved).
• DoD: Criteria a feature must satisfy before shipping (code reviewed, 100% unit tests passed, security scanned, documented)!
• SAFe: Highly structured multi-tier enterprise agile framework organizing teams into Agile Release Trains (ARTs) aligning 50–125 engineers across Program Increments (PIs).
• Large-Scale Scrum (LeSS): Lightweight scaling framework extending single-team Scrum with minimal added overhead and shared Product Backlogs!
Institutionalize project learnings through documented Root Cause Analysis (5 Whys), archived historical effort metrics in organizational process assets, and automated retrospectives!
A Spike is a time-boxed research task (e.g., 2 days) in a sprint to explore technical feasibility, measure performance bounds, and eliminate architectural risk before estimating user stories!
Document detailed trigger conditions, mitigation action owners, and contingency fallback procedures for all top 10 project risks!