CMD Master
Back to Blog
Arnošt Havelka

How Senior Developers Use AI Differently

Useful engineering patterns for using AI: contextual prompts, analysis first, smaller changes, evidence, review, and validation.

How Senior Developers Use AI Differently

Experienced developers do not all use AI the same way, but strong engineering habits produce a recognizable pattern: they give context, ask for analysis, constrain the change, and validate the output. The difference is less about clever prompt wording and more about refusing to delegate judgment without evidence.

These are useful practices, not claims about every senior developer or a hierarchy of who is allowed to use AI.

Vague requests versus contextual briefs

Less reliable requestMore reliable engineering pattern
“Refactor this component.”Explain the duplication, behavior to preserve, scoped files, and tests that must stay green.
“Fix mobile navigation.”Describe the mobile usability problem while protecting desktop behavior and route state.
“Make this faster.”Ask for a measured bottleneck, competing hypotheses, and the smallest measurable improvement.

Context lets an assistant choose between plausible technical options. Without it, the assistant may optimize the visible code rather than the actual user problem.

Answers first versus analysis first

A short implementation request is fine for an obvious utility. It is risky for state transitions, data ownership, permission checks, or a production failure.

An analysis-first prompt looks like this:

Before editing, trace how notification preferences move from the form to the
stored user record and back to the UI.

Identify the single writer, the read path, and the error path. Separate
confirmed behavior from assumptions. Then list the smallest files likely to
change and the test that would prove the reported bug.

The assistant becomes a research partner first. The developer can review the model of the system before accepting a patch.

Large changes versus incremental changes

One broad task can combine a bug fix, a refactor, a test rewrite, and a styling change. That makes cause and effect hard to see.

Use checkpoints instead:

1. Reproduce the failure and describe the current path.
2. Make the smallest behavior fix.
3. Add a focused regression test and run it.
4. Show the diff and explain remaining cleanup separately.

This is not busywork. Small changes make review, rollback, and incident response safer.

Trusting output versus validating output

AI-generated code can be well formatted, type-safe, and still wrong for the product. Strong workflows validate at several levels:

  • Static checks: type checking, linting, schema validation.
  • Behavior checks: focused unit or integration tests.
  • Product checks: a manual workflow that matches the user’s problem.
  • Review checks: diff inspection for scope, permission, locale, and side-effect regressions.

Ask the assistant to propose these checks, then run the relevant ones yourself. If a check cannot be run locally, record the gap instead of claiming success.

Implementation-first versus problem-first thinking

The first implementation idea is often the most expensive way to solve a symptom. Start from the problem:

Problem: A learner loses the current task after switching browser tabs on a
small screen.

Do not assume the answer is a new persistence layer. Inspect the current
navigation, state ownership, and restoration behavior. Recommend the smallest
change that lets the learner return to the active task without duplicating
state or weakening privacy.

This preserves space for a simpler answer: a routing fix, a stale-state fix, or a different mobile interaction.

Senior habits are review habits

The most transferable pattern is not “use a certain model” or “write longer prompts.” It is making work reviewable:

  1. Explain why the change matters.
  2. State what must stay true.
  3. Ask what evidence could disprove the plan.
  4. Limit the first change.
  5. Define the proof that it worked.

That is how a good teammate thinks about a ticket or pull request. AI simply makes the need for explicit context more visible.

A senior review checkpoint before you send

Before you accept or ship AI-assisted work, run a short review pass:

  1. Problem clarity: Can someone else tell who is affected and what “fixed” looks like?
  2. Evidence: Is there a failing test, log excerpt, reproduction, or measured baseline—not only a hunch?
  3. Scope: Is the first change limited to the files or boundary you would defend in review?
  4. Constraints: Are the product, security, locale, and compatibility rules you care about written down?
  5. Validation: Which checks will you run yourself, and what remains unverified?
  6. Rollback: If the change is wrong, can you revert or disable it without collateral damage?

Use the reusable prompt structure in how to write better AI prompts when you need the full brief template. For day-to-day implementation patterns, use prompt engineering for developers. For a checklist of what goes wrong when these habits are skipped, read AI coding assistant mistakes and how to avoid them.

For command-based work, the same principle applies: verify the real input and output rather than guessing at a script’s behavior. Practice command-line scenarios in the browser before you write or review automation.

References

These documentation links provide authoritative details for the commands used in this article.