Software engineering explained
The habits that keep code changeable: parts that talk without knowing each other, and tests that stand in for the real thing.
Every software engineering concept
Observer pattern
Subscribe, notify, unsubscribe: how one change reaches many listeners.
OPEN LESSON
Mocks, stubs and fakes
Three kinds of stand-in for a test, and what each one checks.
OPEN LESSON
Open/closed principle
Add a new case by writing new code, without reopening code that already works.
OPEN LESSON
Dependency inversion and injection
Hand an object the tools it needs instead of letting it build its own.
OPEN LESSON
Singleton pattern
One shared instance for the whole program, and why that convenience has a price.
OPEN LESSON
Facade pattern
One simple front door for a tangle of classes behind it.
OPEN LESSON
Composite pattern
Files and folders answer the same question, so a whole tree acts like one item.
OPEN LESSON
Strategy pattern
Swappable rules behind one slot, replacing a chain of ifs with a function you pass in.
OPEN LESSON
State pattern
One class per state, so an object changes behaviour as it moves through a state machine.
OPEN LESSON
Chain of responsibility
A request moves down a line of handlers until one of them deals with it.
OPEN LESSON
MVVM
Model, view and view model: a screen kept in step by bindings, with logic you can test.
OPEN LESSON
Git branching strategies
Git Flow against trunk-based development: where work branches, merges and gets released.
OPEN LESSON
Unit testing
One small function, one test: arrange, act, assert, and a slip caught at the edge.
OPEN LESSON
Integration vs end-to-end testing
Testing the joins between parts, then the whole system, and what each one costs.
OPEN LESSON
Test-driven development
Failing test, passing code, tidy-up: a leap-year function grown in small rounds.
OPEN LESSON
Code coverage
Count the lines and branches your tests run, and see what 100% does not prove.
OPEN LESSON
Agile and Scrum
Deliver in short sprints and learn from each: Scrum’s roles, events and artifacts.
OPEN LESSON