r/learnprogramming • • 1d ago

Simple Question About AI

So Im Still New In Programing, i had some experience on PHP,Python,C#(unity), and newly Native C# dotnet. But After end of 2023s im using ai as a "mentor" to accelerate learning. im not blindly copy paste ai code rather i ask ai how it can be done, like ask the architecture, the base code, example code, etc and writing on my own. usually on first itteration im using 100% my own code and then copy paste it to ai and ask if there was a bug or things that i can do better(for example architecture optimization) and on itteration 2 or so on its had AI on it.

My Question Are:

  1. is this good learing strategy?
  2. is this good for long term?
  3. is this what is referred to as "Vibe Coding"?
0 Upvotes

23 comments sorted by

3

u/aqua_regis 1d ago

rather i ask ai how it can be done, like ask the architecture, the base code, example code

In short, you are outsourcing the actually most important parts of programming - the parts that finally lead to the implementation in code.

This way, you are not learning programming at all. You are avoiding learning problem analysis and problem solving, both of which are far more important and far more difficult than the actual implementation in a programming language.

With your approach, you only become a "code monkey". Someone who can clobber in code once someone else has fully and extensively defined the logic, the requirements, and just about everything else apart from the actual code. You are doing the part that AI would be really good at, instead of doing the parts that you should become good at.

You focus on the end product instead of focusing on learning to design the product.

1

u/Vrwdev 1d ago

thanks, so whats your recomendation on "how to learn coding efficiently"

1

u/aqua_regis 1d ago

By, at utmost, using AI as code reviewer and doing everything else by yourself. Your own research, your own design, your own architecture, your own implementation.

1

u/Vrwdev 1d ago

Noted!

0

u/[deleted] 1d ago

[removed] — view removed comment

2

u/Vrwdev 1d ago

thanks for the defend but i think he also got the poin, yeah sure i know the "syntax, etc" but im losing the very things make a Programer a programer and thats its Problem solving.

1

u/jacksonanna373 17h ago

When you say problem-solving, where does AI feel like it's taking over: breaking a task into steps, choosing an approach, or debugging? That would shape the practice advice.

1

u/Vrwdev 14h ago

breaking task into step, then i do the step first and ask ai on my answer

1

u/aqua_regis 1d ago

The code is the simple part. What leads to the code is the important and difficult part and OP is exactly avoiding that.

Go through the subreddit and you will find more than enough posts essentially stating: "I can write the code, but not design the program" - all of them boil down to the same - letting AI doing the design.

0

u/[deleted] 1d ago

[deleted] — view deleted comment

1

u/aqua_regis 1d ago

You don't want to get the point, do you?

By letting AI do the design, you're not learning.

You cannot learn to plan and design if someone else keeps doing it for you.

Focusing on only the code, the implementation is focusing on the wrong end of programming.

You cannot learn to plan and design a fully developed novel if you avoid exactly that and outsource that to someone else, like AI, or a tutorial, or anything that does it for you.

3

u/ComputerWhiz_ 1d ago

If you were just asking AI to review the code and suggest improvements or to point out deficiencies, then it's not necessarily bad. Essentially, you're asking AI to peer review your code. This is assuming your code runs and works properly in the first place and you're not just pasting non-functional code into AI.

That said, leaning on this reduces opportunity for growth because debugging and reviewing code are two of the quickest ways to improve your understanding.

However, in my opinion, asking AI for code that is not just a little non-specific snippet used to explain a concept is a big no-no for someone who is learning.

1

u/Vrwdev 14h ago

However, in my opinion, asking AI for code that is not just a little non-specific snippet used to explain a concept is a big no-no for someone who is learning.

Noted!

2

u/aanzeijar 1d ago

Adding to the other commenter:

You can test that out for yourself. Take one of the tasks you would normally "accelerate" with AI and do it without. If you can do it without trouble and it just takes longer due to typing, then AI is a valid help. If you need to think about stuff, experiment with different ideas or your ideas turn out not to work, then AI was cheating you out of learning.

And a word of warning about posting it to AI after you write it for review: most LLMs will try to do what you asked of them. If you ask for criticism, they will find stuff to nitpick about. If you ask whether it's good code, they'll tell you it's good code. If you ask whether it's good code or whether something can be improved they'll tell you it's good code and then nitpick about it, which everyone who tried to strap them into actual code reviews has found out and then added a metric ton of clauses into the prompt. And deciding when the AI is just being critical for the sake of being critical takes the knowledge you are trying to learn in the first place.

0

u/Andreea_tucker04 1d ago

How do you practice?

2

u/desrtfx 1d ago

You practice by writing programs. There are plenty ideas in the FAQ right here in the sidebar.

There are also sites, like https://exercism.org

1

u/Andreea_tucker04 1d ago

Do you usually try an Exercism problem without hints first, then use the tests to see where your solution breaks?

1

u/desrtfx 1d ago

I'm far beyond using that site since I am a professional programmer since over 35 years.

You are way overthinking. Just try the things. Find your own approach.

Of course, you should start without hints.

1

u/Andreea_tucker04 1d ago

I was overthinking it!

1

u/aanzeijar 1d ago

I personally don't practice per se, because I do software for a living anyway. For new things I mostly learn by tinkering with existing, translating or reimplementing existing code.

0

u/Andreea_tucker04 1d ago

I meant separate practice outside work

1

u/aanzeijar 1d ago

Like u/desrtfx I've been doing this for a long time. There is no dedicated practice I do outside of work. My work is my practice.

The closest thing I do would be codegolfing which I still occasionally do, but that isn't really helpful for beginners.

1

u/Andreea_tucker04 1d ago

That makes sense. I was asking because my job isn't coding, so I was curious what people do for practice outside work

1

u/betarage 1h ago

You can use ai to ask questions since it's hard to find good solutions online it's not always clear how to do many things.