← Back to PatternPip

BUILDER / THE WALKTHROUGH

One report.
Built with intention.

From a growing argument list to deliberate construction steps.

CHAPTER 1 OF 3

Two pieces. One simple call.

A report needs a title and a body. Pass those two values to a function and the report is ready to read.

Edit the title or body, then create the report. A small construction function is easy to understand.

LIVE REPORT WORKSHOP

Your report

Choose the content, then create a completed report.

No report built yet.

Inspect this construction call
basicReport("Weekly update", "We shipped a new lesson and collected reader feedback.")

Generated from the current inputs. The workshop executes TypeScript; Kotlin shows the equivalent arguments.

Keep the construction small.

There is no need to add a builder around a two-argument function. First see whether the construction actually becomes complex.

Inspect the implementation
export function basicReport(title: string, body: string) {
  return createReport({ title, body });
}

Each chapter starts fresh. Theme and language changes preserve the current example.