Ir al contenido
Londres, Reino Unido · Fundado en 1994
Español

Unit 1: Software Engineering Foundations and Requirements

What software engineering is, how software is developed over its life cycle, and how to discover, write and prioritise requirements that lead to the right product.

Unit 1 of 5 · about 54 minutes

1.1 What software engineering is

Software engineering is the disciplined application of engineering principles to the design, development, testing, delivery and maintenance of software. Writing code is only one part of it. Software engineering is also about understanding what people need, making sound design decisions, working effectively in teams, managing change and keeping software reliable over many years.

The distinction between programming and software engineering is often described in terms of time and scale. A short script written by one person for a single task is programming. A system that many people build and change over years, that serves thousands of users and that must keep working while it evolves requires software engineering. The larger and longer-lived the software, the more these wider practices matter.

Why it matters

Software now runs banking, healthcare, transport, energy, retail and government services. When it fails, the consequences can include financial loss, disrupted services, security breaches and, in safety-critical settings, harm to people. Software projects are also notorious for running late, over budget or delivering something that does not meet users' needs. Many of these problems come not from poor coding but from misunderstood requirements, weak communication, insufficient testing or uncontrolled complexity. Software engineering practices aim to address exactly these issues.

The software development life cycle

Whatever method a team uses, most software passes through a similar set of activities, often called the software development life cycle (SDLC):

  1. Requirements: understanding what the software must do and the constraints it must respect.
  2. Design: deciding how the software will be structured to meet those requirements.
  3. Implementation: writing the code.
  4. Testing: checking that the software works correctly and meets its requirements.
  5. Deployment: releasing the software to users.
  6. Operation and maintenance: running the software, fixing defects and adapting it to new needs.

Different approaches arrange these activities differently. In a traditional sequential (often called "waterfall") approach, each stage is largely completed before the next begins. In iterative and incremental approaches, including agile methods, teams cycle through all the activities repeatedly in short periods, delivering working software in small increments and learning as they go. Most modern teams favour iterative approaches, though some highly regulated or safety-critical projects retain more upfront planning and documentation.

Quality attributes

Good software does more than produce the right output. Engineers think about a range of quality attributes, sometimes called non-functional qualities:

  • Reliability: does it work consistently without failures?
  • Performance: is it fast enough under expected load?
  • Security: does it protect data and resist attack?
  • Usability and accessibility: can all intended users use it effectively, including people with disabilities?
  • Maintainability: can it be understood and changed easily and safely?
  • Scalability: can it handle growth in users or data?

These attributes often involve trade-offs. Making a system extremely fast might make it harder to maintain; adding security checks might affect usability. Good engineering means making such trade-offs deliberately, based on what matters most for the particular system.

Remember: most of the cost of software over its lifetime typically comes after the first release, through maintenance and change. Writing software that is easy to understand and modify is therefore one of the most valuable things an engineer can do.

Roles in software teams

Software is rarely built by developers alone. Typical roles include product managers or product owners, who decide what to build and why; designers, who shape the user experience; software engineers or developers; testers or quality engineers; and operations or platform engineers, who keep systems running. Business analysts, security specialists and data engineers may also be involved. Many teams blend these roles, and effective collaboration between them is central to success.

Common misconceptions

  • "Software engineering is just coding." Coding is essential, but understanding needs, designing, testing and communicating take as much effort.
  • "Once software is released, the work is done." Release is the start of a long period of operation and change.
  • "Adding more people will speed up a late project." New team members need time to learn the system and increase communication overhead, so adding people late often slows things down further.

In practice

Think of a piece of software you use at work, perhaps a booking system or an internal tool. Which quality attributes matter most to you as a user? Which seem weak? If you could speak to the team that builds it, what would you want them to know about how you use it? Asking these questions builds the habit of looking at software as a product that serves people, which is the starting point of good software engineering.

1.2 Discovering and analysing requirements

A requirement is a statement of something a system must do or a quality it must have. Requirements engineering is the process of discovering, analysing, documenting, validating and managing requirements. It matters because building the wrong thing is one of the most expensive mistakes in software. A defect in requirements that is discovered only after release may require redesign, rework and retesting, whereas the same issue caught in a conversation at the start costs very little to fix.

Types of requirement

  • Functional requirements describe what the system should do. For example: "The system shall allow a customer to cancel a booking up to 24 hours before the appointment."
  • Non-functional requirements describe how well the system should do it, covering the quality attributes introduced in the previous lesson. For example: "Search results shall be displayed within two seconds for 95 per cent of requests."
  • Constraints limit the solution, such as a required technology, a regulatory obligation, a budget or a deadline.

