Briefle words · Code & architecture
Scope
The part of the code where a name exists and can be used, from a single line up to the whole codebase.
Say it to an AI
TypeScript assignDriver(ride) that offers the ride to the nearest drivers by ETA, one at a time, until one accepts. Scale name length with scope: exported constants get full screaming-snake-case names with units (OFFER_TIMEOUT_MS, MAX_DRIVERS_PER_RIDE), while one-line callbacks can use a and b.
How an expert would brief the stronger version of “Driver dispatch”.
See it
Try it as a puzzle →A snippet shared in team chat for review: how a ride-hailing app offers a ride to nearby drivers.
Why: The sort's a and b exist for one line; OFFER_TIMEOUT_MS is exported and used in other modules, so it has the widest scope.
More ways experts use it
Draft kickoff notes for a school reading-log web app. Besides goal, users and core flow, state the constraints explicitly: $18k budget, live by Jan 8, web-only on district laptops, and student data stays in the district. Leave nice-to-have ideas out of scope for now.
Kickoff whiteboard · Product & specs
Related words
Room 2 · Naming
Learn “Scope” in a five-minute lesson