DEV Community

Cover image for AI Made Coding Cheap. What About Verification?
Suprie
Suprie

Posted on Edited on

AI Made Coding Cheap. What About Verification?

I asked two AI models to build the same application using the same prompt. Nothing particularly complicated, just a native iOS habit tracker. The models were DeepSeek 4.1 Flash with low thinking and GPT-6.2 SOL with medium thinking.

Initially, I wanted to see how differently these two models approached the same engineering problem. But somewhere between reading their plans and reviewing their code, I found myself thinking about something else: verification.

The Plan — Does More Detail Mean Better Planning?

Both models started by producing a product plan. DeepSeek took considerably longer, but the result was impressive. It covered competitor research, behavioral science, product positioning, database architecture, design systems, monetization, and even release strategies. SOL, in comparison, produced a considerably shorter document. My initial impression was that DeepSeek had done a better job. It felt like reading a document prepared by an experienced product and engineering team, while SOL's plan felt relatively superficial.

However, after spending more time reading both documents, I started to change my mind. SOL was more conservative about what should go into the MVP. It deferred several features until there was evidence that users actually needed them. DeepSeek, despite repeatedly emphasizing simplicity, proposed a fairly ambitious first release.

I also noticed an interesting difference in how they evaluated daily goals. Suppose I want to limit my coffee consumption to two cups per day. I log my first cup at 9 AM. According to DeepSeek's proposed evaluation logic, I've already met my daily goal. But the day hasn't ended, and I might drink another three cups before lunch. SOL accounted for this by treating the outcome as provisional until the user confirmed their daily consumption.

It was a small detail buried inside a comprehensive document, something I could easily have missed if I had simply skimmed through it and approved the plan. Imagine asking DeepSeek to implement that logic and then write the corresponding unit tests. The implementation could be consistent with the specification, every test could pass, and we could still end up with incorrect behavior.

I genuinely appreciate DeepSeek's thoroughness, and many of its decisions are ones I would have made myself. But reviewing its plan also meant more assumptions to challenge and more decisions to validate before writing a single line of code. Generating documentation is cheap now. Reading and understanding it still takes time.

The Code — Simplicity vs. Architectural Discipline

Tend vs PracticeDays folder structure

The differences in planning carried over into the implementation, and they were immediately visible when I opened both projects in Xcode. DeepSeek organized Tend into App, Data, Design, Domain, Features, Resources, and Services. SOL took a simpler approach, keeping most of the implementation in a flat directory with individual files for the data model, store, design, and screens.

Looking deeper into SOL's implementation, I found that HabitStore.swift contains persistence models, schema migrations, serialization, observable application state, undo operations, business rules, and notification scheduling. DeepSeek, in comparison, separates these responsibilities. TendRepository handles persistence and data mapping, HabitEngine handles business rules and statistics, and notification scheduling has its own service.

I prefer DeepSeek's approach. While I agree that complexity should be introduced as the application grows, I don't consider separation of concerns unnecessary complexity. Establishing logical boundaries doesn't require separate frameworks, elaborate protocols, or multiple layers of abstraction. It's a relatively inexpensive decision that makes the codebase easier to navigate, test, and maintain.

Interestingly, the problem I identified during DeepSeek's planning phase also made its way into the implementation. HabitEngine can mark a daily consumption goal as completed before the day has ended. SOL had a better approach to this particular business rule. DeepSeek's cleaner architecture didn't prevent the mistake, but it made the mistake easier to locate and reason about. I can test the evaluation logic independently without involving database transactions, notification scheduling, or application state.

This is one of the reasons I believe separation of concerns becomes even more important when working with AI. If I ask an agent to change how daily goals are evaluated, I want to constrain the scope of that change. I want to understand which components are affected and verify their behavior without having to understand the entire application.

I would choose DeepSeek's architectural approach while retaining SOL's restraint when introducing abstractions. Good architecture shouldn't be measured by the number of layers, files, or design patterns it introduces, but by how effectively it limits the complexity an engineer needs to deal with when making and verifying a change.

The UI — Where Planning Pays Off

