Pedaling AI to Build a Mood-Sea WeChat Mini-Program: It Faked 100 Dots for 37 Records
AI that writes the boilerplate still needs a human to set the data rules and verify on hardware; otherwise it produces a polished but dishonest demo and race conditions that error logs alone can't pinpoint. This post is a concrete map of what to hand over and what to keep.
An AI-assisted build of a WeChat mini-program called "Emotional Ups and Downs" renders each user's tapped emotion as a light dot that flies into a dark, animated sea. The app is deliberately minimal: no registration, no content feed, just an emotion tap, an index page showing the dominant mood and 24-hour distribution, and a calendar footprint timeline. The front end is native WeChat (WXML/WXSS/JS) with Canvas for the sea animation; the back end runs Spring Boot with MySQL for records and Redis for caching and rate limiting.
AI wrote most of the boilerplate: page skeletons, interface wrappers, entities/VO/DTO/CRUD, aggregation queries, share-card drawing, and repetitive style changes. But the developer kept the product-defining rules human-owned: what counts as a record, whether a tap within ten minutes merges, how to isolate abnormal requests, and how "your" dot differs from others'. The first AI version had a glaring data lie: the API returned 37 records while the sea always showed 100 floating dots, a static density that ignored the real count. Fixing it meant making dot count follow true data, and when the render cap is hit, increasing brightness and breathing instead of stacking more particles.
A second, more typical bug appeared under rapid consecutive taps: the first dot hadn't landed before a second flew out, creating two of the user's own dots. That's a state race condition, and the developer had to describe the live scenario precisely for AI to address it, moving target resolution to animation landing and limiting each emotion to one personal dot. The post ends with five workflow rules for using AI: define the business口径 first, hand over only repetitive work, fix one specific problem at a time, use AI for mechanical integration comparisons, and always verify by running on a real device.
The 100-dot bug shows that AI-generated code can look perfect in a screenshot while having zero connection to underlying data; visual polish doesn't imply data integrity.
Race conditions won't surface from error logs alone; the developer had to narrate the exact sequence of UI interactions for AI to even start on the right fix.
AI is fast at faithfully executing a wrong rule when the requirement is vague; the burden is on the human to define unambiguous product semantics before generating code.
Treating AI output as untested until a human runs it on a real device is the only safety net; "should be fine" is equivalent to "not tested yet."
The two remarks barely engage with each other: one is a self-promotion of an unrelated AI-built mini-program, the other validates the article's core claim that fabricated data degrades trust more severely than emptiness does. No meaningful discussion takes place.
Exactly, the fake light dots part is the real deal. When it comes to data, faking it is much worse than being quiet.