r/AskProgrammers • • 6h ago

How should students learn to code in the AI era? Nobody seems to answer this

Okay, so I keep asking this and nobody really gives a straight answer.

I'm a freshman trying to learn coding right now, and I'm kinda stuck:

- If I learn the traditional way, like people did before AI, I feel like I'll get left behind.

- But I also can't just skip to building apps with AI without understanding how the code actually works.

So what are we supposed to do in this era?

Would love to hear how you'd approach it, especially:

- How much AI should I be using?

- When should I not use it?

Devs who learned before AI, and people who learned with it, I'd really like to hear what worked for you.

2 Upvotes

31 comments sorted by

6

u/Traditional_Crazy200 6h ago

Read and work through the official documentations

How much ai should you use? 0 - 10% let it explain something you truly cannot grasp after like an hour.

When should I not use it? Pretty much never use it for learning.

4

u/desiguy_88 6h ago

this is so true. for humans learning happens as part of that struggle. Also this isn’t a new phenomenon. Prior to AI places like stack overflow basically have created people who became experts at copying and pasting. this matters especially when you’re in school trying to learn concepts , AI or other shortcuts can really hamper your understanding as you learn and build on those concepts it only gets worse if all you do is rely on AI or something else to do the work..

3

u/dariusbiggs 6h ago

AI is a tool, and just like any tool you need to know how to use it safely and when to use it.

You still need to be able to write and understand code without AI, it is not always available to you for various reasons.

You start by picking a language to learn and go through that languages own written tutorial, no video, no AI. Learn the basics the old fashioned way.

Once you understand how to write code, start using AI to help you find the information you need, before AI this was called a combination of RTFM and Google.

Once you understand how to write testable code, you can use AI to generate code for your tests, especially useful for testing combinatorial problems.

Once you understand what defensive programming is, and why and how you write safe and secure code, you can lean more heavily on AI.

Once you understand how ML and AI actually work you will know when and how to use it safely.

But start simple, Hello World, and fiz buzz are great starting points.

3

u/Itchy_Tiger2497 3h ago

read books. read code. read so much code. seek to understand the code.

I think the historical advice to copy the examples and type them out manually is now wrong. There's far more leverage and learning deeply how things work and learning to read their implementations.

Consider something simple, like Java Spring Framework: a focus on writing the code will have you sort of doing the same lowest common denominator of work over and over again. Another bean, another service, another configuration, another controller, another entity, another simple crud repository, etc. and sort of discarding the remainder of what you can do because you just don't get enough daily repetitions with it.

But with AI, now you can start to look into more advanced features and sort of push for more breadth in your knowledge and gaining repetitions in usage through instruction.

the main thing is making sure you understand what you can produce, and then using your learning to expand what you can produce while retaining understanding.

1

u/Chemical-Wrap-1413 3h ago

Does reading lines of code give you as good an understanding help you remember as well as coding things yourself? The way to understand and learn is surely by writting it yourself so you engage fully with the process and logic. I feel like solving maths problems teaches you more than reading lots of completed answers

1

u/Itchy_Tiger2497 3h ago

I don't believe there's any way to really handle great breadth through coding things yourself. Most people build a toolbox of go-to strategies and then stick with them for years.

Take something like a heap implementation: you'll write one in a data structures / algorithms course, but 10 years later you probably won't have touched it again. But if you reviewed it in the past six months you sure can direct a system to use one if you know it will work.

1

u/Chemical-Wrap-1413 3h ago

Maybe not when you become an employee but I think the point of being a student is to get the chance to dig into the base level logic and theory and do things from scratch so you learn the full process not just the practicality. Otherwise universities and schools might as well be replaced by internships and corperate training. I think, though, that going through abd learning about and doing the from scratch coding will turn students into better coders than learning the practical process of coding for a job. And i kinda think the same is true of most industries too

1

u/Itchy_Tiger2497 2h ago

"Otherwise universities and schools might as well be replaced by internships and corperate training."

You just watched for a decade as "react programmer" became a career, and then got wiped off the map by AI. That's what you get in the current era with internships and corporate training.

What I'm suggesting is sort of the opposite, actually: rather than succumbing to hyperspecialization because business demands it, expand your knowledge base and take the opportunity to try things that require more rigor and knowledge.

3

u/xarop_pa_toss 5h ago

No one answers this because the same methods hundreds of thousands of programmers used in the past still apply.

Turn off wifi, grab a book, open a text editor and start programming

2

u/lmarcantonio 6h ago

As a pro with more than 20yrs of experience I'd say: pick your language, it really don't matter too much if you start with python, perl, js, java, C or whatever. Of course it should be relevant to your desired application.

