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.

17 conceptsBeginner to Intermediate

Every software engineering concept

Software engineeringBeginner

Observer pattern

Subscribe, notify, unsubscribe: how one change reaches many listeners.
OPEN LESSON
Software engineeringIntermediate

Mocks, stubs and fakes

Three kinds of stand-in for a test, and what each one checks.
OPEN LESSON
Software engineeringIntermediate

Open/closed principle

Add a new case by writing new code, without reopening code that already works.
OPEN LESSON
Software engineeringIntermediate

Dependency inversion and injection

Hand an object the tools it needs instead of letting it build its own.
OPEN LESSON
Software engineeringIntermediate

Singleton pattern

One shared instance for the whole program, and why that convenience has a price.
OPEN LESSON
Software engineeringBeginner

Facade pattern

One simple front door for a tangle of classes behind it.
OPEN LESSON
Software engineeringIntermediate

Composite pattern

Files and folders answer the same question, so a whole tree acts like one item.
OPEN LESSON
Software engineeringBeginner

Strategy pattern

Swappable rules behind one slot, replacing a chain of ifs with a function you pass in.
OPEN LESSON
Software engineeringIntermediate

State pattern

One class per state, so an object changes behaviour as it moves through a state machine.
OPEN LESSON
Software engineeringIntermediate

Chain of responsibility

A request moves down a line of handlers until one of them deals with it.
OPEN LESSON
Software engineeringIntermediate

MVVM

Model, view and view model: a screen kept in step by bindings, with logic you can test.
OPEN LESSON
Software engineeringBeginner

Git branching strategies

Git Flow against trunk-based development: where work branches, merges and gets released.
OPEN LESSON
Software engineeringBeginner

Unit testing

One small function, one test: arrange, act, assert, and a slip caught at the edge.
OPEN LESSON
Software engineeringBeginner

Integration vs end-to-end testing

Testing the joins between parts, then the whole system, and what each one costs.
OPEN LESSON
Software engineeringBeginner

Test-driven development

Failing test, passing code, tidy-up: a leap-year function grown in small rounds.
OPEN LESSON
Software engineeringBeginner

Code coverage

Count the lines and branches your tests run, and see what 100% does not prove.
OPEN LESSON
Software engineeringBeginner

Agile and Scrum

Deliver in short sprints and learn from each: Scrum’s roles, events and artifacts.
OPEN LESSON