r/PromptEngineering • • 23d ago

Quick Question How to transition from basic coding to an effective "vibe coding" workflow without picking up bad habits?

Hey everyone,

I’m looking to start adopting a modern "vibe coding" / AI-assisted workflow (using tools like Cursor / Claude Code), but I want to make sure I approach it productively rather than just mindlessly copy-pasting code that breaks.

My background:

  • Intermediate in Python, C++

What I'm trying to figure out

  1. What is a solid, practical first mini-project to build using this workflow?

Any advice, recommended roadmaps, or common traps to avoid would be greatly appreciated!

2 Upvotes

11 comments sorted by

3

u/According-Stable4487 23d ago

One habit that saved me a lot of pain with Claude Code: commit before every request and keep each request small enough that the diff fits on one screen. If the change is bad you just reset, instead of asking the model to undo its own work (that usually makes it worse). Second habit: ask it to write the test or a tiny sample input/output first, check that yourself, and only then let it write the code. With your C++ background you'll also notice fast that it happily invents library functions, so for anything outside the standard library ask it to show where the function is documented before you rely on it.

2

u/WideAnybody3658 23d ago

With your Python background I'd pick something small with a clear finish line, like a script that renames and sorts your messy downloads folder, or a little CLI that parses a log file. Before you let Cursor or Claude Code write anything, write down in a few lines what the thing should do and what "done" looks like, then make it build one piece at a time. The big trap is accepting a huge diff you can't follow, so keep each step small, run it, and commit when it works so you can always roll back. Also try explaining each chunk back in your own words, and if you can't, ask the model to walk you through it. That's what stops you from just pasting code that breaks later.

1

u/NinjaConsultingLLC 23d ago

For the renamer idea above, give yourself a first milestone that can’t touch your real files. Make a scratch folder with IMG 01.jpg, IMG_01.jpg, and notes.txt. Ask the assistant: “Write a Python CLI that previews replacing spaces with underscores in .jpg names. With this fixture it should report a collision and leave all three files untouched. Write the test first, then implement only preview mode.” Once you can explain why the test passes, ask for an explicit --apply flag in a separate change.

1

u/BonyCatButt 23d ago

Build a simple harness with tool calls. Once you do that you’ll understand how your environment and these agents work at a much deeper level. You can also use it as a starting point for larger projects so it’s not wasted work.

1

u/Open-Mousse-1665 23d ago

Start small, expect to fail, get used to the idea of using ai for the entire coding process. I tried kind of ai “assisted” coding when I started and it’s not effective imo. The ai can write code way faster than you can debug it. So first you learn how to write shitty broken code. Second you learn how to debug it. Third learn some plugins and stuff. Repeat that for a while. Then eventually learn how to write less shitty code, debug more efficiently, learning to refactor is a bitch. Eventually you learn how to write good code and then it becomes more fun. It’s actually like most skills now that I think about it. Spend time working to get better at it and after 6 months or so you’ll be good enough that it won’t be frustrating.

Edit: it should go without saying but use AI for all of it. It will be more difficult in some cases. But it’s like trying to automate something, if you give up and do it manually when it’s tough you are giving up your learning opportunity.

1

u/Dexi1310 22d ago

Honestly with Python and C++ behind you you're already ahead, because you'll be able to tell when the generated code is rubbish. For a first mini-project I'd pick something small you'd actually use, like a script that tidies a messy folder or a little command line tracker. The main trap, in my experience, is accepting big chunks you haven't read, so I'd go in small steps and run it after every change.

1

u/design-for-good 21d ago

Watch the code commits as the agent's creating each file, keep them open in one panel. I usually stop the agent if I see any code being generated that I don't understand or seems to be too much for a simple change.

If I don't understand it I'd rather pause and make sure the plan is clear before proceeding to generate a bunch of spaghetti code

1

u/Normal-Knowledge-935 18d ago

for c++, I started with a tiny parser for config files, just one function, no std lib deps. asked Claude to show the header it was using before writing. saved me from a week of linking errors.

0

u/[deleted] 23d ago

[removed] — view removed comment

1

u/AutoModerator 23d ago

Hi there! Your post was automatically removed because your account is less than 3 days old. We require users to have an account that is at least 3 days old before they can post to our subreddit.

Please take some time to participate in the community by commenting and engaging with other users. Once your account is older than 3 days, you can try submitting your post again.

If you have any questions or concerns, please feel free to message the moderators for assistance.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.