Runtime Arguments
Conversations about technology between two friends who disagree on plenty, and agree on plenty more.
Runtime Arguments
40: Cargo Cult Programming
Use Left/Right to seek, Home/End to jump to start or end. Hold shift to jump forward or backward.
When are you programming, and when are you just pretending ... really, really, well?
Cargo cult science is a term Richard Feynman invented to describe one way of doing science wrong. The computer science world has adapted the label to "cargo cult programming". When you copy/pasta from Reddit or Stack Overflow or from a chat bot or from someone else's project, but you don't understand why the pasted code helps or what could prove it wrong, you aren't doing the job. You're not falling down on purpose, though! You're doing the thing we all do so well: you're fooling yourself. Feynman warns "You must not fool yourself, and you are the easiest person to fool!"
This episode is short, but especially cogent in the age of AI and Open Source.
Hosts:
Jim McQuillan can be reached at jam@RuntimeArguments.fm
Wolf can be reached at wolf@RuntimeArguments.fm
Follow us on Mastodon: @RuntimeArguments@hachyderm.io
If you have feedback for us, please send it to feedback@RuntimeArguments.fm
Check out our webpage at http://RuntimeArguments.fm
Theme music:
Dawn by nuer self, from the album Digital Sky
Welcome to Runtime Arguments. You know, during World War II, islanders in the South Pacific watched planes. full of cargo landing. Then the war ended. and the plane stopped coming. The islanders, they didn't know what was going on. They built runways, lit signal fires, and even put a man in a wooden hut wearing a carved wooden… wearing carved wooden headphones. Waiting for the planes to return. They did everything right, except it didn't work. In 1974, Richard Feynman, that's a name you've heard many times on our podcast. He used that story in a commencement speech at Caltech to describe something he called cargo cult science. Doing everything that looks right while missing what actually makes it work. Developers do it too. Today we're talking about cargo cult programming. I'm Jim McQuillan, and with me, as always, is my friend Wolf. Say hello, Wolf.
Wolf:Hey everybody!
Jim McQuillan:So we had some feedback, right? We're gonna get right into it. We had some feedback from the last episode. First off, Wolf asked everybody what they thought about us doing some video content. Wolf, you wanna talk about that?
Wolf:Uh, we did get one user, one listener, who had an opinion on that, and it's a friend of the show, Marlon, who's smart. he was against. He says people can consume audio easily, uh, but video is not gonna fit on their commute. Uh, it might be that he had a slightly mistaken idea that we meant switching to video entirely. And not just, hey, we're gonna have video as a supplemental way to consume it. Um, but that's the opinion so far. He is thinking, no. And that's the only one we've gotten, so for now, it's no.
Jim McQuillan:It's 100% no at this point.
Wolf:Um… It is 100% now. And there was a tiny bit of feedback that I wanted to hit last time, and Jim reminded me.
Jim McQuillan:Yeah, yeah, yeah.
Wolf:I work with awesome people, and one of them… each of them has their own discipline. We've talked about my friend the mathematician before, and one of the people who works here is an extremely skilled mechanical engineer. His name is James Savage. He kindly allowed me to use his full name. I have a problem. When I go to a match, I have a backpack that I carry around that has all the stuff in it that you need at a match, which means magazines and tools and replacement parts. And here's the killer… ammo. Ammo is incredibly heavy. All the things I just said, you can carry fine. And then you put the ammo in, and you'd better be 23 years old, or you can't do it. So, I had been rolling my backpack around on, uh, one of those airport, uh, luggage, uh. caddy, whatever you would call it. It looks like a dolly. And the wheels are funny, they're like 3 wheels, because it can climb steps. But it was hard to hold my backpack onto that thing. Um… And I showed it to James, and he thought about it for a while, and I came in one day, and they were connected by an. orange piece of plastic that he had printed on his 3D printer, and it is perfection. You look at this thing, and you think, holy crap, that guy is as good or better at mechanical engineering.
Jim McQuillan:Oh, wow.
Wolf:than I am at the stuff I like to think I'm good at. So I wanted to shout out James. He built me something incredible and useful, and he wouldn't even let me give him money for it.
Jim McQuillan:You know, it's really nice having smart friends. It's even better when they have a 3D printer and they know how to use it.
Wolf:Yes!
Jim McQuillan:Yeah, so, uh, let's go back to Marlon again. He gave us some feedback on the episode, uh, our last episode. That was, uh, episode 39, uh, sometimes a complete rewrite is the right choice, and that's where I described, uh, a new system that I created for. managing, um, uh. workflow views and stuff for a medical practice. And what he said was spot on. He said, on your dashboard design, since you keep state in memory, you may have unconsciously made a decision. not to go beyond one web server. While that's okay for a small customer, if one day you have larger customers, that decision may bite you. A strong design principle of web applications is not to maintain state in the application server. State belongs in another layer in the caching. And I had talked about how I thought about using Redis. to store the state. And, um, I gave this a lot of thought. This wasn't a subconscious, uh, design decision. Uh, I gave it a lot of thought, and, uh, I just… you know, I had to make decisions, uh, as far as what I could accomplish, uh, in the time allotted. So I chose not to do, uh, a Redis-type server. Um, knowing that someday I may switch to that, but in terms of, uh, you know, one day having a larger customer, we specialize at my company, we specialize in mammography, uh, clinics, and… The customer I have is the largest mammography clinic in the country. I'm not too worried about getting a larger one. I wouldn't mind getting more of them, but in terms of large, I don't think I have to worry too much about that, and I'm going to go way back to something Wolf said in an episode long ago. And that is, I am not Google. Right? Marlon is thinking in terms of, you know, Marlon works for Meta. Meta has, uh, what, 3 billion users or something? They have to worry about large scale. That's not my world. Uh, but I am very conscious of the fact that if I do need to go larger. I may need to spread the load out among multiple servers, and at that point, we'll see where it takes us. Um… And speaking of that system that I talked about last week, I just want to report that that thing is rock solid. I put it into production three and a half weeks ago. I haven't had to restart it. I deployed it in a Docker container. And that thing is just running perfectly. There was one quote from one of the people who works with it quite a bit. She says, gosh, the difference in how fast these boards actually are compared to the old ones is really impressive. So I loved hearing that. They're getting what they… what they asked for. In fact, they're getting more than they asked for, and I'm really happy about that.
Wolf:I think they're getting what they didn't even know to ask for.
Jim McQuillan:Yeah, they got a lot more than they asked for. They didn't even know they wanted this stuff, and of course, now they want more, right? So I'm helping them a lot with creating views and converting views, and they are just going wild with the possibilities, and it's really kind of a fun time right now. Uh, for that project. Uh, so yeah. Yeah, Wolf, you had some more feedback, didn't you?
Wolf:Um, yeah, I guess word of our show is spreading around, and I worked for 8 years at Learning A to Z, uh, teaching kids to read. I didn't teach kids to read. I helped build the tools that we use to serve the web pages that. teach kids to read. Um, you know, I did the thing I do, but it was in the cause of something that I really believed in. And, uh, it was a great company, full of great people, and I got some email from, uh, one of my friends there. Uh, he did not give me.
Jim McQuillan:Sure.
Wolf:permission to use his name on the show, so I'm just gonna say, uh, friend of the show, Larry E. And, uh, he reports that, uh, he is enjoying it. Um, so I feel really good about that! Thanks, Larry!
Jim McQuillan:Yeah, it's nice to hear that there's somebody out there enjoying what we're doing, because basically, we're doing it because we enjoy it. And the fact that other people enjoy it as well, that's just icing on the cake. And I do love cake.
Wolf:You know, I love cake too.
Jim McQuillan:Yeah.
Wolf:I really knew. Oh!
Jim McQuillan:Yeah. Okay.
Wolf:I want to say one other thing. I have been listening to a new podcast. Well, it's not new. It's just new to me. A podcast from a company called Oxide. Uh, the podcast is called Oxide and Friends, and oh my god, everybody who works for this company is really smart! Um, and I was looking into the company. And I learned something very interesting. This company has a person. Who is, like me, mononymous. Her name is Rain. Umm.
Jim McQuillan:How?
Wolf:and she happens to be, uh, an aficionado of the source code control system Jujutsu, known by its practitioners as JJ, and she's the one who got Steve Klabnick involved in it. I follow Steve Klabnick on Mastodon. Boy, everybody is smart. I'm interested in this source code control system. I love this podcast. I love what these Oxide guys are doing. This is all fascinating to me. And it's cool that there are other anonymous people in the world in my field. I kind of like that.
Jim McQuillan:That's… that's… that's pretty cool. I know you've been talking about Oxide. It sounds like an amazing company. They do some really neat stuff. They build their own hardware and software and… Everything. It's kind of neat.
Wolf:Yeah, uh, like, the value proposition is everything I like. It is a company with values building hardware that is. trustable to a degree where I would trust it. Like, they're doing the math the way I would do it. And people just don't do that very often. And they're building it, um…
Jim McQuillan:Yes.
Wolf:to be affordable. What an amazing and great combination!
Jim McQuillan:Really? from what I've heard about them, I would expect their stuff to be extremely expensive. For the effort that they put into it, it's not really mass market at all. It's…
Wolf:I mean, you would think that, but I don't think that's the idea. I think the idea is, look at this. Here's the thing.
Jim McQuillan:Wow.
Wolf:that you want more than any other implementation of it, and also, it costs less. That's what I, that's the impression I'm getting.
Jim McQuillan:That's pretty good. That's pretty good. Well, keep us tuned into what's going on there. You're on that podcast. And, uh, you're listening to the podcast, I want to hear more.
Wolf:I will let you know.
Jim McQuillan:So how was your week?
Wolf:Oh man, I've been working so hard. I have been just. uh, working very hard on a hunk of code here, um, where I work, which is another great company, Dynamic Map Platform. Um, the main thing that decides where I'm gonna go is, um, is the team. the right team? Do they have my values and will I learn? Are the problems going to be hard? The domain almost doesn't matter. What I care about is, am I working with good people on good problems and learning? And that's the case here. Lots of smart people, lots of hard problems, the domain is mapping and traffic and, you know, when you're in your car and you're looking at the infotainment system and it says turn left, that's about it. I've been working on a piece of software that has to match raw points to the actual piece of road they belong to. like, 800 million points a day, and it has to do it in less than a day. Um, and I'm doing pretty good. I, uh… it does take me about 17 or 18 minutes to actually download the file. But once I've got the file, I can generally do the whole job in just about 10 minutes.
Jim McQuillan:That's just, you've described that before, it just sounds like black magic to me.
Wolf:And to everyone I explain it to. But it is the thing I do. Optimization problems.
Jim McQuillan:But you've got it, you've got it figured out, right? So, um, you know, I've mentioned this before, we meet every Saturday for lunch in just south of Ann Arbor, and we have a nice little discussion, and last week I brought up something. I don't know if you guys suffer from this or not, but. You know, I work on a lot of projects, and I get really deep into the project, like this one I talked about last time. From June 1st until 3 weeks ago, I was immersed in that project. And when I finished, it was all great. And then a few days goes by, and sort of the, I don't know, I'm not sure quite what happens. This happens a lot to me, and that is something I call post-project. Depression. Where you work on a project and then it's done. And then you're kind of lost. I spent a good week sort of lost, not knowing what to do, not feeling like doing anything. I worked so hard on that and it was over and it's like, oh gosh. And of course there's a lot more projects for me to do. But sometimes it's overwhelming. There's so many things to do, I don't know where to start. So I suffered a good week of that post-project depression, but fortunately I came out of it. This week has been really good, very productive. But Wolf, do you have that problem when you finish a project? Or do you just go right into the next one?
Wolf:I for sure have it when I'm reading a book. If the book is good, I'm sad that the story is over, because I want to know what happened next.
Jim McQuillan:Oh, yeah.
Wolf:So that's absolutely the case. When I'm working on a project. I absolutely have had projects, but they're really big ones, where at the end. I didn't… feel like it was out of my system, like I wanted more of that thing.
Jim McQuillan:Yes.
Wolf:Back in the days of Full Write Professional. When… We were done. I didn't feel like I had finished writing word processors, and it took a long time until I allowed myself to detach from that. And the same thing with web browsers. It took a long time before I felt like.
Jim McQuillan:Yeah.
Wolf:I can let go of, but that web browser's not right, and that web browser's not right. Right? Like, eventually you get to the part where you're like.
Jim McQuillan:Yeah, yeah.
Wolf:Yeah, web browsers are whatever they are. That's fine, I'll use what they have, I don't need to write one myself.
Jim McQuillan:Sure, sure. Well, I'm happy to report I'm once again a member of the Productive Society. And I'm happy about that. Uh, one more thing that happened this week. Uh, last Saturday, I turned in a couple of older iPads to Apple. You know, you can do this trade-in thing, and they give you… They don't give you a cash form, but they give you Apple gift cards, which is alright. And my point was, I wanted to turn those in and buy a new iPad Mini, because I've had an iPad Pro and a regular iPad, I've had a few of them, and I just never really used them, but I always wanted something in a tablet. format, just not quite so big. You know, I had that 12.9-inch iPad Pro that was too big. I just never used it. So I thought, okay, well, I'll get an iPad Mini. So, last Saturday, I got on the web, and I ordered up an iPad Mini. And I swear, an hour later, I saw a rumor that Apple was going to be introducing a new one this week. So, uh, sure enough, on Monday, they introduced a new iPad Mini with OLED screen, a larger screen, um, faster, the A20 processor.
Wolf:Tell me you swapped out.
Jim McQuillan:everything, yeah. Well, I tried to cancel the order. Of course, Apple, once the order's in, they don't want you to cancel it, but they say just take it to the Apple store. So, uh… on… yeah, you could… well, with Apple, you could return it after 14 days, even if you opened it and used it. They'll take it back.
Wolf:unopened.
Jim McQuillan:and give you a full refund. But, uh, the, the, the, the iPad Mini showed up on Tuesday, I left it in the box, I took it to the Apple store Tuesday afternoon, they gave me my money back, and then on Wednesday, open, uh, order. pre-orders opened up, so I ordered it on Wednesday, the new one, and it's, like, $100 more, but… It's better, right?
Wolf:Or you could spend an extra thousand and just get the duo.
Jim McQuillan:I don't want the duo. Have you seen all the people complaining about the screen cracks and stuff? I'm gonna wait until the…
Wolf:No, I haven't seen anything. I've been too busy.
Jim McQuillan:Uh, there's been a lot, but… yeah… I'm not ready for the Duo, and I don't… I didn't want to spend $2,000 on it. So, uh, anyway, I'll have the new iPad Mini next Friday, so I'm kind of looking forward to that. But it was kind of an adventure, you know, that thought of, oh God, they just introduced a new one. But, uh, yeah! Anyway, so, you know, I'm gonna mention Marlon one more time. Our next episode, um… is gonna feature Marlon as a guest. He's a brilliant engineer, our very first guest. We're gonna see how that works. It's gonna be new territory for us. I've known Marlon for at least 25 years, and it's gonna be a lot of fun. We're gonna be talking about writing efficient code.
Wolf:Our very first guest.
Jim McQuillan:And, you know, where he works, they write code that's very efficient. If they do something that's a few milliseconds slower. They notice it. They do a lot of, he works on libraries and stuff.
Wolf:And do you know how they notice it? They write tests.
Jim McQuillan:Yes. Yeah, and I think their tests are very, very extensive and they do things like timing in their tests and make sure that they didn't make something slower than it used to be. So he's gonna be talking about that. I'm really looking forward to that. It should be a lot of fun.
Wolf:So.
Jim McQuillan:Um, yeah.
Wolf:Before you hand it over to me, let me ask you one embarrassing question.
Jim McQuillan:Embarrassing for who?
Wolf:Speaking. Embarrassing for you. Speaking of tests.
Jim McQuillan:No, I haven't written tests yet.
Wolf:Uh, is it still on the plan? What, what is your thinking? And what's in the way? Is there any way I can help, we can help, anybody, anything?
Jim McQuillan:Yes. Yes. What's in the way is other things that have to get done and I need to carve out some time. Yeah, the way I work for my customers is we get a whole lot of stuff done until about December.
Wolf:Always.
Jim McQuillan:And then things get quiet. So I'm sort of looking forward to December as a chance for me to do some of the things that I haven't been able to do normally. And, um, I really should have some tests in that new system that I created. Uh, because we're, you know, we're gonna make changes to it, and it'd be nice to have tests. So, yeah.
Wolf:Uh, yep, New Code is a great place to write tests.
Jim McQuillan:That's the plan. Yep.
Wolf:Because. You're working on it, and it's new, and you're writing new things, and now would be a great time to prove they work.
Jim McQuillan:Yeah. You're right.
Wolf:And like I said before, um…
Jim McQuillan:You're right.
Wolf:AI is good at writing tests, but, you know, you gotta keep a leash on it like you normally do.
Jim McQuillan:Sure. Sure.
Wolf:Test the promises, not the implementations.
Jim McQuillan:Right. All right. You know what? Let's get into the meat. Let's see what Wolf has to say about cargo cult programming. So, Wolf. What do you got?
Wolf:Well. I don't want to make this. Super complicated. Let me tell you. Let me start at the inside and work my way out. Dick Feynman, super smart guy. He… said something incredibly important. And, um… I'm gonna open and close with this thing. He said that one of the most important things is. That you must not fool yourself. And you are the easiest person to fool. Uh, and in this statement, he's talking about everyone, each of us. If there's anyone we can fool, it's ourselves. And you are so tempted to fool yourself. When you're a super young programmer, um, and you're just starting out. When there's a bug, you immediately go to. oh, it's a bug in the library, it's a bug in the compiler, it's a bug in the this or the that, right? And…
Jim McQuillan:Right. Who here has never said it must be a bug in the compiler?
Wolf:And as you get older, you realize, oh, it's almost certainly a bug in my code. I'm probably using something wrong. It's not as often that you've done something wrong. It's usually where two different pieces of code. rub up against each other. It's where they touch. One doesn't understand the other. They don't agree. Ahem. And then, you get the opposite problem. You will fool yourself and think it's some problem in your code. And that rare occasion, it IS a bug in the compiler. I've been there! I've seen it! I have seen a bug where the, uh, compiler. put a zero in a place where it wasn't supposed to, and that was the bug. So, anything is possible, and you need to be open to anything. You need to figure out what's what, and you need to understand.
Jim McQuillan:Yep.
Wolf:what's going on underneath. Now, Dick Feynman was a scientist, and he… and a physicist, and a mathematician, all those things go together to be what he was. So when he talked about cargo cult science. He was applying it to those things, and what he meant was, when you did something. That was the right shape. It looked like science. But it wasn't really science. Um… It didn't… like, it was a thing you didn't understand, or didn't actually prove. It was a place where you fooled yourself. The whole… basis of science is the scientific method. And the scientific method is, you try to explain things by. forming theories and then disproving your theories. It's very hard to prove something true. It's much easier to prove something false. And if you can. zero in on the truth by disproving all the untruth around it, you can eventually get to a part that is. Clean enough to describe what you're seeing. Uh, to a degree that you can't do any better. That doesn't mean you're right. It just means you can't do any better. That's why we call gravity a theory. We're not 100% sure we understand how gravity works. But we've got a pretty good idea of about a billion different things that aren't true about it. Nobody has a better idea of what gravity is than our theory of gravitation.
Jim McQuillan:Sure.
Wolf:So. We're going to use what we've got for now. things do get better. And that's why there are, uh, categories of people who don't believe in science or scientists. It's because, in their minds, we keep. Changing our minds. Well, yeah, we're changing our minds. Every time you learn something, your underlying model gets better, and the way you predict things has, uh… hopefully better probabilities for the particular things that work. We talked about this in depth in the episode on Bayes. It's all about adapting as you learn. If you learn new stuff and you don't change. Guess what? You didn't actually learn anything. Because that's what learning is. It's you changing. For Feynman, uh, the missing ingredient when people do this cargo cult science is scientific integrity. Um, when you're performing your experiments, you need to report what could make your result wrong. Not only what it… supports, but what would disprove it? And you need to lean over backwards. Um, you can't favor your answers. You need to look at the big picture. There was a case where a psychologist, whose name was Young, by the way, controlled every possible cue that the rats could use to help them navigate through the maze. Umm. Because, you know, they were navigating through the maze, and his supposition was that they were learning the path. But it turned out that, uh, they could actually use the sound transmitted by the floor, and nobody downstream ever. Verified. that that was controlled for. And the version for us, for programmers, is when you've got some test. And to you, it's beautiful because it's green. but it doesn't actually test the right thing, and you didn't prove that it tests the right thing. When you write a test. First, you run it so that you can see it fail. And then you fix the thing it's supposed to test. And you run it, and you watch it be green. That's half your proof. And then you look inside the test to see, did it test the promise, or did it test the implementation? And that's the other half. Now you know. Um… In the ah. Challenger. situation. Uh, for those of you who might have been alive then, in the 80s, uh. the Challenger exploded on launch, killing several astronauts and a teacher, Krista McAuliffe. Umm. And… NASA did not want to understand exactly why it exploded. Uh, they wanted a reason that exploded that didn't land back on them. The real reason it exploded… Was. because of a problem that the engineers actually pointed out to NASA. They said, don't launch, because there's problems here. And NASA said, you're wrong, we're launching anyway. So the last thing they wanted to hear was that the engineers were right. Um… I'm gonna quote, For a successful technology, reality must take precedence over public relations, because nature cannot be fooled. Ah. The programmer version is Green Dashboards and Demo Day Confidence. Feynman's specific complaint was that management put the odds of failure of the Challenger launch. in the range of 1 in 100,000, while the engineers said it was closer to 1 in 100. And it flew before without failing, was treated as evidence it was safe. And as you all know, it didn't before, or it never existed before, or this has never happened before. That's a thing frequentists say from my Baze episode. Um…
Jim McQuillan:Yeah, yeah.
Wolf:that does not influence what Bayesians say, um, and the Bayesians were right. So, what is the hard question? Uh… The truth is that nobody understands the whole stack of anything. Our world is complicated, and everything that, uh, in engineering. requires, so much of it is going to be an abstraction you didn't build. For both me and Jim, for instance. Key to the functioning of the systems we make are that the database works. But I'm not looking at the database code, what's actually in Postgres.
Jim McQuillan:Right, we trust it.
Wolf:Tip. Right, we trust it. It's an abstraction. We believe that they have tests and they do their jobs. Um, and we're happy that they do, because that turns out to be trust well-placed. Um… So, the question is, what makes something a trustable, healthy abstraction? And what makes it me? Cargo Cult Engineering. I'm. Well, here's a working test. Do it's not do you understand it? It's. Umm. Do you know what would show you it is wrong? An abstraction with a contract and a failure, you could notice, is fine. Uh, but a ritual you cannot falsify. is cargo. Umm. Anything. That. works, but you don't know why it works. is the trap. So, let me give you some examples from the modern day and age. When you… Copy pasta, some line from Stack Overflow. When you let AI solve your problem by adding a line to your… build configuration, but you don't look at the line or understand it. If you see how someone else is doing it, and you grab their solution, and don't investigate any deeper. All of these are pieces of code that. You are treating like they're an abstraction. Because you don't look inside, they're a black box, but they're not an abstraction. They are a ritual that you are trusting because they came with some authority. And. My friends, authority is not good enough.
Jim McQuillan:But I understand everything you're saying, but how does that compare with trusting your database? I don't know what's going on inside that machine.
Wolf:But. Trusting your database is different because you have arranged the scenario such that you can know. when the database fails. And you can figure out what about your interaction with the database went wrong. If your build fails, even after you put that magic line in it. Do you know why? You don't.
Jim McQuillan:Okay.
Wolf:In my personal life, as you well know, I have a problem. A problem with authority. I mask it pretty well, but the worst possible thing that a person with authority can say to me. Is. I'm going to say it in the way that I hear it, but this isn't the way they say it. They will say to me, it is not possible to do that. I'm. As though they have evidence that that is a thing that cannot be done. I'm not saying, hey, you can't do that. Because, hey, you can't do that, could mean a policeman is telling you, you can't go 80. Well, obviously, I can go 80. It's just not allowed. Um, so, I don't mean that. I mean when they say, by the way, uh, it is impossible to have an encryption system.
Jim McQuillan:Oh, yeah.
Wolf:Where there is a back door, but only the good guys can use it. Right? Now…
Jim McQuillan:Sure.
Wolf:That turns out to be true. There is no answer where you can have a backdoor and only the good guys can use it. In this case, I'm not the one who refuses that statement. Politicians are. They believe. That we're smart, we could just figure it out and give it to them. Uh, and I'm like, nope, you cannot do that. That is not how it works. Uh, so.
Jim McQuillan:Because nobody knows who the good guys are.
Wolf:That's just right.
Jim McQuillan:Yeah.
Wolf:And I'm going to say it in a different way. The dissemination of information is non-ergodic. Which means that, um… Once you learn something, short of a power drill to the skull, you cannot unlearn it. So, if you can get a hold of the back door, that's just information, and it goes where information goes, which is everywhere. And it can't be unlearned or prevented, and so… It's a thing you… it just doesn't happen. It's not the way people want it. So, the real thing here is understanding where to look deeper. Um… And today, the trap is AI. If you let AI write the answer for you. And you don't look, and you don't understand it, and it's not writing the right thing, and you never know. Guess what? You are a cargo cult programmer. You're doing something that looks like programming, but it's not. Because you don't understand what you made, you don't know if it does what you want, you don't know if you've met your definition of done. Um… So it's actually. A pretty simple. world a pretty simple idea that it is incredibly easy to solve our problems. But we're not actually solving them. A real solution is going to use your brain. That's our job. You can't abdicate using your brain. You have judgment. You have understanding. Um… Stack Overflow doesn't have those things. Claude doesn't have those things. ChatGPT doesn't have those things. It's on you. to use those things. and be a programmer. And we're not going to give those up just because we have better autocomplete, better editors, better typing. You are still going to do the thing you've been doing all along. Figuring out what's right and what works and why. So, um… Before, and this is for everybody, for every listener out there, before keeping a line you pasted. Just say out loud what it does, and what would break if you removed it, and if you can't… Remove it and see what breaks. Why is that line important? What does it actually do? For tests, make it fail first. Writing a test that starts green and never turns red is pointless. You make the test red FIRST. FIRST prove it doesn't work. THEN. Write the code that makes it work, and watch it turn green for the right reason. It should be red for the right reason, and it should turn green for the right reason. With AI output. Ask for the evidence. Don't just look at it and say, well, I guess that's good. Figure out. Why is this right? What would make it wrong? And DON'T…
Jim McQuillan:So.
Wolf:Yeah.
Jim McQuillan:Are you saying, like, you're having a conversation with Claude? Right? And you ask it how to do something, and it gives you a chunk of code.
Wolf:Mm-hmm. Mmhm.
Jim McQuillan:and says, you know, this is the way to do what you're trying to do. Are you saying in that conversation, then you ask more about it? to… for it to describe what it's doing, and… and… because I've done that. I've… I've, uh, you know, I've…
Wolf:That's a good start. At the end of that conversation, did you understand the suggestion?
Jim McQuillan:Yes. Right, right.
Wolf:Like, ask Claude all you want, but at the end, you'd better understand it yourself, inside your own head.
Jim McQuillan:Sure. Sure, sure. Just today, I was working on, you know, for this system that I talked about earlier, we create these views that are for workflow, for managing workflow, and we've got a test system and a production system. And what I'm finding now, they're creating views in the test system. and now they want to move that view to production. And I don't… I don't have a sync thing built in where I can say, okay, now, you know, send this view over to the production system. But what I did create is the ability to export a view. to a flat file, and then import it into the other system. So I was trying to figure out how to do the upload, and we do uploads in our system of various things, documents and stuff, but I was trying to learn more about how the upload works, so I was working with Claude on that. And, uh, you know, I asked it for some code that would do the upload, and it gave me the input statement, input type file, blah blah blah. So I looked at it, I thought, well, that looks kind of neat. Now I asked it to describe what those attributes do. What are the choices for those attributes? And I really felt like I took my time to really understand how that thing worked. And it was Claude that helped me figure it all out. And I think that's kind of what you're talking about. Make sure that you understand what it produced for you. before you put that code into into use.
Wolf:Yeah, um… I am saying that, and whether you get to that understanding, uh, with Claude's help or not. It is your understanding, you've got to own it, and critical is… You can think. What would prove this wrong?
Jim McQuillan:Sure. Sure. Yeah, it's our responsibility to understand it because we're, you know, the code that I work on, I'm responsible for every bit of it, whether Claude helped me write it or not, I am responsible for it. I understand that. That's why I want to make sure I understand exactly what's going on.
Wolf:Exactly!
Jim McQuillan:I don't want to be blindsided by some decision that it made, right?
Wolf:Exactly and and. uh, to say something unpopular. That is why, um, vibe coding in its popular sense, uh, basically doesn't describe something that actually exists. Uh, when people use vibe coding to mean that Claude is helping a skilled programmer do the thing they do. But the programmer… still takes responsibility for every line of code, and understands it as though they wrote it themselves. You know, um… There is. A terrible movie. from an… kind of okay, kind of terrible book. The movie is very old, it is called, uh… Starship Troopers.
Jim McQuillan:Okay.
Wolf:And in Starship Troopers, which is written by Robert Heinlein, who has written many books that I liked, and then he kind of went crazy, and there's weird books he wrote that I don't like. In this… in this, uh, story and in the movie, uh, there's a… hard-ass teacher who is trying to get out of his class. The difference between a citizen. And. an ordinary person who lives in society. And in this world of Starship Troopers, only people who have served in the military. are citizens.
Jim McQuillan:Hmm.
Wolf:they have the right to vote and do, like, certain things that regular people can't do, because they didn't do this. And he asks, what is the difference? Um, and… Uh, the answer that he gets is just somebody quoting straight out of the book. But. At the end of the movie. Um… Some the the same person who gave the book answer. gives that answer again, but with real understanding. And the answer is, and I'm not going to come close to the real word, so please forgive me. The answer is, a citizen. takes personal responsibility. for the health of the system, of the people, of the world, and does what it takes to make things right. Whereas a person who's not a citizen just doesn't do those things. They don't take that responsibility. We, as programmers, make it our personal responsibility. to understand and understand. validate the behavior of the code we write, no matter how we wrote it. I don't care if Autocomplete gave it to you, if Claude gave it to you, if you rolled dice or looked at chicken entrails, the code you committed is yours and you take personal responsibility. That you understand it, you understand why it's right, you test it to see if it can be wrong, and you are delivering your promises. So. I would like to end, and this is a short one, I would like to end the way I started. And that is… You need to bend over backwards and try everything to make sure you do not fool yourself. Because you are the easiest person to fool. Take a sip.
Jim McQuillan:Was that the mic drop? Yeah. All right. Well, thanks, Wolf. It's really interesting. Gives me a lot to think about.
Wolf:Thank you.
Jim McQuillan:somehow, I've been on this planet for a long, long time, and I've been a professional developer for almost that long, and I had never heard the term cargo cult programming. So when you proposed this topic, it's like, what is that? So I searched online for it. Yeah, okay, I know exactly what that is. I just didn't know the term. And it kind of… floors me that I didn't know that term, because it seems quite obvious. But yeah, that's neat. That's some neat stuff. So.
Wolf:Yeah, okay.
Jim McQuillan:Hey, if you made it this far, thanks for listening. We appreciate it. There are a couple of ways you can give us feedback. uh, our website, uh, runtimearguments.fm, uh, the show notes at the… that you can see in your, uh, podcast, uh, player, uh, it gives the, uh, information about how to… our website, and our email addresses, and our Mastodon accounts. Uh, we love feedback, um, it, it kind of helps, uh, fuel us as, as we develop these, these, uh, uh, podcast episodes, so thank you very much. Any last words, Wolf?
Wolf:I'm just happy that people are listening, and that they're getting stuff out of the show, and that we hear that more and more. If you've got stuff to say, do not be shy. Send us feedback, tell us where we're right, tell us where we're wrong, tell us what you want us to talk about. We want to know and thank you.
Jim McQuillan:Yeah, thank you. And as always, well, thanks for podcasting with me. This is always a blast, and we're having a good time. So, hey, thank you, everybody, and we'll see you next time.
Wolf:Thank you, Jim. Bye-bye.
People on this episode
Podcasts we love
Check out these other fine podcasts recommended by us, not an algorithm.
CoRecursive: Coding Stories
Adam Gordon Bell - Software Developer
Two's Complement
Ben Rady and Matt GodboltAccidental Tech Podcast
Marco Arment, Casey Liss, John Siracusa
Python Bytes
Michael Kennedy and Calvin Hendryx-Parker