iso27diy-corp/Corpus/Various/Vibe Coding Tips.md

2.5 KiB
Raw Blame History

tags
vibecoding
dev
prompting
  1. Write what you're building Before anything, I always start with a small doc called product.md. It says what Im trying to make, how it should work, and what tools Im using. Keeps me focused when the AI forgets what I asked.
  2. Keep notes on how to deploy I got stuck at 1am once trying to remember how I set up my env vars. Now I keep a short file called how-to-ship.txt. Just write it all down early.
  3. Use git all the time. Push to git early and often. You dont wanna lose changes when AI goes off script. I push almost every time I finish something. Helps when things break.
  4. Dont keep one giant chat Every time I start on a new bug or feature, I open a fresh chat with the AI. It just works better that way. Too much context gets messy.
  5. Plan features before coding Sometimes I ask the AI to help me think through a flow before I even write code. Then once I get the idea, I start building with smaller prompts.
  6. Clean your files once a week Delete junk, name stuff better, put things in folders. Blackbox works better when your code is tidy. Also just feels better to look at.
  7. Dont ask the AI to build the whole app Its good with small stuff. UI pieces, simple functions, refactors. Asking it to build your app start to finish usually ends badly.
  8. Ask questions before asking for code When something breaks, I ask the AI what it thinks first. Let it explain the problem before fixing. Most times it finds the issue faster than me.
  9. Tech debt comes fast I moved quick with the survey app and the mess built up fast. Take a pause now and then and clean things up or it gets too hard to fix later.
  10. Youre the one in charge Blackbox is helping but youre still the one building. Think like a builder. The AI is just there to speed things up when you know what youre doing. Thats all. Still figuring things out but its been fun. If youre just getting started, hope that helps a bit.
  11. When building stuff, I often change direction mid-way. I ask ChatGPT to think like a UX designer for ideas, then like a developer, then a security expert. In the end, I always ask how to make the code cleaner and more optimized.
  12. I realized AI needs a code map to better understand structure—classes, functions, variables, DB schema, relationships, etc. Without it, it starts hallucinating parameters and logic. So I built one for myself and made it public too: https://codemap4ai.com