The Bridge of the Hive Switchboard
Decoupling a spirit's interface from its raw manifestation.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Bridge
ARCANUM SCHOOL: Divination // Routing
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// ERLANG PATTERN //
-module(the_bridge).
-export([invoke/2]).
invoke(Implementation, Action) ->
Implementation:execute(Action).
-module(fire_impl).
-export([execute/1]).
execute(burn) -> io:format("Igniting the void~n").
The Bridge
Passing implementation modules as higher-order arguments to separate the logic of invocation from the raw power being unleashed.
Runic Tags:
#erlang
#actors
#telepathy
#switchboard
#bridge