blog.pierrehenry.be

How to Code Smarter With Cursor AI Without Losing Your Mind

Photo by Ofspace LLC How to Code Smarter With Cursor AI Without Losing Your Mind - Photo by Ofspace LLC on Unsplash

Alright, my friend, let’s get into it. I’m sitting here with my coffee, wearing my watch (mostly for the time, but hey, it’s also nice to know if my heart’s about to explode when I’m stressed). Today, it’s just you and me, and we’re diving into Cursor AI. I’ve been a software engineer for 12 years, and honestly, if you’re not using AI tools now, you’re going to get left behind. I was slow to pick up AI copilots—started in 2023, even though things were already blowing up in 2022. That’s a whole year late, which in AI time is like a decade. But better late than never.

Now, I use AI for coding all the time. If you don’t, you risk becoming that solo, old-school engineer who’s stuck in the past. It’s the same story as with crypto and web3. I dove into that in 2021, built a bunch of dApps, and now… well, who knows if web3 is even alive. But that’s not today’s topic.

Let’s get back to Cursor. Here’s what I’ve learned using it, and how you can avoid some of the weird pitfalls.


Getting Real With Cursor AI

So, Cursor is supposed to make your life easier, but sometimes it just doesn’t do what you expect. For example, I was trying to update a dependency, and Cursor couldn’t find the right version. Here’s what I did:

  1. Check the Usual Suspects: First, I looked in the pyproject.toml (or whatever config file you’re using). If that doesn’t work, Google is your friend. Sometimes you just have to do the old-school research.
  2. Watch Out for Account Limits: Cursor gives you 500 requests if you’re on the free plan. I’ve already burned through 138, so keep an eye on that. There’s a business plan for $40/month, but it’s not super clear what the limits are.
  3. Switch Models When Stuck: If Cursor gives you weird results, try changing the AI model. Sometimes the default model works better for edge cases.

Here’s a quick example of what I mean. I asked Cursor to fix a broken dependency file, and it spit out something that didn’t look right:

1def fix_dependency():
2    # This function shouldn't even exist here
3    pass

Normally, you wouldn’t see a function like that in your dependency file. But hey, sometimes AI just hallucinates. Accept the changes that make sense, and don’t be afraid to reject the weird stuff.

Photo by Van Tay Media How to Code Smarter With Cursor AI Without Losing Your Mind - Photo by Van Tay Media on Unsplash


Don’t Be a Code Monkey

One thing I love about AI is that you can almost code with your eyes closed. (I actually put on a sleeping mask as a joke, but you get the point.) But don’t let AI make you lazy. You still need to think. If you just accept everything AI spits out, you’ll get dumber over time.

That said, AI is getting scary good. People used to say it was like having a junior engineer on your team. Now, it’s more like a mid-level engineer. In six months, it’ll be a senior. Soon, it’ll be managing teams of engineers, and your job will be to set the direction, not write every line of code. Honestly, that’s kind of nice. Coding is fun, but it can be exhausting, especially when you’re stuck on stuff that AI can do faster.


Automating the Boring Stuff (Even Marketing)

I’m building a bunch of apps in parallel (that’s just how I roll), and AI helps me move faster. For example, I asked Cursor to generate screenshots and descriptions for the App Store. Soon, you’ll be able to automate your marketing too—imagine a script that posts your app updates to Reddit automatically.

Here’s how I use AI for that:

Here’s a prompt I use:

Fetch the most popular posts on r/sideproject. Find common patterns in viral posts and create a new post for my M Snap app. Update my original post accordingly.

And if you want, you can give ChatGPT more context by pasting your app’s description. The more info you give, the better the results.

Photo by Nguyen Dang Hoang Nhu How to Code Smarter With Cursor AI Without Losing Your Mind - Photo by Nguyen Dang Hoang Nhu on Unsplash


Submitting Apps With AI

Submitting apps is way easier with tools like Expo. I just run a command to build and submit the app. If there’s an error, check your dependencies and configs. Sometimes you’ll hit a wall, but that’s just part of the process. AI can help, but you still need to debug the old-fashioned way sometimes.


Key Takeaways


Pierre-Henry Soria

GitHub · PierreHenry.Dev · YouTube

<< Previous Post

|

Next Post >>

#Ai Tools #Coding Tips #Cursor Ai #Developer Productivity #Entrepreneurship #Productivity #Software Engineering #Tasks #Tech