✨ ARCANUM RUNE DIFFICULTY: Apprentice Behavioral

The State Pattern

A polite necromantic guide to the State pattern in INTERCAL.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: State
ARCANUM SCHOOL: Necromancy // Rigor Mortis
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
PLEASE DO STASH .RIGOR
DO .RIGOR <- #20
PLEASE COME FROM (29)
(29) DO IGNORE .DECAY_STAGE
PLEASE DO RETRIEVE .RIGOR

The State Pattern

In polite necromancy, State is essential. When dealing with the dead, you must never forget to say PLEASE. If you fail to be sufficiently polite to the compiler, the spell will fail, and your spirits will not awaken. The State pattern ensures a corpse alters its behavior internally as rigor mortis progresses, acting with the utmost courtesy.

Runic Tags: #intercal #state