Skip to content

Distinct Logic Authority

Greg Bowler edited this page May 9, 2026 · 4 revisions
  • Explain that each operational state of the application should have one clear entry point.
  • Explain why URLs should represent meaningful application state.
  • Explain how Hypermedia applications (plain HTML over HTTP) promote higer quality code.

Traceability

  • Immediately obvious which line of code is the entry point to the logic.
  • Improves traceability.
  • Avoids duplicated behaviour spread across the system.
  • Keeps request handling comprehensible.

Relationship to WebEngine

  • Connect the idea to file-based routing and thin page logic.
  • Show how distinct URLs and distinct logic reinforce each other.
  • Example: debug why a button isn't working - page is on a URL, easily find the page logic, find the function from the button value.
  • Example: any redirects are explained in X-Location-Sent-From header.
  • Example: any go or do functions are explained in X-Logic-Execution header.

Next, read SPA vs MPA.

Clone this wiki locally