Evaluating AI Coding Tools: A Practical Framework for Building a Shopping Site from Scratch

    This article presents a practical evaluation framework for AI coding tools, based on a real test that used React to build a ten-page shopping site. It covers how to choose an interaction mode and how to compare first-pass success, UI quality, code structure, and response speed before treating generated output as production code.

    1. Why AI Coding Tools Need a Hands-On Evaluation Framework

    As large-model coding tools become common, building an application from scratch is no longer limited to experienced engineers. Tool capabilities still vary widely, and marketing claims often diverge from real results. Instead of relying on promotional language, developers can define a standardized task with the same input and the same acceptance criteria, then compare tools side by side.

    This article is based on a real evaluation. The shared task was to build a front-end shopping site with React covering ten pages:

    • Home (product list)
    • Product detail
    • Checkout
    • Purchase success
    • Login
    • Registration
    • User center: dashboard
    • User center: orders
    • User center: wallet (coupons and cards)
    • User center: settings

    The task looks simple, but its real difficulty is completeness and consistency. Ten pages require coherent routing, state management, component reuse, and styling conventions. A tool that only generates isolated pages will expose weak architecture on a multi-page task.

    2. Choosing an Interaction Mode: Planning vs. Fast Execution

    Most AI coding tools offer two interaction styles.

    Planning or automatic modes ask the model to produce an execution plan first. The developer confirms it, and implementation proceeds step by step. This keeps direction controllable and the process visible, which suits tasks with clear requirements.

    Fast execution modes generate code immediately after the request. They are quicker, but if planning is weak, the first result may run while still throwing errors and may need several rounds of repair. In this evaluation, tools using fast execution did produce a runnable first version with errors that required repeated manual fixes.

    Recommendation: for medium or large tasks with more than five pages, prefer a mode with planning. For a small single-page task, fast execution is more efficient. The mode often matters as much as the tool itself.

    3. Dimension 1: Task Completion and First-Pass Success

    The clearest differences appeared in first-pass completion:

    1. Some tools completed all ten pages in one pass. The shopping flow was complete, server responses were smooth, and almost no mid-task intervention was needed.
    2. Some first versions contained errors. Multiple follow-up turns were required before the result was usable, so the real time cost was much higher than the apparent generation speed.
    3. A few cases failed outright. One project nested a folder with the same name inside itself and could not start. Another ran but kept reporting errors; after several unsuccessful repairs, the only option was to start over.

    First-pass success reflects how well the model plans project structure, not only how well it writes individual snippets. An evaluation cannot stop at single-file quality; the whole project has to close the loop.

    4. Dimension 2: Interface Completeness and Responsiveness

    Generated interfaces varied in quality. Common weaknesses included:

    • Image placeholders. Nearly every tool used placeholders instead of real images, so developers later had to add real assets or a placeholder image service.
    • Unstable responsiveness. Some pages leaned mobile-first with basic adaptation and only slight distortion on a few forms. Others had no mobile layout at all, and small screens broke the layout.
    • Visual mistakes. Examples included white text on a white button, which made content invisible, and color choices that lacked a consistent design language.

    Stronger interfaces built a visual system around one primary color, such as a brand blue, and looked simple but usable. Acceptance testing should cover multiple resolutions, not a single desktop glance.

    5. Dimension 3: Code Quality and Engineering Level

    This dimension is easy to overlook and has the largest effect on later maintenance. The evaluation showed a clear split:

    1. Engineering quality pyramid:
    2. ├── Strong: styles separated from logic, independent files, mock data decoupled from business code
    3. ├── Acceptable: styles separated in logic but not in files, extension points reserved in the structure
    4. └── Weak: mock data coupled inside components, messy directories, or nested folders with the same name

    Specific observations:

    1. Style separation is the baseline. Stronger tools managed CSS and JavaScript separately. Weaker ones separated the logic but did not split it into independent files—acceptable, but not elegant.
    2. Reserved structure is not the same as usable structure. Some projects included directories for hooks or context that were empty. They followed best-practice names without implementing them. Review the contents, not only the tree.
    3. Coupled mock data was common. Hard-coding mock data inside business components raises the cost of later connecting a real API. A better layout is:
    1. src/
    2. ├── api/ # API layer; mock and real implementations can be switched
    3. ├── components/ # shared components
    4. ├── pages/ # page-level components
    5. ├── hooks/ # reusable custom logic
    6. └── styles/ # centralized styles
    1. Architecture stayed shallow. Even tools with strong interfaces usually produced simple project structures. Those structures fit a rapid prototype, not direct production delivery.

    6. Dimension 4: Response Speed and Stability

    Service response speed directly affects the development experience. Some tools, backed by stable capacity, generated results smoothly. Others were slow enough to create pressure to pay for acceleration. Speed and quality were not necessarily linked: a slow tool was not automatically better, and a fast tool did not automatically sacrifice quality. Treat response speed as its own criterion and test it against your own network conditions.

    7. From Evaluation to Practice: Selection Advice

    Four reusable conclusions came out of this test:

    1. Stress-test with a multi-page task. A single-page “Hello World” will not expose architecture problems. A task at the scale of ten pages tests planning and consistency.
    2. Check whether it runs on the first pass before judging elegance. Tools with a low first-pass rate and repeated repairs will keep raising communication cost on a real project.
    3. Review generated code by hand. Focus on whether data is decoupled, styles are separated, extension points contain real content, and routing and state management form a coherent system.
    4. Treat AI output as a high-quality prototype, not production code. Even the best results still need the developer to connect APIs, refine visuals, finish responsive layout, and complete the architecture.

    8. Conclusion

    The value of AI coding tools is not replacing developers. It is automating the most repetitive part of going from zero to one, so developers can focus on architecture decisions and business logic. A standardized task and a multi-dimensional acceptance framework let developers judge a tool’s real ability without being swayed by marketing, and they support a working habit of AI generation, human review, and engineering finish work. The method itself is more valuable over time than picking any single tool.