The Template Method of the Grooming Ritual
Defining the skeleton of an algorithm in an operation, deferring some steps to subclasses.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Template Method
ARCANUM SCHOOL: Illusion // Skeleton-Code
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
HAI 1.2
CAN HAS STDIO?
HOW IZ I GROOMING_ROUTINE YR LICK_FUNC
VISIBLE "START GROOMING: LICKING PAWS"
BOTH SAEM LICK_FUNC AN "SHORT_HAIR", O RLY?
YA RLY
VISIBLE "QUICK LICK FOR SHORT FUR"
NO WAI
VISIBLE "DEEP CLEAN FOR LONG MAJESTIC FUR"
OIC
VISIBLE "END GROOMING: SLEEP"
IF U SAY SO
I IZ GROOMING_ROUTINE YR "SHORT_HAIR" MKAY
VISIBLE "---"
I IZ GROOMING_ROUTINE YR "LONG_HAIR" MKAY
KTHXBYE
The Template Method establishes the unchangeable skeleton of the ancient Grooming Ritual while allowing specific lineages of cyber-cats to override the internal fur-cleansing subroutines.
Runic Tags:
#template-method
#feline
#cyber-runes