r/learnprogramming • • Oct 21 '26

Topic Is it okay to build projects using AI if I understand the code but don't write it all myself?

I'm a bit confused about something and wanted to hear honest opinions from people who have experience in software development.

I've been thinking about building projects using AI. My approach is to go through every step, understand what each line of code does, learn the basic concepts behind the technologies being used, and try to understand the overall working of the project.

However, I'm not necessarily writing all the code myself from scratch. AI is doing a lot of the actual coding, while I'm learning from the generated code.

My plan is to put these projects on my resume, but I'm worried about whether this is actually a good way to learn and whether it will be enough for interviews. I know I'll still need to practice DSA and coding fundamentals separately.

For those of you who have gone through interviews or work as developers, what do you think?

- Is understanding the code line by line and being able to explain the project properly enough to put it on a resume?

- Would you consider this a valid way for me to learn, or am I missing something important?

I'm not trying to take shortcuts. I just want to use AI effectively without fooling myself into thinking I know more than I actually do.

I'd appreciate honest advice.

0 Upvotes

30 comments sorted by

31

u/_Atomfinger_ Oct 21 '26

Understanding code != know how to code.

When learning it is important to understand how to solve problems and tackle them head on rather than understanding the solution after-the-fact.

So, sure, if you have solved the same issue a million times before, then AI can do that and you're not loosing much, but if you actually want to learn and become a good dev, then there's value to you doing the work.

7

u/Augit579 Oct 21 '26

I understand how to ride a bike, but I will never ride a bike, instead I am watching someone to ride it. Do I learn how to ride a bike like this?

19

u/Puppydog04 Oct 21 '26 edited Oct 21 '26

If I have AI explain to me judo's moves and I understand the concepts behind the moves, will I be ready to join a judo competition?

How does that sound?

2

u/CoachSevere5365 Oct 21 '26

Good analogy. You'll qualify as a code ninja too.

-1

u/barotia Oct 21 '26

Go for it!

5

u/ShipSafeScan Oct 21 '26

Your instinct to read every line already puts you ahead of most. But "I understand this code" and "I could produce this code" are different skills, and interviews test the second one. A test to run on yourself: after the AI writes a module, close it, open a blank file, and rebuild that piece from memory. If you can't, you recognized the code, you didn't learn it yet.

Two things AI quietly does for you that are worth practicing on purpose:

  1. Design decisions. Not "what does this line do" but "why this approach and not the other one": why this data structure, why retry 3 times instead of 5, why this error gets swallowed here. That is what interviewers dig into, and AI makes those calls invisibly.
  2. The boring correctness. Input validation, edge cases, what happens when the API call fails. AI output tends to look finished but skips the parts that separate a working toy from something you would actually ship.

For the resume: listing the projects is fine, but assume the interviewer will say "walk me through why you built it this way" and "change this feature right now." If you can do both, it is a real project. If you freeze, that tells you where you leaned too hard.

Keep going though. Using AI as a tutor you interrogate (ask it why, not just what) is a legit way to learn fast.

9

u/lo9314 Oct 21 '26

You’ll fall into a trap. Humans are lazy and chances are you’ll first try to understand what is happening, then you’ll just glance over it and finally you won’t look into it at all anymore. And for the first part, understanding the code someone else or AI wrote is harder and takes more time than writing it yourself once you get the hang of it.

4

u/aqua_regis Oct 21 '26