Learn it the old way, try stupid programs, read about best practices and so on. There is *a lot* of CS theory but for a beginner it's really not important. Do you really care about complexity boundaries or the Liskov principle? I don't think so.

With the basics, try something slightly harder and use AI to review it. Or put it in manual mode and compare how you would have done it vs how it does suggest to do it.

2

u/DanKegel 6h ago edited 6h ago

Coding is like speaking a foreign language.  It takes lots of reading, lots of writing, and lots of debugging to become fluent.  Coding with AI is like using Google translate; it's mostly ok, but screws up the tricky parts.

Software engineering is like learning the layout of a city and its neighborhoods, and changing it for the better.  Letting AI design things will lead to a really crappy city with shit thrown around any old way.

So: keep it on a tight leash.  Do enough hand coding and designing that you can recognize good code and good design when you see it. That means no AI for the first year or so, maybe, until you are proficient enough to use AI without turning out slop.

2

u/ProbablyBsPlzIgnore 5h ago

No one gives a straight answer because no one has the answer. Your generation is going to be the first to learn to code from scratch under the new conditions. There's pretty much guaranteed not to be a complete beginner with more than about a year’s head start on you.

I hate to be a doomer, but you're young and have a lot of options open to you. Consider very carefully if this is a career you want to commit to. The future is extremely uncertain right now. The industry has way more people than it needs right now. The job market could be rough for years to come, with so many experienced software engineers looking for work.

If you're absolutely certain you'll end up in academia, I'm sure computer science will still be around in the future. Software engineering will also be around in some form, but the two might not have a lot to do with each other in the future.

2

u/reymux 6h ago

Why do you feel left behind? You should learn to code with AI on top of learning to code by hand. It's not one of the other.

0

u/JoeStrout 6h ago

This. Pick an environment that's easy and fun to learn in, like Mini Micro (see this free online book), work through it, actually typing in the examples on your own machine, and then start doing your own projects. Join the discord where we will cheer you along and give you suggestions whenever you get stuck. Do all this without AI assistance.

