Always or Never: The Hidden Discipline Behind Clean Code and Clear Dashboards

Ryusei Nakamura

Hatched by Ryusei Nakamura

Jul 03, 2026

9 min read

72%

0

The Strange Similarity Between Code Style and Data Visualization

What do a rule about destructuring assignments and a dashboard tool have in common? At first glance, almost nothing. One sounds like a tiny debate inside a codebase, the other like a practical way to watch an iPhone’s screen time. Yet both point toward the same deeper problem: how much structure should we force onto raw reality before it becomes useful?

That question sits underneath software engineering, analytics, design, and even personal habits. Too little structure, and everything feels chaotic, inconsistent, and hard to read. Too much structure, and you lose flexibility, clarity, and the ability to see what matters. The phrase always or never captures that tension perfectly. It is not just a style preference. It is a design philosophy about whether we want our systems to be predictable enough to trust.

The real issue is not whether destructuring is “better” or whether dashboards are “useful.” The deeper issue is this: every interface is a negotiation between convenience and legibility. Code, dashboards, and habits all become legible only when we decide what should be explicit, what should be hidden, and what should be standardized.

Structure Is Not Decoration, It Is Compression

A useful way to think about both code style and visualization is through compression. Good structure compresses complexity without destroying meaning. In JavaScript, destructuring lets you take a nested object and surface the parts you care about in a cleaner form. Instead of repeatedly spelling out long property paths, you pull the relevant pieces into the foreground. In a dashboard, you do something similar: you take raw metrics and compress them into a panel, a graph, or a time series that reveals a pattern.

This is why structure matters so much. Humans cannot reason well about unfiltered complexity. We need the world to be packaged into forms that fit our attention. But compression always comes with a tradeoff. If you compress poorly, you create confusion. If you compress well, you create insight.

Consider two everyday examples:

  1. A messy object in code with deeply nested properties, accessed differently in every function.
  2. A dashboard with five unrelated graphs, each labeled vaguely, each updated on different intervals.

Both are technically functional. Neither is cognitively efficient. In both cases, the problem is not lack of information. The problem is lack of a stable shape.

Clarity is rarely created by adding more data. It is created by choosing a form that makes the data easier to think with.

This is where “always or never” becomes interesting. It sounds rigid, but rigidity is often how systems earn trust. A codebase that sometimes destructures and sometimes doesn’t becomes harder to scan. A dashboard that sometimes uses a trend line and sometimes a bar chart for the same kind of signal becomes harder to interpret. Consistency is not a prison. It is a cognitive shortcut.

The Hidden Cost of Optional Structure

Most teams think the enemy is bad structure. But the deeper enemy is optional structure. Optional structure is when a system allows many representations of the same thing, and each choice is made ad hoc. That freedom feels flexible at first, but it quietly taxes everyone who has to maintain, revisit, or compare what was built.

In code, optional structure shows up as patterns like these:

  • Sometimes the same object is destructured, sometimes not.
  • Sometimes data is normalized, sometimes passed through in raw form.
  • Sometimes fields are renamed for clarity, sometimes left buried in nested objects.

The result is not merely aesthetic inconsistency. It is attention fragmentation. Every time a reader encounters a new local convention, they pay a small interpretive cost. Across a large codebase, that cost compounds.

Dashboards have the same problem. If every panel is designed differently, every query framed differently, and every metric visualized with a different metaphor, the dashboard becomes a gallery instead of an instrument panel. You do not want your operational view to behave like modern art. You want it to behave like a cockpit. A cockpit is not beautiful because it is random. It is beautiful because it is predictably functional.

This is also why the example of screen time visualization is so revealing. Screen time is an abstract, emotionally charged behavior. It is easy to feel guilty about it, but hard to measure intuitively. A dashboard turns a vague self-judgment into a visible pattern. It does not merely display data. It gives the data a form you can act on.

That is the common thread: both destructuring rules and dashboards are about making information easier to consume by making it more structured. The real question is not whether structure is good. The question is when structure should become mandatory.

Why “Always or Never” Is Really About Trust

The phrase always or never sounds severe, but it is actually a strategy for reducing ambiguity. In a team setting, ambiguity is expensive because it forces every person to invent their own standards. Once that happens, consistency disappears, and consistency is what allows systems to become legible at scale.

Think about the difference between these two environments:

  • In one, each person decides whether to destructure based on mood, line length, and personal taste.
  • In the other, the team adopts a rule that makes the same kinds of data appear in the same kinds of shapes.

