When AI Can Write Code, What Should a Computer Science Student Learn?
For many years, learning computer science meant learning how to write code.
We taught students programming languages.
We taught them syntax, loops, functions, classes, databases and algorithms.
We asked them to write programs, find errors and build applications.
And this still matters.
But something has changed.
Today, a student can open an AI tool, describe what they want, and get a working piece of code in seconds.
“Create a login page.”
“Write a Python program to analyse this dataset.”
“Build a REST API.”
“Create a React component.”
“Fix this error.”
AI can do all of this surprisingly well.
So a natural question comes to mind:
If AI can write code, what should a Computer Science student learn?
I think the answer is simple.
Students should learn more than coding. They should learn how to think.
Coding Is Still Important
Let me make one thing clear.
I am not saying that students should stop learning programming.
Programming is still one of the best ways to develop computational thinking.
When students write code, they learn how to break a problem into smaller parts. They learn logic. They learn how systems work. They learn how one decision can affect another.
The problem is not coding.
The problem is learning coding only as a collection of commands and syntax.
A student who knows Python syntax but cannot understand a problem is still going to struggle.
A student who can generate 500 lines of code using AI but cannot explain what those lines are doing is also going to struggle.
The future does not make programming unnecessary.
It makes understanding programming even more important.
The Question Is Changing
Earlier, a student might be asked:
“Can you write a program to solve this problem?”
Today, we can ask a slightly different question:
“Do you understand the problem well enough to decide what should be built?”
That is a much deeper question.
AI can generate code.
But before code is generated, someone has to decide:
What is the actual problem?
What are the requirements?
What data is needed?
What should the system do?
What should happen when something goes wrong?
Which technology should be used?
Is the solution secure?
Is the solution efficient?
Is the output actually correct?
These are not merely coding questions.
They are thinking questions.
And this is where I believe Computer Science education needs to focus more.
1. Students Need Strong Fundamentals
Technology changes quickly.
One programming language becomes popular. Then another one comes along.
Frameworks change.
Libraries change.
AI tools change.
Development platforms change.
But fundamentals remain.
Students should understand:
Programming logic.
Data structures.
Algorithms.
Databases.
Computer networks.
Operating systems.
Software engineering.
Cybersecurity.
Data management.
A student who understands fundamentals can learn a new technology.
A student who only knows how to use one tool may struggle when that tool changes.
This is something I often tell students:
Don’t learn technology only for today’s job. Learn the concepts that will help you understand tomorrow’s technology.
2. Problem-Solving Will Become More Valuable
Imagine two students.
Student A is excellent at writing code but needs a detailed problem statement before starting.
Student B is not the fastest programmer but can look at a real-world problem and break it into smaller, manageable parts.
I would bet on Student B.
Because software development is rarely about writing code from beginning to end.
It starts with a problem.
For example, suppose a college wants to understand why some students are performing better than others.
A student may immediately think:
“Let’s build a machine learning model.”
But a better question is:
“What exactly are we trying to understand?”
Then come more questions.
What data do we have?
Is the data reliable?
Which factors may influence performance?
Are there missing values?
Are there ethical concerns?
Is prediction enough, or do we need an explanation?
What will the college do with the results?
The model is only one part of the solution.
The thinking comes first.
3. Students Must Learn to Ask Better Questions
AI has made one skill extremely valuable:
The ability to ask good questions.
But good prompting is not simply about finding the right words to get an AI tool to generate better code.
It is about understanding what you are asking.
If a student doesn’t understand databases, how will they know whether the database design suggested by AI is good?
If they don’t understand algorithms, how will they know whether the generated solution is efficient?
If they don’t understand security, how will they identify a security vulnerability in AI-generated code?
AI can give an answer.
But students need enough knowledge to question the answer.
That, in my opinion, is one of the most important skills of the AI era.
4. Debugging Is Not Going Away
Interestingly, AI can generate code very quickly.
But generated code can still be wrong.
It can contain bugs.
It can misunderstand requirements.
It can use outdated approaches.
It can create security problems.
It can produce code that works in one situation but fails in another.
So students still need to understand debugging.
But debugging itself is changing.
Earlier, students might spend hours searching documentation or forums to understand an error.
Today, they can ask AI:
“Why am I getting this error?”
But the student still needs to understand the explanation.
Otherwise, they are simply copying a solution without learning anything.
AI can help us find the bug.
Students still need to understand why it happened.
5. Students Need to Verify AI
One of the biggest dangers I see is the assumption that if AI gives an answer confidently, the answer must be correct.
It isn’t.
AI can be extremely useful.
But it can also be wrong.
This is why students need to develop a habit of verification.
Don’t simply ask:
“What did AI say?”
Ask:
“Is it correct?”
Test the code.
Check the logic.
Compare different approaches.
Read the documentation.
Run experiments.
Look at the output.
Question unexpected results.
In other words:
Use AI as an assistant, not as an unquestioned authority.
6. Communication Will Matter More
There is another skill that sometimes gets ignored in technical education.
Communication.
A student may be an excellent programmer.
But can they explain their solution?
Can they understand a client’s requirement?
Can they discuss a problem with a team?
Can they write proper documentation?
Can they present their project?
Can they explain why they selected a particular technology?
These skills become even more important when AI takes over some of the routine coding work.
If everyone can generate code, then the ability to explain, collaborate and make decisions becomes more valuable.
7. Students Should Learn to Build, Not Just Code
I strongly believe students should spend more time building projects.
Not just completing assignments.
Not just writing programs from a textbook.
Build something useful.
A mobile application.
A website.
A data dashboard.
A small AI application.
An automation tool.
A college-related solution.
A community project.
Something that solves a real problem.
When students build real projects, they discover things that a textbook cannot always teach.
They discover bugs.
They face changing requirements.
They make design decisions.
They work with databases.
They deal with users.
They discover that the first solution is rarely the best solution.
And most importantly, they learn how to keep going when something doesn’t work.
8. Ethics Will Become More Important
The more powerful technology becomes, the more important responsible use becomes.
Students need to understand questions such as:
Who owns the data?
Can this data be used?
Is the system biased?
Could the prediction harm someone?
Is personal information protected?
Can we trust the output?
Should an AI system make this decision?
These are not questions only for researchers or large technology companies.
Every future developer will encounter them.
Technology gives us the ability to build.
Ethics helps us decide what should be built.
9. Learning How to Learn
Perhaps this is the most important skill of all.
The technology a student learns today may look very different five years from now.
Some tools will disappear.
Some programming languages will become less popular.
New frameworks will emerge.
AI will become more capable.
So students cannot depend only on what they learn in college.
They need to become lifelong learners.
They need to be comfortable saying:
“I don’t know this yet. But I can learn it.”
That mindset is powerful.
A good Computer Science student does not need to know everything.
But they should know how to find out.
So, Should Students Still Learn Programming?
Absolutely.
But perhaps we should change how we teach it.
Instead of teaching students only:
“Write this program.”
We can also ask:
“Why do we need this program?”
Instead of:
“Use this algorithm.”
Ask:
“Why is this algorithm appropriate?”
Instead of:
“Here is the code.”
Ask:
“Can you explain what this code is doing?”
Instead of:
“AI has generated the solution.”
Ask:
“Can you test it, verify it and improve it?”
The goal should not be to make students compete with AI at writing code.
That is a competition they probably cannot win.
The goal should be to teach them how to work intelligently with AI.
The Future Computer Science Student
I imagine the Computer Science student of the future a little differently.
They may not spend their entire day typing code.
They may spend more time understanding problems.
They may use AI to generate initial solutions.
They may review and modify AI-generated code.
They may analyse data.
They may design systems.
They may test ideas.
They may work with people from different fields.
They may use AI agents to automate repetitive tasks.
But behind all these activities, one thing will remain important:
Human judgment.
The ability to ask:
Is this the right problem?
Is this the right solution?
Is this result correct?
Is this technology being used responsibly?
Can we make it better?
These questions cannot be answered simply by knowing syntax.
What Should We Teach Our Students?
Maybe the curriculum of the future should focus on a combination of:
Fundamentals + Problem Solving + AI Literacy + Data Literacy + Communication + Creativity + Ethics + Continuous Learning
Programming will remain part of this.
But it will no longer be the entire story.
And perhaps that is not something to fear.
Perhaps it is an opportunity.
For years, we have asked students to spend a lot of time learning how to tell computers what to do.
Now, AI is becoming better at translating our instructions into code.
That gives us an opportunity to spend more time teaching students why something should be done, how it should be done, and whether it should be done at all.
A Final Thought
Whenever a new technology arrives, there is usually a fear that something we have always valued will become useless.
AI is creating that feeling around programming.
But I don’t think programming is becoming irrelevant.
I think the definition of a good programmer is changing.
The valuable professional of the future may not be the person who can type the most code.
It may be the person who can:
understand the problem,
think clearly,
ask the right questions,
use AI effectively,
verify the results,
communicate the solution,
and take responsibility for what they build.
So, when AI can write code, what should a Computer Science student learn?
My answer is:
Learn to code.
But don’t stop there.
Learn to think.
Because technology will continue to change.
AI will continue to improve.
Tools will come and go.
But the ability to think, learn, question and create will always remain valuable.