At the same time, learn to direct Claude Code (or whatever you prefer, but that's my favorite coding agent) to build projects for you in languages you don't even know. This is learning to clearly specify what you want, getting the coding agent to discuss the design before implementing, pushing it to consider failure modes and code maintainability, iterating on the result, etc.

Do both. Learning to code yourself teaches you how to think. And learning to direct coding agents — especially after you have learned how to think — gives you a skill you can use to make arbitrarily complex projects that work.

1

u/Pyromancer777 3h ago

Using AI and learning to program are 2 different skillsets. School unfortunately treats them both the same and doesn't have a clean way to flag AI-produced code.

Students can submit work that AI did completely, but you are paying for the classes to learn to code, so you are cheating yourself any time you have AI complete an assignment or project for you. If you graduate with a degree, but never actually learned the material you will be outshined by anyone who actually took the courses seriously.

When starting out, use AI as a guide, not an answer sheet. Have it point out specific references in documentation or rephrase complex topics in a way that make sense to you, but don't utilize it for code generation.

Think of it this way, school is the only time in your life where the quality of everything you submit will be graded by a person who is qualified in the field you are studying. If you submit things you didn't do, the grades are representing the capabilities of your toolset, not the capabilities of you as an individual.

The code you write in the workforce still needs to run and will likely be peer reviewed, but it isn't graded with a fine-tooth comb like it is in school, so you don't get immediate feedback on concepts you might be struggling with and the workforce doesn't care which tools you use to get something done, so AI can fill in the skill gaps for most day-to-day tasks. That being said, if you have the core-skills down, you are a better judge of quality when it comes to submitting AI-generated code. I have to steer my agents all the time since their understanding of the task differs wildly from what I actually need them to do.

1

u/Maghioznic 2h ago

Here's my answer: learn algorithms and data structures. You need to understand how data can be processed effectively. Once you understand how to think in terms of data structures and algorithms, you should be able to translate your approach into any programming language; that translation can be done by hand or with the AI, but the thinking at an algorithmic level is what you really need to master.

There is a good reason why interview questions include stuff like "how do you invert a binary tree" - they separate the guys that just know how to code from the guys that can work with abstract structures and can come up with algorithms on the spot.

Have you seen the guys revolted that they lost a job opportunity because they couldn't handle a binary tree in an interview? They are the guys that are now giving up on coding, because that is all they knew how to do. They still don't understand the importance of algorithms and they are right that AI can easily replace them.

This is the difference that will matter in software development:

(A) requirements->vibe-coding->code

(B) requirements->design->code

Whoever will be able to create a proper design and then code it with AI or without will do better than those that just turn requirements into code. (A) can very well be a valid scenario for many ad-hoc tools and prototypes, but it won't work for any complex commercial software.

And I predict that AI will not produce the great productivity gains that everyone is talking about. Those are perceived for (A) to be 10X, but with (B) they will turn out to be much lower - 2X, if you're lucky. AI may help in some scenarios by offering some common design plans, but it will not be able to make the tradeoffs that get made in complex designs. Not necessarily because of incapacity, but because the process of taking those decisions involves a lot of incremental discoveries that AI does not seem capable to do all by itself.

1

u/buzzon 2h ago

While learning, don't use AI. Using AI to write code instead of you will hurt your learning. You can always pick up AI afterwards, is not hard 

1

u/PostLarge6067 1h ago

I’m teaching my son Scooter to code with AI by letting him have all the alone time he wants with it haha he loves it so much and gets so mad when I take it away! Boy his right arm sure is strong!

1

u/katakishi 6h ago

In short.

  1. Pick any free/paid tutorial you want. Watch it.
  2. Try build real world project the only thing that will teach you anything is doing real project not by watching billions of tutorials (and not even with ai)

1

u/That-Drink5946 6h ago

Honestly, it was painful. Not fun for 90% of the time and stressful. Am I the only one?

2

u/JoeStrout 6h ago

Maybe. It was delightful for me.

0

u/That-Drink5946 6h ago

Hehe, that's ok Joe

1

u/JoeStrout 5h ago

I think it probably has to do with the environment/language you learned with.

I learned in the 80s on home computers that booted right into BASIC. You turn it on, there's a blinking cursor, and you start typing commands to make it do things. That is exceedingly cool, right from the start. And the language you were typing commands in was simple, which made it easy and fun to learn.

Nowadays people are trying to start with web apps, which requires several languages (HTML, CSS, JS, something on the backend, SQL if there's a DB involved, etc. etc.) just to get started. All of them big and complex, and nary a REPL in sight. That would be painful and stressful for anyone.

I've been trying to recapture some of the original feel (and benefits) of home computers in Mini Micro, with pretty good success among folks who actually try it. But too many beginners either never hear about it, or dismiss it as a toy, not realizing how much easier it could make their learning experience.

1

u/mkhanwrites_ 6h ago

You will most definitely not get left behind if you try to learn the traditional way - it will probably put you ahead of those who "learn" solely through AI.

I'd advise you either study from a book or take a MOOC. Some options include CS50, CS50P (both MOOCS by Harvard), Algrorithms, 4th edition - a booksite, textbook, and MOOC by professors from Princeton.

Don't use AI at all to code when doing these courses - you could ask AI to explain what niche/role a package does, to explain a concept, to give you tips of resources to look at to learn more about a topic. You need to actually perform the problem solving (i.e. coding) yourself.

1

u/oldendude 6h ago

I have been programming for almost 60 years. I can discuss analogies, comparing our current time to previous inflection points. But I cannot give career advice, what we're seeing is unprecedented. And it's not just us. Anyone who uses his or her brain for a living (writers, mathematicians, scientists, lawyers, ...) is affected similarly to a greater or lesser degree.

So here are some ways to think about where we are.

Compilers and assembly language: Believe it or not, the use of compilers used to be controversial. Some assembly language programmers agonized over giving up control to the compiler. Could they be trusted to be correct? To generate efficient code? Obviously, no sane person categorically distrusts compilers today. And yet, there are times when a bit of assembly programming is crucial. Linus Torvalds famously inspects compiler output. To be a competent programmer, you have to understand assembly programming, and that is going to necessitate you writing assembly language for a semester. To generalize: you need to understand the stack all the way down -- web server, database, network, OS, interpreted and compiled languages, assembly, hardware characteristics (of computing, storage, and network elements). Nobody can master all of this, but you have to understand these things to some level, and this is true regardless of any role that AI has in generating your system.

Moving up the stack: The software industry, as a whole, moves up the stack. We no longer write assembly, for the most part, we use higher level languages, as discussed above. Let's look at database systems. They used to be a hot research topic. It was far from given that a database system was a good idea, compared to artisanal, hand-crafted storage and retrieval systems used by application developers. There were competing database models that turned into products (hierarchical, "network", relational). Those days have passed. Ignoring the NoSQL fad, the questions of that era (70s, 80s) have been settled. That isn't to say it's a bad idea to work at that level. Database system internals engineers are essential, as are compiler writers. But those jobs are highly specialized, and don't attract millions of developers. Pick any technology, at any level of the stack, and there are essential people doing interesting work. So regardless of what AI takes over, (and it will certainly be at those low levels too), experts at those levels are still needed.

This *might* be the best time to go into software: There is no doubt that people who are graduating in CS approximately now (going back a few years), graduated into the worst tech market in decades. Not just because of AI, but also because FAANG, Microsoft and others are laying off tens of thousands of people. At some point, companies are going to need developers, up and down the stack. The nature of a software job has changed forever due to AI, but I just don't see AIs doing absolutely everything all by themselves. I see people using frontier models acquiring massive technical debt because managers think: AI let's us move fast, it is not safe to cut corners. Well no, it isn't. And the disappearance of this generation of programmers creates opportunities for the next one. There are going to be failures, due to subtle bugs, and unmaintainable code, that nobody noticed in the rush to produce software without human involvement. Or not. Maybe software creation will really be a lights-out operation.

1

u/mredding 5h ago

Okay, so I keep asking this and nobody really gives a straight answer.

That's because there's no straight answer.

AI is a technological revolution, like the steam engine, like the automobile. Tech revolutions create more jobs in the long run, but as of right now we have no idea what this industry is going to look like.

I think it's worth learning to code still, even if you're not hand writing code. The reason being: YOU are accountable for what you prompt the AI to produce. If you produce code for a robot that cheats emissions or kills a person, it's not the AI that's going to jail. Yes, this is a real thing - you may land yourself a job where the consequence of a catastrophic failure in software is more than just an angry yet merely inconvenienced client.

So you have to be able to READ code and verify what the AI does. Vibe coding is all about YOLOing it and that niche can afford catastrophic failure. I can already tell that's going to be a very weird market segment of disposable, low value software in a highly competitive, low margin market.

You can do better than that.

More than just reading what the AI does, you can guide the AI to write better software. The AI is trained on the median, and I can tell you the median is PRETTY SHIT code. A typical developer would write:

void place_on_scale(int weight);

But weight is just an int... The same as any other just-an-int. Is that in pounds or newtons? I could pass the number of hamsters I can fit in my ass and the code would compile. That's a big god damn problem, because any int is interchangeable with any other int. People write code like this, and maintain consistency in practice - that means the human is taking on a responsibility that can be expressed in code and passed to the compiler. AI does the same shit - it takes on the personal responsibility of maintaining consistency and context. The problem is an AI can only handle so much context, and isn't letting the compiler do as much of the context management and work that it can do.

So by mandating the AI write better code, you will get better results across the whole board. Of two source codes that do the same thing and generate the same machine code, the one that is more expressive is thus preferred, because it takes more burden off the AI and expresses more context in code.

If you don't know how to code, you can't do this, and all your effort is more brute force and suboptimal.

Even when the AI learns to write it's own expressive code, you still need to understand code at a high level to verify the AI output, because you're looking for missed opportunities, where the AI has been suboptimal - that's part of verification, are you being expressive and optimal enough? It's not just is the program correct, it's is the AI bullshitting itself or me, too?


But understand you're asking a question about the future when the present is experiencing exponential growth. What was bleeding edge this morning is outmoded by the evening.

I don't know, man. No one does. AI is here to stay, that's all I know, and we're all just trying to keep up with the current, we don't know where it's going, so it's all just a fuckin' scramble right now. Things are going to be VERY different by the time you graduate, and VERY different again in 6 months to 2 years. Exponential growth isn't forever, so the whole industry is going to plateau eventually, we just have absolutely no idea when, because the nature of exponential means the rate of change right now is still speeding up.

0

u/No_Report_4781 5h ago

For which answer are you fishing?

0

u/tcpukl 4h ago

Seriously? The same way we always have done.

0

u/nacnud_uk 3h ago

You don't have to learn to code any more. Think of it this way....

You can be an architect and never know how to actually build a house.

In their case, they have wonderfully skilled construction workers. In your case, you've wonderfully skilled AI agents.

So, yeah, coding, as everyone knows it, is gone. Over. Done. Finished. The robots have taken our jobs. Just as they did in the car industry in the 70s.

Sure, we can still design cars, but we are no longer going to be spot welding them together.

https://youtu.be/LazYwaT2yKw

You will find plenty of people that have no idea of just how capable AI is, even in 2026, telling you that you can still be a traditional programmer; they are simply ill informed or in denial.

-1

u/Leading_Fill_9440 6h ago

You don't learn to code, you learn to understand the code written by AI so you can steer the wheel while AI is handling the engine.... Lolz, I hope it makes sense.
Nobody is writing code manually for hours... While AI is writing the code, humans are making architecture level long term system related decisions.