The whole, before the parts

Software design organizes responsibilities and interactions so a system can meet its requirements and evolve. Architecture concerns choices with broad consequences, such as how data and services are divided. Citation needed

For example, in an order application, changing how receipts are formatted should have a clear relationship to the parts responsible for orders and payments. Design makes those responsibilities and connections explicit. Citation needed

The concepts examine which responsibilities belong together, how components depend on each other, and which competing needs guide the arrangement. Judge the parts by how well the whole system meets its requirements and accommodates change. Citation needed

Terminology and core concepts

  1. Cohesion

    Cohesion describes how closely a component’s responsibilities belong together. Citation needed

    Why group closely related responsibilities?
    changes are easier to understand locally Citation needed
  2. Coupling

    Coupling describes dependencies between components. Citation needed

    What can high coupling do to a small change?
    make it require changes elsewhere Citation needed
  3. Tradeoff

    A tradeoff exchanges an improvement in one property for a cost in another. Citation needed

    Can an architecture maximize every desirable property at once?
    usually not Citation needed

Try an example

Two screens calculate the same price using separate copies of a rule. What risk does that create? Citation needed

Show the reasoning

One copy may change while the other does not. A shared, clearly owned pricing rule can reduce disagreement, provided its interface suits both uses.

Citation needed

Sources and further reading

Core notes reviewed .

Learning path

Continue through Software Engineering in order, using the concepts above to connect this topic to the next.