跪拜 Guibai
← Back to the summary

AI Forced a Backend Dev to Do Frontend Work. He Found Out Who Was Carrying the Invisible Load

Without AI, I Never Knew How Hard My Colleagues Had It

I write Java for the backend. When estimating effort for requirements, I rarely counted visual design, animation, or sound effects as a separate chunk of work. In my book, that was "polishing the page after it's done."

So to be honest: I didn't really know what my frontend colleagues were busy with every day.

Later, AI made writing code easier, and I did all of these tasks myself from scratch. The biggest takeaway wasn't "frontend is hard" — it's that I finally understood who had been making those seemingly small decisions for me.

Placing a number is also a craft

The trigger was small: I wanted to know how many days until the next holiday.

I use an iPhone, and the only way to get this number was to go to the App Store and download a third-party app — taking up a grid spot for one sentence, asking for notification permissions, and gambling on whether this year's schedule was even updated.

So I made my own: open it and see a countdown. It eventually grew into four entry points — countdown, drink water, slack off, and check-in.

Author's actual screenshot of the homepage: a centered countdown number, next holiday and remaining days, drink water and slack off entries, four tabs at the bottom

Image: The homepage serves only one number.

Features can be added slowly, but I held one rule from the start: the number on the homepage can't move. No matter how much more gets added, it stays in place.

This didn't used to count as work in my eyes. "Isn't it just putting a number there?" When I actually did it, I found that position, hierarchy, font size, and whitespace each answer the question "what does the user see first?" These decisions have no standard answer; you have to make the call yourself. I used to think product colleagues were just guessing all day. Now I know that step is one no one else can take for them.

The frontend workload: 1000 lines of styles, 26 animation segments

This was the part I was least mentally prepared for.

The backend habit: once the API works and the data matches, you're done. Not so for frontend. The homepage script is 1900 lines, styles are 1000 lines, and there are 26 animation keyframes alone.

Before, I called this "polishing." Not anymore: visuals decide whether users can understand the page at a glance, and animation decides whether operations feel smooth. They aren't decoration; they're functionality.

Interaction work: for one "dong"

The check-in page has a wooden fish sound effect. It sounds like just triggering a playback.

Author's screenshot of check-in page: today's check-in title, cyber wooden fish counter, falling char card, and work-off check-in button

Image: A tap gives one "dong."

In reality, there are 11 sound effects in total. All must be pre-downloaded to local storage upon entering the page, otherwise the first sound waits for network. The wooden fish can be tapped rapidly, so they prepared 6 players that rotate, using whichever is free. When the phone is on silent, it plays nothing, obeying.

The entire sound code is about a hundred lines. The wooden fish rapid-tap pool is just one segment.

Previously, when a colleague asked "should this button make a sound?", I thought it was just a trivial frontend favor. Now I know that behind that sound sits a whole new mountain.

The only calm part: the backend

The only piece I was confident about from the start: which days are holidays and which are workdays.

After all, I write backend. The earliest version had AI scrape public holiday records online and hardcode the dates into the page. It worked, but couldn't withstand questions: what about next year? What if the schedule changes? Do old-version users stay on the wrong day forever?

Later, the data moved to the cloud: cloud storage holds each year's schedule, cloud functions sync periodically from public calendars, and the Mini Program reads per year at startup, adding local caching and a built-in fallback. If validation fails, it isn't used. If cloud reads fail, the page doesn't go blank. A change doesn't need a release, and old-version users don't keep seeing wrong numbers.

The reason this went smoothly isn't that I'm smart — it's that this is exactly what I've been doing all these years. Conversely, when frontend colleagues think "adjusting a spacing" is trivial, it's the same principle. Difficulty often just depends on where you stand.

Platform operations: sender-side normal doesn't mean receiver-side normal

The most troublesome part was sharing.

The share title isn't hardcoded: it varies by which entry point the user shares from — how much water drank, how many short breaks, working or off, days remaining until holiday.

But for a while, previews on my phone were fine, but opening on another device or account showed cards with only the default name and blank space. Adjusting callbacks, swapping images, checking paths — none worked. Finally it turned out the code wasn't the problem: a backend security configuration (signature verification) was. Following a community forum post's suggestion fixed it — at least that mysterious issue is resolved in this version and this config.

Abnormal share screenshot: two Mini Program cards in WeChat showing only default names and Mini Program icons, no titles or preview images

Image: Receiver side shows only default names.

Normal share screenshot: Mini Program card with title "35 days until New Year's holiday" and homepage preview

Image: When normal, the card carries a title and preview.

The preview on the sender's side only proves the sender is fine. From then on, I check the backend config first, then switch devices and accounts to walk the entire chain.

Such pitfalls never appear in any tutorial, and no one has your back when errors happen. I used to think the ops colleague's job was just "configuring." Now I know that "configuring" means taking responsibility for everyone.

AI takes the execution, leaves the responsibility

The biggest takeaway from using AI this time isn't efficiency. The quality of its output is almost equal to the quality of my questions: saying "make the homepage look nice" gives you an average homepage; saying "this card's spacing is too small at 375 width, change to 40rpx, title max two lines" is something you can copy directly. But written doesn't equal verified — it doesn't know what real data looks like, and it doesn't know how it feels in hand.

So where's the pain?

Not in the volume of work. It's that for every small thing, the final "that's it" has to be said by you. If you're wrong, no one covers for you.

Before, I was far from these decisions because they weren't my post. AI handed the work to me, and handed the responsibility along with it. Code can be outsourced to AI, but judgment cannot.

Is there anything in the work you do now that you used to think "what's so hard about it?" Share in the comments.

Comments

Top 7 of 14 from juejin.cn, machine-translated. The original thread is authoritative.

橙序员小站 1 likes

The mini program is here, welcome to try it out [grin]

flyfox  · 1 likes

I tried it out, pretty good [grin]

橙序员小站  → flyfox  · 2 likes

[strive] Let's keep up the hard work together

flyfox 1 likes

I also used AI to write a mini program that specializes in curing couple quarrels and family discord [spectator]

flyfox  · 1 likes

Welcome big shots to offer your valuable opinions.

用户238183588344

Counting down to holidays every day, isn't that a kind of torment?

橙序员小站

Wouldn't days without hope be more tormenting?

ovenslove

Show some support, keep going.

橙序员小站

[thumbs up][thumbs up][thumbs up]

刘子弃

I used to do WebGL animation. Whenever the product had a creative idea, my brain would explode trying to figure out how to implement it [tired]

橙序员小站

[crying][crying][crying]

小卿噢 1 likes

[freaking out]

看龙卷风摧毁停车场

The pain of front-end page making is too bitter; the pain of redesigning right after finishing—who can understand it?