Menu

The Diff I Will Stop Reading
📰

The Diff I Will Stop Reading

DEV Community: career·Remus Lazar·4 days ago
#qaJZcBuv
#devtocareer#devto#dev#agent#code
Reading 0:00
15s threshold

A compiler translates. An agent also fills the gaps.

This autumn I worked on a private project, a small embedded device. Like the GStreamer patch , it was C. This time the agent wrote the code, with patterns I had never used.

I started the way I would on a production system: small pull requests, each one read line by line. Then I noticed how good the code was, and I started reading only the tests. Then I was mostly asking questions. Why this design, why this order? What happens if the connection drops halfway, or the same message arrives twice? Then I checked whether the answers were true.

They were. Every time.

I cannot remember the last time I looked at what a compiler produced. On that project, without deciding to, I had started treating the agent the same way. This article is my attempt to work out whether that was progress or negligence, and what has to be true before I do it everywhere.

The diff is losing

There are three reasons, and the last one matters most.

The first is speed.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.