r/AskProgramming • u/Worldly-Ebb-7891 • 22d ago
Other AI Assisted Project Development, am I being close minded?
I've been coding in Python for a few years and have built some decent projects. (I vibe coded last 12 months tho TvT, but not now). However, I'm still unsure about how much AI I should be using and where I should be using it.
With AI becoming increasingly common in software development, I feel like I should be adopting new workflows and environments. But I'm not exactly sure how.
My current workflow
Currently, I mostly write code myself. My AI usage is relatively limited to things like:
- Learning APIs and libraries: If I'm developing something with MySQL, for example, I'd Google something like "Basic CRUD MySQL Python", read Google's AI Overview, and manually implement the syntax in my code.
- Generating isolated snippets: For things like email validation, I might ask AI to generate a regex using Python's re library, then copy and paste it into my project.
For example, I might ask:
"Give me a sample email validation regex using Python's re library"
And get something like
re.compile(r"^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$")
I don't necessarily write these things from scratch myself, and i will not look at every single detail of it because I believe it is good enough. AI usage is mostly limited to individual snippets rather than having AI work directly with my codebase.
What I am struggling with is that
I've seen people who use AI effectively with good prompting produce relatively clean code (small-medium), implement features much faster, and come up with features or solutions I wouldn't have thought of myself. But, on the other hand, I barely see a good AI generated code in large projects (they are usually messy, buggy and over engineered unnecessary things)
Meanwhile, I usually struggle with code organization, end up with messy Python files, and occasionally find myself questioning why certain parts of my code work in the first place.
I've also spent around a year vibecoding, and when I returned to writing code more independently, I genuinely struggled to figure out what to do after creating a python file. Eventually, I got back on track and feel like I'm doing reasonably well now and I am quite happy with it.
However, I'm still questioning whether I should be adopting AI more extensively than I am doing right now for industry standards and requirements.
The main reason why I don't use AI in my current projects is that, they are in production (currently, an organization is using the), and I gotta to understand the codes, functions and such. As the code goes bigger, I understand AI's attention span won't be able to understand connection between all code. (I don't really know how to say it but) There will be functions outside of AI's attention code blocks which are inter connected. I am not sure if my thought process is right. But I still believe AI can be used in some way, even if not directly contributing to code, such as README (I am not sure if this is a good idea) or something more?
So where do I exactly use AI? I believe there are some baseline knowledge I should have and should maintain such as design architecture.
So, the question is that
Am I using AI correctly? Is my current approach reasonable, or am I missing out on significantly better workflows?
README and documentation: Is using AI to write README files (features, usage instructions, installation guidelines, etc.) a good practice?
Code refactoring and cleanup: Is using AI to clean up and refactor the existing code a good idea?
AI-assisted development: Where else can I incorporate AI into my workflow while maintaining control over the codebase and understanding everything that's being implemented?
Fundamentals vs. AI: What baseline knowledge should I maintain independently? I believe there are some baseline knowledge I must have and maintain such as design architecture. And which project parts I can use AI?
Am I being too close-minded? I sometimes feel like I'm unnecessarily restricting my AI usage, especially when other developers seem to be getting much more out of it. I don't want to be left behind close minded.
I thought of using AI as my assistant but I am not senior enough, I am a junior level developer.
I understand that there might be many opinions about this between developers like where to use and how to use, and I'd really appreciate hearing how experienced developers actually integrate AI into their workflows. I'm not necessarily looking to maximize how much code AI writes for me. I'm more interested in finding a workflow where AI genuinely improves my development process without taking away my understanding or control over my projects.
I still want to be able to write code even without AI. That was a hard-time to get back on my track after I vibecoded for a year.
PS: Since English isn't my native language, I used AI to make this post easier to read TvT.
I might even get down-votes cuz I know how stupid this question is, I just can't get out of my head and I don't know the answers myself TvT
4
u/Berkyjay 22d ago
Is your goal to code or is your goal to complete a project?
10
u/DirtAndGrass 22d ago
Coding without ai will make you a stronger programmer, when you are learning, don't use ai to write code.
Coding with ai is for when you know what you are doing, have a very specific goal and can review the code.
Never commit ai code without reviewing it
4
u/ouroborus777 22d ago
Your example isn't great. There are a number of email regex on the web so this is no better than an (old school) Google search.
As for AI usefulness in coding, I think they work best as a suggester, advisor, static analysis sort of thing. Roles that are supportive rather than do-it-for-you. That said, while I tend to avoid having them write code, I have asked for code. But if they make more changes than I can easily understand, I'll roll it back and try again with either smaller changes or have the AI provide recommendations or planning instead.
I'm not going to accept AI generated code I don't understand the details of. (Though, TBF, I apply this to human generated code as well. If I don't understand it and you can't explain it, it's not going in.)
2
u/TheMrCurious 22d ago
Bruh, sometimes you gotta be yourself.
2
u/loveheaddit 22d ago
just let go and use a harness
2
u/DarkLordCZ 20d ago
Not an answer to your question but please, don't use regex as an email validator. Just check if it contains @ and leave it at that. There will always be that one person who has an email address with empty space in it (which is valid...), or without domain name (with IPv4/6), ...
1
u/amasterblaster 20d ago
M43, been coding for 20+ years. I have not read anything but a unit test for over a year. I use gitea to pump tasks, and opencode to run them, all on a raspberry pi at home behind my tailscale. i use dev/push for my final product container provision and management.
When on the go I just code though voice and the opencode webui, and I use many skill files to break my ideas into cascades of tasks, then I just read the tickets as I walk around and hang with friends.
I made a modular codebase with plugins at its core, and strong doc standards, soeach module fits completely into context, and can be regenrated against tests in a single prompt.
Not too bad to get set up, happy to discuss how I did it.
1
u/DGC_David 15d ago
So I think personally, your using AI properly. Skill still beats vibe coding 1000:1, though. Like I know what I'm doing and asking for, and of course my attempt will be easier than someone who doesn't know what they are asking, and are simply just telling the computer to work.
For me I'm using it to fully generate my tests... I don't feel bad, because in production work before AI, nobody wrote tests. If I don't understand a concept fully after reading it, I might ask a couple questions about the function or type.
But I like coding, I like doing it raw, no Internet and just me and VSCode. I wouldn't give it up, but I'll use it every day to make my job easier, no problem.
Nobody would care about AI if it actually ended the 5 day work week, but instead the computer gets to make art and we have to work.