Todayβs guest is Kent Beck, original signer of the Agile manifesto, creator of Extreme Programming, and all-round programming legend!
With Kent we had the unique opportunity to talk about the big picture. I inquired him about the state of the software engineering craft today, discussing things like:
* π Agile vs Power Structures - why Agile seems to have lost part of its meaning.
* π The Return of Waterfall - why Waterfall represents a fatal attraction for many engineering teams.
* π₯ Extreme Programming & TDD - why good engineering is an exercise in human relationships.
* π Feedback Loops - keeping them short and minimizing wasted motion.
* π€ AI for Writing and Engineering - Kentβs own experiments and how AI is changing our jobs
ποΈ Episode
You can watch the full episode on Youtube:
Or listen to it on Spotify, Apple, Overcast, or your podcast app of choice.
π Thank you
Thank you so much for listening! Let us know what you think about the podcast in the comments or via email!
We just got started with the Podcast, so if you found this chat valuable, please consider subscribing to the show on YouTube, Apple, or Spotify.
Also, consider giving us a rating or leaving a review on the platform of your choice, as that really helps other listeners find the show.
See you next week! π
Luca
This is a public episode. If you'd like to discuss this with other subscribers or get access to bonus episodes, visit refactoring.fm/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00along came Agile and for a moment it looked like a threat so the power structure co-opted it and now it wasn't a threat threat anymore now the people who are extracting more than their share of the value can still extract more than their share of the value and the the people who are working away for crumbs you know picking up crumbs on the floor they still are picking up crumbs on the floor so everything's as far as the power structure is is uh concerned everything's just fine we're back to the status quo
SPEAKER_01Today's guest is Kent Beck, original signer of the Agile Manifesto, creator of Extreme Programming and all-around programming legend. In this chat, we discuss the state of Agile in 2024 and how it has been somewhat co-opted by the power structure. We talk about the importance of psychological safety, short feedback loops, and engineers' ownership. We explore different approaches to Agile at different company stages and discuss the challenges and opportunities presented by AI in software development.
SPEAKER_01So let's dive in right after a short word from our sponsor. This episode is brought to you by One Schema, the embeddable CSV importer for SaaS that helps your teams save months of development time. While companies often scope one engineering month to build a CSV importer, they end up taking over three to six months to build all the features needed to make the importer usable for their customers.
SPEAKER_01Customer files are full of unexpected data and formatting. Missing key features like a UI for easily fixing errors drastically reduces import success rates and causes endless emails for your support team. Enter OneSchema. With a large library of pre-built validations and robust SDKs, OneSchema helps you launch CSV import in hours, not quarters. Get your customers to the value of your product in minutes and let them say goodbye to frustrating messages like import error on line 53.
SPEAKER_01Importing clean customer data into your product is now easier than ever. Learn more by visiting oneschema.co. Hey Kent, thank you so much for being here with us.
SPEAKER_00Luca, it's my pleasure. It's great to talk to you in person for the first time.
SPEAKER_01Yes, finally. So happy. And I have so many things I would love to ask you. I bet we could stay here all day, but I promise it won't happen. Let's dive straight into it. The first thing I want to talk about with you is, I mean, it's such a privilege to be able to talk with you that you have been around in the industry for so long. It's like you have lived through many years of different ways of thinking about how to do engineering stuff, how to write software.
SPEAKER_01And so I would love to start with a little bit of the big picture, right? Because you are one of the 17 original signers of the Agile Manifesto in 2001.
SPEAKER_00Not just one of, I am the first.
SPEAKER_01The first, so even better.
SPEAKER_00Alphabetically, but yeah, the first.
SPEAKER_01Alphabetically still counts. So you're the first signer of the Agile Manifesto. We will edit this out, so I will just say you're the first signer of the Manifesto. And so when it comes to Agile, my feeling is that the word itself is so ubiquitous today that sometimes it feels like it lost part of its meaning. You know, it's like when you say a word many times out loud and after a while lose meaning in your head.
SPEAKER_01And I've seen recent interviews of yours when you say even that Waterfall is kind of sneakingly coming back in some environments, even in startups. So my question is, what do you think it is the state of Agile in 2024? I mean, is it where you want it to be?
SPEAKER_00I don't have a where I want it to be. Software development certainly sucks most of the time, and that's not what I wanted. That's not what I want. Yeah. Yeah, the problem with that word agile is it's too attractive. People complained about extreme programming when I came up with that name. And it's definitely, it has some pluses and minuses.
SPEAKER_00But if you haven't done the actual hard work to become an extreme programmer, you're never going to claim that you are one because it's kind of like, it's a little too cringy. But Agile, everybody wants to be agile. Nobody wants to be rigid or inflexible. So nobody's ever going to say that they're not agile. So that's from the very end. And I said that at the meeting. this this word is not defensible as a brand it's not defensible because everybody's going to co-opt it and that's exactly what happened so I'm not I'm not surprised so I'm not disappointed but uh here's the here's how how I see it now there's a there's a power structure at work and that power structure defends its own power
SPEAKER_00and along came Agile and for a moment it looked like a threat so the power structure co-opted it and now it wasn't a threat threat anymore now the people who are extracting more than their share of the value can still extract more than their share of the value and the the people who are working away for crumbs you know picking up crumbs on the floor They Still Are Picking Up Crumbs on the Floor. So everything's, as far as the power structure is concerned, everything's just fine.
SPEAKER_00We're back to the status quo.
SPEAKER_01Yeah. So why do you think it was kind of a threat to the status quo? So because you felt like it empowers people who otherwise wouldn't be part of the decision process or wouldn't be in the game?
SPEAKER_00Yeah, so for example, you know, and I'm a geek, so this is my, I take a programmer perspective, but if you say, hey, programmers, Have a strong role to play in choosing what they work on next. That is the exact opposite of what the power structure wants is very legible. I take the problem. I break it into pieces. I hand out the pieces to people who don't question. They just execute everything perfectly on time.
SPEAKER_00Give me the pieces back. I'm going to integrate everything and now we're done and everything's fine. you know reality doesn't work like that but if you're in power you can insist that everybody pretend that that's how everything works and so that's what that's exactly what we've gotten back to as opposed to expecting software development to be this swirl this complicated
SPEAKER_00Melange of Discovery and Execution, where individual relationships are tremendously important to the trajectory of the entire product. Not in a way you can control, but in a way that you can encourage.
SPEAKER_02Yeah.
SPEAKER_00Well, that feels very out of control. If you're used to being at the center of the decision-making and the power, wow, that sounds horrible, because what role do I play? Well, a really important role, in fact, if you choose to, but mostly people don't choose to. So it's that kind of dynamic that I see. And as soon as you say, well, the power structures, Going to Reassert Itself. The waterfall is a beautiful expression of that power structure.
SPEAKER_00We're going to say exactly what we're going to do. You can't because you don't know what you're going to do. And even if you did that, it's not what you would want looking back. But that waterfall is very much that very legible structure of work, very much it's your responsibility and it's my, I get the rewards and you pay the penalties for anything that goes wrong.
SPEAKER_00That power structure is very much embedded in that waterfall style. So I'm not surprised that You Put the Same Ingredients in the Bowl and You End Up with the Same Cake. I was, part of what I was doing was recommending a new set of ingredients. And the people who liked the old ingredients, but didn't much like the cake, but they did like the ingredients, said, no, no, no, no, we don't want to, we don't want that.
SPEAKER_00The last team that I coached, or managed rather, Manage the Team. My boss came to me and said, well, when is it going to be done? I said, well, nobody knows what it is, so I can't give you an answer. and he said, yeah, yeah, no, I understand. I appreciate the principles, but when's it going to be done? Yes. Yeah, yeah, just give me an answer. I have to give an answer. And my heart goes out to him because he had people demanding of him things that he, questions he couldn't possibly answer.
SPEAKER_00But I wasn't going to pass that along to my team. As soon as I say a date, I've got downside and I got no upside. If I hit that date, if I don't hit that date, Boom. So I'm not going to put that, I'm not going to create those incentives for my team, but it was incredibly stressful to work in that environment. I ended up with migraines and arthritis and ended up quitting. It was just like, no, I don't want to work in that kind of environment.
SPEAKER_00What is that environment where my boss isn't being asked from my perspective dumb questions? Unanswerable Questions. Let me call it Unanswerable Questions that he feels compelled to make up answers to or delegate making up answers to me. What does that environment look like? And it's going to be a different shape than the current sort of standard business model.
SPEAKER_01Yeah, it's very interesting. I think it's a great take and it highlights the fact that even though we progress technology wise, you know, we get more and more sophisticated with tools and ways of doing things. Then in the end, it's like you said, I mean, engineering is pretty much about human relationships between people who do things. And so problems stay the same across the years, the decades and so on.
SPEAKER_00Yeah, until people change. It's not about inventing a better type system for your programming language. That's not going to change. I mean, at the margin a little bit and, you know, as a geek, I appreciate technical progress.
SPEAKER_01Yeah.
SPEAKER_00But until people are willing to trade one form of power for another form of power, Yeah, none of it's going to actually change fundamentally.
SPEAKER_01Yeah. And do you think, because I'm back to, you mentioned extreme programming before, which is of course, one of the, your most famous pieces of work and in extreme programming, you advocate for a number of practices who have been proven successful over time, but in many contexts, they are still divisive. You know, think of pair programming or TDD and continuous integration, even in some cases.
SPEAKER_01Do you think that these practices still meet resistance because of relationship dynamics or how do you feel about them?
SPEAKER_00A hundred percent. So TDD has become this religious touch point, which. Yeah. Like, you know, people. It's one of those. You can't make me write tests. I'm like, I'm not trying to make you write tests. Yeah. I don't care. Like, why are you yelling at me? Like, wow, this is not about me and this is not about TDD. So when I dig into those conversations, the theme that comes up over and over again is the theme that we introduced with JUnit.
SPEAKER_00We said programmers are responsible for the quality of their work. Not QA, not reviewers. The individual programmers are responsible for the quality of their work. And if I just, you know, kind of wag my finger about that, it would be unfair. So here's a tool. JUnit, here's techniques like TDD that will help you be responsible because you're making a bunch of mistakes now that are being handled by other people on very long timeframes.
SPEAKER_00So how can you catch those mistakes sooner? How can you reduce the number of defects that pass downstream? If you're responsible, if you actually want to deal with the consequences of your own mistakes, You're Going to Reduce the Number of Mistakes that You Make. And over and over in these conversations, the most emotional reactions to TDD, people say, I can't be responsible for the quality of my work. If there are errors, somebody else is going to have to pay the price for that, which to me is a very dysfunctional relationship with work, with yourself, with your colleagues, with your customers.
SPEAKER_00I understand that it's Uncomfortable to Deal with the Consequences of Your Own Errors. But it's just way better than saying, I can't do it.
SPEAKER_01Yes, wash your hands. Yeah. That's a great take. I never thought about this from this angle. So you think basically it's a case where it's like the king is naked, right? I mean, if you do utility, you're put in front of your own responsibility and the fact that You are doing things, I mean, you can't do things sloppily, let's say, as many programmers otherwise probably do more often than they would like to admit.
SPEAKER_00Sure, because we're all under pressure. Everything has to get done faster, sooner, cheaper, better. And if you don't have, if all there is, is pressure, To Report Progress on Faster, Sooner, Cheaper, Better, then you're going to get reports of progress, but you're not going to get faster, sooner, better, cheaper. And that's why I have always worked One Thread of My Work is Bottom Up to say, all right, all right, I'm not going to wag my finger and say, hey, you're writing too many bugs.
SPEAKER_00I'm going to talk about ways that you can find the defects sooner. You can eliminate their root causes. You can have feedback loops that show you when you make mistakes so that you can make your mistakes in private instead of having them be in public.
SPEAKER_01Yeah. And speaking of pressure that you mentioned, how do you ease that pressure? How do you set up a relationship with people you work with, with whom you exchange ideas, requirements, things to be done in a way that you have less pressure as an engineer and that I've seen even I'm seeing questions popping up in the in the chat Dobbs is asking how do we resolve this conflict between the business needs and the outputs and budgets and I think that that is the same thing I mean the pressure that is on the shoulders of engineers well there's there's one
SPEAKER_00School of Engineering which said which is the kind of the uh this is my dad's take my dad was a electrical engineer who became a programmer you know I grew up in Silicon Valley before it was Silicon Valley and all that stuff his perspective is just leave me the hell alone I'm gonna do my job I do a really good job when the date comes you'll have the stuff Just Get Out of My Face. Quite, what's the word?
SPEAKER_00Confrontive. And if you're good enough as an engineer, you can kind of make that work, but then eventually it runs out of gas. and sometimes when you fail you fail hard so XP takes kind of the opposite it says we're gonna take the value that we intend to deliver and we're gonna turn it into tiny slices yeah and we're going to use those slices to build a relationship with people who currently don't trust us
SPEAKER_00Business doesn't trust programmers. We make promises we don't keep them all the time for decades. It's not just our fault. It's our parents' fault and their parents' fault that's built this dysfunctional relationship. But the way to rebuild that relationship is to deliver functionality that other people care about on a regular basis. Now that means we have to engineer in ways that we might otherwise not.
SPEAKER_00You know, we have some refactoring and instead of doing it in a month where we just turn off all feature development for a month, we're going to spend four months, six months doing that same refactoring a little bit at a time while we deliver features. Yeah, that's so once the once the business knows it's going to get something. I mean, that's the biggest fear on the business side is we're going to put out me in all this investment.
SPEAKER_00We're going to get nothing for it and we won't know until the last minute and we're going to look stupid. That's a horrible position to put somebody in. So I want them out of that position as after 2% of the budget of the project has been spent. Oh, we're not going to get nothing. Now, the thing we have is janky and inefficient and won't scale, but we're actually solving business problems today that we couldn't solve last week. Oh, okay.
SPEAKER_00So we're not getting nothing. all right so so you know we're gonna make some progress and we can steer and we can change priorities and we don't have the power to say you're not going fast enough that's the one thing you can't if you go to the team and say hey you just have to go faster Yeah, you're going to get reported compliance and it's going to mess up all the relationships that you've been working to build.
SPEAKER_00So you can say, hey, I have this need. Hey, I'm afraid I'm not going to get this need met. As a business person, you can say those things. And then the engineers are going to be activated to whatever degree you have that relationship to actually meet your needs. And that may not be exactly the feature that you were imagining. There might be some other way of solving the problem. But the more you trust each other, the more you can elevate the conversation to the level of needs instead of being down at the level of this implementation, that implementation where your hands are tied for how you're going to create value.
SPEAKER_00Does that answer the question?
SPEAKER_01Absolutely, absolutely. I mean, even in my relatively small experience, what I've seen is that if you are able to shift the conversation from final estimates and final deliveries to a process that works on a weekly basis, on a biweekly basis, I mean, even the business people get something done that is usable, that creates value for the user every week or every two weeks or something, then there is we way less pressure yes every week every week it's too easy thing too it's too much i agree forever it's forever
SPEAKER_01And if you're able to do so, if you're able to do so, what I was saying is then the pressure and the tension on the final delivery goes off. I mean, it's way, way, way less than it is.
SPEAKER_00Final means failure.
SPEAKER_01Yes. Yes.
SPEAKER_00If you have a software system and there's no way for the business to invest more into it in order to achieve more profit, that system is now dead. And that's failure. Yeah. That's why I just, and, and, but that mind shift, you know, if I buy a car and the car's not there, I don't have a car.
SPEAKER_02Yeah.
SPEAKER_00Right. We're, we're really clear on this. If I buy some software, the development of some software and bits of it come and I can already transport myself, but not as fast as I want to with my car and, and, and, and.
SPEAKER_01Yeah.
SPEAKER_00It just keeps getting better and better and better every week. We develop stronger trust.
SPEAKER_01Yeah. Yeah, absolutely.
SPEAKER_00That's that's that's the world that I want to do my work in.
SPEAKER_01Yeah. And I think it's just it's funny how how much of agile advice and even XP, of course, it's about doing things more frequently. I mean, creating a shorter feedback loop for pretty much everything.
SPEAKER_00Everything Forever.
SPEAKER_01I mean, talk more, talk more with customers more frequently, ship code more frequently, review code more frequently, do per program, review code continuously. I mean, everything. I mean, it's doing things not faster, but in smaller iterations, in smaller batches.
SPEAKER_00Correct. Which leads to less waste. which leads to you accomplishing more in the same amount of time, but not because you went faster, but because you had less wasted motion. And, and anytime you hit the limits of that, that's this two weeks versus one week thing just drives me nuts. Well, we can't accomplish anything that the users care about in one week. and there's a thinkie, you've been reading thinkies, right?
SPEAKER_01Yes, yes.
SPEAKER_00Yeah, so my paying Substack customers get a weekly thinkie, which is this habit of creative thought. I started gathering right here, this is the original list of thinkies, where when I had ideas and like I knew where they came from, I would just jot down the thinking trick So one of the thinkies is called Can't Because. And Can't Because says anytime somebody says we can't do X that we want to do because of Y, you always flip that around and you say, well, when Y is no longer true, then we'll be able to do X. Is it worth trying to make Y no longer true?
SPEAKER_00So we can't accomplish anything the users care about in one week. Therefore, we have to have two week sprints. That's a perfect camp because when we can accomplish something the users care about every week, then we can have one week sprints. Oh, okay. Well, what would that take? Well, let's look at where our time goes and 90% of time in software development, 95% of the time is just work items just waiting in some queue.
SPEAKER_00So let's look at the handoffs we have and why we have those handoffs and how else we could arrange the work so that we didn't need those handoffs so that we can get rid of the queues. So there's less waiting time so we can actually accomplish something the user cares about by Friday. That's just such a great feeling to go into the weekend knowing every single weekend, hey, the system is better for other people because of what I did. And then you can just kind of cook on it.
SPEAKER_00And then about Sunday, about four o'clock in the afternoon, you're like, All right, let's get to it. And then you can come in Monday morning and you're just ready to chew nails. It's just like, ah, let me at it. That's a great feeling. Why wouldn't you want to do that? But for whatever reason, people, we can't accomplish anything in a week. So that's an excuse.
SPEAKER_01Yeah, because I think sometimes people think that accomplishing things and something means Releasing something that is very polished. I mean, that is kind of this final mindset mentality. While instead, I mean, I'm tying in also the comment by Rado here in chat that says very rightfully so, I think that as long as something is only in people's heads, Everyone Can See It Differently. Well, if you put it out there, even if it's imperfect, it's incomplete.
SPEAKER_01It helps. I mean, 100% the conversation on how to improve it, how to make it better because it anchors all the conversation with people.
SPEAKER_00That question went a different direction than I expected. I thought it was going to be the as long as it's in differently in everybody's heads and you don't make it concrete, then you don't have to deal with the conflict.
SPEAKER_01Yeah.
SPEAKER_00I Can Be Imagining the System, You Can Be Imagining a System, and the fact that they're different just doesn't matter. And as soon as you make it concrete and you get the example out there, that's not what that looks like. And I say, yes, it sure is what it looks like. And then we have to deal with the fact that we see things differently. In the XP world, the goal is to make that conversation safe for all the participants. Because it's inevitable.
SPEAKER_00Of course, people aren't going to see that future the same. They're not even going to see the present the same. So let's put it all on the table and then decide what we're going to do next.
SPEAKER_01Yeah. Do you think that is the foundations of being able to to create an XP environment that is, you know, psychological safety trust that you can have a healthy conflict about different views? And then if you if you have that foundations? Yeah.
SPEAKER_00So I think The Foundation is an organization as a whole that's willing to let go of the illusion of predictability in favor of creating the ability to adapt. So the analogy I've always used is, do you build a seawall or do you learn how to surf? Dealing with waves, do you build a seawall behind which you can pretend like the ocean is smooth?
SPEAKER_01Yeah.
SPEAKER_00And that works until we have the storms we had in California in the past couple of weeks. Or you learn to surf, you paddle out there and you're like, all right, well, there's all this variation that's happening and I'm going to get good at adapting to the variation that's happening. And then regardless of what the wave looks like, I'm going to be able to surf it. If it's a little wave, I can surf it. If it's a big wave, I can surf it.
SPEAKER_01Yeah. Perfect analogy, I think.
SPEAKER_00So if the organization all the way up though needs to be prepared to learn to surf.
SPEAKER_02Yeah.
SPEAKER_01Yeah. Do you think there are types of companies at different scale, I don't know, that are better equipped to do that? I mean, you have worked at many different companies. For example, you have stayed at Facebook for a very long time in a moment of high growth. Do you think startups are more naturally, you know, apt to get in this mindset than big tech or it doesn't matter your product stage or your scale as a team?
SPEAKER_00No, I think it matters a lot. You know, I talk about this in 3X, the explore, expand, extract model, which is talking about how Differently You Need to Behave as an Engineer, as a Manager, as a Product Manager, as an Investor when you're exploring, just looking for a new source of value and then something blows up. And I was talking to you before we started about Rent-A-Camp, this personalized model I'm building where I'm putting all, everything I've ever written into it to see how good it can be from my perspective.
SPEAKER_00So this morning, that took off in a way that we just haven't seen before. People having longer, more extended conversations with it. The answers being mostly pretty good instead of sometimes interesting, but oftentimes completely off. That's this, okay, now we're in this expand phase. It's like, all right, how can we deliver as much of that as possible to as many people as possible, as quickly as possible to take advantage of this moment? But that's a very different,
SPEAKER_00Style of Engineering, A Different Style of Management, It's Different Financing, everything, than the one where you're just trying out lots of little, very diverse, very creative experiments. And then the extract is, all right, now growth has kind of become predictable instead of this rocket ship and growth has become predictable. How do you take resources out of that to feed the next one? And then the really mature companies, the really effective companies recognize the difference between those three phases and they don't try and put every piece of development they do into the same box.
SPEAKER_00So that was a lesson that I learned at Facebook at 2000 people, which is ridiculously large to be able to juggle all three phases at the same time. And then by the time I left 2017, it was not like that at all. It was very much all projects were very extracty. You had to prove the ROI, blah, blah, blah, which is all of course, completely made up numbers, but you suddenly had to make up numbers instead of just trying some stuff and it didn't work, throw it away.
SPEAKER_01Yeah. Yeah. Yeah. I think, uh, yeah, I loved your talk. I watched it on YouTube about the three phases and, uh, I think a lot of problems are born from not realizing sometimes that what got you here won't get you there. You know, you need different, uh, different styles and approaches to doing things.
SPEAKER_00and it works against human nature right yeah you you try out a bunch of crazy ideas and one of them works you want to try out a bunch more crazy ideas yeah yes yeah and then that one that was really working dies because you weren't able to scale it yeah yeah
SPEAKER_01Yeah, totally. And speaking of Facebook, I want to pick up a quick question more on the engineering side that Clemence asked in chat. Clemence is asking, why is nobody doing stacker divs, which feels so much better than the standard GitHub flow? And it's become kind of, you know, the legend that Facebook is doing that, maybe even Uber and other big tech companies, but it has not picked up yet by us mere mortals.
SPEAKER_00Okay, so I've got my spicy take on Stackdiff. So this is, I finished, I finished a piece of work, which is complete in some way. Like it should be deployable. I think every diff should be deployable. Okay. So this is deployable, but I want to keep working, but I have to wait for a blocking asynchronous code review, which Anyway, that's a whole nother topic.
SPEAKER_00Keep me back on whatever the original question is. Remind me of it when I slow down. Okay. So I want to keep going. So I'm going to start working on the next diff after this.
SPEAKER_02Yeah.
SPEAKER_00As if the first one has already been accepted.
SPEAKER_02Yeah.
SPEAKER_00But then what happens when I get feedback on it and I have to change it and then I have to change the next, that succeeding one. So this is kind of like speculative execution in a CPU. where we're going to continue as if we already fetched this memory location. And then if it turns out that those assumptions, or we're going to take this branch prediction, same thing. We're going to take this branch as if this test is going to return true. And then if it returns false, we're going to undo all the work we did.
SPEAKER_00So I see Stack, what that lets you do as a programmer is Code Reviews Are Only Kinda Blocking. Yeah. I still have the question of could we not have code reviews? Like go back and read the original paper on code reviews, which I sent out a reference to somebody just the other day and I can't remember.
SPEAKER_00Maybe we can track it down afterwards and put it in show notes. If you want to do reviews like that, then that's code reviews. And that is everybody on the team looking at your diff and spending several hours pouring over it and then getting together in a room and discussing every line of the change you propose making for hours more. Like I can imagine that that process, tedious as hell, but it would create a lot of value.
SPEAKER_00Yeah. But I think I think this this blind copying of the blocking asynchronous code review style, that workflow for collaboration, that's by far the problem. I think there are other ways of getting the same needs met without the huge costs that we pay.
SPEAKER_01Yeah, I think I mean, mind you, I don't I don't have I don't have a solution that I feel it's the best you should do this but sometimes I just feel it's crazy that we put an incredible amount of effort maybe in shaving off like 10 minutes or 15 minutes our CI CD process and then we are happy with the code sitting idle for like hours and hours and days sometimes. Waiting for somebody to pick up the review.
SPEAKER_01So there has to be, there has to be different ways of doing that. Of course, one way is pair programming, as you have said, I mean, the code is reviewed continuously and I guess in those cases you don't need other external reviewers. So, I mean, you may want it, but it's not, you might be happy with that. So.
SPEAKER_00Yeah. Yeah. And then my, my other crazy ideas is, uh, what if, what if code review was, uh, asynchronous, but non-blocking. So what if you had something like a newsfeed, but it tells you all the changes that are going on in the code base right now. So like you pop up Facebook to see what you're, I mean, you used to pop up Facebook to see what your friends were doing and yeah. Now that's not so true anymore.
SPEAKER_00But anyway, you could pop this tool open and it'd say, oh, you know, in some far distant part of the code base, you know, it seems like there's a big refactoring going on. But this file that you changed three times last week, somebody else just changed it. Okay, well, that's news. You know, it's like a ticker. It's news that I care about. And I think it would be possible to build that kind of ticker functionality that would give you high density, high relevance information about the changes that are going on in the system as a whole without paying the cost of all this blocking.
SPEAKER_00All the queuing time, waiting time, all the additional variation that comes up with. And stacked diffs are a reasonable response to an unreasonable system. That's my take on stacked diffs.
SPEAKER_01Yeah. I pretty much agree. There is even a framework, I don't know if you know about it, that is called Ship Show Ask that buckets types of changes that you can make to the code in these three categories and based on complexity and how critical they are, and it says ship changes it's very small changes you can directly ship them no review no whatsoever then on the other side of the spectrum you have the ask where you should stop and wait for a review but then you have the show which is kind of middle ground where you ship things and
SPEAKER_01Ask for a review later, which is non-blocking. And the key idea is that actually, if you work in small batches and stuff, most of the things that you do can belong to the show category where you get a review, but it doesn't have to block the whole workflow. So the exact breakdown may change based on your situation, but might feel reasonable rather than, you know, an extreme approach in one sense or another sense. I don't know.
SPEAKER_00Yeah, I don't see my approach as actually being extreme, but I see what you're saying. And yeah, this is part of the responsibility that we were talking about. By saying this is a show and not an ask, you're saying I take full responsibility for the consequences of this diff. And if it breaks something, then we want to find out about it right away. Now, one of the things I learned in writing Tidy First, his first book on software design, was the difference between behavior changes and structure changes.
SPEAKER_00Because most structure changes are completely reversible. If I extract a helper function and you say, ah, that doesn't need to be there, and you inline the function, like, right?
SPEAKER_01Who cares?
SPEAKER_00Yeah. If I change the expected result of a computation, that tends to be irreversible. If I send the wrong numbers to the tax authorities, undoing that change is going to be much more expensive than doing the change. So you need to be much more careful about behavior changes to the system than you are about structure changes because the structure changes are, for the most part, reversible.
SPEAKER_00Reversible Decisions. Those are in the ship or show category. Just do them. It does mean as a programmer, If I have some work and I want to change the structure of the system, I want to do some software design, but I also want to add some new test cases and make them pass, I need to separate those kinds of work. Now, maybe it's all the structure changes first and then the behavior changes after. That's the tidy first.
SPEAKER_00yeah workflow or maybe it's the reverse or maybe they're interlaced in some kind of way there's new work that i have to do as an engineer rather than just saying i've got this big diff and there's some refactorings and there's some new test cases and there's some existing test cases where i change the assertions and you know it's all lumped together well what as a reader as a reader how am i supposed to like Sign in Blood that that's, yeah, this is okay.
SPEAKER_00I can't, I just go LGTM and away we go.
SPEAKER_01Yeah. We are back to trust and ownership and good relationships. I mean, I want to, I want to touch on a, on a different topic because you mentioned, for example, rent account and other things with ChatGPT. So I want to pick up a little bit on the AI topic. because your most famous tweet as of today is, I quoted about your skills. So you said that now 90% of your skills are obsolete. I mean, the context of you trying Copilot or ChatGPT for writing code for the first time, you said that 90% of your skills are now obsolete, but the leverage of the remaining 10% is up like 100%, 100 times, not 100%.
SPEAKER_01A Thousand Acts. If I quote you, I have to quote you right. So you said that you would, you need to adapt and you need to be, to discover what is valuable, you know, that versus what has suddenly become cheap. So my question is, have you found that? Have you adjusted?
SPEAKER_00am adjusting it's man that world of of New Models and Improvements to Models and people saying wow last week I got 37 and the new drop of the whatever library and now I'm getting 55 and I didn't have to change a thing like that that's commonplace now and it's one of these surfing situations where the waves break in all kinds of ways and you just the best you can do is hope to be able to surf it
SPEAKER_00So I would say I am adapting. An experiment I did this week, is it Wednesday? Yeah. That I did this week was, so I have this new book, Tidy First, wherever there's a copy someplace. And it's intended for geeks.
SPEAKER_02Yeah.
SPEAKER_00But if geeks read it and their managers tell them not to do it, it's not going to have any kind of impact. So I thought, can I write an executive briefing? Can I take this? It's a small book. I get it. But it's about value. It's not about weight. Can I take that? Can I take that three hour Reading and Save an Executive 90% of that time.
SPEAKER_00Can I write a briefing that somebody can read from a not day-to-day technical background and kind of get a sense of the whole thing?
SPEAKER_02Yeah.
SPEAKER_00Well, that would be good. It'd be good for the engineers who are reading tidy first and want to execute this stuff and are getting pushback. And it'd be good for the executives. It'd be good for their customers. Like, yeah, that would be, that would be good. It's going to be a lot of work. Yeah. I got a day. I have a day free. Can I get ChatGPT to write this and not sharing just generic ChatGPT because I'm working on this rent to Kent project. Can I get rent to Kent? to write this whole executive briefing.
SPEAKER_00And it was fascinating to figure out the instructions I wanted to give to a language model for what the next chapter should say. I had to be very clear about the goal of this chapter is to take somebody who understands this and help them. And at the end of the chapter, they're gonna understand this new thing. Use Analogies or Use This Particular Analogy. And here's the three bullet points to make sure you hit.
SPEAKER_00And then at the end of it, there's gonna be a chapter hook to the next chapter, which is on this topic. So transition between the topic of this chapter, the topic of the next chapter. Like that's writing, I'm writing Not character by character or word by word or sentence by sentence, but I'm writing like goal by goal, which is a kind of thought process that always has been going on in my head as I write, you know, and I've written five million words. That thought process is pretty refined in my head.
SPEAKER_00I know how I want to string ideas together, but I've never had to be this explicit with it. Okay, so at the end of a day, I had 5,500 words, which is like 3x as many words as I usually produce, but they're not catchy PT words, even though they're rent account, you know, trained on my writing and my style and so on. Just the dumb mistakes. the language models make from my perspective as a writer.
SPEAKER_00So I spent two days editing everything and I have an executive briefing and it's written in my voice. And there were a couple of surprising moments in there where I thought, well, that's a really good analogy. I haven't thought of that before. So there are ways in which the end result is better than what I would written. It's for sure done way sooner and with way less variance than if I'd waited for myself to sit down and start typing chapter one word by word.
SPEAKER_00You know, the ChatGPT version was just bad. It was just good enough that it was worth being pissed off about.
SPEAKER_02Yeah.
SPEAKER_00Refactoring Podcast featuring Luca Rossi. and here's the order they go in and here's the way they hook to each other. That ability has become much higher leverage.
SPEAKER_00I could turn out a new one of these every week if I had topics to turn them out on. And I've never, but that's not a skill I'd even, Realize That I'd Had Before I Had This Experience. So that's an example of the 10% of the skills now have tremendous leverage.
SPEAKER_01Yeah. This is all extremely interesting to me because I constantly wonder how this eventually changes the workflow of we as teams, for example, doing things with these models using prompts and prompt engineering You made an example of creating an executive summary. It could be anything. It could be creating code. What I always wonder is whether this style of interaction will act as the most declarative language that we have ever invented.
SPEAKER_01Just declare what you want and you have it. And then I don't know where we go from there. We will version control prompts or what will become the idea. It's wild. I don't know whether on some level there are people saying we have kept inventing new languages simpler and simpler on top of each other for decades. So this is just one of those times. At the same time, it doesn't feel like that exactly because we are still, you know, when the models create code, we are still then working on the code that the models have created.
SPEAKER_01So it's not exactly like that. So I don't have an answer for this.
SPEAKER_00Nor do I. I find it fascinating yeah I think we're on the brink of I've called it a new form of literature so the things that I typed in as prompts yeah that's writing that's what writing looks like that's a way that writing looks now that it didn't look before it's also though a lot like programming What in the hell is going on? You know, it generates something. You're like, nah, that's not it.
SPEAKER_00What's going on in that thing? How can I change the instructions to this machine? Except the machine is inscrutable, non-deterministic, like, blah. You know, it's like programming a chip where the instructions change their definitions as the program executes in ways that you can't predict. But it's still programming. So it's, it's somewhere in between here. And my, my big vision, you know, I've got, I've got a lot of, you know, aid memoir around me.
SPEAKER_00I use index cards. I use Facebook or Apple notes. I use my, my, I draw pictures. I put little notes in notebooks and so on. I Can See That, you know, in this vague sort of future-y sense, I can see that all of those thoughts going into a model. And then that model becomes rendered in various ways.
SPEAKER_00So you can come, I can say, all right, here's a book. which is like, take these things out of the model and we'll turn it into a book. And then now you can have it, which would be kind of like vinyl has become for musicians today, right? You stream this, you stream that, you try the acoustic version, you'd have a collab with somebody. And then you're like, well, those 12 things go together. Let me press that on vinyl and sell it. That's what books are gonna become.
SPEAKER_00I, as an intellectual person living an intellectual life, I'm going to take my ideas and pour it into this model. And then every once in a while, I'm going to say, all right, well, here's a release. Here's a thing. And then I'll print it up on beautiful paper and send that out to people. And it'll, you know, kind of, it's useful. You can read it. It evokes some kind of nostalgia. But the thing is this model that I'm working with. On a Regular Basis.
SPEAKER_00So that's where I see this going over the long haul.
SPEAKER_01Yeah, I pretty much agree with your take. And I also love what Clemens is saying in chat, saying that basically these models let you leverage your taste and your discernment. So basically, if there was a gap, I think, between people's taste and skills, this gap is way smaller today, because if you have good taste for a good result, You Can Do Way More. Taste is one of those skills whose leverage is now like 1,000 times.
SPEAKER_00Yes, and taste comes from the exercise, the faltering exercise of skill. That's a tweet right there. The Way You Get Taste and Judgment is by doing the work, seeing the mistakes, learning the lessons, getting the insights. Oh my goodness, if I'd only done this and, you know, done this thing in this order instead of that order, things would have worked so much better.
SPEAKER_00That's how you get taste. So you can't skip the exercise of skills, but those skills have become accelerated now, you know, in a way that we didn't, I certainly didn't expect to see coming.
SPEAKER_01Yeah. At this speed, especially. Yeah. I was asking, taking the question by Clemens in chat, how would you TDD an LLM application? How would you test, I mean, how would you design an application to be with TDD with AI? This is actually, I mean, if you can make this a little bit broader, there is, I think, a broader question that is, will we make AI write tests or rewrite tests for code that is written by AI or kind of, you know,
SPEAKER_01Where will this leave us as programmers? But I don't want to digress.
SPEAKER_00Okay, so yeah, I want to answer that question if we have time to ask it again. So I heard two different questions. One is you want to build a personalized model. How do you apply a TDD style Workflow to Fine-Tuning the Model.
SPEAKER_01Yeah, or more in general, probably, if you do TDD already for any of your engineering work, how do you combine doing TDD with doing engineering work supported by AI? I think that was more of the general question.
SPEAKER_00Okay, if that's the question, then we did an interesting Experiment in Mechanical Orchard, my day job, where we had two chatbots and you'd ask one, please write a test for this. And it would write the test and we'd copy it and paste it into the other chat bot and said, please write code that passes this test, out it comes and then we say, blah, blah, blah, blah, blah. So we got these two bots talking to each other. The problem is there's some like information theory, minimum number of bits that you have to specify.
SPEAKER_00You can't say, write me a profitable app
SPEAKER_01Yeah, of course. I wish you could.
SPEAKER_00Well, I mean, if you could, everybody else could. And if everybody did, then nobody could. So, There's some minimum amount of information that you actually have to put it in. So here's an exercise that I do with tests. Sometimes people show me their tests and oftentimes it's really long. And I say, well, tell me the story of this. Well, if the interest rate is this and the person's over this and blah, blah, blah. So I take a highlighter and I just highlight in the test, the actual information that they explained to me.
SPEAKER_01Yeah.
SPEAKER_00And there are styles of testing where you have this big long test and there's like four actual pieces of information and a thousand tokens, 10,000 tokens that don't actually convey any information. So it's those four bits of like very specific information that yes, we need to be able to express those in the initial prompt or
SPEAKER_00you're just gonna get random stuff coming out but the language models can have a lot of context about the stuff that you say in the same way that if you and I work on the same system for a year together, I can just go, oh, it's one of the things and you go, yeah, I know exactly what you mean. The model can have that kind of richness of context over time, especially if it's fine tuned for your particular code base, style of working,
SPEAKER_00vocabulary etc etc so we will be able to say more and more concentrated information to our language models and end up with reliable code
SPEAKER_01I agree. This is so interesting, Kent. I mean, I could go on with questions for other several hours, but we are wrapping this up. So thank you. Thank you so much for being here for this wonderful chat.
SPEAKER_00Oh, Luca, it's absolutely my pleasure. And I hope we get to see each other in person sometime soon.
SPEAKER_01Absolutely. Absolutely. And I'm seeing also that you are not only outclassing me in engineering, but also in guitars. I see in the background, I have two, you have like, I don't know, six or seven. So you win on that too.
This is a free preview of a paid episode. To hear more, visit refactoring.fm Listen now: YouTube | Apple | Spotify Todayβs episode is brought to you by: TRM Labs Criminals are scaling with AI. Build the technology that...
This is a free preview of a paid episode. To hear more, visit refactoring.fm Listen now:YouTube | Apple | Spotify - Todayβs episode is brought to you by: TRM Labs Criminals are scaling with AI. Build the technology that...
This is a free preview of a paid episode. To hear more, visit refactoring.fm Listen now:YouTube | Apple | Spotify Todayβs episode is brought to you by: TRM Labs Criminals are scaling with AI. Build the technology that...
This is a free preview of a paid episode. To hear more, visit refactoring.fm Listen now:YouTube | Apple | Spotify Todayβs episode is brought to you by: Notion Learn more about Notionβs Developer Platform today at...
This is a free preview of a paid episode. To hear more, visit refactoring.fm Listen now:YouTube | Apple | Spotify Todayβs episode is brought to you by: Notion Learn more about Notionβs Developer Platform today at...