The second environment is easier to onboard into, easier to review, and easier to refactor. Not because it is more artistic, but because it is more trustworthy. Trust here does not mean emotional comfort. It means the ability to predict what you will see and how it will behave.

The same logic applies to dashboards. If a metric appears in a dashboard, the audience should know what kind of story that visualization tells. Is it a trend? A comparison? A threshold? A distribution? If the same visual form is used inconsistently, the dashboard stops being a decision tool and becomes a guessing game.

This leads to a useful mental model: structure is a contract with the reader. Every time you present information, you are promising that the way you presented it is stable enough to interpret quickly. Mandatory conventions, whether in code or visualization, are not about perfection. They are about honoring that contract.

A Better Mental Model: Shape Before Meaning

One reason these ideas connect so well is that both code and dashboards deal with a universal sequence:

  1. Shape the information
  2. Then extract meaning

We often imagine understanding starts with meaning, but in practice, meaning emerges from shape. If the shape is unclear, the meaning will be slow, fragile, or inconsistent.

In code, destructuring is a way of shaping data so that the important parts become visible at the point of use. In dashboards, panels and queries are ways of shaping raw time series so that the eye can quickly notice variation. In both cases, the first job is not interpretation. It is making interpretation possible.

This has a practical implication that many people miss: good systems reduce the number of ways a person can be wrong.

A few examples:

  • If every component receives props in the same destructured form, developers make fewer naming mistakes.
  • If every dashboard panel uses the same units and time range conventions, viewers make fewer reading mistakes.
  • If your personal screen time dashboard always shows daily totals first and app categories second, you build a stable ritual for reflection.

Ritual matters because repeated exposure trains intuition. Once a structure becomes familiar, your brain stops wasting energy decoding the format and starts noticing the signal. That is the hidden gift of consistency: it frees attention for judgment.

Standardization is not the opposite of insight. It is often the precondition for it.

From Style Rule to Cognitive Infrastructure

It is tempting to treat rules like “always destructure” as small style preferences. That underestimates their impact. A style rule, when chosen well, becomes cognitive infrastructure. It shapes how people move through a system, how fast they understand it, and how much confidence they have in the result.

Dashboards work the same way. A dashboard is not just a collection of graphs. It is an arrangement of attention. The sequence, grouping, and visualization choices all instruct the viewer on what matters first, what is supporting evidence, and what should trigger action. A well-designed dashboard does not merely report reality. It creates a shared language for discussing reality.

That is why the most effective systems are often the most boring in the best sense. They do not surprise you with formatting decisions. They let the content carry the drama. A consistent destructuring policy means that the code’s meaning lives in the logic, not in the syntax shape-shifting around it. A consistent dashboard layout means the operational signal stands out instead of being buried under design variety.

There is a deeper organizational lesson here. Teams often chase flexibility because flexibility feels modern. But many of the systems people trust most, from aviation instruments to accounting reports to monitoring dashboards, are intentionally constrained. They are designed so that the human mind can quickly answer one question: What is happening, and what should I do next?

That is the ultimate purpose of structure. Not elegance for its own sake, and not rigidity for its own sake, but faster, safer interpretation.

Key Takeaways

  • Use structure to reduce interpretation cost. If a pattern makes code or data easier to scan repeatedly, it is probably worth standardizing.
  • Prefer consistency over local cleverness. A rule that is followed everywhere is usually more valuable than a clever exception that helps once.
  • Treat presentation as part of the system. Destructuring in code and dashboards in analytics both shape how humans think, not just how information is stored.
  • Ask whether optionality creates ambiguity. If different team members would format the same thing differently, a rule may be needed.
  • Design for the reader’s next action. Whether it is a developer reading props or a person checking screen time, the form should make the next decision obvious.

The Real Choice Is Not Between Freedom and Rules

The deepest lesson here is that systems do not become easier to use by accident. They become easier because someone decided what should be always and what should be never. That choice is less about style than about cognition.

A codebase with consistent destructuring and a dashboard with clear, repeatable visual logic are both doing the same quiet work: they are turning raw complexity into a stable interface for human judgment. Once you see that, the debate stops being about preference. It becomes about responsibility.

The question is no longer, “Do we want rules?” The real question is, what kind of thinking do we want to make effortless?

Sources

← Back to Library

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 🐣
Always or Never: The Hidden Discipline Behind Clean Code and Clear Dashboards | Glasp