How I Use AI + Git to Code 3x Faster (Real Dev Workflow with Cursor)

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ม.ค. 2025

ความคิดเห็น • 41

  • @YifanBTH
    @YifanBTH  2 หลายเดือนก่อน +4

    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?

  • @TheWizardTower
    @TheWizardTower 21 วันที่ผ่านมา

    This channel is such a value add. Finally a developer who knows what he’s talking about

    • @YifanBTH
      @YifanBTH  19 วันที่ผ่านมา +1

      Glad you found this useful. Dev talking to Dev.

  • @richardadonnell
    @richardadonnell 2 หลายเดือนก่อน +3

    🎯 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

  • @hehsieh
    @hehsieh 2 หลายเดือนก่อน +17

    This is amazing! Can you share your cursorrule? 😀

    • @emanuelec2704
      @emanuelec2704 2 หลายเดือนก่อน +1

      Yes please!

    • @dommafia
      @dommafia 2 หลายเดือนก่อน

      Yes!

    • @YifanBTH
      @YifanBTH  2 หลายเดือนก่อน +3

      I've added them to this gist: gist.github.com/yifanzz/9ecfe4616328fbbb1d9eee4515c39efc

  • @Matrix-mq7ul
    @Matrix-mq7ul หลายเดือนก่อน

    Most useful dev tips!!!
    Thanks bro

  • @SouthbayCreations
    @SouthbayCreations 2 หลายเดือนก่อน

    Another great video thank you for sharing your knowledge! Jason

    • @YifanBTH
      @YifanBTH  2 หลายเดือนก่อน +1

      thanks man. is Jason my new name :D, haha

  • @DuskoSusa
    @DuskoSusa 2 หลายเดือนก่อน

    Useful content! Subscribed!

  • @YuriyLvov
    @YuriyLvov 2 หลายเดือนก่อน +2

    Thank you

  • @SouthbayCreations
    @SouthbayCreations 2 หลายเดือนก่อน +2

    I would love to hear your thoughts on windsurf ide..

    • @YifanBTH
      @YifanBTH  2 หลายเดือนก่อน +1

      sound like a great idea, will check it out!

    • @SouthbayCreations
      @SouthbayCreations 2 หลายเดือนก่อน

      @@YifanBTH Thank you!

  • @johnc0de
    @johnc0de 2 หลายเดือนก่อน

    Very good tips!

  • @antonijo01
    @antonijo01 หลายเดือนก่อน +2

    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.

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      you can link up your github account on your accounts page: replit.com/account#connected-services

  • @IamYouWeAreEveryone
    @IamYouWeAreEveryone 2 หลายเดือนก่อน +1

    great video!

  • @hughmitchellmusic
    @hughmitchellmusic 2 หลายเดือนก่อน

    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!

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน

      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.

  • @Salvag3dHalos
    @Salvag3dHalos 2 หลายเดือนก่อน +2

    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.

    • @YifanBTH
      @YifanBTH  2 หลายเดือนก่อน +1

      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.

    • @Salvag3dHalos
      @Salvag3dHalos 2 หลายเดือนก่อน

      @@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.

    • @YifanBTH
      @YifanBTH  2 หลายเดือนก่อน

      @@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

  • @shenyi654
    @shenyi654 2 หลายเดือนก่อน +2

    Can you compare windsurf and cursor, which is better ? Thank you very much.

    • @dommafia
      @dommafia 2 หลายเดือนก่อน +1

      Cursor, especially with their supermaven acquisition

    • @YifanBTH
      @YifanBTH  2 หลายเดือนก่อน

      great suggestion, this is now a popular request. will definitely look into it

    • @YifanBTH
      @YifanBTH  2 หลายเดือนก่อน

      will have to wait for supermaven to be fully integrated before I can test it out.

  • @60pluscrazy
    @60pluscrazy 2 หลายเดือนก่อน +1

    🎉

  • @a_son_of_a_beach
    @a_son_of_a_beach 15 วันที่ผ่านมา

    Where can I find your .cursorrules? Great content! Keep it up!

    • @YifanBTH
      @YifanBTH  วันที่ผ่านมา

      If you check out some of my latest videos, it's linked in the description.

  • @toddwmac
    @toddwmac หลายเดือนก่อน

    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.

    • @YifanBTH
      @YifanBTH  23 วันที่ผ่านมา

      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.

  • @phanquochung3924
    @phanquochung3924 หลายเดือนก่อน

    awesome

  • @cristians.785
    @cristians.785 หลายเดือนก่อน

    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

    • @YifanBTH
      @YifanBTH  หลายเดือนก่อน +1

      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.

  • @melvinjongen1697
    @melvinjongen1697 2 หลายเดือนก่อน +1

    Did you see Windsurf Ai its more stable then cursor thank me later ;)

    • @YifanBTH
      @YifanBTH  2 หลายเดือนก่อน

      you are not the first to mention it to me, will definitely need to give it a try