Best practice L2 · Context engineering informational

Pick a Boring, Popular Stack

What it is

A deliberate choice to build on the most common, well-documented frameworks, languages, and databases — the 'boring' mainstream ones — rather than the newest or most niche. It's one of the highest-leverage decisions in a vibecoding project, and you make it in the first prompt.

a stack the ai knows coldManaged host (e.g. Vercel/Netlify)deploy1Mainstream frontend (e.g. React)UI2Popular backend / API frameworklogic3Managed database (e.g. Postgres/Supabase)data4a stack the ai knows cold1Managed host (e.g.Vercel/Netlify)deploy2Mainstream frontend(e.g. React)UI3Popular backend /API frameworklogic4Managed database(e.g.Postgres/Supabase)data
Mainstream layers mean more correct, fixable generated code.

Why it works

AI models learned from public code, and mainstream tools appear in that code millions of times. So the model writes them more correctly, follows their security best practices more reliably, and can fix them when they break — because it has effectively seen the answer before. Obscure or brand-new tools appear rarely in training data, so the AI guesses more, invents APIs that don't exist, and leaves you stranded when something goes wrong.

When to use it

Always, unless you have a specific, well-understood reason to do otherwise. When you start a project, tell the AI to use a popular, widely-adopted stack and let it pick sensible defaults within that constraint.

When not to use it

The rare exception is when your problem genuinely requires a specialised tool and you personally know that tool well enough to review the AI's work on it. Even then, keep the rest of the stack boring so only one part is off the beaten path.

Prompt

Set up this project using a popular, well-documented, widely-adopted stack that you know thoroughly — nothing niche or bleeding-edge. Briefly tell me what you chose for the frontend, backend, and database and why each is a mainstream, safe choice, then scaffold it.

Example

Asked to 'use whatever's newest and coolest', an AI picks a barely-documented framework and later hallucinates functions that don't exist, stalling the build. Asked to 'use a popular, boring stack', it picks React plus a mainstream backend and a managed Postgres database, and everything it generates just works.

Advanced version

Name the exact stack yourself if you have a preference the model knows well, then ask the AI to stick to that stack's official conventions and current best practices for security and structure. Pinning the stack removes a whole category of drift and hallucination from the rest of the build.

Common mistakes

  • Chasing the newest framework for novelty, then hitting hallucinated APIs the model never really learned.
  • Letting the AI silently mix in an obscure library for one feature, creating a fragile spot you can't debug.
  • Assuming any stack is equally safe to vibecode — the model is far more reliable on mainstream tools.

Related