The Abstract Factory of Ancient Ledgers
Summoning entire lineages of financial daemons from the mainframe abyss without specifying their concrete incantations.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Abstract Factory
ARCANUM SCHOOL: Necromancy // Corp-mancy
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// COBOL PATTERN //
IDENTIFICATION DIVISION.
CLASS-ID. LEDGER-FACTORY INHERITS BASE-DAEMON.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
REPOSITORY.
CLASS BASE-DAEMON IS "System.Object"
CLASS CURSE-LEDGER IS "CurseLedger"
CLASS BOON-LEDGER IS "BoonLedger".
IDENTIFICATION DIVISION.
FACTORY.
PROCEDURE DIVISION.
IDENTIFICATION DIVISION.
METHOD-ID. CREATE-CURSE-LEDGER.
DATA DIVISION.
LINKAGE SECTION.
01 RET-LEDGER OBJECT REFERENCE CURSE-LEDGER.
PROCEDURE DIVISION RETURNING RET-LEDGER.
INVOKE CURSE-LEDGER "NEW" RETURNING RET-LEDGER.
END METHOD CREATE-CURSE-LEDGER.
IDENTIFICATION DIVISION.
METHOD-ID. CREATE-BOON-LEDGER.
DATA DIVISION.
LINKAGE SECTION.
01 RET-LEDGER OBJECT REFERENCE BOON-LEDGER.
PROCEDURE DIVISION RETURNING RET-LEDGER.
INVOKE BOON-LEDGER "NEW" RETURNING RET-LEDGER.
END METHOD CREATE-BOON-LEDGER.
END FACTORY.
END CLASS LEDGER-FACTORY.
The Abstract Factory binds a covenant with the deep mainframe, allowing the Necromancer to summon related families of ledger-spirits (curses and boons) without knowing the exact bytes of their dark conception. True corporate necromancy relies on abstracting the horror away from the high-level business logic.
Runic Tags:
#necromancy
#mainframe
#gof
#creational