Single Responsibility: One Bee, One Job
Placeholder prose. A forager forages, a nurse nurses, the queen lays, and no bee is asked to do two of those at once. The opening section sets up the analogy and states the principle in one sentence.
Second paragraph of placeholder body copy, roughly the length a real one runs. It names the failure mode the principle prevents and the cost of ignoring it.
The class that does too much
Placeholder lead-in to the code sample below.
hive/forager.ts
class Forager {
forage(field: Field) { /* ok */ }
// and then, somehow, also:
persist(db: Database) { … }
render(): HTML { … }
emailQueen() { … }
}
// four reasons to change. pick one.A pull quote sits here, one sentence long, in the serif’s true italic.
One reason to change
Closing placeholder paragraph. It restates the rule, concedes the one case where breaking it is fine, and hands off to the next article.