Skip to main content

Chapter 23

Extending Instead of Replacing

"The strength of a framework is measured not by how often it changes, but by how naturally it can be extended."


Why This Chapter Exists

Up to this point, this handbook has explained how the Cube Framework is designed.

Its philosophy.

Its architectural principles.

Its runtime systems.

Understanding an architecture, however, is only the beginning.

The true value of a framework becomes visible when developers begin building upon it.

This chapter introduces one of the most important principles of the Cube Framework:

New functionality should extend the architecture rather than replace it.


Stable Foundations

The Cube Framework deliberately separates stable architectural foundations from changing gameplay requirements.

The architecture should remain recognizable even as new gameplay systems are introduced.

New runtime systems.

New gameplay mechanics.

New authored content.

All of these are expected.

Replacing architectural foundations whenever requirements evolve would gradually destroy the consistency established throughout the framework.

Instead, the architecture remains stable while new functionality grows around it.


Growth Without Redesign

One of the defining characteristics of a healthy framework is its ability to grow without requiring architectural redesign.

Adding a new feature should rarely require changing existing systems.

Instead, new systems should naturally integrate with the architectural responsibilities that already exist.

Definitions remain Definitions.

Operations remain Operations.

The Runtime Pipeline remains unchanged.

Growth therefore becomes additive rather than disruptive.


Respect Existing Responsibilities

Every subsystem within the Cube Framework already owns a specific architectural responsibility.

Before introducing new functionality, the first question should never be:

"Where can I place this code?"

Instead ask:

"Does an existing responsibility already describe this problem?"

If the answer is yes, extend that responsibility.

If the answer is no, introduce a new responsibility rather than overloading an existing one.


Extension Before Modification

Direct modification of existing systems should become increasingly rare as the framework matures.

Instead of rewriting stable infrastructure, new functionality should attach itself to the existing architecture.

This approach preserves compatibility.

Reduces maintenance.

Improves predictability.

Most importantly, it allows multiple Cube modules to evolve independently while continuing to share the same architectural foundation.


The Cost of Replacement

Replacing infrastructure often appears easier in the short term.

Over time, however, replacement creates fragmentation.

Documentation becomes inconsistent.

Architectural terminology begins drifting.

Future modules solve identical problems differently.

Eventually, developers stop trusting the framework itself.

The Cube Framework deliberately avoids this outcome.

Consistency is treated as a long-term investment.


Extension Creates an Ecosystem

The long-term vision of the Cube Framework extends beyond individual modules.

Weapons.

Vehicles.

Equipment.

Characters.

Future systems should not introduce new architectural languages.

They should participate in the one that already exists.

Every successful extension therefore strengthens the ecosystem rather than creating an isolated solution.


Design Note

Whenever you introduce new functionality, avoid asking:

"How can I implement this?"

Instead ask:

"How can this become a natural extension of the existing architecture?"

A framework grows through extension.

Not through replacement.


Framework Law XXIII

Every extension should strengthen the existing architecture rather than compete with it.

The most successful Cube modules are those that feel like they were always meant to exist.


Looking Ahead

Extending the framework begins with understanding responsibilities.

The next chapter explores how new architectural responsibilities emerge and how they can be introduced without disturbing the existing structure.


Revision History

Version 1.0

Initial publication.