Non-functional requirements are frequently overlooked because users tend to assume them. Nobody asks for a system that loses data or takes a minute to load a page, but unless these expectations are captured explicitly, they may not be designed and tested for.

Stakeholders

A stakeholder is anyone affected by or able to influence the system. Stakeholders include end users, customers, managers, support staff, regulators, security and data protection teams, and the engineers who will maintain the system. Different stakeholders often want different things, and some needs conflict. Identifying stakeholders early helps ensure that important perspectives are not missed.

Elicitation techniques

Elicitation means drawing out requirements from stakeholders and other sources. Useful techniques include:

  • Interviews: one-to-one conversations, ideally with open questions about goals, current processes and problems.
  • Workshops: bringing stakeholders together to explore needs and resolve conflicts.
  • Observation: watching people do their work, which often reveals steps and workarounds they would not think to mention.
  • Document analysis: studying existing forms, reports, policies and systems.
  • Prototyping: creating rough sketches or simple interactive models to get feedback before building the real thing.
  • Surveys: gathering views from larger groups, useful for prioritisation.
  • Data analysis: examining how existing systems are actually used.

Tip: ask people to show you, not just tell you. Watching someone carry out a task in an existing system frequently uncovers requirements, problems and shortcuts that never come up in meetings.

Focus on problems and goals

Stakeholders often describe solutions: "we need a button that exports to a spreadsheet". It is worth asking why. Perhaps the underlying need is to share weekly figures with a manager, which might be better met by an automatic report. Understanding the goal behind a request leads to better solutions and avoids building features that are rarely used. A useful habit is to ask "why?" several times until you reach the real business need.

Analysing and validating requirements

Once gathered, requirements need analysis. Check whether they are complete, consistent with each other, feasible and testable. Look for ambiguous words such as "fast", "easy", "user-friendly" or "flexible", and replace them with measurable criteria. Resolve conflicts by discussing trade-offs with stakeholders. Then validate the requirements by reviewing them with stakeholders, ideally using examples, prototypes or walkthroughs, to confirm they describe what is actually needed.

Managing change

Requirements change as people learn more, markets shift and regulations evolve. Change is normal and often valuable, but uncontrolled change, sometimes called scope creep, can derail projects. Good practice is to make the impact of each change visible, prioritise it against existing work and record decisions. Iterative approaches accommodate change by planning in short cycles and revisiting priorities regularly.

Common mistakes

  • Talking only to managers and not to the people who will use the system.
  • Capturing features without understanding the goals behind them.
  • Leaving non-functional requirements unstated.
  • Writing requirements that cannot be tested.
  • Treating the requirements document as fixed once written.

In practice

Next time you are asked for a new feature or system change, or asked to describe one, try to state the underlying goal in one sentence, identify three stakeholders and write one functional and one non-functional requirement. Check that each requirement could be tested: could someone clearly say whether it has been met? This simple discipline makes conversations with development teams far more productive.

1.3 User stories, acceptance criteria and prioritisation

Many teams, especially those using agile methods, capture requirements as user stories: short descriptions of a feature told from the perspective of the person who needs it. User stories are designed to prompt conversation rather than to replace it. Combined with clear acceptance criteria and sensible prioritisation, they help teams deliver the most valuable work first.

Writing user stories

A common template is:

As atype of user, I wantsome goalso thatsome reason.

For example: "As a returning customer, I want to reorder a previous purchase in one step so that I can save time on regular orders." The template keeps attention on who benefits and why, which helps the team find the best solution and prioritise well.

A widely used checklist for good stories is INVEST. Stories should be:

  • Independent: able to be developed and delivered separately where possible;
  • Negotiable: open to discussion about details and approach;
  • Valuable: delivering clear value to a user or the organisation;
  • Estimable: understood well enough for the team to estimate effort;
  • Small: able to be completed within a short iteration;
  • Testable: with clear criteria to confirm that it is done.

Splitting large stories

Large stories, sometimes called epics, should be split into smaller ones that each deliver something useful. Good ways to split include by workflow step, by type of user, by business rule or by starting with a simple version and adding refinements later. For example, "manage bookings" might become separate stories for creating, viewing, changing and cancelling a booking. Avoid splitting by technical layer, such as "build the database" and "build the screen", since neither delivers value on its own.

Acceptance criteria

