Why Good Practices Fail Without a Query for Context

Kai Nguyen

Hatched by Kai Nguyen

Jul 15, 2026

9 min read

83%

0

The hidden trap in advice: a practice is not a truth

Why do so many smart people repeat advice that later turns out to be wrong, brittle, or even harmful? The tempting answer is that they were ignorant. The more interesting answer is that they were often correct, but only inside a context they failed to name.

That is the central trap in almost every discussion of “best practices”: people confuse a means with an end, then dress it up in the language of certainty. A practice starts as a useful tool for a specific situation, then slowly hardens into a moral rule. Soon it is no longer “this helped in a case like ours,” but “this is the right way to do it.” Once that happens, the advice stops being a tool and becomes a fog machine.

The deeper question is not whether a practice works. It is: works for whom, under what constraints, and toward which goal?

That question sounds obvious, but it is the one people most often skip. And when they skip it, they end up optimizing the wrong thing with great confidence.

The moral language of bad advice

One reason bad advice survives is that it often arrives wearing moral clothing. Words like clean, proper, right, and should make a recommendation feel more like hygiene than judgment. If your code is “dirty,” then a refactor seems not just prudent but virtuous. If your architecture is “clean,” then alternatives start to feel suspect before they are even examined.

This is where advice becomes dangerous. The moral tone hides the fact that a practice is usually a tradeoff, not a law of nature. In software, a pattern may improve readability but worsen performance. In operations, a process may reduce errors but increase latency. In organizations, a review ritual may catch mistakes but also slow learning. Every one of these choices depends on what you are actually trying to improve.

The moment a tool is treated as a virtue, it becomes harder to ask whether it still serves the goal.

This is why “always” and “never” are such seductive words. They flatten context. They give the illusion of clarity while quietly erasing the details that decide whether something helps or hurts. And in technical work, details are not decoration. They are the whole game.

Context is not a footnote, it is the problem

The hardest part of giving good advice is that context matters more than rules. A practice that is excellent in one environment can be useless in another. Sometimes the difference is obvious. A small startup with one product and a tiny team does not face the same coordination problems as a regulated enterprise. A system with a million daily queries is not the same as a script that runs once a month. A database schema designed for analytics is not automatically suitable for transactional workloads.

But context is not just about scale. It includes incentives, failure modes, team skill, change rate, and even the shape of the business problem. If the business problem is simple, using elaborate machinery may create more work than it removes. If the team already has deep tacit knowledge, a lightweight approach may be enough. If the surface resemblance between two situations hides different underlying gradients, the same practice can lead in opposite directions.

That last point matters a lot. Good practices are often discovered by following a gradient: a visible reward signal that nudges people toward better choices. Faster queries, fewer bugs, easier onboarding, less manual work. But what if the gradient is weak, noisy, or absent? Then the same practice can stop being a discovery mechanism and become a superstition.

Imagine a project where money “falls out of the sky,” so to speak. If success is guaranteed regardless of effort, then there is little pressure to refine the process. In that world, no amount of advice will reliably separate the good from the merely fashionable. Without a meaningful gradient, practices stop proving themselves. They just accumulate status.

The SQL lesson: one query, many worlds

At first glance, SQL seems unrelated to the philosophy of bad advice. But it is actually a perfect example of why context and structure matter.

A query is not just a query. It is a way of making a question explicit. When you use a CTE with WITH, you are naming a subproblem. When you use PARTITION BY, you are deciding what counts as a meaningful group. When you use a window function like RANK, you are asking for comparisons inside those groups, not across the whole table. Aggregate functions collapse data differently. Positional functions examine sequence differently.

These are not just syntax tricks. They are mental models.

Suppose you want to know the top salespeople in each region. If you forget to partition by region, you get a global ranking, which may be mathematically correct but strategically useless. The query did exactly what you asked, not what you meant. That gap between literal correctness and practical usefulness is the same gap that makes bad advice so sticky in engineering and management.

A practice can be internally consistent and still solve the wrong problem.

This is why SQL is such a useful metaphor for decision making. It forces you to specify the frame before the answer appears. If you define the wrong window, the result is misleading. If you define the right window, a simple calculation becomes powerful. In other words, the quality of the result depends less on the cleverness of the function than on the correctness of the partition.

That is a profound lesson for any field where people confuse technique with judgment.

