Is It Relevant to learn programming skills in the Age of AI
Your AI assistant writes an endpoint in seconds, and it works the first time you run it. It can still contain a security hole. In Veracode's tests, AI-generated code introduced security vulnerabilities in 45% of cases [1]. AI coding tools are now standard: 84% of respondents to the 2025 Stack Overflow survey said they use or plan to use them [2]. So it's fair to ask whether programming skills still matter. A more useful question is which skills AI makes cheaper, which it makes more valuable, and how to use AI without losing the skill you need to check it.
This post covers:
- The pros and cons of learning to code, based on the evidence
- A review of an AI-written endpoint
- Finding its security hole, fixing it and proving the fix with a test
- Learning with AI without losing the skill
What AI actually changed
Before you decide what to learn, look at what the studies measure. One of them contradicts how developers say they feel.
What AI made cheaper
In a 2023 controlled experiment, developers using GitHub Copilot built an HTTP server in JavaScript 55.8% faster than a control group [3]. That was a single greenfield task, not work inside a large existing codebase [3]. Still, it shows that memorising syntax and writing boilerplate are worth less than they used to be.
What's worth more now
In the 2025 Stack Overflow survey, the most common frustration, named by 66% of developers, was "AI solutions that are almost right, but not quite" [2]. Catching those solutions takes skills that have become more valuable:
- Debugging and code review
- Security
- System design
- Reading code you didn't write
Entry-level hiring has also tightened. In ADP payroll data, employment of software developers aged 22–25 fell nearly 20% from its late-2022 peak to July 2025 [4]. The researchers don't claim AI fully caused this, and many other things in the economy changed over the same period [4]. Whatever the causes, juniors now need to show they can review, debug and design, not just write code.
You can't judge the tool without your own skill
In METR's early-2025 randomized trial, experienced open-source developers worked on real issues from their own repositories. With AI allowed, they took 19% longer, yet afterwards they believed AI had made them 20% faster [5]. METR's February 2026 update points to a speedup, but METR calls the new data "only very weak evidence" for how large the change is [6].
The lesson doesn't depend on which result is current. If you don't have the skill yourself, you can't tell whether the tool is helping. The next section shows what checking looks like in practice.
Build it: review AI-written code
Here is a real AI-generated endpoint, reviewed the way it should be before it reaches production.
The endpoint the AI wrote
An assistant might generate a small Express app like this. It reads a name from the query string and greets the user:
import express from "express";
export const app = express();
// AI-generated: works on the first try
app.get("/hello", (req, res) => {
const name =
Look at lines six and seven. The raw input goes straight into the HTML. If someone sends a script tag as the name, the browser runs it. That is cross-site scripting (XSS). Veracode found that models fail to defend against it (CWE-80) 86% of the time [1]. The code also passes every happy-path test, so tests that only send normal names won't catch it.
The fix: escape the output
The fix is small once you can see the problem:
import express from "express";
import escapeHtml from "escape-html";
export const app = express();
app.get("/hello", (req, res) =>
Line six converts the input to a string, with an empty string as the default. Line seven escapes it before it goes into the HTML. A script tag now shows up as harmless text. Finding this bug took knowing how browsers parse markup, not typing speed.
Let static analysis back you up
Your own review is the first check, but it shouldn't be the only one. Open a terminal in the project and run a static analysis scan on the original version:
semgrep scan --config auto
The scan flags the unescaped output on line seven. Apply the escapeHtml fix, run the scan again, and there are no findings. Because AI-generated code introduced vulnerabilities in 45% of Veracode's test cases [1], this scan belongs in every change.
Prove the fix with a test
Finally, lock the fix in with a test:
import request from "supertest";
import { app } from "./app.js";
test("escapes the name parameter", async () => {
const res = await request(app)
Lines five to seven send a request with a script tag as the name. Line eight checks that the raw tag never comes back, and line nine checks that it comes back escaped. If a later AI edit removes the escaping, this test fails before you merge.
Learn with AI, not instead of it
This raises a problem. If AI does all of this work for you, will you ever build the skill to check it?
How you use AI decides what you learn
Anthropic ran a randomized trial with 52 mostly junior engineers learning Trio, a Python async library they hadn't used before. On the follow-up quiz, the AI group averaged 50% and the hand-coding group 67%. The biggest gap was on debugging questions [7].
How people used AI mattered more than whether they used it [5]:
| Delegate to AI | Generate, then ask why |
|---|---|
| Averaged under 40% | Averaged 65% or more |
| Feels fastest | Builds the skill |
The authors describe the study as small and preliminary [7].
Your working loop
When you're learning: try it yourself, then ask AI, then ask it why.
Try it yourself -> Ask AI -> Ask why
When you're shipping: treat AI output like a pull request from a fast junior developer. Review it, test it, scan it, and only then merge it.
Review -> Test -> Static scan -> Merge
Measure your speed with something like cycle time instead of trusting how fast you feel. In METR's study, the two pointed in opposite directions [5].
Keep the skill that checks the AI
Programming skills still matter, because you're the one who has to tell code that's almost right from code that's right.
Key takeaways
- AI made typing code cheap and judgment valuable. Syntax and boilerplate are worth less. Debugging, code review, security, system design and reading unfamiliar code are worth more.
- Working code isn't secure code. Review, test and scan every AI change. The XSS example passed happy-path tests and still had a hole.
- Measure your speed instead of trusting how it feels. Developers in METR's study felt 20% faster while measuring 19% slower [5].
- When you're learning, ask AI to explain instead of handing it the whole task. Developers who handed tasks over averaged under 40%, while those who asked why scored 65% or higher [7].
References
- [1] AI-Generated Code Poses Major Security Risks in Nearly Half of All Development Tasks, Veracode
- [2] 2025 Stack Overflow Developer Survey — AI, Stack Overflow
- [3] The Impact of AI on Developer Productivity: Evidence from GitHub Copilot, arXiv
- [4] A Primer on "Canaries in the Coal Mine? Six Facts About the Recent Employment Effects of Artificial Intelligence", Bharat Chandar (Stanford Digital Economy Lab co-author)
- [5] Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity, METR
- [6] Uplift study update (February 2026), METR
- [7] How AI assistance impacts the formation of coding skills, Anthropic