Acceptance criteria define the conditions a story must satisfy to be accepted. They remove ambiguity and form the basis for testing. One popular format is Given, When, Then:

  • Given a customer has a confirmed booking more than 24 hours away,
  • When they choose to cancel it,
  • Then the booking is cancelled, the time slot becomes available and a confirmation email is sent.

Good acceptance criteria also cover important variations and failures: what happens if the booking is less than 24 hours away, or if the email cannot be sent? Writing criteria together, with a product owner, developer and tester, often reveals misunderstandings before any code is written.

Remember: a user story is a placeholder for a conversation. The card or ticket is brief; the shared understanding built through discussion and examples is what matters.

Definition of done

Separate from story-specific criteria, many teams agree a definition of done that applies to all work, for example: code reviewed, automated tests written and passing, documentation updated, accessibility checked and deployed to a test environment. This keeps quality consistent and prevents "almost finished" work from accumulating.

Prioritisation

There is always more that could be built than time allows. Prioritisation ensures the most valuable work comes first. Common techniques include:

TechniqueHow it worksUseful for
MoSCoWClassifies items as Must have, Should have, Could have and Won't have (this time).Agreeing the scope of a release with stakeholders.
Value versus effortPlots items by expected value and estimated effort, favouring high value, low effort.Finding quick wins and avoiding costly, low-value work.
Cost of delayConsiders how much value is lost by delaying each item.Time-sensitive work, such as regulatory deadlines.
Minimum viable productIdentifies the smallest product that delivers value and allows learning.New products where assumptions need testing early.

Whatever technique is used, prioritisation should involve the people who understand both business value and technical effort, and should be revisited regularly.

Common mistakes

  • Writing stories from the system's perspective ("the system shall...") without a real user or benefit.
  • Labelling almost everything as "Must have".
  • Stories so large that they take many weeks to complete.
  • Leaving acceptance criteria vague, such as "works correctly".

In practice

Choose a feature you would like in a system you use. Write it as a user story, check it against INVEST and add three acceptance criteria in the Given, When, Then format, including one that covers an error or edge case. If the story feels too large, split it into two or three smaller stories that each deliver something useful. This exercise builds the core skills used daily in many software teams.

Case study: Rethinking requirements for a council permit system

Westmere District Council, a fictional local authority, planned to replace its paper-based residents' parking permit process with an online service. The initial requirements, written by the parking manager, listed forty features, including a complex dashboard for staff.

The development team arranged observation sessions in the parking office and short interviews with residents. They discovered that most phone calls came from residents asking whether their application had been received, and that staff spent hours checking proof of address manually. Neither issue appeared in the original list.

The team rewrote the requirements as user stories, such as "As a resident, I want confirmation that my application has been received so that I do not need to call the council." Each story had acceptance criteria in the Given, When, Then format. Using MoSCoW, stakeholders agreed that online application, automatic confirmation and digital proof of address were Must haves, while the staff dashboard became a Could have. The first version launched sooner than planned, and calls to the office fell noticeably in the following months.

Activity

Pick a simple process in your workplace that could be improved with software, such as booking meeting rooms or requesting equipment. Identify three stakeholders and write three user stories, each with at least two acceptance criteria in the Given, When, Then format. Prioritise the stories using MoSCoW and explain your reasoning briefly.

Compare with a model answer

A good answer chooses a clear process, for example requesting a replacement laptop. Stakeholders include the employee making the request, their line manager who approves it and the IT support team who fulfils it.

The stories are specific and user-focused, such as "As an employee, I want to see the status of my request so that I know when to expect my laptop." Acceptance criteria are testable, for example "Given I have submitted a request, when IT approves it, then the status changes to Approved and I receive an email." At least one criterion covers a failure case, such as a request being rejected. The MoSCoW prioritisation is justified: submitting and approving requests are Must haves, status tracking is a Should have and usage reports are a Could have.

Key takeaways

  • Software engineering covers the whole life of software, from understanding needs through design, testing and delivery to long-term maintenance.
  • Quality attributes such as reliability, security, performance and maintainability involve trade-offs that should be made deliberately.
  • Requirements should be discovered from a range of stakeholders, focused on underlying goals and written so that they can be tested.
  • User stories capture who needs what and why, and should meet the INVEST criteria and be supported by clear acceptance criteria.
  • Prioritisation techniques such as MoSCoW help teams deliver the most valuable work first and manage changing requirements.

Unit check

Create a free account to answer the check, save your progress and receive your free certificate.

Create a free account Log in
← Course overview Unit 2 →
WhatsApp