Tacit knowledge is why advice sounds simpler than reality

Another reason advice misleads is that much of real expertise is tacit. People know more than they can fully explain. They notice patterns, exceptions, and warning signs without always being able to turn that into a crisp checklist. This is true in programming, surgery, design, negotiation, and almost any domain where judgment matters.

When tacit knowledge is involved, advice gets compressed. What was once an experienced person’s nuanced sense for context becomes a slogan. Then the slogan gets copied by people who do not have the underlying intuition, so they apply it more broadly than intended. The result is predictable: a tool designed for judgment gets used as a substitute for judgment.

Think of a senior engineer saying, “Normalize the data model.” That might be wise in one environment. But if the real issue is moving fast on a volatile product, the better choice may be denormalization, even at the cost of some elegance. The expert knew the difference because they could read the system’s constraints. The novice hears the slogan and assumes it is a universal rule.

This is not a failure of intelligence. It is a failure of translation.

And that is why one of the most important habits in any technical field is to ask why before accepting a practice. Why does this help? What end does it serve? Under what conditions does it stop helping? If no one can answer those questions, the practice may be tradition, not wisdom.

A better mental model: every practice needs a query

Here is a useful way to think about it.

Every recommendation should come with an implicit query:

  1. What outcome are we optimizing?
  2. What constraints define the relevant context?
  3. What signal tells us the practice is working?
  4. What failure mode does the practice prevent, and what failure mode does it create?

If a practice cannot survive this query, it is too vague to trust.

This is why the best advice is rarely absolute. It is conditional, comparative, and falsifiable. It sounds more like, “In systems with high change rates and limited coordination, keep boundaries explicit,” than, “Always use microservices.” It sounds more like, “Partition your data by the question you need answered,” than, “Use window functions everywhere.” The advice is stronger when it is narrower, because narrow advice respects the structure of the world.

You can apply the same logic to code style, team process, product strategy, and even personal productivity. A system is healthier when it contains practices that were chosen in response to a specific need, not inherited as an identity marker. In that sense, the best teams are not the ones with the most rules. They are the ones that remember which questions produced which rules.

Good judgment is not the ability to recite principles. It is the ability to restore the missing context behind a principle.

What this changes in practice

Once you see this pattern, a lot of familiar debates look different. “Clean code” is not a universal aspiration unless you first define what cleanliness buys you. “Simple technology” is not automatically better unless the business problem actually benefits from reduced complexity. “Best practice” is not a conclusion. It is a hypothesis waiting for a context.

This also changes how you evaluate advice from experts. The most useful experts are not the ones who sound most certain. They are the ones who can say, with precision, where their advice holds and where it breaks. They admit complexity instead of laundering it into slogans. They know that the same recommendation can be great in one system and disastrous in another.

That kind of thinking is especially important in fields with weak feedback loops. If you do not get a clear signal that a practice is working, you are vulnerable to prestige, imitation, and confirmation bias. People may upvote the same idea because it sounds familiar, not because it is true. Organizations may keep doing what feels mature long after the environment has changed.

The antidote is not cynicism. It is better questions.

Key Takeaways

  • Treat every practice as context dependent. Before adopting advice, ask what environment it was designed for.
  • Separate ends from means. Do not let words like “clean” or “right” substitute for a concrete goal.
  • Look for the gradient. Good practices usually improve a measurable outcome. If you cannot name the signal, be skeptical.
  • Use the SQL test. Define the partition before you define the ranking. In other words, define the frame before you choose the method.
  • Ask for the failure modes. A useful practice should explain both what it improves and what it risks.

The real skill is not knowing more rules, but asking better questions

The deepest connection between technical craft and judgment is that both depend on framing. In SQL, the frame is explicit: the partition, the window, the aggregation. In advice, the frame is usually hidden, which is why people get fooled by confident generalities. A technique looks universal until you ask what problem it was actually solving.

That is the real upgrade: not learning a larger catalog of best practices, but learning to interrogate them. Every time someone says “should,” hear a question waiting to be asked. Should according to what end? In what context? With which tradeoffs? If you cannot answer those, you do not have wisdom yet. You have only a slogan.

And perhaps that is the most practical insight of all: the quality of your decisions depends less on whether you know the right answers than on whether you know how to define the right query.

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 🐣