Member-only story

Scopes: The Art of Web Application Design

Mahmudur R Manna
7 min readNov 29, 2024

Link for non-members: https://mrmanna.medium.com/scopes-the-art-of-web-application-design-1e66d94e2db5?sk=ca818064f4201f1c91108f8baef78813

Building great software is an act of elegance. It’s not just about solving problems or writing code; it’s about crafting systems where every element knows its place, its role, and its relationships. It’s about creating order from potential chaos. And at the heart of this craft lies a deceptively simple yet profoundly beautiful concept: scope.

Scope is the unsung hero of software architecture. Like the air we breathe, it’s everywhere, governing the lifecycle and interactions of everything in our systems — often without us consciously noticing it. But for those who aspire to become great architects, scope is more than just a tool; it’s the foundation of clarity, the essence of design thinking, and the starting point of mastery.

The Beauty of Scope: A Matter of Boundaries

Great architects, whether in civil engineering or software, are obsessed with boundaries. They know that boundaries aren’t limitations — they are enablers. They define where something starts, where it ends, and how it interacts with the world around it. Without boundaries, cities become unlivable, and software becomes unmanageable.

Scopes in software design are these boundaries. They define how long something exists, where it can be accessed, and what it can interact with. But the real art lies not in defining scope but in understanding its purpose.

Let’s consider some insights into the essence of scope:

Request Scope: Minimalism

do what needs to be done, then disappear without a trace

Request Scope is like a fleeting moment — a user interaction. It is the most transient of all scopes, existing only for the duration of a single HTTP request. And yet, in its transience lies its power.

Imagine a user searching for “rare Japanese tea sets” on an e-commerce site. The request scope handles the search, processes the data, and displays the results — all within a heartbeat. Then, it vanishes. The beauty here is in its efficiency. Nothing lingers longer than necessary.

--

--

Mahmudur R Manna
Mahmudur R Manna

Written by Mahmudur R Manna

Engineer | Author | Entrepreneur with over two decades of experience across the globe at the intersection of technology and business

No responses yet