Ayo O | App DeveloperInstagram

If you find this useful please like and follow

1:05English(auto-generated)6 segments272 words · 1 min read

Search inside any video

SavedThat transcribes your saved videos and lets you search across all of them instantly. Save this video and find any moment.

TL;DR

Learn about two critical mistakes your coding agent might be making that can harm your app's performance and how to fix them effectively.

AI app development mistakespolling vs subscribing in appsapp performance issuesfixing AI versioning problemscoding best practices for appsbattery drain in applicationsimproving app frame rateAI coding agent tips

Chapters

  1. 0:00Introduction to Coding Issues
    01
  2. 0:10Understanding Polling vs. Subscribing
    02
  3. 0:30Impact of Polling on App Performance
    03
  4. 0:45Problems with Versioning in AI
    04
  5. 0:55Solutions to Improve Your App
    05

Transcript

0:00

So, your coding agent is probably doing these two things behind your back that are slowly killing your app, and you can't see either of them. I've published over 15 apps with AI, and these two things were caught in almost all of them. When setting up the server, your coding agent probably built the app to ask the server for data every few seconds, forever. This is called polling.

0:15

This might feel fine during testing, but when users try the app, it'll drain their battery and lower their frame rate. Nowadays, modern backends like SuperBase or Convex can push data directly to your app when it changes. So make sure your AI is not polling, but rather subscribing to events as they happen. The second one can explain why your AI keeps going in circles and breaking things.

0:32

Every time you request a change, most AIs don't change it. Rather, they create a version 2 on top of the broken version 1, just in case anybody was using it. This causes your app to be full of broken code that nobody was using anyway. Now, for your future prompts, the AI will get confused between which is the working

0:48

version and now go in circles and break things that seem to be working before. To fix this, just tell it not to use fallbacks or backwards compatibility. Just replace the old feature and make sure the new one works. And if you're like me and you're too lazy to type all of that, you can just send this video to your AI and it'll figure it out.

1:00

And if you're like me and you're too lazy to type all of that, you can just send this video to your AI and it'll figure it out.

1:02

video to your AI and it'll figure it out.

Are you the creator or rights holder of this video? Request removal of this transcript.

Related Transcripts

Never lose a moment again

Save videos from YouTube, Instagram, and TikTok. Search everything that was said, and jump to the second.

Start Saving Videos - Free Trial