The Real Secret of Durable Systems: Make Change Easy, Make Memory Cheap
Hatched by Warish
Jun 26, 2026
10 min read
2 views
58%
The hidden problem behind every good system
What do a dark mode toggle and a global payment network have in common?
At first glance, almost nothing. One is a small user interface feature, a button that flips a website between light and dark. The other is a sprawling financial infrastructure that moves money across borders and earns fees at planetary scale. Yet both are examples of the same deeper design principle: the most valuable systems do not just work, they make state changes simple and persistence reliable.
That sounds abstract, so let us make it concrete. A website theme switcher is not really about colors. It is about whether a system can answer a tiny but essential question: What state am I in right now, and how do I preserve that state without friction? Mastercard is not really about plastic cards or even credit. It is about whether a system can answer an even bigger question: How do we let billions of participants transact safely, instantly, and repeatedly, while preserving trust across time and geography?
Both systems succeed because they do two things exceptionally well. First, they reduce the cost of switching states. Second, they make the chosen state durable. That is the deeper pattern worth studying, because it shows up everywhere from software architecture to business moats to human habits.
The strongest systems are not the ones that never change. They are the ones that make change easy and memory dependable.
State is the real product
In a simple theme toggle, the visible feature is the button. But the real product is not the button. The real product is state management. When a user clicks, the application updates a class on the body, then remembers that choice in local storage, then restores it on page load. The visuals are just the symptom of an underlying contract: the system should reflect user intent now, and remember it later.
That is a useful lens for thinking beyond interfaces. A business like Mastercard also lives and dies by state management, except its “state” is not dark mode versus light mode. Its state is whether a transaction is approved, routed, settled, secure, and trusted. Mastercard does not manufacture the cards, just as a theme toggle does not manufacture the CSS palette. Instead, it coordinates a network of dependencies so that the right state can be established and preserved across many actors.
This is why both systems benefit from a small number of control points. In the UI, a single class on the body can transform an entire site because design decisions are centralized in CSS variables. In payments, a single network layer can connect merchants, banks, and cardholders because the rule set is centralized in the network. The magic is not in complexity. The magic is in concentrated leverage.
Think of it like a city switching from manual traffic officers to a synchronized traffic light system. You do not need every driver to understand the whole city. You need a few reliable signals that shift the state of the entire network. That is what CSS variables do for a website, and what payment rails do for commerce.
Why durable systems separate control from presentation
A theme toggle works because it separates what changes from what depends on the change. The toggle is a control surface. The colors are consequences. By putting background and text colors into variables, the site becomes easy to restyle without editing every component individually.
That separation is not just neat engineering. It is a strategy for resilience. When change is centralized, the system becomes easier to govern. When presentation is decoupled from control, you can evolve the surface without breaking the foundation. In practice, this means a website can offer a better experience with less code, and a financial network can expand globally without reinventing the rails in every market.
Mastercard’s model reflects the same principle. It does not need to issue every card or hold every account. It provides the network and the standards that make transactions possible. Banks issue the cards, merchants accept them, consumers use them, but Mastercard owns the connective tissue. This is a classic example of abstraction as power.
Abstraction matters because it lowers coordination cost. If every merchant had to negotiate separately with every bank in every country, the system would collapse under its own complexity. If every component in a website had to know its exact colors and manually update them, theming would become brittle. Instead, both systems rely on a small set of shared variables that allow vast downstream behavior to update automatically.
Here is the business lesson hidden inside the code lesson: the best systems do not optimize every edge case locally, they define a clean interface globally. Local flexibility comes from global simplicity.
The economics of remembering
A theme preference that disappears on refresh is not really a preference. It is a momentary gesture. The code only becomes complete when the application remembers the choice in local storage and restores it on page load. That is the difference between a toy and a product.
This sounds trivial until you notice how often businesses fail at the same point. Many companies can produce a one time transaction. Far fewer can preserve relationship state. The real value often comes from remembering: what the user likes, what the network trusts, what the merchant expects, what the bank has approved, what behavior is safe to repeat.
Mastercard’s economic moat is built partly on memory at scale. Every time a card works at a merchant anywhere in the world, the system is reinforcing a memory of reliability. Every fraud prevention tool, every security layer, every cross border transaction fee, every established relationship with banks and merchants strengthens the expectation that the network will still work tomorrow. That expectation is not free. It is accumulated through time, consistency, and integration.
In software terms, local storage is tiny. In business terms, brand trust is enormous. But they are structurally similar. Both are mechanisms for making a prior choice persist across interruptions. One remembers a theme after a browser refresh. The other remembers that a global network is dependable after millions of transactions.
Memory is not a nice to have. It is what turns an interaction into a relationship.
That is why durable businesses often look boring from the outside. They are obsessed with reducing surprise. In payments, surprise is risk. In design, surprise is friction. In both cases, the user reward is the same: the system feels invisible because it keeps its promises.
The moat is not just scale, it is habit plus infrastructure
It is tempting to say Mastercard is powerful because it is big. That is true, but incomplete. Scale matters only when it compounds into something harder to dislodge. Mastercard’s advantage is not raw size alone. It is the combination of infrastructure depth, global acceptance, and habitual use.
A dark mode toggle becomes sticky when it is seamless. The user clicks once, the page changes instantly, and the preference persists. The feature becomes invisible in the best way possible. Now imagine if switching themes required multiple steps, or if the site forgot the preference every time. Users would abandon it. They would not think, “This is a weaker theme architecture.” They would think, “This site feels sloppy.”
That is how network businesses work too. Consumers do not usually say, “This payment network has a lower switching cost due to entrenched merchant acceptance and bank integration.” They say, “My card works everywhere.” That sentence is the moat.
This creates a useful mental model: stickiness is the sum of friction removed and memory retained. If a system is easy to use once but impossible to remember, it is fragile. If a system remembers state but is hard to change, it is rigid. The most powerful systems make transition cheap and continuity automatic.
You can see this in the economics of cross border payments. Mastercard earns from transactions that cross currencies and geographies because the harder the coordination problem, the more valuable the network layer becomes. Complexity creates room for intermediaries that reduce that complexity. In UI terms, the same logic applies to theme management. The more places you would otherwise need to edit by hand, the more valuable a centralized variable system becomes.
So the moat is not merely that others cannot copy the technology. It is that others must also copy the accumulated trust, the interface habits, and the ecosystem of dependency. That is much harder.
A framework for building systems that last
If we combine these two examples, we get a simple framework for thinking about durable design in products, companies, and even habits.
1. Minimize the number of state switches
A great system does not expose unnecessary choices. The dark mode toggle is a single click because the user should not need to understand CSS, variables, or DOM classes. Mastercard likewise compresses a huge number of technical and legal steps into a transaction that simply works.
The fewer steps required to change state, the more likely the system is to be used correctly.
2. Centralize the source of truth
The body class in a theme system acts as a single source of truth for appearance. Mastercard acts as a centralized coordination layer for payments. When state is scattered, systems become inconsistent. When state is centralized, updates propagate cleanly.
3. Persist the decision at the right layer
A theme choice should survive a refresh, not merely a click. A payment network should survive a merchant change, a bank change, and a border crossing. Durable systems store state at the layer where it matters most, not at the layer that is easiest in the moment.
4. Build trust through repetition, not explanation
Users trust a theme toggle because it works repeatedly. Merchants and banks trust a payment network because it clears transactions repeatedly. Trust is an emergent property of reliable repetition.
5. Make the invisible parts do the heavy lifting
The button is not the system. The visible card is not the network. The real architecture lives underneath the surface, where variables, rules, and memory do the work.
This framework is useful because it applies across domains. A startup product, a software architecture, a brand, and a financial network all become stronger when they lower the cost of state change and raise the reliability of persistence.
Key Takeaways
- Design for state, not just action. Every feature should answer: what changes, and how is that change remembered?
- Use abstraction to create leverage. Centralized variables, standards, and networks let one change affect many outcomes.
- Reduce friction at the point of choice. The easier it is to switch, the more likely users are to adopt and return.
- Make memory part of the product. Preferences, trust, and history are not extras. They are what turn convenience into loyalty.
- Build moats from repetition. Durable advantage comes from systems that keep working reliably in many contexts over time.
The deepest lesson: good systems are memory with a switch
The reason these two examples belong together is that both reject a common myth. People often think power comes from complexity, when in fact it often comes from elegant control over a few essential variables. A theme system is powerful because one class name can reshape an entire page. A payment network is powerful because one trusted rail can connect countless parties across the world.
The deeper idea is this: a great system is a memory that can change itself without losing coherence. It remembers the user’s preference after a refresh. It remembers the market’s trust after a thousand transactions. It changes when needed, but it does not reset itself into chaos.
That is a remarkably useful way to judge products, companies, and even your own habits. Ask not only, “Can this system act?” Ask, “Can it remember?” Ask not only, “Can it scale?” Ask, “Can it coordinate change without erasing trust?” The systems that answer yes are the ones that endure.
In the end, a dark mode toggle and Mastercard are both expressions of the same truth: the most elegant systems do not force the world to start over every time they change. They make change feel natural, and then they remember it well enough to become indispensable.
Sources
Hatch New Ideas with Glasp AI 🐣
Glasp AI allows you to hatch new ideas based on your curated content. Let's curate and create with Glasp AI :)
Start Hatching 🐣