⚙️ BARE METAL RUNES DIFFICULTY: Adept Behavioral

The Template Method

Laying the skeletal framework of a spell while letting subclasses flesh it out.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Template Method
ARCANUM SCHOOL: Necromancy // Ritual Frameworks
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// BARE METAL ARCHITECTURE RUNE //
section .data
    step_two_ptr dq default_step_two

section .text
    global ritual_template

ritual_template:
    call step_one

    ; Subclass hook
    mov rax, [step_two_ptr]
    call rax

    call step_three
    ret

step_one:
    ; Draw the circle
    ret

default_step_two:
    ; Default chanting
    ret

step_three:
    ; Seal the pact
    ret

The Template Method establishes the invariant skeleton of an algorithm. Specific steps within the sequence are deferred to dynamically injected pointers, allowing other practitioners to customize the ritual without breaking its foundational circle.

Runic Tags: #template-method #assembly #behavioral #necromancy