October 17, 2024
WHO IS THIS EPISODE FOR?
Federal IT leaders, software developers, DevSecOps professionals, and government technology decision-makers interested in modernizing legacy applications and improving software development.
WHAT CAN YOU LEARN?
How generative AI can accelerate code refactoring, improve application performance, strengthen security, automate compliance, and modernize legacy systems while reducing development time and costs.
Joel Krooswik from GitLab has seen more code reviews than he can count. He has seen duplicate code, insufficient data, and insecure code. “Work harder” may be the maxim in the NFL, but this is a fool’s errand regarding software development.
Traditionally, a code review would yield remediation that would take hours and detailed work.
"Refactoring unto itself is not anew thing. The average developer spends time every day refactoring their code -- it's just something mundane . . . but AI led refactoring has created a whole new opportunity, something really, really interesting"
Joel Krooswyk, GitLab Tweet
During the interview today, Joel looks at how Artificial Intelligence can be applied to four areas:
- Clean code. A system may work now despite problems. However, it can fail once it is stress-assessed with mountains of data. Clean code means it is easier to scale.
- Speed. Humans may not be able to see system inadequacies that slow it down. AI can see log jams that a human cannot.
- Duplicate code. Various individuals have maintained older systems so that code may have been duplicated. Duplicate code is complex for humans to find but easy for AI.
- New features. Application “A” may run on a system with no problems; when updated, it may highlight issues you do not know exist. AI can look at code and allow for more accessible features.
If you enjoyed this episode, then you may want to listen to
Ep. 190 – Going Deeper with Federal User Experience
Connects well with the user experience improvements driven by AIOps.
Ep. 196 – AI in a World of Data Poisoning and Automated Chaos
Relevant to the risks of automation and AI integration in federal IT environments.
Speaker 1 00:00
Hey, John Gilroy here. Can artificial intelligence accelerate safe and secure software development? Hit the music, Manny. Welcome to the Federal Tech Podcast, the podcast that connects you to federal technology leaders. My name is John Gilroy, and I will be your moderator. Our guest today is Joel Kruzwick, Federal CTO at GitLab, and we are recording this at GitLab’s DevSecOps World Tour in lovely downtown Washington D.C. Well, Joel, I talk to a lot of people about technology. I hear buzzwords and popular terms all the time, and there’s a word that seems to be popping up more and more, and the word is refactoring. And I don’t want everyone to turn off this podcast, but I want you maybe give a bird’s eye view of what refactoring is and and what it means for the people in the federal government that want to improve their software.
Speaker 2 00:50
So refactoring unto itself is not a new thing. The average developer spends time every day refactoring their code. It’s just something mundane. It’s not something that we love in development, but it’s something that has to happen. But AI-led refactoring and what AI is doing to refactoring has created a whole new opportunity. Something really, really interesting. And so, as we chat through some of the refactoring things today, I think the AI angle of this is where things get exceptionally interesting because we’re now no longer just talking about the little things that we’re doing on a daily basis. While those still are in play, now we’re talking about getting into big legacy systems and converting them into a modern, more effective code. And once we go down that road, we’ve got some really interesting conversations that evolve. So, how can AI be leveraged to address the specific needs and constraints of public sector modernization? Well, there’s multiple avenues here. I think the first thing is, do we even know what’s running? Right, we’ve got code that’s running. It’s potentially running in some data closet someplace that we don’t want to open the door to, or it’s running on a mainframe someplace and it’s been there for years, for decades. And so, when we start thinking about this, the first question is, what does the code do? That’s an easy question to answer if people can understand what language it was written in, but if it’s written in SAS or Ada or COBOL, maybe Fortran, maybe Assembly, who knows who actually understands what that code does, who wrote that code. I keep hearing more and more that the people who wrote the code are no longer with us. It doesn’t mean no longer employed; it means literally have left the planet. And and I mean not to be indelicate, but that’s a really difficult situation for us to be in. Of anybody who understood that code is gone. How in the world do we modernize code like that? It’s not a simple process.
Speaker 1 02:53
So normally, let’s say we had a an application on an older piece of hardware that was very expensive to maintain, and you’d get a group of a team of software developers to try to pick through and understand what exactly the code was doing in order to transition it to a modern system. And so, what you’re saying is that there are methods, there are techniques now where you can use artificial intelligence to to look into that old system COBOL and understand. Oh, so this is what’s going on. So, if we make a transition to the cloud, it’s not going to be a lift and shift. It’s going to be an improvement and a reduction in cost.
Speaker 2 03:26
That’s exactly right. I don’t want you lifting and shifting anything. Don’t do that. The refactoring thing is interesting because there’s two different approaches. One is you can explain what the code does and then rewrite that code into a new language. That is a modernization approach. That’s very interesting because now AI is telling us, well, here’s what the original code did. Here’s what you can do to rewrite that code, or let me help rewrite that code for you. But that’s a two-stage approach. The other thing that’s becoming really popular now is kind of an iterative refactoring approach where you literally just have AI rewrite it for you. I kind of understand what this code is going to do. Take what it does today in that C language, and let’s move it over to a memory-safe language like Rust or something like that. And when we get into that space, AI is doing all the heavy lifting for us. And at that point, we’re approving it as it iteratively rewrites the code.
Speaker 1 04:23
Now here’s the problem. I remember last summer it was all kind of razzle dazzle AI this AI that and and we’ll write some code and it’ll finish off the code for us. It was great, right? Now the problem is is that it may not be optimized, and so if we go, I think we need a step beyond AI. Maybe we need smart AI or something that has guidelines. Or are you talked about when you were up on stage this morning about bowling and those guardrails and everything else? Maybe we need guardrails for the AI. And so I think that’s the approach that GitLab has with this product. It says, look, look, these are some options, and here are here are the safe options. I mean, that’s that’s what they look at.
Speaker 2 05:00
Isn’t it? It is, and and what the safety looks like is changing rapidly. I mean, AI is evolving so fast. When you and I first met, it was back in June of 24 at AWS, and we talked about some AI code generation stuff at that time. Just loosely, the acceptance rate on code has gone up nearly 4x since then. The amount of good code AI can write just in a short period of time has gone up dramatically. So when it comes to the safeguards, yes, we want to make sure we have them in place, but it’s also incrementally improving. So as it improves, those safeguards are there to keep us from going off the rails, but they’re not there so much anymore to keep us from doing the wrong thing, if you will.
Speaker 1 05:47
Well, you referenced artificial intelligence. I’m sure in the last four or five months, lots and lots of data has been collected, you know, petabytes of data. And so, can this refactoring help in application scalability?
Speaker 2 06:01
Yes, absolutely. In fact, some of the best stories I’ve heard around refactoring come with three typical outcomes. One is a dramatic reduction of the code base, like how much code does it take? And we’re hearing in some cases 80 to 90 percent less code, but the the application still functions exactly the same way, which is remarkable. But the other two outcomes are speed and scale. So things typically can run faster and run faster with a whole lot more load on them. Because of course, as you get out of what you had, which is typically a large monolithic application of some kind, you’re now taking advantage of the cloud, the microservices, all the cool things that are available. We can just do more with less.
Speaker 1 06:47
Now wait a minute, wait a cotton picking minute. We got people at three-letter agencies that are going to say, “Oh yeah, Joel, what about security? You’re forgetting security, aren’t you?”
Speaker 2 06:58
Of course, of course, you got to go there. Yeah, no. So, from a security perspective, this is what I love about the application of Gen AI across the whole application development ecosystem. Is it’s not just tied to code creation. Look, AI is going to make some mistakes. It’s going to create code that’s not the highest quality all the time. It’s going to create code that’s not bug-free all the time, but what AI does well is iterates on its own code. It writes its own tests. It scans and makes sure that the security scans have run, and then it works to remediate those vulnerabilities on our behalf. So as it goes through the system, right through this iterative cycle, it’s actually writing and cleaning its code, so ultimately I’m hoping we get there right where this code comes out squeaky clean day one. But for right now, what we have is these security vulnerabilities being addressed and remediated more quickly. And if you’ve used the term shift left a few times, as we’ve communicated, and the whole idea of shift left fatigue is very real. Developers get stuck in these vulnerabilities, fixing security things. This is what I expect to be able to help them not be stuck in vulnerability land for the rest of their day, and to be able to move back into what they really want to do, which is innovative, creative coding.
Speaker 1 08:18
There are people in Chicago, of all places, that may work for banks, and they’re using AI and DevSecOps too, and we know that. And they’re going to sit and whine and complain and go, “Yeah, we have a bad football team,” and nothing personal. And you know, we have this problem, this problem, and then people in Washington D.C. will go, “I wish I had it that easy.” I mean, there’s unique challenges with the federal government compared to using AI and DevSecOps. So, so maybe you can highlight some of those.
Speaker 2 08:44
You know, there are some unique ones, but it’s interesting you highlighted banks right out of the gates. And thanks for calling on my hometown. We won’t go there with the sports team right now. The reality is, regulated industry faces a lot of the same struggles. They have a lot of things running on a mainframe someplace that’s really old. What’s interesting in the government space is a lot of what the legislation and the policy has brought to bear creates new places we have to have compliance, and compliance has become kind of a bad word in many many different circles, right? Because how do we balance security and speed is the big question. Well, now it’s security and speed. Where does compliance fit in that? Do I have a new triangle here? What is this? And so compliance is something that we’re trying to automate at the same time. AI can help us real time with compliance by making sure that the things that we’re doing and the way that we’re executing things are done so in a compliant manner, and that’s a proactive thing. We’re no longer checking boxes on a clipboard someplace to make sure we’re compliant. We’re getting it done real time, and I’m excited about that.
Speaker 1 09:53
Okay, so let’s say I use Git Labs and I refactor a certain system. I mean, how do I know it’s working? I mean, really. Well, it’s improved. Oh, really? How? I mean, what are the tools? What are the metrics?
Speaker 2 10:04
So the metrics are: does it do exactly what it did before? Let’s start with that one, right? We want it to work exactly the same way and be seamless to the user. Yes, it will improve, but we we need the original operation to be seamless. And so, test driven development as a methodology is going to be very big in this environment. Where if we want to refactor something, we need to start with the tests of well, how did the application run day one? And once we know how it ran day one, now we can use those tests. Have AI help us recode this application. Have AI run its tests against its own code, and then we circle back and say, “Well, does everything still line up to where we started with this test-driven development methodology?” And it’s become something that I’m seeing more and more of as we look at refactoring and what’s happening in the federal space.
Speaker 1 10:54
I think the the overview here, the big picture, is the software development life cycle. All our listeners know what that is all about, and so what AI can do is it can take certain aspects of the SDLC and and and make it quicker, make it safer, make it faster, and and what you’re saying is that there’s ways to actually measure and have a metric on that activity.
Speaker 2 11:18
Yeah, absolutely. Yeah, so you know it’s interesting as we look at what AI can do today. How do we understand whether we’re improving or not? And it’s interesting because today AI is reactive. The whole idea that I need to to tell AI what I’m looking for and it will respond. It’s not doing anything proactively, but where we’re moving is proactive AI, and so when you think about it, today AI is an accelerator of what your current processes are. It’s just accelerating things. When it can be more autonomous and start to give you kind of advice, looking over your shoulder, that’s proactive. That’s autonomous AI, and at that point, it becomes a very different measurement. Now it’s not just about well, are we doing it faster? Are there fewer bugs? Now it’s are we getting all this stuff done real time? And so I liken it to this: if you’re if you’re looking at acceleration, you’ve probably seen a Transformers movie, right? Did you know there’s a Transmutators movie out there as well? It’s a copycat. It’s not a transformer. It’s trying to be, and that’s kind of where we are with AI today. Is it’s not quite there. It’s a transmutator, if you will, speeding up some things and and copying some efforts of others. But we’re entering a new era over the next, I would say, six to 12 months, where this all changes again, and measuring that is going to become a completely new ball game.
Speaker 1 12:43
So, you go in with your GitLab software, you refactor a certain application. It’s better. About a year ago, when I first saw some of these demonstrations, it would be, and we can write in the code like I mentioned earlier. The problem is, is where to get that code, and does have weaknesses? And so I guess the real question is: I mean, is there a way to have code suggestions where they could say, “This isn’t autofill. This is one way to solve this problem,” and then maybe an analyst has to take over. Who takes over from that situation?
Speaker 2 13:17
So I like to recommend the ability to prompt AI as a customizable approach, right? So when I recommend prompting, I never recommend, hey, just do a refactor or just explain this code to me, add a context, explain this code in a way I understand, refactor this to something that I know, and when it comes to prompting for code, I like to ask it for multiple responses, and a lot of times we don’t think about that. We just say, “Well, what’s it going to come back with?” That’s hopefully the best response. I like to say, “Give me three ways to solve that problem, and I’ll pick what’s best.” Right. So there’s always more things we can do with AI than what you see on the surface within an application like like GitLab Duo.
Speaker 1 14:01
Early this morning, I heard David DeSanto give a talk, and he’s a great line. He said, “Yeah, can’t say David without AI.” He talked about AI this morning, and he used three words that I wrote down. I said, “This applies to a lot of things: root cause analysis.” It’s like, okay, so why and and what what what little you know what little factor impacted something else impacted something else. You go back to the root cause, and this could be for many different aspects. But I think that’s what refactoring can do. It can boil it down. So so this this is the real problem in all this, and and it’s so elusive and so difficult to find.
Speaker 2 14:40
Yeah, that’s exactly right. And root cause analysis is one of those things that is. If I look back in time, if I’d had this seven or eight years ago, I can’t tell you how many hours I’d have back in my life. Right? The whole idea of root causes being analyzed for me dynamically is huge. And so when we get down into that root cause and we get assistance from general. Of AI in remediating that quickly. Oh, what a great experience that is for us! Because we just lose way too much time analyzing things, hours and hours. Gen AI is starting to give us answers in minutes.
Speaker 1 15:13
There are a lot of federal listeners who are interested in FedRAMP. Maybe you can give us an update on your FedRAMP status, and we can talk about what’s going on the next few years. What does GitLab have planned for helping federal leaders in the next few years? At the conference, they talked about self-hosted models. They talked about Duo Pro. They talked about workflow. So give us an update, up late update from Joel on your FedRAMP status, and talk about the future.
Speaker 2 15:39
Yeah. So GitLab dedicated for government, is it’s a SaaS platform that’s also FedRAMP in process at the moment, and we’re moving down that road. I hope to have an update for that for you as well soon. But currently in process and available, and so that is an interesting thing from the perspective of not only the FedRAMP side, but also just the lack of maintenance. Right? Nobody wants to apply all these patches and keep up with with their installations anymore. So having something that’s known and trustable out of the gates, especially from a client compliance perspective, is really helpful. But we’re also going down the road to your point of self-hosted AI models, and so not only we adding your context into your development environment, but you don’t have to call outside for it. One of the things people love about GitLab over the years is, hey, I got a self-managed instance. I set it up in my environment; it’s mine. I own it. You can now do the same thing with AI and have that AI model. So today, if you’re in a cloud, it’s going to reach out to something like Google or Anthropic and try to get information right back for for your code. This lets you take the reins, and so we’re pretty excited about this as well as our a lot of our customers who are seeking to host things like this internally. And of course, as our suite of AI features evolves, you’re going to be able to apply a lot more of those both in the cloud and in your self-hosted environment, end to end throughout the software development lifecycle.
Speaker 1 17:06
GitLab workflow. They talked about being proactive and saying, “Here’s the problem.” That’s that’s pretty impressive.
Speaker 2 17:16
Yeah. Oh, it’s fantastic. I’m so excited about this one today. If I want to engage with GitLab Duo or with an AI feature. I need to push the button. Push the button. Tell it what I want, and I’ll get something back. The autonomous or the proactive AI is going to say, “Hey, I found a bug over here. It looks like a big deal. This could be the next Log4j. Like, ooh, big deal, right?” The first question I got when Log4j came out was great. I found it once. How do I find it the rest of the time? Autonomous AI, the GitLab Duo running in the background, will be able to say it is in these 33 different places that you may not know about. Some of this is in maintenance mode code nobody’s looking at. We’re going to go ahead and fix this for you and have it ready to go. Just review this before it goes out, and having that all happen dynamically in the background saves us time and reduces that ability to breach a vulnerability just dramatically.
Speaker 1 18:11
If you listen to this podcast, you can rewind it to the beginning. I think in the first three minutes we use the word visibility, so it starts with visibility, comes back to visibility. Because what I have seen happen is, you know, the term used to be called shadow IT, where John would get his credit card and load up an instance of something. But what’s happening now is that Joel, the developer, has unintended consequences of something running that he didn’t realize he automated, and this is a problem with automation. And so, even a smart developer may not know they’re having these things run in the background, taking up cycles and and not even knowing it. And so maybe a tool that can add to the visibility would would reduce a lot of unneeded processes.
Speaker 2 18:50
Absolutely, absolutely, that’s the case. And and the sky’s the limit when we think about this, right? Because what are the other things we’ve been overlooking that are now going to be called to our attention?
Speaker 1 19:00
Well, duplicate code. I mean, how do you know? Of course, it’s been duplicated. How would you know? It’s so complex. But an AI system can say, “Here’s duplicate code.” Bang! The same result, but it’s a smaller footprint. All of a sudden, that achieved what you wanted. Is it can it still do the existing thing?
Speaker 2 19:14
Right. Yeah. And one of the biggest things I’m looking forward to is is AI tends to comment its code, so I’ll be able to actually read what’s going on there too.
Speaker 1 19:22
Yeah, Chris of all time. We talked about four or five months back how it’s changed a whole lot. I don’t want to look. Let’s just go crazy and talk about 2025. A year from now, is this going to quintuple again? Or I can’t see how it can’t.
Speaker 2 19:36
Right. Yeah. If you if you ask somebody today that’s been using generative AI in coding, hey, what’s coding assistance doing for your productivity? We’re hearing anywhere from 25 to maybe 55 percent. Right, it really depends on the environment. But if you look at where we expect to go, once all this is really rolled out and it’s proactive, and we can handle more code at any given time as far as generation and refinement. And all that, we’re looking to get to like a 7x multiplier, right? So you’re at maybe a half x right now. So I’m expecting this to dramatically improve over the next year, where we see productivity spike in ways we just haven’t seen in a very long time.
Speaker 1 20:18
You know, it’s exciting to be around in these years, because you and I have been around long enough to know how tedious and some people say tiresome coding was and testing it, and then having bugs and trying to find them. And what’s happening is, I guess the word is acceleration, huh? So what GitLab is helping is to accelerate application refactoring by using AI in the DevOps world.
Speaker 2 20:42
That’s correct. Yeah, today it’s an accelerant. Tomorrow the transformer.
Speaker 1 20:46
Speaking of the movie, well, we’re running out of time here, Joel. You have been listening to the Federal Tech podcast with John Gilroy. I’d like to thank my guest, Joel Kruzwick, Federal CTO of GitLab.
Transcribed by https://otter.ai
