Robert C. Martin, also known as Uncle Bob, is the author of Clean Code and Clean Architecture and one of the original authors of the Agile Manifesto. In this episode, we explore why hardcore technical focus still matters big time when AI can write the code, and where engineers should apply that expertise as more implementation moves to agents.
Robert walks through the static analysis tools, dependency checks and testing practices he uses to steer agents towards better software. We discuss how clean code helps AI work with a codebase, how he stays technically involved while reading less code, and why understanding customers remains essential to making sound engineering decisions.
In our conversation, we discuss:
- Why clean code and clean architecture still matter when AI writes the code
- How static analysis and dependency checks help steer agents towards better software
- How Robert combines acceptance tests, QA tests and mutation testing to check AI-written code
- How engineers can stay technically in control without reading every line of code
- Why understanding customers leads to better technical decisions
Where to find Robert C. Martin:
- X: @unclebobmartin
- Website: The Clean Coder
- Videos: Clean Coders
Lessons Learned
- Keep technical judgement at the centre of your work. Robert sees engineers spending less time on low-level implementation and more time directing agents. That still requires understanding the system, questioning its behaviour and deciding whether the technical choices serve the product.
- Keep the code understandable for agents. Tangled dependencies and poorly organised code make an agent's job harder, just as they do for a human. Robert still cares about clear names, manageable functions and coherent modules because they make the code easier to work with.
- Turn standards into executable checks. A reminder in a prompt can be forgotten as an agent focuses on a task. Robert writes deterministic tools that measure the code and report failures, then asks the agent to keep working until it meets those standards.
- Use complexity and coverage together. Robert uses the CRAP metric to give agents feedback on both cyclomatic complexity and test coverage. Reducing the score can require better test coverage and splitting complex functions. His thresholds describe his workflow; they are a starting point for discussion, not a universal target.
- Check for duplication. Robert also uses tools that detect repeated code, including near-duplicates. He finds agents effective at extracting shared behaviour once the duplication is made explicit. A concrete diagnostic gives the agent a specific structural problem to solve.
- Make dependency rules explicit. Robert records which modules may depend on others and in which direction. A checker compares the code against those rules and reports violations. That gives agents feedback they can use to break dependency cycles or introduce an interface, while the engineer retains control over the intended architecture.
- Check behaviour through several kinds of tests. Robert asks agents to write unit tests, Gherkin acceptance tests and QA tests that exercise the human interface. He reviews or spot-checks the latter two to see whether they make sense, then has the agents run all three streams.
- Test whether the tests catch mistakes. Mutation testing deliberately changes the code and checks whether the tests fail. When a change survives, Robert asks the agent to improve the tests. This gives him evidence about what the suite detects beyond whether it passes against the current implementation.
- Keep the design pressure of tests written first. Robert has not found a reliable way to make agents follow the tiny steps of human TDD. He still asks them to write tests before implementation, because making the code testable pushes them to address coupling and structure.
- Build a mental model and challenge it. Robert describes reading less production code while making occasional spot checks and questioning agents about the system. He uses those explanations to develop a model he can challenge with technical questions and tests. The reduced reading is part of his wider checking process.
- Learn how customers actually work. Riding along with a telephone repair technician helped Robert understand the people affected by his code. Answering field-service calls kept that contact alive. Direct exposure gives engineers context they can use when deciding which technical trade-offs matter.
- Preserve the reason behind technical requirements. Robert recalls a response-time requirement slipping from under one second to three seconds as newer engineers lost the customer context behind it. Passing on the reason for a constraint helps future engineers understand its importance when they change the system.
Chapters
Resources
- Clean Code: https://www.informit.com/store/clean-code-a-handbook-of-agile-software-craftsmanship-9780135398579
- Clean Architecture: https://www.informit.com/store/clean-architecture-a-craftsmans-guide-to-software-structure-9780134494166
- Agile Manifesto: https://agilemanifesto.org/
- CRAP4J: the complexity-and-coverage metric discussed in the episode
- Gherkin: the acceptance-test language used in Robert's workflow
Transcript
6,683 words
What does it mean to be a good software engineer when AI can write the code? And why does deep technical knowledge still matter so much? Today, I'm exploring these questions with Robert C. Martin, also known as Uncle Bob, author of Clean Code and Clean Architecture and one of the original authors of the Agile Manifesto. Today we talk about why clean code and clean architecture still matter when you're working with agents. The static analysis tools Robert uses to keep them on track and how he checks the quality of the code agents write. How much of the code do you still need to read and how does understanding your customers shape the technical decisions you make.
If you're an engineer wanting to understand where your technical expertise matters most and how to use it to build better software with AI, this episode is for you. Enjoy. Welcome to the podcast, Robert. It's great to have you here.
Good to be here. So you have to know that throughout all this season of the podcast the main topic has been how engineers can get more private minded and I've been speaking with a lot of people from product and engineering background about this because companies nowadays are really asking these new responsibilities from engineers that like do a bit more product a bit more design but these are things that really we didn't build a muscle for Right. A lot of us engineers so but you know the trend is kind of clear and you Robert as someone that had a big influence on how engineers write code and build software. How do you see this trend going?
So the the trend towards product engineering I think is being strongly driven by the AI revolution. Right. So as the AIs take over more of the coding load, the developers are going to have to take over more of the product engineering role load. There's there's no other way around this, right? So we developers while we will still remain technical are going to have to be communicating product information into the agents and reviewing it and ensuring that it's still doing it properly. And so we will all have the responsibility to be much more in tune with our customers than with the the syntax of the code.
Mhm. When I explain this to some people, they they usually tell me, isn't this what a good engineer has been all all about, right? Just caring about the product, getting the right context. So why wouldn't this become important just just now and not before as it should have been? Yeah.
Well, you're right. I mean, an engineer always should have the product in the the customer in mind. You know, our a good engineer has a a mindset that understands what the product is, who the customers are, and what problem they're actually solving. But it's very easy especially for software engineers to get so focused on the code and so focused on the tiny little problems that they are attempting to resolve in the code that they can easily bypass the the more peopleoriented stuff that a good engineer really needs to keep in mind all the time.
With the advent of AI, the AIs are taking over a lot of that lowlevel detail work and that relieves the engineer to be able to turn their focus a little bit more outward, a little bit more towards the people side of things while they still direct the the agents to implement the appropriate systems. So, it's a shift in emphasis that I think all of us are feeling at the moment. You know, I I'm already thinking that a lot of people from the from the audience may be wondering, well, this is great.
I I I'm I'm having all the AI agents doing more more of the nitty-gritty stuff that I know they can do very well, but my company is asking me to do even more of the more more feature more features, more more development work. So, I don't really have the time not to to invest in learning how to do product or design or even getting involved in that area. And what would you what would you say to them?
Well, I doubt that the company you're working for would object to you learning more about serving their customers. If you go to your managers and say, "Look, managers, I really need to get smarter on product engineering because frankly, the AIs are taking over an awful lot of the low-level coding and and I need to be able to direct them properly." I don't think the business would mind that at all. And in any case, if you're an engineer, that should be your focus anyway, especially since the AIS are relieving you of the lowest level nitty-gritty work. Your focus should be on serving the customer the best way you can. Making sure the business is properly represented.
You know the the customers are properly served by the products that the business creates.
Do you see any similarities with this trend and what agile tried to solve back then?
Agile. One of the founding principles of agile was customer in the room. Now, you know, we didn't we didn't really want a customer in the room. Well, actually, we kind of did, but most of us thought, well, we're not going to get the customer in the room, but we probably can get a customer representative in the room, somebody who is very well aware of the customer's needs and can represent those needs, and they were in the room with us while we coded. Now obviously the the world has changed and most of us don't have communal rooms anymore. A lot of us code from home now but the the rule is still the same.
You know constant contact with the customer or at least a good customer representative was always part of agile and should always remain part of agile. So I mean if if I have to think about my my own experience with both kind of trying to have people working a bit more agile because I've been big fan of that all along but now also with all the product engineering thing which is kind of been my my my my battle the last for the last two years. I think that the the the most difficult part is really getting people on board, right? Like even with agile, what I noticed that I usually ended up in these companies that were saying, "Okay, our teams is agile."
And so we we do all this kind of process with all the ceremonies. But then the rest of the company was still not doing HR like it was still planning long term like very long planning sessions and having this small team doing things very fast. But then the rest of the company is not really adapted to that yet. So this is what I'm seeing in some companies. But I guess change is difficult. Change is difficult. Many people will not change just will refuse. um and some people will and what that causes is internal tension inside the team, inside the company. There's a a difference in values and that's unstable. It it can't last.
And so what happens instead is that there's some kind of a divorce, right? Either one faction or the other faction leaves. That can happen suddenly. It can happen gradually over time, but there's a shift so that people with with values that they agree upon. You know, they all have the same value set can finally work together and those who have a different value set, they can work together maybe somewhere else. Sometimes this happens inside a company. Sometimes it happens between companies. So people will leave one company and go to a company that has a set of values that are more in line with them.
We've seen that throughout the industry over the last 30 years now, especially with agile and engineering disciplines and we're going to see it with AI too.
So So okay, let's say that we all agree that engineers now have to get more problemed, more focused on design. What do you think would happens to the engineers ability to build technical solutions as there's focus shift shifts more towards product? Is there any danger there? I don't think so. Now um my history is a little unique. I I um I started working for a company in the in the mid70s and we did very technical work testing telephone lines. you know, we we were working with microprocessors and we had a a big distributed processing system. We were using modems to communicate and all of our code was written in assembly language. So, this was really deep technical stuff.
We were doing lots of interesting mathematics to measure the electronic characteristics of telephone lines and measure their lengths and trying to find faults on them. So really really deep technical stuff in assembly language in microcomputers. And the CEO of the company said, "Okay, everybody working on this project has to go ride in the truck with a repair man at least once." So here here I am like I'm a young 20-year-old something, you know, programmer, barely know anything.
And all of a sudden, I find myself in a telephone repair man's truck in the middle of Indiana while he's up on a pole and he's talking to me about his problems and and I develop a sense of who these people were that we were serving. I now I don't think most companies do that. I think that's unfortunate. Uh but this guy, this this CEO said, "Okay, everybody has to go spend a day with a customer just so that you know who it is that we are serving and what their problems really are." And I came back from that trip, just one day in the truck with a completely different perspective on everything that I was doing, which I was able to apply in the deep technical work that I was doing.
How did that make you feel? More connected. Mhm.
I knew who these people were. I'm sitting there writing code that impacts what they do when they're up at the top of a pole trying to fix a telephone line. All of a sudden, I see that guy up there and I'm sitting in the truck and I'm watching him. I've got a much better sense of who I'm serving and what I need to do to serve them.
Yeah, absolutely. And yeah, I I I felt the same like every time I joined a call with a with a users or run some customer interviews myself. It's it's really good to hear people telling you about their struggles and like why they're happy, why they're not happy. Like it creates this kind of human connection that otherwise you don't really have.
This company that I was working was a really interesting company. It was a deep engineering company and one of the philosophies was the authority of the engineer, right? The authority of the engineer super superseded everything, right? If the engineer said it had to be done, by God it had to be done. But on the other side of that, all the engineers answered the field service lines. So we had 800 watts lines. We had 800 numbers that would ring inside of our lab. And literally a giant bell would ring in the lab. And that meant that somebody, one of the engineers had to go pick up the line and talk to either a customer or a field service agent and work them through their issue.
So we were always collaborating with them to help them resolve the issues they were having. So it was a very a very interesting way for me to grow up in a in a deep engineering environment and yet maintain customer contact.
Right? Okay. So let's say we understand that it's important for engineers to if they can't get exposed to to customers or users just develop this empathy.
Yeah. So what do you think is the strongest argument like the strong the strongest argument on the product side for deep technical skill? So how does that affects users and the business in a more like if you in like in practical terms
someone has to have deep technical skill and what you really don't want is a wall between the product skill and the technical skill. But this has kind of developed over the years, right? As as our industry has matured because I'm not sure it's matured, but as our industry has grown, as the number of programmers has increased dramatically and as the size of projects have increased, we've seen this wall develop between the people who focus on product and the people who focus deep technically, right? And that's a bad wall. It shouldn't be there. There can be people who are more attuned to one side and there can be people who are more attuned to the other side but the wall shouldn't exist.
There should be cross coupling between them. So it is very important to have people with deep technical skills but those people ought to be able to cross the wall to the product side of things so that they understand what the needs of the customer and the business are. The last thing we want to have are these deep technical silos of engineers and all they care about is the the current feature and getting the current thing to work and they know nothing about the business and they know nothing about the customer. That's a disaster and it's a disaster we've been living with for 20 years I think.
Yeah. you know as an as an engineer I've seen that happening every time someone asked me so like how how would you approach this technical problem and how long would it take and what what's the what are the resources you need to invest in this and like the thing is they usually told me that without much context on the problem this was going to solve right so it's it's like it feels very natural for an engineer should feel very natural to say okay I have to create this technical solution what's the exact problem we we are trying to solve here on on the on the customer side? What what's the behavior we want to implement? What's the outcome we want to enable?
Because I I for me it's very difficult to see these two things separated like the the the technical trade-offs that you need to make to enable the product and that that's very important in in product development. So yeah, that's going to be also an interesting thing to see how it unfolds in the next years. I had an experience in the middle of my tenure at this company that I was talking about. One of the things that we learned really early on was that it was important to our customer that from the moment they entered a command at a terminal, the response time had to be less than a second. Right?
That was really important because these guys are highly paid and they're very busy and they don't want delays. And so that was drilled into us early on when we were at the company. About 10 years later, I was working on a different part of the company, different product, but I came back to that original product and I noticed that that time had grown to 3 seconds. And I started investigating that. Well, what happened here? That used to be a rule. Everybody knew it. You know, all of us, the engineers, we all knew that this was a critical thing. And now it's suddenly grown to 3 seconds.
And and of course, what had happened was is that more engineers came in and they weren't aware of the rule and they weren't aware of the customer's needs. And they started doing some things that grew that timing too long. And I came down like a hammer on them, you know. So I, you know, at what am I, I was probably 30 at the time. So, you know, I came down like the old guy. You guys, don't you know words were you away? I mean, the customers are are suffering out there because you put this two second delay. They they weren't very happy. The young engineers thought I was kind of an old fddy duddy at the age of 30. But anyway, that's another one of those stories, right?
the the the the knowledge of the customer, the knowledge of the customer's needs can get lost in the engineering mastrom, in the engineering churn that happens. And as engineers turn inwards, they lose they lose connection with the needs of the customer that were well known at one point but not well communicated afterwards.
Yeah, makes sense. Makes sense. And now I'm also going to feel hold because I'm just turning 34. So I think uh I'm going to be the guy that's going to tell people off. All right. Okay. So you wrote a lot of good books and videos wrote videos about how to write good code. So you know the famous books clean code clean architecture. How do you see this these practices take place into the AI era?
So we know that they've been very useful for communicating maybe intent to other developers structure codebases very well you know all the stuff there but now that AI is writing most of the code and sometimes we don't even read it how are those practices important now and what do do they have any effect on how like the success of of a product that we're building?
So are they important? Yes, they're important. Why are they important? They're important because the same things that confuse human programmers confuse AI programmers. So, so if you have an AI and you feed an AI a big ball of mud, you know, some horrible bit of code that's all intertangled and very difficult to understand, the AI is going to have a real tough time with that. Now, they'll probably solve it, but it'll be a tough time just like a human would have a tough time with it. If on the other hand, you you make sure that the AIs keep the code nice and clean, nicely named functions, nice small functions, you know, nicely well organized, the AIS have a much easier time with it.
So the the goal of the engineer now the human engineer is to find a way to drive the AIS to adopt those same tools and principles and standards. And I do that by creating deterministic tools. I I write programs that the AIs can run that measure the quality of the code and then I put the AI into a loop until the code matches that kind of standard. Right? So there's a whole bunch of tools like that that I use that keep the quality of the code that the AI's produced very high.
So I've been trying a similar approach lately and I tried to create some metrics to measure the quality of the the code base. But what I've been struggling in is like okay I have this metric now what what what is it telling me about the codebase? So have you found like some very interesting metrics that maybe engineers can use to track the quality of the code and that are actually telling you something useful and direct?
Yeah, there's there's several. The one that I like best is has an unfortunate name. It's called crap. Uh C R A P. Derives from a tool that was invented in I think 2007 called crap for J. And what this tool does is it measures two things for every function. It measures cyclomatic complexity which is just the number of pathways through a function. It also measures test coverage. So you give the tool your code and your test suite and it runs your test suite and it measures coverage in every function and then it measures cyclomatic complexity within every function and then it mixes those two numbers goes to cyclomatic complexity if code coverage is 100%.
And goes through the roof if code coverage is not 100%. So it's a a a really strong exponential increase and that number is called crap. If you if you measure the crap in a module, then the AI is forced to do a number of things. In order to reduce crap, and I I I tell my AIS to keep crap below six, right? In order to reduce crap, it first of all has to make sure that there are enough tests that cover the functions. And then secondly, it's got to take the functions apart to reduce the cyclatic complexity. And that of course has a very positive impact on the structure of the code. Turns out the AIs are very good at doing this.
If you hand them a really big function and tell them, okay, split this apart to reduce cyclatic complexity, they're very good at that. They'll pull it apart. They'll give them nice names. They'll they'll they'll separate them by the least coupling, you know, so they'll pull them apart right at the coupling boundaries. They're very very good at that. And so the the use of a tool like that has a profoundly positive impact. Another good metric is is simply duplication. There are algorithms that you can apply that will search through a module and look for duplicated code strings and you can soften the duplication.
Use a little fuzzy logic so that you can find, you know, duplications that are not perfectly duplicate, but they're kind of duplicate. And then you can have the AI look at that. And again, they're very good at reducing that kind of duplication and inventing the abstractions that allow you to combine two functions by adding an argument or adding a little helper function or something like that. So just those two by themselves have a profound impact on the structure of the code.
Mhm. What about more on on the architectural level? Hey, Peppa here. Quick pause. I promise it's a short one. Season two of the podcast will be all about helping engineers become product minded. Want to know when new episodes drop? Subscribe to the YouTube channel or even better rate the podcast on Spotify, Apple Podcasts or wherever you're listening. It helps more engineers find the show. You can also find everything at productengineers.com. And now back to the episode. What I do is I have a tool that where I as the engineer specify which modules are allowed to depend on which other modules and what direction they are allowed to depend in.
And then I I put that into a little text file and then I have a tool that looks at the looks at the code, compares it against those dependencies and passes or fails. And it it it it actually produces a diagnostic output that the that the AIs can then use to say, "Oh, well, I've got a violation of the dependency structure. I'm going to have to take things apart." And it turns out, once again, the AIS are extremely good at figuring out ways to take illicit dependencies and correct them. So for example, it'll take out a polymorphic interface to take a dependency and turn it around or it will split a module in two so that it can avoid a cycle of dependencies.
Very very good at this kind of stuff as long as you give them a hard metric. What you can't do with an AI and this is very frustrating. What you can't do with an AI is tell it please please keep this dependency structure in mind. If you put that into a prompt, it will forget that prompt. They're not very good at remembering their prompts and they will break any rule you set for them because the AIS will focus. They will focus very deeply. And as they focus deeply, every rule you've ever told them disappears and they will do whatever it takes to to do this one little thing that you told them to do.
So you have to give them deterministic tools and then in pursuit of those deterministic tools they can do a very good job
and yeah also all the linting tools that could be very useful I've seen but also tests right
yes
those are a very good feedback loop
I guess that's where we kind of bridge to to product because you have you can have tests as automated specifications So the the agent should not break those tests.
Absolutely not.
I have my agents write unit tests and then I have my agents write acceptance tests in a language called Girkin.
I have my agents write QA tests which are written from the point of view of manual testing. Right? They go through the interface. They don't touch the inards of the code. They go through the human interface. I have my agents write those three streams of tests and I review the last two. I don't review the unit tests. I figure that's the agents business. But the Girkin tests and the QA tests, I review or at least spot check them. I might not review them line by line, but I at least spot check them to make sure they're sane. And then I have the agents run all those tests, right? And again through deterministic tools. The unit tests are obviously deterministic.
The Girkin tests, the agents have to write a tool that parses the Girkin and emits tests that can execute. The QA tests, the agents have to write a script that conforms to the QA test and then manipulates the system through that script. And then I run mutation testing. So once I've got all those tests in place, then I run mutation testing. Mutation testing is where you tell again it's a deterministic tool. The tool fiddles around with the source code and expects that the tests will fail if the tool changes a less than sign to a greater than sign or an equal to a not equal or something like that.
And then if the test does not fail, that's called a surviving mutant that the agent must then write a test for so that the test fail. And this has the effect of locking the tests deeply into the code. Right? So any little change in the code will fail a test, right? And any little change in a test will fail, right? So the two are really strongly linked together. That with the three streams of tests makes it extremely difficult for the AIs to cheat. It's going to be very difficult for them to break an old feature because there's three streams of tests that check that old feature and they're deeply interwoven into the into the behavior of the system.
All right. So, I can I already imagine all the TDD purists saying, "Oh my god, you let the agents write the tests." Like, you know, because there was all the also that that always that part of TDD as a design activity, right? So,
yeah. What would you say to them?
Well, I I tell my agents to follow the principles of TDD. Now, they don't. I I have not found a reliable way to get them to really follow the human discipline. The human discipline of test-driven development is extremely finely grained. Right? you write like a little bit of a test and a little code and a little test and a little code in a loop that's maybe 5 seconds long. The agents won't do that. What the agents will do though is they will write tests first and then they will make them pass. Almost always you can get them to write the tests first. And in writing the tests first that puts a design pressure on the agent to then write the code to be testable.
Mhm. If you write the test first, then the code is going to be testable. And that's a strong advantage. That means they have to break all kinds of couplings just to keep the code testable. That's a good a good principle. Now, I don't review those tests. I make sure that they write those tests first and they and they make them pass. I don't review those tests and I also don't review the production code. I try not to look at the code very much, right? Because it seems to me that if we're going to take advantage of the speed of these tools, if we're going to increase our productivity, then we the humans are going to have to disengage from deep knowledge of the code.
That doesn't mean that I don't remain technical. You know, I still look at the code as it streams by on the screen and I still sometimes I will open a module and just to make sure it's sane. I'll do some spot checks from time to time and I interrogate the agents. I talk to the agents and I ask them what the structure of this is and how it behaves and why it's this way and that way and so on so that I can create a mental model of the system that's being created and then I can use my skill to be as skeptical as possible about that mental model.
And then I can ask it challenging questions and I can pose challenging tests and I can make sure that the system is evolving in the way that I want it to from a technical point of view not just a behavioral point of view.
Mhm. Yeah. Yeah. That's something I still find quite challenging like not looking at the code because on one side I would love that so I could focus more on the product things but for me it's fun just but on the other side I have still this impostor syndrome. I don't know. So oh my god what because maybe a lot of us engineers have always kind of attached our sense of worth to the code we write.
So it's like oh my god who's going to read my code now is going to think I suck. So I'm I'm still in the in a bit of a limbo there. Have have you changed any op like any idea any opinion about clean gold architecture TDD over over the last years
somewhat. So for example, it doesn't bother me that the agents don't do the human TDD thing, right? The agents will just write a bunch of tests and then make them pass. And that doesn't bother me. And I don't restrict the agents to the smallalness of functions that I would restrict a human to. So in numeric terms, I would restrict a human to a crap value of four, but I let the agents have a crap value of six. And it might let them have a crap value of eight because the agents have a better short-term memory than a human does. Agents can keep several dozen pretty well and they can manipulate them pretty quickly.
So in that sense, I think there are threshold differences, not principal differences, but threshold differences. I think we can be a bit more relaxed with the agents in terms of function size and testing discipline and so on and then we counter that on the other side with these deterministic tools that they simply cannot violate. Yeah.
I guess then it becomes also uh like the question is when we if we want to review this code and we have this more relaxed thresholds we need to be a bit less biased about about our past because maybe if I see like a function with eight arguments I would say oh my god what you did there but now say okay maybe the agent is better if the agent does the thing I I don't see what was there and I have a better day
it's sort of amusing arguments, I'd still make them change it.
Yeah.
Yeah. Right.
I might, you know, I usually don't like more than three. If I saw them using four or five, I might forgive it, but I'm not going to forgive eight.
All right.
So, you know, I I do spot checks on the code, but very light, very light spot checks. Usually, it's almost like blurring my eyes, right? Like I'll put some code on the screen and instead of reading the code, I'll just kind of blur my eyes and look at the shape of it. think, okay, that looks like a reasonable shape, and I don't really care what they did inside there as long as the tests are all passing. And I look at the names of the functions. I pay special attention to the names of the functions, the names of the modules, and the names of the classes and things like that because I think that's important to them.
Yeah. Isn't that a technique that designers use for landing pages? They to see the text of headers.
Yes. Right. Look at it through paper, you know.
Yeah. Yeah. Exactly. Yeah. Okay. So, this practice is still important both for humans and now also for agents. When do you think uh pro engineers should pro engineers should step aside and say now it's time for a deep specialist to to come into play? So, where do super experts in a technology or in a technical vertical are important nowadays? And you're going to want that when you've got a deep technical problem to solve. So, for example, if you were training an AI, if you were writing the code deep down in the in the training module of the AI, well, you better have the mathematical background to do that, right?
Uh if you are writing the code that does finite element analysis over an airplane wing, you better have the mathematical background to deal with the you know the equations of state across a an airplane wing. If you are going to be writing the code that examines the output of the CERN accelerator, right? Looks at the traces through the accelerator. you better know what you're doing in there. So, you know, there are times when that deep technical knowledge is critical. You just have to have it. For most of business software, that is not the case.
Mostly, you know, we're just trying to cajul these machines into a nice convenient behavior for a set of customers and deep technical knowledge is not really required for that. But in some cases it is if you're writing a game engine, you're going to have to have pretty deep technical knowledge on the physics inside that game game engine and how you're going to cheat that physics so that you can get the performance you want. Yeah, I'm also thinking about like infrastructure of platform engineers. This seems like another group of engineers that need to be very good at that only even though if we think about it even they have a product and customers us.
So yeah, so it's it's always useful to have those kind of product thinking and design thinking skills, right? So so let's say that thanks to AI and building all the tools that you suggested, the static tools and deterministic tools, we create the famous factory. Right? Now this is this comp concept of the software factory, right?
Mhm. Do you think we can also get people from the other side to join building software? I mean like product managers and designers do they have will they be able to do that or what what are like the first principles they have to learn? What are the skills they have to learn? because I think for us engineers it's maybe a slightly easier to get on that side like learning about product and stuff than the other the other way because there's a lot of hard skills to be learned. So do you see anything happening in that sense?
I think the the advent of AI makes it easier for less technical people to get involved with the building of software systems and that's not necessarily a bad thing. Our industry has been a constant move in that direction. Right? So back in the very early days, programmers used to program by literally punching holes in paper tape. That was in the 1940s and the 1950s. And then, you know, Grace Hopper comes along and says, "Sometimes we might want to run a program that we call a compiler that will translate a slightly higher level code down into the paper tape code." And the programmers at the time were in up in arms.
You're going to make it so easy for people to write code that we won't have jobs anymore. And this has happened at every stage like this. You know, when eventually forran and cobalt came out, all the assembly language programmers were like, "Oh, you just made it so simple." When OO came out, this was fascinating. In the 1980s when OO first came out, there was this backlash. Oh my god, you're making it so simple for everyone that anyone can write code. This has been a constant a constant issue throughout our industry and it's always nonsensical. Yes, it's okay if some people can can write, you know, VBA.
They're not going to be writing deep technical systems, but they can do some spreadsheets. It's okay if some people can write a few prompts and get the system to behave in a in a better way. But there is no replacing the software engineer who has deep insight into what's going on inside that system and can develop the mental model of the system and be skeptical about how it behaves and pose the challenging tests and the challenging trials to make sure that the system is behaving properly. You know, so we are not out of a job just because some managers can come in and maybe write a few nice prompts.
Mhm. If you're hearing something, it's a generator outside. No worries.
Yeah, I completely agree. It's like I can see product managers and designers having a lot of fun with these tools because they can bring ideas to life way easier. And
yeah,
I see that as a communication tool, right? So instead of just talking and telling me in words what you want, you just you create this nice tool and the idea you have and you can tell me like you can show me what what you have in mind. Robert, I think we are at the end of this episode. It's been great having you here. Where can people follow you if they have any questions or just follow you in general where they can find you?
F I I spend a little time on X from time to time. used to be called Twitter, now it's called X. And my handle there is Uncle Bob Martin. And you can go to my website, which is just is cleancoder.com. And you can go to my video website, which is cleancoders.com. All right. Any spoilers for any new interesting books coming out?
Submitted the manuscript for agentic discipline title that I've
Looking forward to read it. Thank you again, Robert.
