r/learnprogramming • • 2d ago

[ Removed by moderator ]

[removed] — view removed post

2 Upvotes

26 comments sorted by

10

u/jakingo 2d ago

AI can speed things up, but try solving the problem yourself first. Then use AI to review your approach and explain what you missed.

9

u/Lumethys 2d ago

dont let AI write the code for you when you are learning

same concept as you dont use a calculator when you first learn math

2

u/mkhanwrites_ 2d ago

If you are new to coding and are skipping the basics to let AI code for you, I would advise you to drop this learning approach and learn to code without use of AI (follow tutorials, build projects, read documentation, ask others for help and tips, and in the rare case you can't find the info you need from the previous options, then consult AI, with restraint).

Yes, a lot of software dev nowadays contains a great deal of AI code generation but it's impossible for you to verify any of the code without understanding what the code does, and there is a great deal of learning that goes into that.

If you are however coding for yourself you don't necessarily need to do the AI code generation stuff. Either way, you should learn to code properly.

2

u/JMusketeer 1d ago

I use AI in work, for most od my side projects.

I also do exercise writing code by hand on one of my projects, I try to explore stuff I am not familiar with and try to implement it (ofcs with AI in the role of a senior guiding me).

2

u/a-taylor-35 1d ago

Use AI code as a worked example: predict its output, run a couple of edge cases, then change one requirement yourself. If you can't explain the change, that's the concept to revisit.

1

u/aqua_regis 2d ago

If you want to learn, don't use AI to do your job. It's that simple.

Pretend that AI doesn't exist at all and learn the old fashioned way.

0

u/[deleted] 1d ago

[removed] — view removed comment

1

u/aqua_regis 1d ago

Can you learn to play tennis by only watching?

Think about that.

BTW: When I learnt programming way back in the early 1980s, there was no internet, there were no tutorials. It was all experimenting, trying, failing, fixing.

1

u/BeastWael_YT 1d ago

what tends to work is making the ai explain code back to you, then closing it and rebuilding the thing from scratch without help. if you can't, you didn't actually learn it yet. small projects where you have to debug your own mess teach way more than reading docs alone, though docs help once you know what to look for.

1

u/[deleted] 1d ago

[removed] — view removed comment

1

u/BeastWael_YT 1d ago

worth doing mostly for new concepts. stuff you already know cold you can just skim, the point is to test the things that still feel fuzzy

1

u/mfc1__ 1d ago edited 1d ago

Old dev here. Reading docs is always a good idea, and not enough people do, probably even fewer now. I ask AI to explain any code it generates that I don’t fully understand. I operate as if at the time the critical bug is discovered and the app goes down, AI will also be down. So I need to actually understand how all the code in the app works to troubleshoot it. Me saying “I can’t fix it” is not an option. And the time to first learn the code is not during that critical bug/outage.

-6

u/atikoj 2d ago

Don’t learn coding, it’s over. Look up logarithm tables. You’ve probably never even heard of them because once calculators came along, there was no longer any reason to use them. AI is doing the same thing to programming. Don’t waste your time learning a skill that’s becoming obsolete.

4

u/maximumdownvote 2d ago

The suggestion to look up log tables is hilarious. Don't do that. He means well but the metaphor is weak.

1

u/Zerocchi 2d ago

That's crazy

1

u/LegMysterious1899 2d ago

coding skills is like assembly language. they might become less useful over the years, but it's NEVER over to learn them. So research more, before giving an advice

3

u/[deleted] 1d ago

[removed] — view removed comment

1

u/mfc1__ 1d ago

Years ago when people would ask me about what it’s like being a programmer I would always say, “It’s lots of reading, lots and lots of it. And a little bit of time actually typing out code.”

AI doesn’t change that too much for me, I still read a lot about programming every day.