James Phoenix
speaker
411 appearances
1 recordings
1 series
first heard Nov 2024
last heard Nov 2024
James Phoenix’s voice in public audio — every appearance, attributed to the second.
Trend
recordings per month · last 12 monthsNo recordings in the last 12 months.Older appearances are listed below; set an alert to hear about the next one.
Appearances
So there's a um there's a rule which is a hidden rule.
It's called a.cursor rules file.
And you should yeah, you're meant to put it at the root level of your directory, but I've actually found that it works better if you put single cursor rules files in different ones.
So if you've got a client or an API, you should um default to putting your cursor rules file for your Next.js app or
your you know whatever it is view or some other framework you should put that in uh and it should talk about view and when you load your cursor project load it just from the client app if you're gonna work in the client for a bit because cursor rules doesn't seem to work that well when you have multiple different folders um so but anyway a cursor rules file is basically a file that will change the outputs by constantly feeding in a prompt
Um and there's a website that everyone should check out called cursor.directory and it gives you a bunch of different uh prompts that you can then copy and paste.
Uh and a load of these like, you know, you're an X.js developer using Next.js fifteen, you like writing server side React components, uh, minimize use client, you know, like so it's trying to encapsulate all the proper conventions that ensure that when it produces code, it produces
it in a certain style and a certain flavour that you as the developer like.
Uh so anytime you experience a bug because the LLM currently has a bug inside of it, will also go in the cursor rules file.
So I'll give you a good example of this.
Um Superbase just migrated about maybe three or four months ago from their next auth helpers to their SSRR package.
Um and that's a node package.
And so whenever cursor was generating files for me, it would actually generate it using the next.
Dorf helpers.
And I'm going, come on, Mike, this is ridiculous.
Like we've changed this.
So in my cursor rules file, it now says if you need to look at the uh the client libraries for Superbase, always default to use the Superbase slash SSR package.
And they are in these folders.
And then it knows exactly that it's already got the clients created, which have got types attached, and it knows that it shouldn't hallucinate and start using next door helpers.
It defaults.
Showing 321–340 of 411 · page 17 of 21
← Previous
Next →