This page is outside your selected path.
Preface
Two questions on this material help you choose your next step.
Materials familiar from answers are hidden.
Highlighting is partial. Follow scrolls to matching passages and waits for the next match in between.
Introduction: how to use the program
Module 0 — companion examples The starter repository for the running example — the audit log service that runs through the whole program.…April 1, 2023, evening, the balcony, sunset, a clear spring sky, a lake down below. A table, a laptop, warm air, the sound of a Google Meet call starting up…
— …and you’re sure you can pull it off?… You’re up to your neck at Lyft right now, you say so yourself, it’s chaos over there, so much going on… When are you going to find the time?
Me: — Come on, it’s fine! Listen, GPT-4 just came out, and it feels like now I can write anything, in any language!
— Weeell… Okay, whatever you say. It’s your call.
After a while the call ends, and I catch that feeling of lightness: “Now I’ll finally do the thing I’ve been holding in my head for so long! I can already do anything: any language, any idea. I can picture the infrastructure (how it ought to be set up). I don’t need to dig through the low-level details anymore (finally) — the model will do them. I’ll pull it off, it’s not even that hard…”
And the confidence wasn’t coming from nowhere. Since the end of 2022 I’d already spent almost half a year inseparable from GPT-3.5. I used it every day, including during the most overloaded months at Lyft, and I saw with my own eyes what it was capable of. And GPT-4, after it, felt like an absolutely insane leap forward.
And as it turned out, I made up my mind just in time…
(a month later)
8:30 in the morning, the sound of an email arriving on the MacBook…
(I open it, start reading) …that’s a lot of text… Wait, and what’s this?.. Oh damn: “you no longer have a role at Lyft”…
—
It turned out Lyft had cut a fifth of its engineers, and I was one of them.
Now I somehow have to tell this to Sveta (my wife, my girlfriend at the time)? But damn, I just got back from signing the deal (we’d signed a one-year lease to move into a bigger apartment, even closer to the office) — do I say it now or later?… I have to say it…
—
(Sveta) — If only they’d told you even a couple of hours earlier! And you’re sure you won’t be getting a job anywhere? All you’ve got is a startup that brings in nothing so far and probably won’t!
— Yes, I’m sure it’ll all work out. Just imagine, with GPT-4 I can write anything now! Within a year we’ll be turning a profit…
I really did believe I could do almost anything.
There was no option in which something wouldn’t work out. So from December 2022 I was actively trying things, changing my approaches, and gradually shaping everything that, almost 4 years later, finally became the material you now hold in your hands.
So the question is: why does AI, for so many people, stay a toy for a couple of evenings, even though the models have become many times better since then?
It’s simple. I went through it myself. Just back in 2022–2023. When you toss the model a couple of phrases, get back a chunk of code, add “do it without errors,” and wait for a miracle. That’s how the meme about the “vibe coder” is born. Many people stopped right there. Something didn’t work out, and they decided the whole thing wasn’t serious.
I understand why it turns out this way — because without a certain process the model behaves unpredictably, and it’s hard to lean on it for serious work. It’s easier to wave it off and go back to the familiar way of writing code. But you can’t “undo” artificial intelligence in development anymore; it has become a reality, a given. The only question is how to work with it.
And I’ll tell you: it is possible! To run development deterministically, the way we want. To pass the exact meaning to the model so that it can implement what we set out to do.
And AI didn’t just speed up the usual work. It opened up what used to be impossible! Because before, I only had the energy to test an idea with one or two experiments, and now — dozens. And that’s incredibly valuable, isn’t it?
Behind that “tried it and gave up” lies a whole path of growth: from working with a chat to managing hundreds of agents. But these rungs can’t be leapt over, and most people get stuck at the very bottom. In this training program I’ve tried to describe how to climb upward.
An acquaintance of mine, on seeing this book, said it was a fundamental work. I don’t know whether that’s true or not, but of course it’s nice to hear. The one thing I can say for certain is that this is a working manual for engineers — one with which you’ll be able to solve real problems using artificial intelligence. That is, to actually create products, rather than staying at the level of prototypes.
An emergent property of this training program, which I noticed only after the fact of writing it, is the idea of congruence. It’s an ancient idea: that the solution should be commensurate with the problem, without excess. First I determine the dimensionality of the problem, its true complexity. Then I pick a solution of the same dimensionality — no more complex and no heavier than necessary.
That’s why I don’t reach for the most complex methodology every time (and I don’t advise you to either). I look at the problem and assemble an approach for it out of ready-made parts (the patterns or methodologies covered further on). Sometimes one part is enough, sometimes you need the whole picture. What matters is seeing which parts it’s made of, and taking exactly as much as the problem requires.
The same principle works with agents too: a big task may call for dozens and hundreds of parallel agents working together, while for a small one even a single one is enough.
The whole path is built from simple to complex, so I’ll be walking it together with you. I’m sure that by the end of this material you’ll be able to create whatever you wish — exactly as much as you understand what it is you want to create.
Your notes, a self-check, and the next step
My lesson notes 0Only visible to you
Checking read state
Marked. On My learning this is a material read and a learning day.