Plain CS learning guide
Computing Professionals
Use computer science to investigate real engineering decisions. Choose a problem from your work, compare alternatives and make the evidence understandable to colleagues.
Work through these lessons using a small local model or an authorised test environment. Turn each topic into a decision record: requirement, alternatives, evidence, limitation and a reason to revisit the decision.
Check your starting point
For people already working with software or computing systems. Use non-sensitive examples or an authorised test environment for practice.
Your goal: Produce a small engineering case study with a clear problem, alternatives, measurements and limitations.
A question to begin with
A change reduces average response time, but users report more timeouts. What evidence is missing before you call it an improvement?
Compare your reasoning
Inspect the latency distribution, error rate, workload and measurement method. A better average can hide a worse tail or exclude failed requests. Compare like-for-like behaviour, including correctness and resource use.
Your learning path
Use these four stages to organise your work. The lessons, exercises and project below give you material to practise directly on this page.
Turn a vague concern about speed, reliability or maintainability into a question you can investigate.
Try it: Write the expected behaviour, workload and constraints. Capture a baseline before changing the design.
Checkpoint: You can say what a successful change would improve and what must remain correct.
Connect familiar implementation choices to their operation costs and workload assumptions.
Try it: Compare two approaches on representative inputs, including an awkward case. Record memory as well as timing when relevant.
Checkpoint: Explain when each approach is appropriate and where your measurements stop being informative.
Examine how storage, concurrency, networks and failures affect the result.
Try it: Trace one request or job. Introduce a controlled failure and check whether the system recovers as intended.
Checkpoint: Describe the failure behaviour and the assumptions your local experiment did not cover.
Make the reasoning useful to the next person maintaining the system.
Try it: Write a short decision record with alternatives, test evidence, rollout considerations and reasons to revisit it.
Checkpoint: A colleague can reproduce the comparison and understand why you chose the result.
Define the problem and constraints
Turn a vague concern about speed, reliability or maintainability into a question you can investigate.
Try it: Write the expected behaviour, workload and constraints. Capture a baseline before changing the design.
Checkpoint: You can say what a successful change would improve and what must remain correct.
Compare structures and algorithms
Connect familiar implementation choices to their operation costs and workload assumptions.
Try it: Compare two approaches on representative inputs, including an awkward case. Record memory as well as timing when relevant.
Checkpoint: Explain when each approach is appropriate and where your measurements stop being informative.
Check the system boundaries
Examine how storage, concurrency, networks and failures affect the result.
Try it: Trace one request or job. Introduce a controlled failure and check whether the system recovers as intended.
Checkpoint: Describe the failure behaviour and the assumptions your local experiment did not cover.
Document a defensible decision
Make the reasoning useful to the next person maintaining the system.
Try it: Write a short decision record with alternatives, test evidence, rollout considerations and reasons to revisit it.
Checkpoint: A colleague can reproduce the comparison and understand why you chose the result.
Learn the core ideas
Read the explanation, follow the worked example, then attempt the exercise before opening its answer. The examples are small teaching cases; they are not reports of measured production systems or completed research.
What this guide covers
- Translate needs into measurable behaviour — Requirements; Constraints; Acceptance criteria
- Measure the workload and compare alternatives — Performance; Distributions; Complexity
- Protect data invariants under concurrency — Transactions; Constraints; Isolation
- Design for retries and partial failure — Timeouts; Idempotency; Backpressure
- Build security into the change — Threat modelling; Authorisation; Data minimisation
- Test, release and recover deliberately — Testing; Configuration; Maintenance
- Include people in technical decisions — Accessibility; Ethics; Decision records
Lesson 1 of 7
Translate needs into measurable behaviour
A requirement should identify observable behaviour and relevant constraints. Separate a user need from a preferred implementation. Specify failure behaviour as carefully as success. Operational targets need a defined population, time window and measurement source before they are meaningful.
Worked example
“The import is fast” cannot be checked. “For the agreed 10 MB sample, import completes within 5 seconds in the named test environment, reports rejected rows and preserves existing records on failure” is testable.
Try it yourself
Improve “search should work well” by defining a result, an error case and one constraint.
Show suggested answer
For example: match a known title, show an explicit empty state when no title matches, and keep all search controls keyboard operable. Agree a representative dataset and latency target rather than inventing a universal number.
Checkpoint: Turn an ambiguous request into a requirement with an observable check.
Lesson 2 of 7
Measure the workload and compare alternatives
Measure with representative inputs and record the environment. Separate setup from steady-state costs when that distinction matters. Averages conceal distributions; percentiles depend on a stated calculation convention. Algorithmic complexity explains growth, while benchmarks describe particular runs. Neither replaces correctness checks.
Worked example
For response times [1, 1, 1, 1, 96] ms, the mean is 20 ms. With the nearest-rank convention, p95 is 96 ms. The average alone hides a very slow request.
Try it yourself
What should accompany a claim that a cache made a service twice as fast?
Show suggested answer
Describe the workload, warm/cold state, hit rate, error rate, memory use and distribution of timings. Explain how entries are invalidated. A speedup on one read-heavy sample does not prove a benefit for all traffic.
Checkpoint: State what your benchmark measures and what it cannot establish.
Lesson 3 of 7
Protect data invariants under concurrency
An invariant is a rule that must remain true across operations. Concurrent requests can each look valid in isolation and still break the combined result. Choose database constraints and coordination that protect the actual invariant. Transaction boundaries and isolation guarantees are part of the design, not incidental implementation details.
Worked example
One ticket remains. Two requests both read availability = 1 and both confirm a sale. Checking availability in application code before an uncoordinated write is not enough.
Try it yourself
Describe one database-backed way to prevent selling the same final ticket twice.
Show suggested answer
Use a suitably coordinated transaction or atomic conditional update that succeeds only if a ticket remains, and check the affected-row result. Alternatively model a uniquely claimed ticket. Validate the chosen database’s actual isolation and failure behaviour.
Checkpoint: Name the invariant and the operation that enforces it atomically.
Lesson 4 of 7
Design for retries and partial failure
A timeout leaves uncertainty about remote execution. Retries can duplicate work and amplify overload. Make repeat behaviour explicit, bound retry effort and define what clients should do when the outcome remains unknown. Queueing, rate limits and backpressure protect finite resources; they do not remove the need for a recovery policy.
Worked example
An order is committed but its response is lost. The client retries with the same operation key. The server checks a durably stored key and returns the prior outcome instead of creating a second order.
Try it yourself
Why is checking the key and then inserting the order in two uncoordinated operations insufficient?
Show suggested answer
Two workers may both see “not present” before either writes. The key claim and associated state change need an atomic design, usually backed by a uniqueness rule and an appropriate transaction. Define handling for key collisions and changed parameters.
Checkpoint: Explain duplicate suppression without claiming universal exactly-once delivery.
Lesson 5 of 7
Build security into the change
Identify assets, entry points, trust boundaries and credible misuse. Validate input at the boundary, check permission for the specific action and reduce unnecessary sensitive data. Keep dependencies and build artifacts traceable. A security tool can find classes of mistakes, but it does not prove the design is secure.
Worked example
An authenticated user changes a URL from /record/10 to /record/11. If the server checks only that they are logged in, it may reveal another person’s record.
Try it yourself
Write a negative test for the record endpoint and name one logging concern.
Show suggested answer
Request a record outside the user’s permitted scope and verify that access is denied without disclosing its contents. Do not log secrets or unnecessary personal record data. Apply the same rule to writes and bulk endpoints.
Checkpoint: Distinguish authentication from authorisation and show a denied-action test.
Lesson 6 of 7
Test, release and recover deliberately
Choose checks for risks at the right layer: pure rules, integrations and complete user journeys. A test environment may differ from production, so release evidence should name those limits. Define deployment, migration, rollback or forward-repair behaviour before making a change that affects stored data.
Worked example
Renaming a field breaks an older client even when the new server’s own tests pass. A staged compatibility change can read old and new forms while clients migrate, then remove the old form deliberately.
Try it yourself
Why might rolling back application code fail to recover from a database migration?
Show suggested answer
The old code may no longer understand the new schema, or the migration may have discarded information. Plan compatibility and recovery for both code and data. Test the upgrade path with representative existing records.
Checkpoint: Describe the release boundary and a recovery plan that includes data.
Lesson 7 of 7
Include people in technical decisions
Technical success includes the people affected by a system. Check whether users can complete the task, understand errors and recover from mistakes. Explain tradeoffs and seek review when your expertise or authority is insufficient. Keep decision records short enough to maintain and precise enough to challenge.
Worked example
A form has excellent server availability but its validation errors are announced only through red borders. Some users cannot discover why submission failed.
Try it yourself
Draft a decision record outline for improving this form.
Show suggested answer
Record the problem, affected users, constraints, alternatives, chosen error-message and focus behaviour, keyboard/screen-reader checks and a follow-up review date. Preserve security and privacy requirements while improving the interaction.
Checkpoint: Connect a design choice to user evidence and a maintenance consequence.
Put it into practice
Write an engineering change case study
Choose a small import, lookup or booking operation. Use synthetic data and compare the current approach with one proposed change.
Project brief
- Define correctness, user needs, workload and a measurable improvement.
- Build a minimal comparison with reproducible inputs and record tradeoffs.
- Exercise concurrency, invalid input and one controlled dependency failure.
- Write a decision record, release plan and recovery procedure with explicit limits.
What to produce
- Requirement and invariant checklist.
- Representative measurements including failures and resource use.
- Test results and a reproducible comparison setup.
- A decision record with security, accessibility and maintenance considerations.
Check your readiness
Use evidence, not the number of pages you have read. If one statement is unclear, return to the relevant lesson and try a new example.
- I can explain a central idea in my own words and trace a new example.
- I can attempt the exercises and explain why an answer is reasonable.
- I can test or challenge my work and record a mistake or limitation.
- I can produce the project evidence and identify the next gap to address.
These lessons cover recurring engineering concerns, not every professional role. Deepen the knowledge demanded by your actual systems, regulations, domain and responsibilities; consult specialists where the consequences require it.
Sources and scope
The teaching text, examples and exercises above are provided on Plain CS. These external references document the knowledge and professional guidance behind this selected overview; you do not need to leave the page to attempt its lessons.
- IEEE Computer Society SWEBOK v4 topic guide
Body-of-knowledge reference for requirements, design, quality, testing and maintenance. This is a selected practical guide, not a reproduction of SWEBOK.
- NIST SSDF, SP 800-218 version 1.1
Published framework for integrating security practices across software development.
- ACM Code of Ethics (PDF)
Reference for professional responsibility and consideration of affected people.
This is an introductory guide with practice, not a complete degree, accreditation, professional certification or a substitute for domain-specific instruction. Follow your institution’s or organisation’s requirements where applicable.
References reviewed .