On this page
  1. Computational Thinking & Abstraction
  2. Contents
  3. Decomposition & Contracts
  4. Abstraction Boundaries & Invariants

Computational Thinking & Abstraction

Prev: foundations | Up: foundations | Next: State, Variables & Scope
Rel: Modularity, Cohesion & Coupling
Ref: Wikipedia — Computational Thinking
Tags: #public #prog #programming #foundations


Contents


Decomposition & Contracts

Every program solves a problem by breaking it into smaller, composable sub-problems with explicit inputs, outputs, preconditions, and postconditions:

Input Data -> [ Validate ] -> [ Transform ] -> [ Persist / Emit ]

Good decomposition isolates what a step guarantees (its interface) from how it achieves it (its implementation), so internals can be rewritten without breaking callers.


Abstraction Boundaries & Invariants

Linked from

Related notes