Liskov Substitution: Any Bee Can Do the Dance
Placeholder prose. Every worker can perform the waggle dance, and the hive reads it the same way whoever danced it. The opening section sets up the analogy and states the principle in one sentence.
Second paragraph of placeholder body copy. It names the failure mode the principle prevents and the exact call site where it bites.
The subtype that lies
Placeholder lead-in to the code sample below.
hive/drone.ts
class Bee {
dance(): Route { … }
}
class Drone extends Bee {
// the caller was promised a Route
dance(): Route { throw new Error("drones do not dance"); }
}Inheritance is a promise about behaviour, and the compiler only checks the shape of it.
Substitutable, or not a subtype
Closing placeholder paragraph. It restates the rule, concedes the one case where breaking it is fine, and hands off to the next article.