Hey beginners!
Coding with AI tools can be stressful, especially if you aren’t experienced with coding. Meaning you don’t know what the AI is doing
There are many things that can help you but nothing like properly using GIT. Git is a versioning system which lets you for example test something out and be 100% sure that whatever happens, you can easily get back to a version that was stable and working.
Experienced coders will roll their eyes and say - duuuh! But I know how many new AI coders aren’t even using GIT at all, let alone features that help you. Also I see AI Coding YouTubers rarely talk about this.
I’ll link 2 great YT videos, take a look and pick the one that feels better to you:
The workflow that helps me the most is that I “branch” out often. I have my main branch or version that I like. To test new features, I will create 2-3 new branches and then try different ways to prompt the models to achieve the same. If and when I like something and make it stable - I “merge” it back to the main branch.
Sounds simple - but it’s super profound. Because you can stop preparing for what you want to do, you can just start prompting the model and see what comes up. Everything broke down? The model made changes you don’t like? No matter - discard the branch, make a fresh one and start again.
It’s “just do it” meets AI coding.
Lastly, I want to share with you a free tool that can help you visualize your “commits” and branches and let you actually jump to different branches visually and super super quickly. It’s called GitUp: https://gitup.co/
It’s only available on Mac, but here’s a blog post with some other similar tools:
There are even simulators to practice git commands - but you can use AI to help you with that, in Cursor, go to your terminal and CMD+K to prompt the models to give you git commands. This way you won’t need to remember all of them.
Hope this helps, boys and girls, take care!