Evaluating LLM Coding Ability: From Code Generation to Engineering Delivery

    When a large language model claims coding capabilities, the real question is not whether it writes good code snippets, but whether it can turn a development goal into verifiable, runnable, and maintainable engineering results under clear requirements, tool permissions, and resource budgets. Drawing on two real-world firmware game development attempts—one delivering a Breakout-style game in about two and a half hours, the other stalling for nearly six hours before producing a runnable program—this article explains why firmware environments make a valuable observation scenario, why different tasks can inform personal experience but not model rankings, which engineering behaviors actually matter, how layered validation should replace one-shot development, and how to build a fairer evaluation methodology for LLM-based coding tools. The conclusion: the true highlight of AI coding is closed-loop delivery, and the real measure of "user experience" is total engineering cost.

    1. Evaluating LLM Coding Ability Starts with Asking a Better Question

    When a new large model demonstrates coding capability, developers typically ask: Is the code good? Can it handle complex tasks? Does it actually save time in practice?

    These questions cannot be answered with a few generated code snippets. The question that matters is: Under clear requirements, tool permissions, and a resource budget, can the model transform a development goal into a verifiable, runnable, and maintainable engineering deliverable?

    The original practice log provides a representative scenario: two AI coding attempts, one developing a Breakout-style game and the other a Tetris-style game, both targeting a firmware execution environment. One attempt finished in roughly two and a half hours and passed on the first compile and run; the other ran for nearly six hours without completing the build environment setup and delivered no runnable program.

    This difference is worth analyzing, but it should not be turned directly into a model ranking. The two attempts simultaneously varied the task content, implementation path, and underlying environmental constraints. What was observed were the outcomes of two different development pipelines—not just a difference in code generation ability.

    Therefore, when discussing a model’s strengths and user experience, we should shift from product impressions to engineering facts: which problems it solved, where it failed, and whether those results can be reproduced under controlled conditions.

    2. Why Firmware Mini-Games Are a Valuable Observation Scenario

    Ordinary application development typically relies on mature runtimes, window systems, and rich libraries. Graphical mini-games in a firmware environment are different: developers must handle program entry, graphics output, input reading, memory usage, timing control, and exit flows under constrained conditions.

    Nor is the “firmware environment” a single unified platform. Different firmware architectures may use different execution modes, interface conventions, program formats, and loading mechanisms. If these conditions are not made explicit in the requirements, the model may generate a program that is logically sound but cannot be loaded in the target environment.

    This scenario is valuable for observation because it exposes whether the model possesses the following engineering capabilities:

    • Confirming the execution environment first, rather than blindly applying ordinary application templates.
    • Distinguishing application logic errors from toolchain configuration errors.
    • Building a minimal runnable program first, then adding features incrementally.
    • Adjusting the implementation based on actual compile and runtime feedback.
    • Proactively reducing dependencies when high-level runtime support is unavailable.

    That said, firmware development is a fairly specialized domain. Excellent performance here does not imply the same results in database applications, concurrent services, or large business systems. Any evaluation conclusion must retain its scope of applicability.

    3. Different Tasks Can Inform Experience, but Cannot Be Used for Rankings

    The claim that “two models doing different work makes the comparison unfair” needs to be understood on two levels.

    From a personal usage perspective, results from different tasks still have reference value. Developers can judge: under these requirements and operating conditions, did the AI coding session deliver, how much time did I invest, and what obstacles appeared? These are valid practice records.

    But for model capability comparison, different tasks introduce variables that are hard to control, and are therefore insufficient for a reliable ranking.

    3.1 Game type does not equal task difficulty

    Breakout typically involves ball movement, collision detection, paddle control, and brick state management. Tetris typically involves grid representation, shape rotation, boundary checking, line clearing, and game-over conditions.

    Both have clear complexity points, but you cannot judge which is harder from the game name alone. A Breakout prototype with no text and a fixed resolution may be easier than a Tetris game supporting complex input and UI; conversely, if Breakout also requires Chinese text display, fine-grained collision, and smooth animation, its difficulty increases significantly.

    What truly determines workload is the set of requirements, not the task label.

    3.2 Environmental differences may outweigh algorithmic differences

    If one task uses a pre-verified build environment while the other must solve program format, link layout, and loading paths from scratch, the elapsed time mainly reflects the burden of environment preparation.

    In this case, “the build never succeeded” means the delivery pipeline was never established—but it does not by itself prove the model cannot implement the game rules. Conversely, “compiled successfully on the first try” does not automatically prove the program is free of runtime defects.

    3.3 Human intervention changes the outcome

    Whether the developer provided a correct entry example, pointed out environmental issues, or proactively trimmed requirements can all affect task success or failure.

    If one session received multiple rounds of human guidance while the other relied entirely on autonomous model execution, the comparison includes different degrees of human–machine collaboration gains. To evaluate the model itself, these interventions must be recorded and controlled.

    4. Meaningful Highlights Should Be Observed in Engineering Behavior

    Rather than vaguely praising “strong coding ability,” observe whether the model exhibits the following behaviors.

    4.1 Can it convert requirements into checkable constraints?

    A high-quality development process should first answer: What environment does the program run in? How is graphics output obtained? What is the input method? Which dependencies are allowed? How is the final artifact accepted?

    For example, “develop a mini-game with Chinese text in firmware” actually contains at least two independent problems: running the game and displaying Chinese characters. The former requires solving execution and interaction; the latter requires clarifying character encoding, glyph sources, and rendering methods. Printing a string does not mean the target environment can display the corresponding glyphs.

    Proactively identifying these implicit conditions is more valuable than rapidly generating large amounts of code.

    4.2 Can it choose a lower-risk implementation path?

    In constrained environments, complex architectures are not necessarily advantageous. Fixed-size state arrays, simple 2D drawing, and explicit state transitions are often easier to verify.

    But “reducing dependencies” does not mean rewriting all low-level functionality yourself. If the target environment provides suitable and usable standard mechanisms, you should prefer proven interfaces and avoid unnecessary homemade implementations.

    The key criterion is: does the plan fit the environmental constraints and reduce unverified assumptions?

    4.3 Can it localize problems to the right layer based on feedback?

    Build failures may originate in source code, header file paths, link configuration, or artifact format; runtime failures may originate in program entry, interface calls, memory access, or the event loop.

    Effective AI coding should first localize the layer based on error messages, then modify only the relevant part. Rewriting code wholesale on every error not only wastes time but may also break already-verified functionality.

    4.4 Does it know when to stop and report a blocker?

    Persistently trying for a long time does not necessarily indicate stronger capability. When target-environment information is insufficient, required resources are unavailable, or tool permissions are restricted, the reasonable behavior is to state the missing conditions and submit existing evidence along with next executable steps.

    Delivering a clear blocker report has more engineering value than repeatedly claiming “almost done.”

    5. Replace One-Shot Development with Layered Validation

    Firmware mini-games suit a layer-by-layer approach, with explicit completion criteria at each layer.

    Layer 1: Validate build and loading

    Keep only the minimal entry point and necessary initialization; confirm the artifact can be generated and loaded by the target environment. Do not add full game logic yet.

    Save build logs, artifact information, and startup results. Then, when failures occur later, you can determine whether the new feature caused the problem or the base environment is still unstable.

    Layer 2: Validate display

    First draw the background and simple geometric shapes, then confirm coordinate ranges, color representation, and drawing boundaries.

    If Chinese text display is required, validate a single fixed string separately. Missing glyphs, incorrect encoding interpretation, and wrong drawing positions are distinct problems that should not be debugged mixed inside game logic.

    Layer 3: Validate input and exit

    Implement the simplest key response first, determine whether input reading is blocking or non-blocking, and verify the exit operation.

    If the input interface waits for events, placing it directly in the animation main loop may cause the display to stall. The update and input handling design must match the target environment’s actual mechanism.

    Layer 4: Validate game rules

    Gradually add movement, collisions, scoring, and end states. Rules that can be decoupled from the environment should be tested in isolation as much as possible.

    For example, whether a block crosses the boundary, whether a row is full, and whether the ball’s direction after collision is reasonable can all be verified with fixed inputs and expected outputs, rather than relying entirely on visual inspection.

    Layer 5: Validate boundaries and stability

    Check continuous input, extreme positions, repeated startups, exit cleanup, and longer runtimes. A successful first launch is only the starting point of this layer’s validation, not full acceptance.

    This process decomposes “six hours with no result” into more specific questions: exactly where it got stuck—build, loading, display, input, or business logic.

    6. Building a Fairer Evaluation Methodology for LLM Coding

    To compare different AI coding solutions, use the same task, the same base environment, and the same acceptance criteria.

    6.1 Fix the task specification

    The task description should at least include:

    • The execution environment and available resources.
    • Required features.
    • Optional features and explicitly excluded features.
    • Permitted references and tool permissions.
    • Time budget, human intervention rules, and stop conditions.
    • The final artifact and verification steps.

    In particular, distinguish between “must be playable” and “must have a complete UI,” to avoid continuously adding requirements mid-process.

    6.2 Test different starting points simultaneously

    Two task types can be set up:

    The first provides a pre-verified minimal project, mainly testing feature implementation, debugging, and code organization.

    The second starts from an empty directory, testing environment setup, dependency management, and end-to-end delivery.

    Results for both should be reported separately. Otherwise, differences in environmental knowledge can easily mask code implementation ability, and advantages from mature templates may be mistaken for autonomous development capability.

    6.3 Don’t just measure total elapsed time

    Total time should be broken down into environment preparation, code generation, build fixes, runtime verification, and manual operation time.

    One solution may generate code quickly but require long developer corrections; another may respond more slowly yet reduce human intervention. For a real team, the latter is not necessarily more expensive.

    Therefore, in addition to wall-clock time, record manual effort, revision rounds, failure reasons, and the final set of accepted items.

    6.4 Repeat runs and keep failure samples

    A single run may be affected by random generation outcomes, prompt phrasing, or temporary environment issues. A more robust approach is to conduct multiple independent trials and keep all results, rather than showcasing only the best sample.

    Reports should state the number of completions, unfinished stages, time distributions, and common failure modes—not summarize capability from a single success case.

    7. From “It Runs” to “It’s Deliverable”

    For personal experiments, a runnable program is an important milestone. For enterprise development, you also need reproducibility, maintenance cost, and security boundaries.

    A more complete delivery package should include source code, build instructions, environment requirements, test records, known limitations, and troubleshooting guidance. When external references or reused code are involved, verify licenses and provenance to avoid downstream compliance risks.

    AI coding tools executing builds or modifying configurations should also follow the principle of least privilege. Especially in firmware-related experiments, prefer isolated test environments; do not modify production devices or write to actual firmware just because the generated program “looks reasonable.”

    Code review remains indispensable. Memory boundaries, error handling, resource release, and recovery from abnormal states all require independent inspection. The model’s own explanations can help you understand the implementation, but they cannot replace test and review evidence.

    8. Conclusion: The Highlight Is Closed-Loop Delivery; the Experience Is Total Cost

    In the original practice, one attempt completed quickly and ran successfully while the other was blocked for a long time—showing that real differences in AI coding may appear across the entire engineering pipeline, not only in the algorithm implementation stage.

    However, individual cases on different tasks support only limited conclusions: they reflect that particular usage experience, but cannot by themselves form a rigorous capability ranking.

    When evaluating LLM coding, what deserves the most attention is requirement clarification, environment adaptation, layered validation, error localization, and delivery completeness. So-called “user experience” should also be grounded in human intervention, failure recovery, reproducibility, and maintenance burden.

    Only by combining task specifications, verification evidence, and cost records can you determine whether an AI coding tool is merely generating code quickly—or reliably reducing engineering work.