🏢 PL/I MONOLITH DIFFICULTY: Apprentice Behavioral

The Template Method

Define the skeleton of an algorithm in an operation, deferring some steps to punch card subroutines.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Template Method
ARCANUM SCHOOL: Evocation // Skeleton
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// PLI PATTERN //
/* The Template Method */
TEMPLATE: PROC OPTIONS(MAIN);
   DCL STEP_ONE ENTRY;
   DCL STEP_TWO ENTRY;

   RUN_ALGORITHM: PROC;
      PUT SKIP LIST('Starting standard algorithm skeleton...');
      CALL STEP_ONE();
      CALL STEP_TWO();
      PUT SKIP LIST('Algorithm complete.');
   END RUN_ALGORITHM;
END TEMPLATE;

The Template Method establishes the overarching control flow while deferring specific implementations to function pointers or external procedures.

Runic Tags: #template #skeleton #algorithm