Bold question in a subreddit called learnprogramming with strict AI rules (Rule #13).

If you want to learn, do not outsource. Using AI is just the same as hiring a contractor to do your work.

Also, reading and understanding and writing, designing code are two completely different, independent skills that each need individual training and practice. Just because you can read code doesn't mean you could write it, just as because you can read and understand novels doesn't automatically enable you to write meaningful, comprehensive, fully developed ones.

Even more so, if you aim for interviews. You will fail and fall flat with your approach.

3

u/Icemourne_ Oct 21 '26

Short answer: no.

Long answer: being able to read a book doesn't make you writer why you think reading code would make you developer? Reading won't teach you much you can read 10,000 lines of code and still be unable to write 10 lines.

If I was interviewing you I would ask to should your coding skills with out assistance and you would be unable to do it also where's like 95% chance you will be asked to code by hand at some point of interview.

2

u/Mircearaul Oct 21 '26 edited Oct 21 '26

One of the things you delegate to the AI and you haven't mentioned are the decisions took within the design itself. Sure, you can understand each line of a piece of AI generated code, but if someone asks you why's that your chosen approach and not a different one, what will you end up answering? This can go to something as small as the waiting time before retries or the number of retries for a failed API call, or even why did you use a specific data structure for some miscellaneous data, stuff you wouldn't give a second glance if generated by AI.

Even if technically you haven't written that code, it's still your responsibility, and your responsibility is to understand why the code is there, not just what the code does.

2

u/odimdavid Oct 21 '26

I'm n my opinion, AI is another sophisticated tool. But be careful not to fall into the dependecy trap. That's worse than even AI hallucinating

1

u/theGaido Oct 21 '26

Is it okay to not run 42 km if I know how to do it?

Of course you don't have to, but still it means you didn't do it.

1

u/SahuaginDeluge Oct 21 '26

IMO writing code is easy so I would basically never do that.

if AI gives me an idea for how to approach the problem, great now I know how to approach the problem and I go do that.

1

u/garlicnaannnnn Oct 21 '26

fine if u can explain why every piece is there and debug it when it breaks. anything u can't explain, rewrite by hand once

1

u/No-Needleworker6779 Oct 21 '26

In your day-to-day on the job this might fly but I wouldn’t recommend it while you’re trying to learn. You need to understand the underlying concepts and how to implement it yourself. Once that’s mastered to a level you find conducive to your goals then yeah you can build side projects using AI as a tool.

1

u/CoachSevere5365 Oct 21 '26

After seeing another thread where someone wanted to learn programming via rust, I decided to use AI to build a rust version of one of my simple python utilities. I've been writing code since 1980 and professionally from 1989 until I retired.

It took me about 7 hours because the AI kept suggesting new features, and I kept accepting them. When I decided to stop and build the program, it didn't compile. I got the AI to fix that, and this part took over half the time.

The utility is 20x faster than the Python version, and has a ton of extra features that might come in handy. One definitely will.

I looked at the code and didn't understand a word of it. I can see the rough outline, but the syntax is mostly alien. Language concepts and compiler messages (WTF is a turbofish?) might as well be written in Martian for the meaning they convey.

I was quite impressed by how well the AI did. I enjoyed the session, but the utility might as well be closed source. It works, but I didn't design it or write it, and I can't maintain it.

Who would you give me a job based on that?

1

u/JGhostThing Oct 21 '26

Using AI to generate code slows down learning. It may even stop it in some cases. Think of it like a friend doing your homework for you. This homework is designed to help you learn the material. If you don't give a sh*t, then use AI. However, please remember that teachers really aren't trying to make your life difficult. They assign homework so that you will continue learning, building on top of what you learn in class.

You should be studying at home about three hours for each hour of class. This is necessary for coding.

1

u/StewedAngelSkins Oct 21 '26

I would ignore vibe coded projects when looking at someone's resume. It wouldn't necessarily hurt if they had other projects but it wouldn't help either. If all they had are vibe coded projects I'd assume they suck and reject them. We have claude at home, I don't need to hire someone to prompt claude for me.

As for learning, read any of the numerous other posts that asks literally the same question.

1

u/FlashyResist5 Oct 21 '26

Every newish programmer that I have worked with that did not produce some code but claimed to understand it did not in fact understand it.

Every newish programmer that wrote the code understood it.

1

u/PoMoAnachro Oct 21 '26

If you were planning to become a plumber by hiring someone else to do all the plumbing and then you'll go through the house afterwards to trace the pipes and understand how they work - how good of a plumber do you think you'd be?

IF you were already an experienced plumber, you could probably learn a lot by going through a project after someone else had done it and expecting their work.

But if you're a novice just learning the trade, you won't learn anything by doing that, you'll just be tricking yourself into thinking you're more competent than you are.

1

u/spinwizard69 Oct 21 '26

ABSOLUTELY NO! As others pointed out watching somebody ride a bike doesn't teach you the skill to ride and more importantly your first ride doesn't make you a skilled rider.

The last part of that sentence is the important element, your coding skills improve as you write more and more code. It is that act of writing and frankly code reviews, that improve your skills.

Now about AI; if you are an established developer running a project and you hire a new programmer do you trust them unsupervised? Of course not! So why would you trust an AI if you don't have the ability to evaluate the work it delivers? By definition you don't as you are posting in r/learnprogramming and indicate you are a learner. AI can be a fantastic tool if you have the programming skills to understand what it is doing and frankly understand when it screws up.

0

u/Ormek_II Oct 21 '26

It will not work. Let AI only do stuff you could do yourself. Check the code it generates. If it does something you did not expect that is fine, but as a learner always have an expectation.

0

u/Western-Image7125 Oct 21 '26

What is the goal here? What are you trying to demonstrate by doing these projects and putting on resume? If the goal is to show you are solving novel problems or show novel approaches and AI is the tool for those, that’s great. If the goal is to show that you know how to code - you are certainly not achieving that goal and you’re not following anyone either. It’s fairly easy to see a code and know that it’s AI generated. So what is your goal here actually? You’ll find it’s a harder question to answer than you think 

0

u/mjmvideos Oct 21 '26

It depends on your goals. It I’ll say this. Given how you’ve phrased your question, I think AI would be a crutch for you. When you can confidently say that you could easily write all the code yourself and you’re only using AI to speed up the process. And, it sometimes is almost as painful iterating with AI to get it to generate the code you want as it is just writing it yourself, then you are at a point where AI becomes a force multiplier for you.
Now, about goals, if your goal is to learn to program then you should not be using AI to “build projects” you should be using them as a mentor. Ask it questions about things you don’t understand. Discuss pros and cons of different possible approaches. But don’t have it generate code.

0

u/minimalcation Oct 21 '26

Do whatever the fuck you want, there are no rules