beginner

What Software Engineering Really Is

Software engineering is what turns code into software people can rely on. Learn the lifecycle, why Agile replaced big upfront plans, how Scrum works, how to write requirements that can be tested, and how to forecast delivery honestly. Includes a velocity forecaster in real Python.

55 min

1. Executive summary and objective

Anyone can write a program that works once, on their own laptop, today. Software engineering is the discipline of building software that keeps working for other people, survives change, and can be understood by someone who was not there when it was written.

Objective: you can describe the software lifecycle, compare plan-driven and Agile approaches, explain how Scrum is structured, write requirements that can be verified, and give an honest delivery forecast.

2. Programming versus engineering

A useful way to put it: programming is producing code; software engineering is programming integrated over time and across people. Real systems live for years, are changed by many hands, depend on other systems and must be run, secured and supported.

The IEEE Computer Society’s Guide to the Software Engineering Body of Knowledge (SWEBOK, version 4) organises the field into 18 knowledge areas, including requirements, architecture, design, construction, testing, operations, maintenance, configuration management, security, quality, professional practice and economics. You do not need to memorise them, but notice how much of the list is not typing code. This course touches the practical core of most of them.

3. The lifecycle

Every piece of software, however it is organised, passes through the same activities:

The arrow from the last box back to the first is the whole point: software is never really finished; feedback from real use drives the next round. In most projects, maintenance is the longest and costliest phase.

Waterfall versus Agile

  • Plan-driven (waterfall): do each phase fully and in order: all requirements, then all design, then all code. It suits problems that are well understood and unlikely to change, but a mistake in the early assumptions is discovered very late.
  • Agile / iterative: work in short cycles that each produce something usable, learn from feedback, and adjust. It suits problems where the requirements are uncertain or change.

The Manifesto for Agile Software Development states four preferences: individuals and interactions over processes and tools, working software over comprehensive documentation, customer collaboration over contract negotiation, and responding to change over following a plan. It does not say the items on the right are worthless, only that the items on the left matter more.

Scrum in one page

Scrum is the most widely used Agile framework. The Scrum Guide (2020 edition) describes it like this:

  • Three accountabilities in the Scrum Team: the Product Owner (maximises the value of the product and orders the backlog), the Developers (build the usable increment each Sprint) and the Scrum Master (helps the team follow and improve Scrum).
  • The Sprint, a fixed period of one month or less, contains the other events: Sprint Planning, the Daily Scrum, the Sprint Review and the Sprint Retrospective.
  • Three artifacts, each with a commitment: the Product Backlog (with the Product Goal), the Sprint Backlog (with the Sprint Goal) and the Increment (with the Definition of Done).
  • Three pillars (transparency, inspection, adaptation) and five values (commitment, focus, openness, respect, courage).

Other approaches exist, such as Kanban, which visualises work on a board and limits how much is in progress at once. Many teams mix ideas. The principle that matters: short feedback loops.

4. Requirements you can verify

Vague requirements (“the app should be fast and easy”) cannot be built or tested. Good ones are specific and checkable.

  • Functional requirements say what the system does: “A user can reset their password by email.”
  • Non-functional requirements describe qualities: performance, security, availability, accessibility, usability. Make them measurable: “95 percent of searches return in under 2 seconds.”

User stories and acceptance criteria

A user story captures a need from the user’s point of view:

As a customer, I want to save items for later, so that I can buy them when I am ready.

Acceptance criteria make it testable. A common shape is Given / When / Then:

Given I am signed in and viewing a product
When I select "Save for later"
Then the product appears in my saved list
And it is still there after I sign out and back in

Stories should be small, independent, valuable, estimable and testable (the “INVEST” checklist). If a story cannot be tested, it is not finished being written.

Technical debt

Technical debt is the future cost of a shortcut taken today. A rushed design may ship sooner, but every later change in that area costs more. Like financial debt, a little can be sensible and a lot is crippling. The professional habit is to make debt visible and deliberate, and to repay it.

5. Hands-on: an honest delivery forecast

Teams estimate work in relative units called story points. Velocity is how many points a team actually completes per sprint, and it is the best predictor of the next sprint. Write two helpers that forecast from observed velocity. Rather than promising one number, plan with a range.

Forecast from velocity — Python 3
YOUR CODE (edit here, then press Run)
Ctrl/⌘ + Enter
OUTPUT

Now use it on a real question. If your last three velocities were 20, 25 and 30 and the backlog is 100 points, the average (25) suggests 4 sprints, the slowest sprint (20) suggests 5, and the fastest (30) suggests 4. A good forecast says “most likely 4, possibly 5, and here is what could change that”, not a falsely precise single date.

6. Common failure modes

Pattern What goes wrong Healthier habit
Building everything before showing anyone Months of work answer the wrong question Release small, get feedback early
“Done” means “coded” Untested, undeployable work piles up Agree a Definition of Done (tested, reviewed, deployable)
One person holds all the knowledge A holiday stops the project Share knowledge through review, pairing and docs
Ignoring non-functional needs Works in demos, fails at scale or under attack Write measurable quality requirements early
Estimates treated as promises Pressure, crunch, hidden shortcuts Forecast with ranges and update them
A stakeholder says 'just give me a date for the whole project, not a range'. How do you respond?

Explain that a single date implies certainty that does not exist, and offer what you can honestly provide: a forecast from past velocity with a best and worst case, the assumptions behind it (scope, team availability), and a commitment to update it every sprint. If a hard date is truly fixed, discuss scope instead: what will be included by then.

Can You Explain It?

Close the lesson and answer these without looking back. The goal isn't the wording — it's whether you've formed a usable mental model.

  • Explain the difference between software engineering and programming to a friend who writes scripts.
  • Pick a feature of a product you use. Write it as a user story with three acceptance criteria.
  • Why does the lifecycle diagram have an arrow from 'learn and maintain' back to 'discover needs'?

7. Key takeaways

  • Software engineering = disciplined building and maintenance over time, with many people. Code is one part.
  • The lifecycle is a loop; most of the cost is in operating and maintaining.
  • Agile works in short feedback cycles; Scrum structures that with accountabilities, events and artifacts.
  • Good requirements are specific and testable, with acceptance criteria; make non-functional needs measurable.
  • Forecast from observed velocity, give ranges, and treat technical debt as something visible you pay down.

🧪 Want to practise this on your own computer? See how to set up your lab →

📝

Knowledge Check

1 of 4

What best distinguishes software engineering from simply writing code?

Official References

Report a problem

About: /lessons/se-what-software-engineering-is