2:52But first, I want to pose to you the question that was posed to me. What is an ORM for when AI writes the code? Most people think of an ORM as the thing that they use to be able to write database communication in language that makes sense to them in the context of their application logic.
3:12For example, your application might say, "Fetch the posts this user wrote." Your ORM needs to speak to your database in SQL, and the result looks something like this. Select the posts belonging to the users matching these conditions, and return them. Soren, the CEO, asked me over coffee, "What will ORMs look like when everyone writes code with agents?"
3:37And that was about a year ago, and my initial reaction was probably really similar to lots of other people's. Why not just let the agent write the SQL directly? That's a lot easier than going through all of the steps of transformation that an ORM performs to take you from English-like language to database communication.
4:01And I realized, even if I did that, I wouldn't feel very confident about the result. Because what I need from an ORM isn't translating English to SQL, it's I need it to tell me if the SQL is correct. Let me explain what that means. Here's a pretty typical migration. I've been working in this industry for about 20 years and I can read it and I can take a pretty educated guess as to what it does.
4:31But I can't really tell you whether it's right. I can't tell you if it's safe, if we should merge this pull request. And the reason I bring this up isn't to demonstrate that I'm not very good at SQL, it's to illustrate that even experts can't check everything by eye. I'm an application developer. My expertise is in application logic. SQL isn't my forte.
4:56What we need are tools that will perform these kinds of checks for us. Because while I can read it, I can't tell you whether it's right. A similar question is why use TypeScript when your agent writes the code? You could just ask your agent to write the JavaScript directly. But you don't.
5:16The type system catches mistakes before the code runs. It gives you the confidence that the code that you understand is correct. We asked the same question about both our product and our team. What is an ORM for if agents are writing all the code? And what is an engineer for if agents are writing all the code?
5:36Why do we need either of them? And the answer to both was very similar. We need the ORM to make sure that the code the agent writes is correct, and we need the engineer to make sure that the code the agent writes is correct. And that's what I meant at the beginning. AI makes you 10 times or 100 times faster, so your job isn't writing code quickly. That's taken care of for you.
6:02It's making sure that if you're going 100 times the speed, that you're going in the right direction. There were four things we needed to get right in order to be able to work this fast and this effectively. We needed to ensure that the design of the system we were creating was good.
6:22We needed to make sure that the design for the system we were creating was effective. We needed guardrails that would keep our agents writing this system correctly over time as we iterated on it. We needed to pressure test the direction that we were creating and we needed to change how our team functioned.
6:42As individuals and together. Let's walk through what those things mean. Design before you write your code.