How to Systematically Evaluate AI Coding Tools: Building an E-Commerce Site from Scratch

    As AI coding tools evolve from autocomplete plugins into autonomous coding agents, choosing the right one becomes a real engineering decision. This article presents a reproducible evaluation methodology: assign different tools the same moderately complex real-world task—building an e-commerce frontend from scratch—then compare their outputs across multiple dimensions, including completeness, consistency, code quality, generation speed, and first-run success rate. It also shares best practices for prompt design and human oversight to help developers build their own benchmark task library and track how these tools evolve over time.

    How to Systematically Evaluate AI Coding Tools: Building an E-Commerce Site from Scratch

    As large language model capabilities advance rapidly, AI coding tools have evolved from simple autocomplete plugins into full-fledged coding agents capable of handling complete tasks independently. For developers in China, practical factors such as network environment, data compliance, and Chinese-language understanding make a domestically developed coding tool with stable direct connectivity—no extra network configuration required—a genuinely important engineering decision.

    With so many intelligent IDEs and coding assistants on the market, opinions about “which one is best” vary widely. This article does not recommend any specific product. Instead, it proposes a reproducible evaluation methodology: design a moderately difficult real-world task, have different tools complete it under identical conditions, and then compare output quality across multiple dimensions. The chosen task is building an e-commerce site frontend from scratch.

    Why an E-Commerce Site Is an Ideal Benchmark Task

    When evaluating AI coding tools, tasks that are too simple (like “build a to-do list”) fail to expose weaknesses in complex scenarios, while tasks that are too complex (like a full microservices backend) introduce too many variables to attribute problems correctly.

    An e-commerce frontend with roughly ten pages strikes the right balance:

    • Moderate page count: A home page (product listing), product detail page, checkout page, order success page, login, registration, and a user center (dashboard, orders, coupon wallet, settings) is enough to test a tool’s ability to organize multiple pages.
    • Strong consistency requirements: Navigation, color schemes, layouts, and interactive components must stay uniform across all ten pages—a direct test of the agent’s global context understanding.
    • A complete business loop: Browse → log in → place an order → view orders. This verifies how well the tool handles engineering details like form validation, routing, and state management.
    • Mainstream tech stack: Built on a mainstream frontend framework such as React, making it easy to compare code structure and engineering conventions across tools.

    Preparation: Prompts and Mode Selection

    A unified prompt is a prerequisite for fair evaluation. The prompt should clearly include three elements: the tech stack (build the frontend shopping site with React), a page inventory (listing all ten pages and their features), and quality requirements (responsive layout, basic form validation, separation of styles and logic).

    Mainstream intelligent coding tools generally offer two types of generation modes, and both should be tested during evaluation:

    1. Conversational/plan-based mode: The agent first outputs an implementation plan, then generates code step by step after developer confirmation. Highly controllable and well-suited to complex tasks, but requires many interaction rounds.
    2. Auto-execution/builder mode: The agent completes requirement analysis, code generation, and self-checks in one pass. Highly efficient, but sensitive to prompt quality and prone to “creative liberties” in the details.

    In practice, an interesting pattern emerges: tools differ significantly in how they name and default to their “fully automatic” mode. Some treat it as a core selling point, while others deliberately downplay it, requiring developers to explicitly confirm each step. This reflects differing industry attitudes toward the reliability of generated results—fully automatic generation looks impressive, but first-run success rates remain a common pain point.

    Evaluation Dimension 1: Completeness and Consistency of the Output

    Once the task is done, the first question is whether the result runs and resembles a complete product. In repeated hands-on comparisons, common problems cluster into several categories:

    • Flow completeness: Strong results support the entire clickable journey from product browsing to order success; weaker ones suffer from missing routes and 404 errors on navigation.
    • Visual consistency: Can the tool maintain a unified theme color and component style across ten pages? Some outputs carry a single brand color through the whole site—simple but coherent; others show random color choices or low-level issues like white text on white buttons that renders text invisible.
    • Responsive adaptation: Many agents generate interfaces that naturally favor either mobile or desktop. Form-heavy pages like login and registration frequently break when screen size changes—a high-frequency failure point.
    • Asset handling: Nearly all tools use placeholder images, but information density on product detail pages varies widely—some include only a title and price, while others offer specifications, reviews, and recommendation modules.

    Evaluation Dimension 2: Code Quality and Project Structure

    Running successfully is only the first step; maintainability is the core engineering value. Key things to check:

    • Separation of styles and logic: Better outputs manage styles in separate files; worse ones embed large amounts of inline styles directly in components.
    • Sensible directory structure: Are there proper directories for components, pages, hooks, and state management (context/store)? Beware of a “looks right but isn’t” pattern: the structure appears to reserve places for hooks and context, but the folders are actually empty—evidence that the agent merely mimicked the appearance of engineering conventions.
    • Data coupling: Is mock data isolated in a dedicated layer, or hard-coded into components? The latter creates significant rework when connecting real APIs later.
    • Project structure hazards: Some tools lack duplicate-name validation when scaffolding projects—for example, nesting a folder with the same name inside itself, which directly breaks the build. This is a reminder: always manually review the generated project structure before running it.

    Evaluation Dimension 3: Response Speed and First-Run Success Rate

    These two metrics directly shape the developer experience:

    • Generation speed: Affected by underlying model inference resources, speeds vary significantly across tools. Some run smoothly end to end; others are slow enough to tempt you into paying for acceleration. Domestic tools, with models deployed in local data centers, generally offer more stable connectivity—a point worth acknowledging.
    • First-run success rate: The probability that the first generation runs without errors. In practice, initial outputs often run but contain errors requiring multiple rounds of dialogue to fix; in extreme cases, repeated fixes fail and you have to start over. Repair capability is a key differentiator of tool maturity—a good agent accurately locates problems from error messages rather than making things worse with each fix.
    • Multi-agent strategies: Some tools offer multiple agents with different roles (e.g., one for rapid generation, another for complex architecture design). More options also mean more cognitive overhead. A practical suggestion: use fast mode for simple tasks, and for complex ones, have the architecture-oriented agent produce a plan first before switching to execution.

    Best Practices for Human Involvement

    Drawing on multiple rounds of hands-on experience, several practices maximize the value of AI coding tools:

    1. Make prompts checklist-style: List pages, features, and constraints item by item, avoiding vague prose. Agents follow structured requirements far more reliably than natural-language paragraphs.
    2. Plan before executing on complex tasks: Prefer modes that output a plan first. Reviewing the page structure and data flow design before code generation significantly reduces rework.
    3. Always do three things after generation: Check the directory structure for abnormal nesting, walk through the core business flow, and spot-check responsive layouts.
    4. Treat the agent as a junior engineer, not an architect: It excels at quickly producing usable prototypes, but architectural evolution, performance optimization, and design system curation still require senior developer oversight.

    Conclusion

    A unified-task, side-by-side evaluation of Chinese AI coding tools yields several overall conclusions. First, domestic intelligent IDEs already deliver a solid experience in interface usability, Chinese-language understanding, and network stability. Second, “generating a complete project in one shot” remains an unsolved industry challenge, with different tools winning on different fronts—completeness, consistency, and code structure. Third, tool selection should return to engineering fundamentals: generation speed, repair capability, and code maintainability matter far more than flashy interfaces.

    For developers, rather than chasing the title of “the strongest tool,” it is better to build your own benchmark task library and periodically test tool capabilities against real projects. Tools iterate quickly, but a sound evaluation methodology can be reused for a long time.