freecoding.school100% FREE · NO SIGNUP
The Seven LayersISSUE #53 of 73

naming · constants · SHOUT_CASE + tier

OMNIVSThe Silent Failure
OMNI saysConstants are SHOUT_CASE + tier — loud, fixed, and labeled by layer.

§6's constant rule: constants use SHOUT_CASE and include their tier, making fixed values visually distinct and clearly owned. HORMONES (emotion tier), a memory cap, a metaSurf signature tag — each shouts that it's a constant and which layer it serves. The convention keeps the magic numbers out of cells (they reference named constants) and keeps tuning centralized and discoverable.

Power-ups you unlock

The Silent Failure attacks — common mistakes

Boss battleDefine a SHOUT_CASE constant with its tier and use it in a cell.

Example code

<!doctype html><html><head><meta charset="utf-8"></head>
<body style="background:#06040d;color:#b388ff;font-family:monospace;padding:20px"><pre>const MEMORY_MAX_SIGNALS = 200;   // memory tier
const META_SIG_OK = 'metaSurf:ok'; // meta tier
cells reference the names, not raw numbers</pre></body></html>
▶ Open the interactive comic issue
‹ Naming · State Variables · Tier + ConceptHonesty Tags · [ Measured ] Vs [ Stub ] Vs [ Honest ] ›