Hands-On Evaluation of AI Coding Assistants: Building an E-Commerce Site from Scratch
This article presents a practical framework for evaluating AI coding assistants by using a single, well-defined benchmark task: building a complete React e-commerce site from scratch. It covers evaluation dimensions including IDE experience, agent-mode task completion, first-run success rate, UI consistency, and code quality, along with common failure patterns, remediation strategies, and a repeatable evaluation workflow for tool selection.
Hands-On Evaluation of AI Coding Assistants: Building an E-Commerce Site from Scratch
1. Why You Need a Unified Benchmark Task
With AI-assisted programming rapidly becoming mainstream, the market is flooded with intelligent coding assistants. Their marketing claims sound similar and their feature lists look nearly identical, yet their real-world engineering performance varies dramatically. The most effective way to decide whether a tool fits your team is not to read official documentation, but to design a sufficiently complete benchmark task with clear acceptance criteria and run multiple tools against the same standard for a side-by-side comparison.
This article uses a typical end-to-end frontend task: building an e-commerce shopping site from scratch with React, covering the following pages and capabilities:
- Home page (product listing)
- Product detail page
- Purchase flow (checkout page, payment success page)
- User login and registration
- User center: dashboard, orders, wallet (coupons), settings
The difficulty of this task lies not in the code volume of any single page, but in the overall consistency and completeness of the site: whether routing is coherent, whether state is shared, whether styling is unified, and whether mock data is decoupled from pages. These are exactly the areas where AI coding tools tend to expose their weaknesses.
2. Designing the Evaluation Dimensions
2.1 IDE and Interaction Experience
Interface friendliness directly affects onboarding cost. When evaluating, focus on:
- Whether you can get to work quickly on first launch, without complex configuration;
- Whether the interaction model is clear (e.g., single-turn chat, agent-based, or multi-mode options);
- Whether options for engineering-sensitive scenarios, such as privacy mode, are available;
- Whether the UI copy and feedback are friendly enough to lower the psychological barrier to use.
A counterintuitive finding from practice: interface “warmth” is not strongly correlated with engineering capability. Some tools have friendly interfaces and polished onboarding but mediocre generation quality; others feel austere yet demonstrate stronger task decomposition. So interaction experience should only be a secondary dimension—the core criterion is generation quality.
2.2 Agent Mode and Task Completion
Mainstream tools generally offer multiple modes, commonly falling into two categories:
- Lightweight mode: generates code instruction by instruction, with the developer controlling the pace—suitable for small changes;
- Agent/autonomous mode: understands the full requirement in one pass, decomposes and executes multi-step tasks autonomously—suitable for building a project from scratch.
The key metric to test is the one-shot success rate: give the tool the complete page list and observe whether it can produce a runnable project within a single session, rather than stopping halfway or repeatedly asking for more context. In practice, the mode name itself doesn’t matter; what matters is:
- Whether it understands the combined requirement of “multiple pages + routing + shared state”;
- Whether it autonomously fills in missing pieces (e.g., payment success page, 404 page);
- Whether it can self-repair based on error messages when something goes wrong.
2.3 First-Run Success Rate
This is the hard indicator that separates engineering-mature tools from the rest. The evaluation method: launch the generated project as-is and record:
- Whether it runs directly;
- The number of console/compile errors;
- How many rounds of conversation are needed to get it to a usable state;
- Whether there are low-level problems such as messy directory structure (e.g., nested folders with identical names), missing dependencies, or configuration errors.
If multiple repair attempts still can’t get it running, the tool’s planning capability for complex tasks is insufficient, and you should downgrade its intended scope of use.
2.4 UI Completeness and Consistency
An e-commerce site demands high visual consistency. Key evaluation points:
- Unified color scheme: whether the overall style is chaotic, or whether issues like white text on white buttons render content invisible;
- Responsive adaptation: whether both desktop and mobile render correctly, and whether form pages like login and registration break on small screens;
- Information density per page: whether the detail page contains only placeholder content, missing key information such as product attributes, price, and stock;
- Placeholder image strategy: whether everything uses placeholder images, and whether a unified image placeholder scheme is provided.
2.5 Code Engineering Quality
This is the most overlooked dimension, yet it has the greatest impact on long-term maintenance. Check it item by item:
Architectural layering: whether components, pages, routing, state management, and mock data are separated; whether data is hardcoded and coupled inside components. An ideal output looks like:
src/components/ # Shared componentspages/ # Page-level componentsrouter/ # Routing configurationstore/ # Global statemocks/ # Mock data maintained independently
Style management: whether styles are separated from logic, and whether a unified styling approach (e.g., CSS Modules, Tailwind, styled-components) is used, rather than a mess of inline styles.
Types and validation: whether forms have complete validation logic; whether TypeScript types are complete; whether the hooks and context directories are genuinely usable or just empty shells.
Maintainability: when making changes later, whether modifications stay localized or trigger cascading side effects.
3. Typical Problems in Practice and How to Handle Them
When using a complete e-commerce site as the benchmark task, common problems fall into these categories:
- The project runs but throws errors: mostly caused by dependency versions, routing configuration, or environment variables. Fix: ask the tool to output a startup checklist and dependency notes first, then fix step by step—don’t blindly retry.
- Pages look fine but don’t work: buttons have no event handlers, forms have no validation, the purchase flow is broken. Fix: explicitly list the interaction loop for every page in the requirements (browse → add to cart → checkout → pay → success → order visible).
- No mobile adaptation: layouts hardcoded to desktop width. Fix: state “mobile-first, simple responsive behavior required” in the requirements, and verify with a narrow viewport during acceptance.
- Coupled mock data: data hardcoded inside components, requiring a major rewrite to connect real APIs later. Fix: require from the start that “the data layer is independent, with designated integration points reserved for API replacement.”
- Slow generation: complex tasks take a long time per generation round. Fix: break the task into smaller chunks—have the tool generate the skeleton and routing first, then refine page by page—balancing efficiency and control.
4. A Recommended Evaluation Workflow
- Unified requirements document: write the page list, interaction loops, tech stack (React), and acceptance criteria into one explicit prompt, and use the same one for all tools;
- First-round generation: let the tool produce the complete project in one shot without mid-course intervention; record time spent and results;
- Cold-start verification: install dependencies and launch as-is; record errors;
- Repair testing: allow at most three repair attempts and track whether the errors converge;
- Code walkthrough: score on four items—architecture, styling, state, and data;
- Modification test: propose a cross-page change (e.g., “add coupon status to the wallet page and display it on the dashboard”) and assess the cost of the change;
- Final selection: reach a conclusion based on overall generation quality plus maintenance cost, not just a single-round result.
5. Conclusion
Using a complete e-commerce site as a benchmark task quickly exposes the real differences among AI coding tools in task planning, engineering structure, and attention to detail. The core principles for selection are:
- Judge overall consistency, not a single impressive page;
- Judge first-run success rate and repair convergence speed, not advertised feature counts;
- Judge code layering and data decoupling—this determines whether the tool can enter a real project;
- UI and interaction experience are bonuses; engineering capability is the passing grade.
Turn the dimensions above into your team’s evaluation checklist, and every new tool can be re-tested at low cost. This not only helps you pick the most suitable AI coding assistant today, but also lets you keep pace as tools evolve—so that AI genuinely serves engineering productivity instead of creating new maintenance burdens.
