Example

See author-composed separation of concerns diagrams →

← Lenses and diagrams

PROGRAM ORGANIZATION

Explore a program’s organization.

When a feature changes several handlers, where should that change live? Explore this forum’s request handlers and shared building blocks. Open a group, follow its references, and compare two ways to extract repeated response construction.

Loading the recorded map. The browser compiler starts only when you rebuild or run.

Try an extension before choosing an abstraction
  1. Add has_replies at the top level of the successful read_thread, post_reply and edit_post responses, based on the returned post list.
  2. Add fresh_reply_id only to the successful reply response. Keep the other responses unchanged.
  3. Add member_count inside every serialized Thread. Inspect render_thread first: the existing abstraction already covers this change.
  4. The preview extension reuses validation, visibility, capacity checks, reads, and shared fields to show the current thread without allocating an ID or writing a post. Compare its direct effects with post_reply.
Read or edit source and comparison metadata

What the map establishes


Download the source, authored view and checked artifact

Ask your agent about anything here; it has the detail.

Where this fits

What this is about: Lenses and diagrams