Applied AIVibe CodingProductivityQualityProgramming

Vibe coding: when it works, when it doesn't and how to avoid technical debt

Pablo Alcalde García

“Vibe coding” means describing what you want in natural language, letting an AI write the code and running the result without reading it in detail, fixing things by asking for changes. The term was popularised by Andrej Karpathy in early 2025 and has since become a common way to prototype. The useful question is not whether it is good or bad, but where it works and where it is a trap.

Where it works very well

  • Prototypes and demos you are going to throw away or rebuild.
  • Small internal tools (a script, a dashboard, a converter) with few users and low risk.
  • Exploring an idea to decide whether it is worth building properly.
  • Learning a library by seeing how it is used in a working example.

In all these cases the cost of a mistake is low, and the speed pays for itself.

Where it becomes dangerous

  • Security: authentication, payments, personal data, permissions. A subtle flaw isn’t noticed until someone exploits it.
  • Code that will be maintained for years: if nobody understands the code, nobody can safely fix it.
  • Systems with legal requirements (GDPR, accessibility, invoicing).
  • Performance and scalability: what works with 10 users doesn’t always work with 10,000.

Typical failures of unreviewed generated code

  1. Unnecessary or non-existent dependencies. The model may invent a package or use an abandoned one.
  2. Secrets in the code or in the repository.
  3. Missing validation: it trusts that the input data is correct.
  4. Shallow error handling: the happy path works, the rest doesn’t.
  5. Duplication: it solves each request by adding new code instead of reusing.
  6. Tests that test nothing (we see this in AI for generating tests).

A method for going from “vibe” to production

1. Define before you generate

Write in one paragraph what it must do, what it must not, and what constraints it has (stack, conventions, security). It is the idea of spec-driven development.

2. Work in small steps

Ask for one thing, check that it works, commit. Giant changes are impossible to review and to revert.

3. Read the diff, not just the result

Even if you don’t read all the code, always read what changed. If there are files you didn’t expect, something is wrong.

4. Run the tests and add your own

Ask for tests, but check that they fail when they should fail. A test that always passes is noise.

5. Review the critical parts by hand

Authentication, permissions, data access, payments and anything touching money or personal data: human reading is mandatory, ideally by someone with security experience. Also read security in LLM applications.

6. Automate the checks

Linter, strict typing, dependency and secret scanning in CI. What a person doesn’t review, a machine should.

7. Leave context for next time

A project instructions file (conventions, commands, “do not”) greatly improves results. I explain it in documenting projects with AI.

A practical rule

The level of review should be proportional to the damage a failure can cause.

An internal format converter: minimal review. A payment form: exhaustive review.

How to explain it in an interview or to a client

If you use AI to program (and almost all of us do), what builds trust is not denying it, but showing the process: specification, small steps, review, tests and controlled deployment. It is exactly what separates an engineer from someone who just pastes results. More in integrating AI into your workflow.

Conclusion

Vibe coding is excellent for exploring and building small things fast. For what matters, it needs engineering around it: specification, review, tests and security. AI speeds up the writing; the responsibility is still yours.

If you have a prototype built with AI and want to take it to production with guarantees, let’s talk.

Call me now