BCA
Software engineering: requirements, design and maintainable change
Study map: Original foundation and applied business–computing lesson; related subjects, not a claim of complete unit coverage
Software engineering develops systems that people can use, maintain and depend on. Begin with the user’s task and the business rules, then specify observable behaviour. “Easy to use” is an aspiration; a requirement should describe what a user needs to accomplish and how success will be assessed. Include accessibility, performance and recovery where they affect the task.
1. Requirements explain behaviour and constraints
Software engineering develops systems that people can use, maintain and depend on. Begin with the user’s task and the business rules, then specify observable behaviour. “Easy to use” is an aspiration; a requirement should describe what a user needs to accomplish and how success will be assessed. Include accessibility, performance and recovery where they affect the task.
Separate functional behaviour from constraints and quality attributes. For a stock application, receiving inventory and recording a sale are behaviours; response time and permission boundaries are quality concerns. Interview users who handle corrections and exceptions. A requirement based only on the ideal path can leave staff with no valid way to resolve real errors.
Further reading: Software Engineering at Google
2. Design for change and clear responsibility
Decompose the system into parts with understandable responsibilities and interfaces. Cohesion concerns whether a part’s responsibilities belong together; coupling concerns dependence between parts. The goal is not the maximum number of services. A small cohesive application may be easier to maintain than a fragmented design requiring extensive coordination.
Model domain concepts and invariants before choosing a framework. An order should reference a valid customer or explicit guest context; a stock movement should have a reason and identity. Define where rules are enforced. Avoid duplicating critical calculations across screens without a consistency strategy. A maintainable design allows a future contributor to understand what can change and what must remain true.
Further reading: Pro Git book
3. Use tests and review to assess meaningful behaviour
Tests provide evidence for specific claims. Unit tests assess bounded logic; integration tests examine cooperating parts; end-to-end checks assess a broader user flow. None alone proves the entire system correct. Select cases based on consequences and likely failure mechanisms. Include invalid input, duplicated requests, unavailable dependencies and authorised corrections.
Review code and decisions for clarity, security and fit with requirements. Keep version history and a reproducible way to run the project. A passing test that mirrors the implementation may preserve the same mistaken assumption. Ask what evidence would reveal that the business rule itself is wrong. Users and domain owners can identify errors that purely technical checks overlook.
Further reading: Full Stack Open
4. Maintenance is part of the lifecycle
Software continues to require dependency updates, monitoring, documentation and correction. Define ownership and support rather than treating deployment as the end. A quick prototype may be appropriate for learning, but document its limits before anyone depends on it. Include a migration and retirement route for important records.
For study, implement a small order or inventory system with a few well-defined behaviours. Write acceptance criteria, a domain model, tests for meaningful exceptions and an operating guide. Change one requirement and examine the impact. Explain the tradeoff between development speed and future support. Engineering quality becomes visible when another person can understand, operate and safely modify the result.
Further reading: Software Engineering at Google
Study this subject through the nine question words
Who: Who uses, builds and maintains?
Whom: Whom should an error message help?
Whose: Whose authority changes a record?
What: What behaviour and invariant must hold?
Where: Where is each rule enforced?
When: When should a change be reviewed?
Why: Why is the decomposition suitable?
Which: Which failure cases deserve evidence?
How: How can another person reproduce and maintain the system?
A requirement change should preserve the stock invariant
Define a fictional stock system in which an accepted sale cannot reduce available stock below zero. With five units available, one request for four succeeds and a subsequent request for two must fail or enter an explicitly approved backorder process. Two concurrent requests for four require the same invariant: checking each against a stale value of five can oversell. Explain why correct screen validation alone is insufficient.
Write acceptance evidence for sequential sales, simultaneous attempts and a repeated request identifier. Keep the stock rule in an authoritative component and define the transaction boundary. When the business later permits reservations, revise the meaning of available stock rather than adding inconsistent screen formulas. Tests demonstrate selected behaviours; they do not establish that every business requirement was understood correctly.
Undergraduate practice should specify the invariant and trace the failing interleaving. Postgraduate practice should compare atomic update, reservation and backorder designs against operating needs and maintainability. Research could study defect mechanisms or change impact across systems, separating correlation with architecture from evidence that an architecture caused reliability.
Study questions and answers
Why is a large number of tests not a sufficient quality measure?
Tests may cover low-consequence cases or repeat mistaken assumptions; their relevance and ability to detect important failures matter.
Extended practice questions
Explain a software requirement and acceptance criterion through an invoice workflow.
A requirement states what the system needs to support, such as producing an invoice from an accepted order. An acceptance criterion makes an aspect checkable: the invoice must contain the agreed order identifier, quantities, calculation basis and authorised status. Include exceptions and who determines acceptance, rather than specifying only the screen appearance. Developers and business representatives should resolve ambiguous meanings together. Computing turns the requirement into behaviour, but the organisation remains responsible for the business rule. A feature is not accepted merely because a developer demonstrates that it runs without crashing.
Marking guide: Need versus checkable criterion; fields/exceptions; shared meaning; business acceptance. Indicative allocation: reasoning 4; application or workings 3; assumptions and limits 3.
Marks: 10
A release has twelve specified acceptance checks; nine pass, two fail and one is blocked. Calculate pass rate over all checks and over executed checks.
Nine divided by twelve gives a 75% pass rate across all specified checks. Eleven checks were executed, so nine divided by eleven gives approximately 81.82% among executed checks. Report the two failures and blocked check explicitly; excluding the blocked item changes the denominator but does not resolve it. Neither percentage establishes release readiness without knowing the importance of the checks and the risk of omitted cases. A business-critical failure may justify stopping despite a high average. Preserve criteria and evidence so acceptance is an accountable decision rather than a favourable headline.
Marking guide: 75/81.82%; blocked distinction; severity/readiness; evidence. Indicative allocation: reasoning 4; application or workings 3; assumptions and limits 3.
Marks: 10
Critique assuming a passing test suite proves all requirements are satisfied.
Tests examine selected behaviours under selected inputs and environments. They can miss ambiguous requirements, missing cases, unsuitable accessibility or failures in surrounding work. Review how the tests relate to the intended acceptance criteria and whether meaningful negative and boundary cases are included. Passing checks remain useful evidence, but completeness and representativeness need separate judgement. A team should preserve known limitations and decide who accepts remaining uncertainty. Automated execution can speed feedback; it does not convert a limited specification into a guarantee that every business need has been met.
Marking guide: Selected scope; criteria relation; missing/boundary cases; acceptance uncertainty; automation limit. Indicative allocation: reasoning 4; application or workings 3; assumptions and limits 3.
Marks: 10
Frame research on business participation in software acceptance.
Ask whether involving business task owners in defining acceptance criteria reduces later rework and misunderstandings. Compare suitable projects or episodes, recording complexity, developer experience and changing requirements. Measure accepted task outcomes and correction effort rather than participation hours alone. Observe whether representatives can challenge the criteria and include exception cases. The contribution could explain how shared meaning and decision authority affect delivery quality. It should distinguish an observed relationship from causal proof and recognise that participation without relevant knowledge or time may become ceremonial rather than useful.
Marking guide: Question/comparison; outcomes/confounders; meaningful participation; authority; causality. Indicative allocation: reasoning 4; application or workings 3; assumptions and limits 3.
Marks: 10
A release passes hundreds of tests, but users cannot complete the order workflow. What does the test count fail to establish?
A test count says little about whether the important behaviour and user tasks were covered. Inspect the actual failure, requirements, environments and missing integration or usability checks. Tests may repeatedly assert internal details while neglecting the end-to-end path. Add a targeted check reproducing the meaningful failure, repair it and verify related behaviour. Preserve the distinction between automated correctness checks and visual or assistive-technology review. Developers and business users should agree acceptance evidence; passing many tests is not a substitute for demonstrating the intended service outcome.
Marking guide: Coverage not count; reproduce failure; meaningful acceptance; integration/usability; audit distinctions. Indicative allocation:reasoning4;application or workings3;assumptions and limits3.
Marks: 10
Compare a functional requirement and a quality constraint for an order service.
A functional requirement describes required behaviour, such as rejecting an order with a missing identifier. A quality constraint describes a required characteristic under stated conditions, such as an agreed response-time target or accessible interaction. Both need testable boundaries and a relevant environment. 'Fast' and 'easy' alone are too vague. Define error cases, users, workload and measurement. Business owners prioritise the outcomes; developers assess feasibility and tests. A correctly returned response can still violate a quality requirement, and a fast response can be functionally wrong.
Marking guide: Behaviour versus quality; testable conditions;examples; trade-off and authority. Indicative allocation:reasoning4;application or workings3;assumptions and limits3.
Marks: 10
A suite executes 50 checks:48 pass and 2 fail. Calculate the pass fraction and explain whether deployment should proceed.
The pass fraction is48/50=96%. That percentage does not decide release readiness because failures differ in significance and the suite may omit critical behaviours. An authorisation or data-loss failure may block release even if most cosmetic checks pass. Investigate each failure, assess affected requirements and document the decision through the agreed release process. Do not improve the percentage by deleting meaningful failing tests. The suite result is evidence about tested conditions, not an overall probability that the software will work or a measured quality score for every user.
Marking guide: 96%;severity/coverage; release evidence; no test deletion;not reliability probability. Indicative allocation:reasoning4;application or workings3;assumptions and limits3.
Marks: 10
Describe a maintainable change process for adding refunds to an existing order service.
Clarify the refund states, authority, accounting effects and repeated-request behaviour with relevant departments. Identify affected interfaces and records, then make a bounded design that preserves existing contracts where appropriate. Add meaningful success and failure checks, review the implementation and provide migration or compatibility handling if data changes. Document operational monitoring and rollback or corrective actions. Validate user tasks as well as code paths. Maintenance includes evidence and support after release; a new endpoint alone does not complete the organisational refund process.
Marking guide: Domain/authority;interfaces anddata; meaningful tests/review;compatibility;operations. Indicative allocation:reasoning4;application or workings3;assumptions and limits3.
Marks: 10
Revision cards
Explain a software requirement and acceptance criterion through an invoice workflow.
Requirements state needed behaviour; acceptance criteria make it checkable with business definitions, exceptions and an acceptance owner.
A release passes hundreds of tests, but users cannot complete the order workflow. What does the test count fail to establish?
Many passing tests do not prove users can finish the task. Assess coverage and acceptance evidence, then reproduce and fix the actual failure.
Compare a functional requirement and a quality constraint for an order service.
Functional requirements specify behaviour; quality constraints specify characteristics under stated conditions. A fast but wrong response may meet a response-time target while failing functional correctness. Evaluate both independently against their acceptance criteria.
A suite executes 50 checks:48 pass and 2 fail. Calculate the pass fraction and explain whether deployment should proceed.
Pass fraction 96%, but deployment depends on failure significance and missing coverage. It is not a96% reliability guarantee.
Describe a maintainable change process for adding refunds to an existing order service.
Define refund meaning and authority, then change contracts, records, tests and operations together. An endpoint alone is not a complete refund process.
A release has twelve specified acceptance checks; nine pass, two fail and one is blocked. Calculate pass rate over all checks and over executed checks.
Pass rate is 75% of specified checks or 81.82% of executed checks; failures and blocked work still require explicit decisions.
What makes maintainability relevant to a business decision?
A system must be understood, changed and recovered as needs evolve. Documentation, tests and clear boundaries can reduce future uncertainty. Low initial implementation cost may conceal expensive corrections or dependence on one person.
Practice task
Build a small inventory application with explicit invariants and three meaningful failure cases. Ask another learner to run it from the documentation and record obstacles.
Sources and further reading
- Software Engineering at Google
Type: Free HTML edition; print copy separate
Use: Sustainable software, testing, collaboration and change - Pro Git book
Type: Free online book
Use: Version history, branches and collaboration - Full Stack Open
Type: Free course; follow current institutional requirements for certificates or credits
Use: React, Node.js, APIs, databases and testing