Both models arrived at surprisingly similar design directions: warm neutral colors, serif typography, muted green accents, and three primary navigation tabs. However, I much prefer DeepSeek's implementation, Tend. It feels more personal, easier to use, and easier to reason about. Practice Days, SOL's implementation, is functional and clean, but it feels more like a generic tracking application.

One noticeable difference is how they present the actions available to the user. Tend makes logging an urge or a setback immediately accessible, while Practice Days puts more emphasis on displaying the current status of the habit. Tend's interface feels more aligned with the original purpose of the application: helping someone change their behavior rather than simply keeping track of it.

This is probably where DeepSeek's extensive planning paid off the most. It had already established the visual direction, interaction patterns, typography, colors, and even the tone of voice before writing any code. Looking at the implementation, I can see those decisions reflected in the actual product.

Interestingly, despite my earlier concerns about the amount of documentation DeepSeek generated, I ended up preferring its application. Its architectural structure makes the code easier for me to navigate, and its product decisions make the application easier for me to use. There is clearly value in spending more time planning, provided those decisions are carefully considered and verified.

Perfect Days

Tend

The Verification Phase — The Hidden Cost of AI-Generated Code

During a recent engineering interview, we discussed a problem that has been on my mind for a while: verification in AI-assisted software development. I believe verification, rather than implementation, is becoming the primary bottleneck in software engineering. AI has dramatically increased our ability to produce code, but our ability to understand, evaluate, and establish its correctness hasn't improved at the same rate.

This is also why I prefer DeepSeek's architectural approach in this particular experiment. Clear separation of concerns gives me boundaries within which I can reason about the system. I don't necessarily need multiple modules or elaborate abstractions from day one, but I do want business logic to be independently understandable and testable. Architectural boundaries are not something I would postpone until the codebase becomes difficult to maintain.

What concerns me is the increasingly common workflow where AI writes the implementation, generates the tests, and another AI reviews the changes. Everything passes, so we merge it. I don't consider that sufficient verification. Multiple agents can operate under the same incorrect assumptions, and passing tests only demonstrate that the implementation satisfies the expectations encoded in those tests.

If I were establishing an AI-assisted development workflow for an engineering team today, I would break implementation into smaller phases. My reasoning is not simply to reduce the amount of code I need to review. During a larger implementation phase, an agent makes numerous decisions about architecture, business logic, dependencies, and implementation details. Even when the agent asks for my input, keeping track of all those decisions and understanding their combined implications becomes increasingly difficult.

By working in smaller phases, I can understand the decisions being made, challenge the assumptions behind them, and verify the resulting implementation before moving forward. I can maintain my understanding of the system as it evolves, rather than trying to reconstruct it after the implementation is complete.

This is also where separation of concerns becomes valuable. Clear architectural boundaries make it easier to define the scope of each phase and verify its outcome independently. I wouldn't measure productivity by how much code an agent generates or how quickly it completes a task. I would measure it by how quickly we can deliver verified software without losing our understanding and ownership of the system.

AI can take over much of the implementation work, but engineering judgment and accountability should remain with the people responsible for the system.

The Verdict

DeepSeek wins this experiment for me. If I were to continue developing one of these applications, I would choose Tend. Its architecture is easier for me to reason about, its interface is more intuitive, and its product decisions are better aligned with what I originally wanted to build. SOL demonstrated better scope management and identified some important edge cases, but I prefer the overall result produced by DeepSeek.

That doesn't mean I would blindly adopt DeepSeek's approach. Its extensive planning introduces a significant review burden, and some of its architectural decisions might prove unnecessary as the product evolves. I would want DeepSeek's product thinking and architectural discipline combined with SOL's restraint in defining the scope of an MVP.

More importantly, I believe we need to change how we measure engineering productivity in the age of AI. If an AI generates a feature in five minutes, but I spend an hour verifying it, the feature took sixty-five minutes to deliver. Generation speed alone is a poor measure of engineering productivity.

I haven't yet measured the verification cost of either implementation. That will be the next phase of this experiment, where I'll introduce identical changes to both codebases and measure the total effort required to deliver them confidently.

Code generation is becoming a commodity. Engineering judgment isn't. I believe the ability to verify, simplify, and take ownership of increasingly large amounts of AI-generated software will become one of the most important skills a senior engineer can possess.

Top comments (0)