Skip to content

Sample Developer Onboarding Guide

Benjamin Kowarsch edited this page Jul 14, 2026 · 2 revisions

How We are Managing Technical Debt with Modula-2 R10

Welcome to the project! In this ecosystem, technical debt is not treated as a passive, easily ignored comment or buried in a disconnected external issue tracker. Instead, technical debt is managed directly within the source code as a machine-readable language primitive.

From a project management perspective, technical debt is fundamentally an information deficiency and reporting problem: what cannot be measured, cannot be managed, nor can mitigation measures be budgeted for. By formalizing this data within the language grammar, we ensure that our codebase serves as a real-time, decentralized database for project metrics.


(1) The Core Rule: Architectural Rigor

The Modula-2 R10 compiler strictly enforces that empty statement blocks, empty loops, and empty procedure bodies are rejected at compile time.

To prevent silent, lazy developer errors, you have exactly two explicit choices for non-operational blocks: (a) Use the NOP statement for deliberately empty operational code (such as hardware polling loops). (b) Use the native TO DO syntax to stub out unfinished work or document localized deficiencies.

PROCEDURE TitleCaseTransform ( VAR s : ARRAY OF CHAR );
BEGIN
    FOR index, char IN s DO
        (* This block is valid because the TO DO primitive satisfies the non-empty requirement *)
        TO DO END 
    END (* FOR *)
END TitleCaseTransform;

(2) Syntax Cheat Sheet

The TO DO directive can be placed anywhere a definition, a declaration, or a statement can occur. It can track tasks locally or map them directly to external tracking databases using formal EBNF alias rules.

(a) The Simple Stub (Fills empty blocks safely)

TO DO END;

(b) Untracked Debt (Local tasks with description and effort estimations)

TYPE DynString = POINTER TO StringDescriptor;
TO DO 
    "bindings to NEW and RETAIN", 2d;
    "bindings to _ATVALUE, _ATSTORE, _LENGTH", 2d;
    "unit testing", 2d 
END;

(c) Tracked Debt (Linked to an external project management ticket)

PROCEDURE skipBlockComment ( infile : Infile ) : Token;
TO DO ( 1337, 2 (* minor *), "empty comment not recognised" ) 
    "verify loop exit conditions", 1h; 
    "fix and test", 1h 
END;

(d) Shared Ticket Reference (Re-using an existing issue ID at a different location)

TO DO ( 1337 ) "Fix: move increment to the end of the loop" END;

(3) Metrics and Estimation Standards

To ensure external analytical tools can parse and aggregate tracking data without risking string-parsing crashes, the arguments are strictly typed as literals via the EBNF grammar:

Severity Weights

When initializing an issue tracking reference, you must assign a standardized severity weight:

  • 3 (Major): Severe architectural, security, or functional impairment. Requires immediate project board visibility.
  • 2 (Minor): Non-breaking deficiency, missing optimization, or subtle edge-case bug.
  • 1 (Cosmetic): Aesthetic polish, naming convention alignments, or non-functional documentation updates.

Time Estimation Units

Time values are represented as a NumberLiteral followed immediately by a single-character lowercase StdIdent. Space characters between the digit and the unit are a syntax violation.

  • h = Hours
  • d = Days
  • w = Weeks

(4) The Tooling Pipeline

Managing debt involves two distinct components working together to eliminate the traditional "stale code audit" loop:

       [ Your Source Code ] 
                │
                ▼
  ┌───────────────────────────┐
  │         Compiler          │ ──► Enforces strict TO DO grammar and types
  └───────────────────────────┘ ──► Outputs basic issue counts per unit
                │
                ▼
  ┌───────────────────────────┐
  │    m2tdr Report Tool      │ ──► Aggregates total hours and weights
  └───────────────────────────┘ ──► Generates telemetry for project managers

(a) The Compiler: Validates the structural integrity of your TO DO statements. If a time unit is incorrect or a tracking reference is misconfigured, the build fails. It reports the total number of lists found in a compilation unit as an informational compile-time message. (b) The Debt Reporter (m2tdr): An external utility used by technical managers to audit workspace metrics on a daily or hourly basis. It aggregates the machine-readable definitions into financial and timeline projections.

To generate a report across the workspace, run:

$ m2tdr --summary --proj m2bsk

(5) Best Practices

(a) The Incentive to Report: Programmers often hide technical debt because traditional workflows treat it as a reprimand. On this team, your TO DO entries directly drive budgeting. Accurate documentation ensures management can look at the data and say, "We will authorize budget and time to work down 15% of the debt over the next year." (b) Be Honest with Estimates: Do not under-estimate to look fast. The estimations feed the m2tdr tool directly to secure authorized refactoring hours. (c) Never Use NOP to Hide Debt: NOP is reserved strictly for intentional, correct, and completely finished empty control structures (like hardware polling or event loops). If a block is empty because it is incomplete, you must use TO DO. (d) Keep Task Strings Punchy: Reporting summaries clip overly long strings. Keep your description headers concise and understandable for our non-technical colleagues on the project board.

Clone this wiki locally