Many of us might want to avoid version control as much as possible when we are hacking, but it turns out that Version Control is our best friend when iterating rapidly with AI. What are you favourite use cases?
🎯 Key points for quick navigation: 00:00 *🤖 Introduction to AI and Version Control Workflow* - Explains how AI can break code during development sessions and emphasizes the importance of version control for managing such issues. - Highlights the inevitability of AI-induced errors in complex codebases and the need for tools like Git to track, validate, and revert changes. 01:08 *🔧 Benefits of Version Control in AI-Assisted Coding* - Describes how version control encourages breaking work into logical chunks, ensuring a consistently working codebase. - Demonstrates how smaller tasks are better suited for AI, making it easier to validate outputs and integrate changes. 02:18 *📋 Breaking Down Tasks for AI Integration* - Shows how to prompt AI to break down features into smaller tasks, enhancing implementation accuracy. - Explains the workflow of leveraging AI for small changes and tracking them via Git, ensuring logical commits. 04:07 *✍️ Automating Commit Message Creation* - Explains the use of Cursor rules to create consistent, structured commit messages. - Discusses how these rules evolve with the codebase and ensure consistency across team members. 05:18 *📂 Storing Prompts and Context in the Codebase* - Suggests storing frequently used prompts in the repository as Markdown files for easier reuse and evolution. - Recommends separating specific rules into smaller files to avoid cluttering larger configuration files. 06:40 *🕒 Visualizing and Managing Git History* - Highlights the advantages of visualizing past changes using Git history. - Stresses the reliability of Git for managing changes over alternative tools and workflows. 07:23 *⚙️ Using Checkpoints Without Version Control* - Explains how tools like Cursor create automatic checkpoints but warns about their unreliability compared to Git. - Advocates Git’s proven stability and reliability for long-term version control needs. 08:16 *🔄 Micro vs. Macro Commit Strategies* - Discusses the benefits of smaller commits for easier tracking and reverting changes. - Offers an alternative workflow for larger commits using staged changes to accommodate different preferences. 09:12 *🌐 Embracing Best Practices with AI Development* - Encourages integrating traditional software engineering practices with AI tools. - Emphasizes efficiency and adaptability in workflows to maximize productivity in AI-driven development. Made with HARPA AI
I don't think you really need to stop using AI. they are always useful regardless of the stage you are in. The usage pattern has to change though. The larger the codebase the more finesse needed.
Is there a way to store a library of predefined docs? I have a few references for the code and having to add them every time I make a chat takes forever.
If you are looking to include custom public docs site, try the @docs -> Add new docs to easily reference it in the future. If it's just custom instruction you are after, you can put them in ".cursorrules" file at the root of your repo. Or put it in a .md file that you reference in your chat.
@@YifanBTH I have like 4-8 @docs that I often like to include but don't like to add the docs every time, is there a way to load a predefined library of @docs ? Thanks for your reply.
@@Salvag3dHalos you can use the notepad feature. - go to composer with cmd+shift+i, - create new notepad on the top left of the window. - in the notepad, you'll be able to link multiple files on the bottom right with the plus icon - then you can reference the notepad with your multiple docs in chat with @notepad
Really appreciating your content, thank you. Just getting back into coding and your vids are a great resource. One question if you have a sec. I'm not sure where to place the .cursorrules file. I have mine in the root dir of my project but it's Icon looks like an indent icon with a series of horizontal lines, vs your icon is a blue arrow. Any thoughts? Thanks, from the snowy mountains of Utah.
think the blue arrow might just be version thing. You can quickly test it out by adding a line like "start all response with a HAHAHA" and see if that shows up when you go into chat. If it does, then you are all good.
great tutorial. although I'd suggest to do a follow along than just presenting what you did. this feels lazy tutorial and for some users it might be not really clear on how to do what you did. if you really want to educate do a complete tutorial as everyone does. other than this it's really great content, and haven't seen anyone doing it so far. good luck w/ your channel
good suggestion, I've been switch between the detailed tutorial and high-level overviews for difference videos. will keep an eye on that for the future.
Many of us might want to avoid version control as much as possible when we are hacking, but it turns out that Version Control is our best friend when iterating rapidly with AI. What are you favourite use cases?
This channel is such a value add. Finally a developer who knows what he’s talking about
Glad you found this useful. Dev talking to Dev.
🎯 Key points for quick navigation:
00:00 *🤖 Introduction to AI and Version Control Workflow*
- Explains how AI can break code during development sessions and emphasizes the importance of version control for managing such issues.
- Highlights the inevitability of AI-induced errors in complex codebases and the need for tools like Git to track, validate, and revert changes.
01:08 *🔧 Benefits of Version Control in AI-Assisted Coding*
- Describes how version control encourages breaking work into logical chunks, ensuring a consistently working codebase.
- Demonstrates how smaller tasks are better suited for AI, making it easier to validate outputs and integrate changes.
02:18 *📋 Breaking Down Tasks for AI Integration*
- Shows how to prompt AI to break down features into smaller tasks, enhancing implementation accuracy.
- Explains the workflow of leveraging AI for small changes and tracking them via Git, ensuring logical commits.
04:07 *✍️ Automating Commit Message Creation*
- Explains the use of Cursor rules to create consistent, structured commit messages.
- Discusses how these rules evolve with the codebase and ensure consistency across team members.
05:18 *📂 Storing Prompts and Context in the Codebase*
- Suggests storing frequently used prompts in the repository as Markdown files for easier reuse and evolution.
- Recommends separating specific rules into smaller files to avoid cluttering larger configuration files.
06:40 *🕒 Visualizing and Managing Git History*
- Highlights the advantages of visualizing past changes using Git history.
- Stresses the reliability of Git for managing changes over alternative tools and workflows.
07:23 *⚙️ Using Checkpoints Without Version Control*
- Explains how tools like Cursor create automatic checkpoints but warns about their unreliability compared to Git.
- Advocates Git’s proven stability and reliability for long-term version control needs.
08:16 *🔄 Micro vs. Macro Commit Strategies*
- Discusses the benefits of smaller commits for easier tracking and reverting changes.
- Offers an alternative workflow for larger commits using staged changes to accommodate different preferences.
09:12 *🌐 Embracing Best Practices with AI Development*
- Encourages integrating traditional software engineering practices with AI tools.
- Emphasizes efficiency and adaptability in workflows to maximize productivity in AI-driven development.
Made with HARPA AI
This is amazing! Can you share your cursorrule? 😀
Yes please!
Yes!
I've added them to this gist: gist.github.com/yifanzz/9ecfe4616328fbbb1d9eee4515c39efc
Most useful dev tips!!!
Thanks bro
Another great video thank you for sharing your knowledge! Jason
thanks man. is Jason my new name :D, haha
Useful content! Subscribed!
Thank you
I would love to hear your thoughts on windsurf ide..
sound like a great idea, will check it out!
@@YifanBTH Thank you!
Very good tips!
Can you create video on how did you connect Cursor to github and complete process how work in Cursor with github? I am first time using github.
you can link up your github account on your accounts page: replit.com/account#connected-services
great video!
One main question. At what point do we want to stop using ai when building our codebases if we're going to eventually sell what we've built? Thanks!
I don't think you really need to stop using AI. they are always useful regardless of the stage you are in. The usage pattern has to change though. The larger the codebase the more finesse needed.
Is there a way to store a library of predefined docs? I have a few references for the code and having to add them every time I make a chat takes forever.
If you are looking to include custom public docs site, try the @docs -> Add new docs to easily reference it in the future.
If it's just custom instruction you are after, you can put them in ".cursorrules" file at the root of your repo. Or put it in a .md file that you reference in your chat.
@@YifanBTH I have like 4-8 @docs that I often like to include but don't like to add the docs every time, is there a way to load a predefined library of @docs ? Thanks for your reply.
@@Salvag3dHalos you can use the notepad feature.
- go to composer with cmd+shift+i,
- create new notepad on the top left of the window.
- in the notepad, you'll be able to link multiple files on the bottom right with the plus icon
- then you can reference the notepad with your multiple docs in chat with @notepad
Can you compare windsurf and cursor, which is better ? Thank you very much.
Cursor, especially with their supermaven acquisition
great suggestion, this is now a popular request. will definitely look into it
will have to wait for supermaven to be fully integrated before I can test it out.
🎉
Where can I find your .cursorrules? Great content! Keep it up!
If you check out some of my latest videos, it's linked in the description.
Really appreciating your content, thank you. Just getting back into coding and your vids are a great resource. One question if you have a sec. I'm not sure where to place the .cursorrules file. I have mine in the root dir of my project but it's Icon looks like an indent icon with a series of horizontal lines, vs your icon is a blue arrow. Any thoughts? Thanks, from the snowy mountains of Utah.
think the blue arrow might just be version thing. You can quickly test it out by adding a line like "start all response with a HAHAHA" and see if that shows up when you go into chat. If it does, then you are all good.
awesome
great tutorial. although I'd suggest to do a follow along than just presenting what you did. this feels lazy tutorial and for some users it might be not really clear on how to do what you did. if you really want to educate do a complete tutorial as everyone does. other than this it's really great content, and haven't seen anyone doing it so far. good luck w/ your channel
good suggestion, I've been switch between the detailed tutorial and high-level overviews for difference videos. will keep an eye on that for the future.
Did you see Windsurf Ai its more stable then cursor thank me later ;)
you are not the first to mention it to me, will definitely need to give it a try