DEV Community

Cover image for If AI Can Write the Code, What Is a Developer Supposed to Do?
A. Moreno
A. Moreno

Posted on

If AI Can Write the Code, What Is a Developer Supposed to Do?

There is a strange question floating around the software industry right now:

If AI can write the code, why do we still need developers?

It is not a completely unreasonable question.

AI coding tools can now generate components, write tests, explain code, find bugs, and even build entire features with surprisingly little input.

So perhaps the more interesting question isn't whether AI will replace developers.

It is:

What does being a developer mean when writing code is no longer the hardest part?


Code Is Becoming Cheaper

For a long time, one of the most valuable things a developer could do was turn an idea into working code.

You needed to know the syntax, understand the framework, search through documentation, and spend hours debugging that one stupid error caused by a missing character.

AI changes this.

You can now ask:

"Create a responsive navigation bar with a mobile menu,
keyboard accessibility, and a dark mode toggle."
Enter fullscreen mode Exit fullscreen mode

And receive a surprisingly complete implementation in seconds.

That doesn't mean the implementation is necessarily good.

It means that producing code itself is becoming cheaper.


Writing Code Was Never the Whole Job

Developers don't just write code.

They also have to answer questions like:

  • What should we actually build?
  • Does this solve the user's problem?
  • How should it be structured?
  • Is it accessible?
  • Is it secure?
  • Will it be maintainable?
  • What happens when the requirements change?

AI can help with some of these questions, but someone still needs to make the final decisions.


The New Skill: Knowing What to Ask For

Imagine two developers using the same AI tool.

Developer A asks:

"Make me a React dashboard."
Enter fullscreen mode Exit fullscreen mode

Developer B understands the requirements, thinks about the architecture, considers accessibility and responsive behavior, and then uses AI to accelerate the implementation.

Both have access to the same technology.

But they aren't providing the same value.

The difference isn't typing speed.

It's technical judgment.


AI Makes Understanding Code More Important

AI-generated code can look perfectly reasonable while still containing problems.

Maybe it creates unnecessary renders.

Maybe the accessibility is wrong.

Maybe the architecture won't scale.

Maybe the developer who submitted it doesn't actually understand what it does.

This creates an interesting paradox:

The easier it becomes to generate code, the more important it becomes to understand code.

AI can write the implementation.

You still need to recognize when that implementation is wrong.


What About Junior Developers?

This might be one of the biggest challenges created by AI.

Traditionally, developers became better by working through increasingly difficult problems.

You start with small bugs.

Then you build features.

Eventually, you start making architectural decisions.

But what happens if AI handles many of those beginner tasks?

There is a difference between:

"I can make AI build this."
Enter fullscreen mode Exit fullscreen mode

and:

"I understand why this was built this way."
Enter fullscreen mode Exit fullscreen mode

AI can make learning easier, but it can also make it possible to skip the difficult part of learning.

That is something the industry will have to figure out.


So What Is a Developer Supposed to Do?

Probably more thinking and less typing.

Developers will still need to:

  • Design systems
  • Review code
  • Debug problems
  • Understand requirements
  • Make architectural decisions
  • Test edge cases
  • Improve accessibility and performance
  • Communicate with other teams
  • Decide when AI should not be used

That's not necessarily the disappearance of software development.

It's a change in where the work happens.


Maybe Coding Was Never the Point

Perhaps we've spent too much time equating software development with writing code.

Code is the medium.

The actual goal is to solve problems.

If AI eventually becomes capable of writing most of the code required for a typical application, the bottleneck simply moves somewhere else.

From:

"Can we build this?"
Enter fullscreen mode Exit fullscreen mode

to:

"Should we build this?"
Enter fullscreen mode Exit fullscreen mode

And then:

"What's the right way to build it?"
Enter fullscreen mode Exit fullscreen mode

Final Notes

I don't think developers should try to compete with AI at writing code.

AI will probably get better at that.

Instead, developers need to become better at understanding software, making decisions, recognizing bad solutions, and knowing what should be built in the first place.

AI can generate the code.

Someone still has to decide whether the code is actually worth keeping.

Top comments (0)