Chapter 80: The software development lifecycle
The software development lifecycle is the sequence software goes through from an agreed need to running code: requirements, building, testing and release. Agile teams run the loop every week or two (→ 66 Design in agile teams). Knowing its stops lets a designer catch problems while they’re cheap to fix.
Requirements
A requirement is a statement of what software must do, or how well, agreed before anyone builds it. Most product teams write them as user stories, short requirements from a user’s point of view. The common template, “As a [role], I want [feature], so that [reason]”, came from the British company Connextra in 2001.1 For example: “As a shopper, I want to save an item for later, so that I can clear my cart without losing it.”
A story isn’t finished until it has acceptance criteria, the testable conditions the work must meet. In 2006 Dan North and Chris Matts proposed writing them as scenarios: Given some starting context, When an event happens, Then some outcome follows.2 “Given a cart with two items, when the shopper taps Save for later on one, then it moves to the Saved list and the cart total updates.” Both a tester and a designer can check that.
A functional requirement says what the system does. A non-functional requirement says how well it does it: speed, security, usability, maintainability.3 Accessibility and loading time belong here and get dropped when nobody writes them down (→ 49 Accessibility and inclusive design). Link the design file to the story, and write empty, error and loading states into the criteria.
Version control and Git
Version control is a system that records changes to files so earlier versions can be recovered.4 Git is a distributed version control system that the Linux kernel community, led by Linus Torvalds, wrote in 2005 after losing free use of the proprietary tool BitKeeper.5
The code lives in a repository: the files plus their full history. Each saved change is a commit, a snapshot with an author, a message and a pointer to the commit before it. A branch is a separate line of commits. In Git it’s only a pointer to one commit, so developers make one for each piece of work.6 Finished work is merged back into the main line.
On platforms such as GitHub, that merge happens through a pull request: a proposal to merge one branch into another, showing changed files, review comments and automated check results.7 A designer who reviews the preview link or screenshots before the merge catches spacing and copy errors while the developer still has the code open (→ 81 Handoff and accessibility in code).
Testing
Here, testing means automated tests: code checking code. A unit test checks one small piece, such as the function that adds up a cart. An integration test checks that parts work together. An end-to-end test drives the finished product through its interface the way a user would.
Mike Cohn drew these as a test pyramid around 2003–4 and published it in 2009: many unit tests at the base, few end-to-end tests at the top. End-to-end tests are slow, break when the interface changes, and sometimes fail for no repeatable reason, so teams keep them for the paths that matter most.8 A visual regression test compares screenshots before and after a change and flags differences for a person to approve. It catches the changed button color that every other test passes.
None of this shows whether people can use the product (→ 53 Usability testing).
CI/CD and releases
Continuous integration (CI) is the practice of merging every developer’s work into the main line at least once a day, each time checked by an automated build and tests. Kent Beck developed it in the 1990s as part of Extreme Programming.9 The checks run in a pipeline, an automated sequence of steps every change passes through. A red build means a step failed; the change goes no further.
To deploy is to put code on servers or devices (→ 76 Frontend, backend and architecture); to release is to make a feature available to users. A feature flag separates the two: the code ships switched off, and the team turns it on later, for staff first, then a share of users, then everyone. Pete Hodgson notes that flags also run A/B tests (→ 85 Analytics, experiments and data-informed design) and warns that each adds code paths to test, so remove it once its job is done.10 When a release does need a number, semantic versioning writes it as MAJOR.MINOR.PATCH: a major change breaks compatibility, a minor one adds features, a patch fixes bugs.11
See also
66 Design in agile teams · 53 Usability testing · 76 Frontend, backend and architecture · 81 Handoff and accessibility in code · 85 Analytics, experiments and data-informed design · 91 Project and delivery management
Sources
- Agile Alliance (n.d.). “Role-feature-reason.” Agile Glossary.
- Chacon, S. and Straub, B. (2014). Pro Git, 2nd edition. Apress. Online at git-scm.com.
- Fowler, M. (2012). “Test Pyramid.” Bliki, revised 2017.
- Fowler, M. (2013). “Continuous Delivery.” Bliki, updated 2014.
- Fowler, M. (2024). “Continuous Integration.” martinfowler.com.
- GitHub Docs (n.d.). “About pull requests.”
- Hodgson, P. (2017). “Feature Toggles (aka Feature Flags).” martinfowler.com.
- North, D. (2006). “Introducing BDD.”
- Preston-Werner, T. (n.d.). Semantic Versioning 2.0.0.
- Scaled Agile, Inc. (n.d.). “Nonfunctional Requirements.” SAFe.
Notes
- Agile Alliance (n.d.). “Role-feature-reason.” Agile Glossary. https://www.agilealliance.org/glossary/role-feature/ ↩
- North, D. (2006, September 20). “Introducing BDD.” https://dannorth.net/blog/introducing-bdd/ ↩
- Scaled Agile, Inc. (n.d.). “Nonfunctional Requirements.” SAFe Framework. https://framework.scaledagile.com/nonfunctional-requirements/ ↩
- Chacon, S. and Straub, B. (2014). Pro Git, 2nd edition, section 1.1, “About Version Control.” https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control ↩
- Chacon, S. and Straub, B. (2014). Pro Git, 2nd edition, section 1.2, “A Short History of Git.” https://git-scm.com/book/en/v2/Getting-Started-A-Short-History-of-Git ↩
- Chacon, S. and Straub, B. (2014). Pro Git, 2nd edition, section 3.1, “Branches in a Nutshell.” https://git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell ↩
- GitHub Docs (n.d.). “About pull requests.” https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests ↩
- Fowler, M. (2012, revised 2017). “Test Pyramid.” https://martinfowler.com/bliki/TestPyramid.html ↩
- Fowler, M. (2024). “Continuous Integration,” revised edition (first published 2000). https://martinfowler.com/articles/continuousIntegration.html ↩
- Hodgson, P. (2017). “Feature Toggles (aka Feature Flags).” martinfowler.com. https://martinfowler.com/articles/feature-toggles.html ↩
- Preston-Werner, T. (n.d.). Semantic Versioning 2.0.0. https://semver.org/ ↩
- Fowler, M. (2013, updated 2014). “Continuous Delivery.” https://martinfowler.com/bliki/ContinuousDelivery.html ↩