r/AskProgramming • • 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

0 Upvotes

19 comments sorted by

4

u/Berkyjay 22d ago

Is your goal to code or is your goal to complete a project?

1

u/Worldly-Ebb-7891 22d ago edited 22d ago

Both actually, I want quality (medium to large) project, I also loves coding and debugging, this makes me less miserable and gives me healthy steady dopamine. But on the other hand, looking at other's projects, they are build very fast, I feel like I am falling behind in speed, and afraid if this doesn't align with future industry requirements.

2

u/Berkyjay 21d ago

I mean, no one is stopping you from coding in your personal time. But in terms of employment, you need to learn to be a software engineer. Coding is going to be something that only computer scientists do in the future much like how physicists still use maths.

2

u/amasterblaster 20d ago

Yeah, I would personally split coding as a hobby from shipping features as a career.

I code for fun, but for work I use agents. I cant justtify the cost to pay me to read code all day when its not what clients want to pay for. They want to pay for quality results at a competitive margin.

The bits I code now are interfaces, base classes, and module seperators (high level) and I have agents fill them in

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 

7

u/Great-Use-3149 22d ago

There's also no way you're going to be "left behind" if you actually build your skills constantly. There's no way someone who cognitively surrenderres will be able to get hired in many places except at firms that got delusional .

And even if you know what you're doing at some places AI will surely have to make its own decisions along the way (unless you're practically giving it the entire implementation in pseudo code) and it will erode your thinking and skills 

0

u/heatlesssun 22d ago

There's also no way you're going to be "left behind" if you actually build your skills constantly.  The problem is that person who is using ai development in a disciplined manner will simply build up skills in their system much faster, which much more update skills than a human can do manually.

2

u/Great-Use-3149 22d ago

They'll output something much faster. They won't learn anything — especially if they're doing doing the work much faster due to a tool. You can't speed up learning by delegating all the work and thinking to a machine

1

u/heatlesssun 21d ago

How do you balance output with learning. Especially when the machine can out learn and outproduce the human. Learning is something that takes time and costs money, while learning to produce when someone who know how to use these tools is doing both.

My experience over the last couple of years when generative AI has been insane. Code across Python, JavaScript. Typescript, C#, SQL even some Rust. Support for multiple cloud platforms with OpenTofu, model fine tuning, LangGraph red/blue teaming. Integration of multiple LLMs into apps.

You just have to accept doing things at a slower pace, pay for human training and leaning experience or go more with ai acceleration. The lower cost solution will win. The only way that works is making ai that expensive. And I don't think that's going to be the case.

1

u/DirtAndGrass 21d ago

Because AI can't innovate, and does make mistakes, if you don't have anyone directing and monitoring it, it will just be slop

1

u/heatlesssun 21d ago

Your criticisms would also apply to plain old manually written human code as well. That's the contradiction I see in these arguments. AI will make mistakes, so do humans. But the argument your group seems to be making is with super-duper high levels of skill and learning, humans are better than AIs.

Tell me how long it would take for a human starting from zero to be a better coder than an AI? Because that's kind of the issue.

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

1

u/HealyUnit 21d ago

I'd also be real dubious of emails with the characters !#$%&'*+/=?^{|}~ in them. Like periods and underscores? Sure. But I can imagine a lot of scenarios where chars like $, |, or ? are gonna cause parsing errors. He could do a lot simpler ones with stuff like /^[^@\n\b]+@[^.]+(\.[\w]+)+$/ if he does want to allow "weird" symbols (like $), or replace the first character set with [\w\.] if he doesn't.

Point being, this regex smells like "Here's a solution that's really way over-complicated for 99% of situations, but it looks fancy, so it must be right!" kinda deally.

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.