AI Coding vs. Vibe Coding: Why Code Complexity Sets the Ceiling

    This article examines why code complexity, not model capability, determines whether natural language generation can build real applications. It separates AI-assisted coding from vibe coding, explains the three pressures rising complexity creates, offers four criteria for judging feasibility, and outlines practical practices around spec-first generation, small steps, human architecture ownership, and automated review, plus key security risks in low-complexity apps.

    Recently, examples of “generating an app from natural language” have been appearing everywhere online: a senior engineer building a prototype for a new language with an AI coding tool, a famously strict technical lead trying it personally, and small consumer apps and browser mini-games gaining large user bases and paying customers within days. At the same time, the capability boundary of AI coding tools keeps expanding: code simplification, defect detection, and test generation are being integrated into development workflows, and the barrier at the writing stage keeps dropping. Declining traffic at technical communities that provide code corpora and mounting commercialization pressure on parts of the open-source ecosystem both confirm this impact from the sidelines.

    Behind the noise, however, one critical variable is often ignored: code complexity. This article offers a more rigorous framework for judgment.

    1. AI-Assisted Coding and Natural Language Generative Development Are Not the Same Thing

    Conflating the two is the root cause of the current discussion losing focus.

    • AI Coding: aimed at developers with engineering skills. The model handles completion, refactoring, unit test generation, defect localization, and migration, while the human handles requirement breakdown, solution design, and acceptance. The output enters an existing engineering system and is governed by version control, continuous integration, and code review.
    • Vibe Coding: aimed at non-professional users. End-to-end output is driven by natural language descriptions, and users often neither read nor modify the generated code. The evaluation standard is “does it run and does it look right.”

    The failure cost of the former is absorbed by the engineering system; the failure cost of the latter is exposed directly to end users and business stakeholders. The two therefore cannot share the same feasibility standard.

    2. The Overlooked Core Variable: Complexity

    Looking at the natural language generation cases that genuinely work, two categories emerge.

    The first is high complexity but successful, with a common feature: professional engineers provide backup and guidance. They supply context, define module boundaries, and review critical paths, while the model generates only within a constrained space.

    The second is low complexity and went viral, with a common outcome: it is copied extremely quickly and its defects in maintainability, extensibility, and security are exposed in a concentrated way. There is no layering, no boundary validation, keys are hard-coded, and error handling is missing. It collapses as soon as user volume or requirements change.

    Rising complexity creates three kinds of pressure for generative approaches:

    1. Context pressure: the context that can be held is limited, consistency across modules and files is hard to maintain, and one change breaks three places.
    2. Verification pressure: the state space grows exponentially with coupling, and manual “take a look” verification quickly fails.
    3. Attribution pressure: defect localization requires tracing back across multiple layers of abstraction, a capability non-professional users do not have.

    A repeatedly mentioned phenomenon is that letting a model run continuously for a long time and produce a massive codebase can end up with something that cannot run, cannot be fixed, and cannot be reproduced. Such output does not even qualify as “technical debt,” because it lacks a maintainable structural starting point. Complexity does not increase difficulty linearly; it changes the nature of the problem.

    3. Feasibility Boundary: Four Criteria

    Four questions can quickly determine whether a scenario is suitable for natural language generative development.

    • Is verification cost lower than generation cost: if correctness can be quickly determined by automated tests, type checks, or static scanning, feasibility is high; if it can only be judged by subjective experience, risk rises sharply.
    • Is state controllable: stateless, idempotent reads and writes are far easier than long transactions, multi-party consistency, or cross-system compensation.
    • Is failure rollback-able: reversible operations tolerate trial and error; irreversible operations involving funds, permissions, or data deletion must retain human confirmation.
    • Is coupling convergent: a single small tool is better than a deeply integrated platform system.

    Accordingly, the more optimistic scenarios today are those with clear logic boundaries, automatic verification, and rollback-able failure, such as scripts and data processing, internal small tools, prototype validation, UI skeletons, test cases, and documentation. Parts involving core transactions, permission models, data migration, and distributed consistency should still be led by senior engineers.

    It is worth emphasizing that in the broader AI adoption landscape, few domains have a clear verifiable loop. Programming is relatively optimistic precisely because it naturally carries objective feedback such as compilation, testing, and execution. This is also the underlying reason for judgments like “the business forms that genuinely work are concentrated in AI customer service and AI coding.”

    4. Writing Code Was Never the Hardest Step

    A point senior developers repeatedly stress is that coding accounts for a small share of development activity. What sets the upper limit of code quality are two capabilities the model does not yet have:

    • Deep business understanding: real requirements are often vague, conflicting, and changing with the organization, requiring repeated clarification, trade-offs, and definition of acceptance criteria with business stakeholders.
    • Complex architecture design: module boundaries, data models, evolution paths, fault isolation, and capacity planning require a long-term optimal solution among multiple constraints.

    Actionable engineering advice:

    1. Write the spec before generating: turn acceptance conditions into executable tests and use tests as generation constraints.
    1. Requirement: export monthly bill
    2. Constraints:
    3. - Amounts use integer in the smallest currency unit; floating point is forbidden
    4. - Timezone is fixed to the business timezone; cross-month boundaries are determined by the business timezone
    5. - A single export is limited to 100,000 rows; beyond that, use an asynchronous task
    6. Acceptance:
    7. - Unit tests cover cross-month boundaries, empty data, and very large files
    8. - Generated code must pass static scanning and dependency vulnerability checks
    1. Generate in small steps and verify immediately: control the size of each generation, ensure every step has a runnable verification point, and avoid producing a massive codebase at once.
    2. Keep architecture decisions with humans: interface contracts, data models, and permission boundaries are defined by people, and the model implements within the contracts.
    3. Automate review: incorporate formatting, static checks, type checks, test coverage, and dependency and secret scanning into the pipeline as hard gates for merging.

    5. Security and Governance: High-Risk Areas in Low-Complexity Apps

    The risks of low-complexity generative apps concentrate in four places: hard-coded credentials and keys; injection and cross-site scripting caused by missing input validation and output encoding; unauthorized access and missing object-level permissions; and unknown dependency sources with uncontrolled versions. Governance points are default least privilege, unified identity and access control, hosting keys in a dedicated key management capability, whitelist validation of external input, source and license review of generated dependencies, and connecting logs, monitoring, and alerts to a unified observability system. The data plane and static resources can rely on common capabilities such as object storage and content delivery networks, avoiding placing the security boundary on “it looks fine when generated.”

    6. Conclusion

    The value of natural language generative development is real. It compresses the distance from “idea to runnable prototype” to a very short span, but what it changes is the efficiency of the coding stage, not the essence of engineering. Judging whether a scenario is feasible does not depend on how impressive the demo is, but on which side complexity falls, whether the verification loop holds, and whether failure is reversible. For professional teams, embedding AI coding tools into a spec-driven, test-first, automated-review workflow yields the greatest benefit. For non-professional users, starting from small scenarios with low coupling, rollback-able failure, and no sensitive data, and replacing wishful thinking with verifiable small, fast steps, is the reliable path.