Skip to content

Principles

  1. 1

    Software is meaning made executable.

    1. 1.1

      The meaning of a thing is what it is, what it may become and what may be done with it.

      1. 1.11 The conditions a thing can be in are its states. Its state determines which operations are allowed.
    2. 1.2

      Software is built by composition.

      1. 1.21 Composition joins parts, each with a meaning of its own.
      2. 1.22 Some parts provide capabilities. Others hold the rules of a domain.
      3. 1.23 Capabilities recur from product to product. A domain belongs to one.
    3. 1.3

      Every part carries assumptions about data, effects and failure.

      1. 1.31 An effect is whatever a part does to the world beyond it.
      2. 1.32 Where those assumptions differ, integration work begins.
      3. 1.33 Differences of convention add integration cost, not meaning.
    4. 1.4

      The cost of software lies as much in the joins as in the parts.

  2. 2

    Whatever meaning is left unstated is guessed.

    1. 2.1

      Each guess becomes an assumption carried by the part that embodies it.

      1. 2.11 Two reasonable guesses can contradict each other.
      2. 2.12 Software built on contradictory guesses breaks at its joins.
    2. 2.2

      An agent changes what code costs, not what code must do.

      1. 2.21 An agent guesses at the meaning its instructions leave unstated.
      2. 2.22 The faster agents write, the more guesses become code.
    3. 2.3

      An agent's foundation is the parts, conventions and language it builds on.

      1. 2.31 An agent inherits the strengths and omissions of its foundation.
      2. 2.32 Whatever a foundation permits, an agent will write.
      3. 2.33 A foundation and the software built on it form one system.
    4. 2.4

      Errors are certain. Their kinds are not.

      1. 2.41 A foundation decides which kinds are prevented, which are exposed and which get through.
    5. 2.5

      A review is a judgement, not a proof.

      1. 2.51 People decide what software must mean.
      2. 2.52 An agent decides within the boundaries of its foundation.
  3. 3

    Correctness must be made explicit.

    1. 3.1

      Software is correct when it does what its meaning says.

      1. 3.11 Correctness can be judged only against stated meaning.
    2. 3.2

      An instruction can be ignored. A check cannot.

      1. 3.21 A check makes a stated property enforceable.
      2. 3.22 A rule left unchecked will eventually be broken.
    3. 3.3

      An ontology makes meaning explicit.

      1. 3.31 An ontology describes the things a system represents and how they relate.
      2. 3.32 An ontology left unchecked is only a description.
    4. 3.4

      Every state a thing can take must be named.

      1. 3.41 An unnamed state is handled by accident, or not at all.
    5. 3.5

      External input is untrusted until it is validated.

      1. 3.51 Data is validated once, where it enters.
    6. 3.6

      A part may cause only the effects it is given.

  4. 4

    A language decides what can be stated.

    1. 4.1

      Types describe the states data can take and the operations allowed on it.

      1. 4.11 Invalid states must be unrepresentable.
      2. 4.12 The type of validated data records its guarantees.
      3. 4.13 Not every rule of a domain fits in a type. Every rule that fits belongs there.
    2. 4.2

      Code must state plainly what it means to do.

      1. 4.21 A person can judge only what the code makes plain.
    3. 4.3

      A language is one layer of a foundation, not the whole of it.

      1. 4.31 No language makes software correct on its own.
      2. 4.32 Types rule out kinds of error, not errors of logic.
    4. 4.4

      What types cannot rule out must be tested.

      1. 4.41 Tests challenge behaviour. They reveal errors, never their absence.
      2. 4.42 A test written from the meaning challenges the code. A test written from the code repeats its assumptions.
    5. 4.5

      What tests cannot settle must be observed.

      1. 4.51 Load, timing and the real shape of data are known only in operation.
    6. 4.6

      Reliability comes in layers.

      1. 4.61 Each layer catches errors the one before it lets through.
  5. 5

    A coherent foundation does each thing one way.

    1. 5.1

      Conventions settle what would otherwise be arbitrary.

      1. 5.11 Every arbitrary choice is a chance to be wrong.
    2. 5.2

      Parts designed together compose without translation.

      1. 5.21 Data, effects and failure are modelled one way across every part.
    3. 5.3

      One canonical approach is worth more than several good ones.

    4. 5.4

      Tests carry what was learned in building a part.

      1. 5.41 A foundation is trusted when its parts are tested together.
    5. 5.5

      Every part says how it is meant to be used.

  6. 6

    What can be computed must not be guessed.

    1. 6.1

      Composition comes before invention.

      1. 6.11 What a part already does need not be guessed again.
    2. 6.2

      Deterministic where possible. Intelligent where necessary.

      1. 6.21 An agent interprets what cannot be determined.
  7. 7

    What the language cannot say, the system cannot get wrong.