TRANSKRYPCJA 🔗
WEBVTT
00:00:00.000 --> 00:00:08.000
Welcome to Runtime Arguments. You know, during World War II, islanders in the South Pacific watched planes.
00:00:08.000 --> 00:00:12.000
full of cargo landing. Then the war ended.
00:00:12.000 --> 00:00:27.000
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.
00:00:28.000 --> 00:00:30.000
Waiting for the planes to return.
00:00:30.000 --> 00:00:33.000
They did everything right, except it didn't work.
00:00:33.000 --> 00:00:48.000
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.
00:00:48.000 --> 00:00:53.000
Doing everything that looks right while missing what actually makes it work.
00:00:53.000 --> 00:01:03.000
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.
00:01:03.000 --> 00:01:05.000
Hey everybody!
00:01:06.000 --> 00:01:22.000
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?
00:01:22.000 --> 00:01:35.000
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.
00:01:35.000 --> 00:01:53.000
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.
00:01:53.000 --> 00:02:09.000
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.
00:02:08.000 --> 00:02:12.000
It's 100% no at this point.
00:02:09.000 --> 00:02:25.000
Um… It is 100% now. And there was a tiny bit of feedback that I wanted to hit last time, and Jim reminded me.
00:02:12.000 --> 00:02:15.000
Yeah, yeah, yeah.
00:02:25.000 --> 00:02:42.000
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.
00:02:42.000 --> 00:02:52.000
His name is James Savage. He kindly allowed me to use his full name. I have a problem.
00:02:52.000 --> 00:03:08.000
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.
00:03:08.000 --> 00:03:21.000
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
Load full transcript
better be 23 years old, or you can't do it.
00:03:21.000 --> 00:03:32.000
So, I had been rolling my backpack around on, uh, one of those airport, uh, luggage, uh.
00:03:32.000 --> 00:03:46.000
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.
00:03:46.000 --> 00:03:57.000
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.
00:03:57.000 --> 00:04:13.000
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.
00:04:02.000 --> 00:04:04.000
Oh, wow.
00:04:13.000 --> 00:04:24.000
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.
00:04:24.000 --> 00:04:32.000
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.
00:04:32.000 --> 00:04:33.000
Yes!
00:04:32.000 --> 00:04:51.000
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.
00:04:51.000 --> 00:04:54.000
managing, um, uh.
00:04:54.000 --> 00:05:11.000
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.
00:05:11.000 --> 00:05:18.000
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.
00:05:18.000 --> 00:05:32.000
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.
00:05:32.000 --> 00:05:34.000
to store the state.
00:05:34.000 --> 00:05:55.000
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.
00:05:55.000 --> 00:06:28.000
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.
00:06:28.000 --> 00:06:31.000
And that is, I am not Google.
00:06:31.000 --> 00:06:48.000
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.
00:06:48.000 --> 00:06:55.000
I may need to spread the load out among multiple servers, and at that point, we'll see where it takes us.
00:06:55.000 --> 00:07:11.000
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.
00:07:11.000 --> 00:07:34.000
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.
00:07:34.000 --> 00:07:39.000
I think they're getting what they didn't even know to ask for.
00:07:38.000 --> 00:07:57.000
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.
00:07:57.000 --> 00:08:01.000
Uh, for that project. Uh, so yeah.
00:08:01.000 --> 00:08:05.000
Yeah, Wolf, you had some more feedback, didn't you?
00:08:04.000 --> 00:08:21.000
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.
00:08:22.000 --> 00:08:41.000
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.
00:08:23.000 --> 00:08:24.000
Sure.
00:08:41.000 --> 00:08:56.000
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!
00:08:56.000 --> 00:09:07.000
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.
00:09:07.000 --> 00:09:09.000
And I do love cake.
00:09:09.000 --> 00:09:12.000
You know, I love cake too.
00:09:11.000 --> 00:09:14.000
Yeah.
00:09:12.000 --> 00:09:15.000
I really
knew. Oh!
00:09:14.000 --> 00:09:15.000
Yeah. Okay.
00:09:15.000 --> 00:09:30.000
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.
00:09:30.000 --> 00:09:42.000
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.
00:09:42.000 --> 00:09:51.000
And I learned something very interesting. This company has a person.
00:09:52.000 --> 00:09:58.000
Who is, like me, mononymous. Her name is Rain.
00:09:58.000 --> 00:09:59.000
Umm.
00:09:58.000 --> 00:10:00.000
How?
00:09:59.000 --> 00:10:17.000
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.
00:10:17.000 --> 00:10:34.000
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.
00:10:34.000 --> 00:10:36.000
I kind of like that.
00:10:37.000 --> 00:10:51.000
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.
00:10:49.000 --> 00:11:02.000
Yeah, uh, like, the value proposition is everything I like. It is a company with values building hardware that is.
00:11:02.000 --> 00:11:17.000
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…
00:11:13.000 --> 00:11:14.000
Yes.
00:11:17.000 --> 00:11:20.000
to be affordable.
00:11:20.000 --> 00:11:23.000
What an amazing and great combination!
00:11:20.000 --> 00:11:23.000
Really?
00:11:23.000 --> 00:11:34.000
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…
00:11:33.000 --> 00:11:42.000
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.
00:11:37.000 --> 00:11:38.000
Wow.
00:11:42.000 --> 00:11:48.000
that you want more than any other implementation of it, and also, it costs less.
00:11:48.000 --> 00:11:51.000
That's what I, that's the impression I'm getting.
00:11:51.000 --> 00:12:00.000
That's pretty good. That's pretty good. Well, keep us tuned into what's going on there. You're on that podcast.
00:12:00.000 --> 00:12:03.000
And, uh, you're listening to the podcast, I want to hear more.
00:12:02.000 --> 00:12:04.000
I will let you know.
00:12:03.000 --> 00:12:04.000
So how was your week?
00:12:05.000 --> 00:12:12.000
Oh man, I've been working so hard. I have been just.
00:12:12.000 --> 00:12:23.000
uh, working very hard on a hunk of code here, um, where I work, which is another great company, Dynamic Map Platform.
00:12:23.000 --> 00:12:32.000
Um, the main thing that decides where I'm gonna go is, um, is the team.
00:12:32.000 --> 00:12:47.000
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?
00:12:47.000 --> 00:13:03.000
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.
00:13:03.000 --> 00:13:17.000
I've been working on a piece of software that has to match raw points to the actual piece of road they belong to.
00:13:17.000 --> 00:13:33.000
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.
00:13:33.000 --> 00:13:40.000
But once I've got the file, I can generally do the whole job in just about 10 minutes.
00:13:41.000 --> 00:13:47.000
That's just, you've described that before, it just sounds like black magic to me.
00:13:46.000 --> 00:13:50.000
And to everyone I explain it to.
00:13:50.000 --> 00:13:54.000
But it is the thing I do. Optimization problems.
00:13:51.000 --> 00:13:57.000
But you've got it, you've got it figured out, right?
00:13:57.000 --> 00:14:14.000
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.
00:14:14.000 --> 00:14:27.000
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.
00:14:27.000 --> 00:14:43.000
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.
00:14:43.000 --> 00:14:44.000
Depression.
00:14:44.000 --> 00:14:48.000
Where you work on a project and then it's done.
00:14:48.000 --> 00:15:04.000
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.
00:15:04.000 --> 00:15:19.000
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.
00:15:19.000 --> 00:15:23.000
But Wolf, do you have that
problem when you finish a project?
00:15:23.000 --> 00:15:26.000
Or do you just go right into the next one?
00:15:28.000 --> 00:15:39.000
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.
00:15:33.000 --> 00:15:34.000
Oh, yeah.
00:15:39.000 --> 00:15:44.000
So that's absolutely the case.
00:15:44.000 --> 00:15:47.000
When I'm working on a project.
00:15:47.000 --> 00:15:54.000
I absolutely have had projects, but they're really big ones, where at the end.
00:15:54.000 --> 00:16:03.000
I didn't… feel like it was out of my system, like I wanted more of that thing.
00:16:02.000 --> 00:16:04.000
Yes.
00:16:03.000 --> 00:16:07.000
Back in the days of Full Write Professional.
00:16:07.000 --> 00:16:10.000
When… We were done.
00:16:11.000 --> 00:16:28.000
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.
00:16:23.000 --> 00:16:24.000
Yeah.
00:16:28.000 --> 00:16:33.000
I can let go of, but that web browser's not right, and that web browser's not right.
00:16:33.000 --> 00:16:38.000
Right? Like, eventually you get to the part where you're like.
00:16:34.000 --> 00:16:37.000
Yeah, yeah.
00:16:38.000 --> 00:16:45.000
Yeah, web browsers are whatever they are. That's fine, I'll use what they have, I don't need to write one myself.
00:16:43.000 --> 00:16:54.000
Sure, sure. Well, I'm happy to report I'm once again a member of the Productive Society.
00:16:54.000 --> 00:17:23.000
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.
00:17:23.000 --> 00:17:33.000
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.
00:17:33.000 --> 00:17:38.000
So, last Saturday, I got on the web, and I ordered up an iPad Mini.
00:17:38.000 --> 00:17:44.000
And I swear, an hour later, I saw a rumor that Apple was going to be introducing a new one this week.
00:17:44.000 --> 00:17:56.000
So, uh, sure enough, on Monday, they introduced a new iPad Mini with OLED screen, a larger screen, um, faster, the A20 processor.
00:17:53.000 --> 00:17:56.000
Tell me you swapped out.
00:17:56.000 --> 00:18:06.000
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.
00:18:06.000 --> 00:18:17.000
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.
00:18:08.000 --> 00:18:09.000
unopened.
00:18:17.000 --> 00:18:31.000
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.
00:18:31.000 --> 00:18:42.000
pre-orders opened up, so I ordered it on Wednesday, the new one, and it's, like, $100 more, but… It's better, right?
00:18:40.000 --> 00:18:45.000
Or you could spend an extra thousand and just get the duo.
00:18:44.000 --> 00:18:54.000
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…
00:18:51.000 --> 00:18:55.000
No, I haven't seen anything. I've been too busy.
00:18:54.000 --> 00:19:09.000
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.
00:19:09.000 --> 00:19:16.000
But it was kind of an adventure, you know, that thought of, oh God, they just introduced a new one.
00:19:16.000 --> 00:19:45.000
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.
00:19:28.000 --> 00:19:30.000
Our very first guest.
00:19:45.000 --> 00:19:53.000
And, you know, where he works, they write code that's very efficient. If they do something that's a few milliseconds slower.
00:19:53.000 --> 00:19:58.000
They notice it. They do a lot of, he works on libraries and stuff.
00:19:55.000 --> 00:19:58.000
And do you know how they notice it?
00:20:00.000 --> 00:20:04.000
They write tests.
00:20:03.000 --> 00:20:05.000
Yes.
00:20:05.000 --> 00:20:21.000
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.
00:20:22.000 --> 00:20:24.000
So.
00:20:22.000 --> 00:20:24.000
Um, yeah.
00:20:24.000 --> 00:20:30.000
Before you hand it over to me, let me ask you one embarrassing question.
00:20:30.000 --> 00:20:32.000
Embarrassing for who?
00:20:31.000 --> 00:20:32.000
Speaking.
00:20:32.000 --> 00:20:36.000
Embarrassing for you. Speaking of tests.
00:20:34.000 --> 00:20:38.000
No, I haven't written tests yet.
00:20:38.000 --> 00:20:48.000
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?
00:20:41.000 --> 00:20:42.000
Yes.
00:20:42.000 --> 00:20:43.000
Yes.
00:20:46.000 --> 00:21:02.000
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.
00:20:52.000 --> 00:20:54.000
Always.
00:21:02.000 --> 00:21:14.000
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.
00:21:14.000 --> 00:21:19.000
Uh, because we're, you know, we're gonna make changes to it, and it'd be nice to have tests.
00:21:19.000 --> 00:21:20.000
So, yeah.
00:21:19.000 --> 00:21:24.000
Uh, yep, New Code is a great place to write tests.
00:21:20.000 --> 00:21:22.000
That's the plan.
00:21:23.000 --> 00:21:25.000
Yep.
00:21:25.000 --> 00:21:27.000
Because.
00:21:27.000 --> 00:21:34.000
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.
00:21:30.000 --> 00:21:31.000
Yeah.
00:21:33.000 --> 00:21:35.000
You're right.
00:21:35.000 --> 00:21:38.000
And like I said before, um…
00:21:35.000 --> 00:21:36.000
You're right.
00:21:38.000 --> 00:21:45.000
AI is good at writing tests, but, you know, you gotta keep a leash on it like you normally do.
00:21:44.000 --> 00:21:45.000
Sure.
00:21:45.000 --> 00:21:47.000
Sure.
00:21:46.000 --> 00:21:49.000
Test the promises, not the implementations.
00:21:49.000 --> 00:22:00.000
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.
00:22:00.000 --> 00:22:02.000
What do you got?
00:22:01.000 --> 00:22:03.000
Well.
00:22:04.000 --> 00:22:07.000
I don't want to make this.
00:22:07.000 --> 00:22:12.000
Super complicated. Let me tell you.
00:22:13.000 --> 00:22:22.000
Let me start at the inside and work my way out. Dick Feynman, super smart guy.
00:22:22.000 --> 00:22:40.000
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.
00:22:40.000 --> 00:22:45.000
That you must not fool yourself.
00:22:45.000 --> 00:22:49.000
And you are the easiest person to fool.
00:22:49.000 --> 00:22:59.000
Uh, and in this statement, he's talking about everyone, each of us. If there's anyone we can fool, it's ourselves.
00:23:01.000 --> 00:23:06.000
And you are so tempted to fool yourself.
00:23:06.000 --> 00:23:13.000
When you're a super young programmer, um, and you're just starting out.
00:23:13.000 --> 00:23:19.000
When there's a bug, you immediately go to.
00:23:19.000 --> 00:23:28.000
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…
00:23:26.000 --> 00:23:32.000
Right. Who here has never said it must be a bug in the compiler?
00:23:32.000 --> 00:23:51.000
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.
00:23:51.000 --> 00:23:58.000
rub up against each other. It's where they touch. One doesn't understand the other. They don't agree.
00:23:58.000 --> 00:23:59.000
Ahem.
00:23:59.000 --> 00:24:07.000
And then, you get the opposite problem. You will fool yourself and think it's some problem in your code.
00:24:07.000 --> 00:24:21.000
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.
00:24:21.000 --> 00:24:37.000
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.
00:24:25.000 --> 00:24:26.000
Yep.
00:24:37.000 --> 00:24:53.000
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.
00:24:53.000 --> 00:25:00.000
He was applying it to those things, and what he meant was, when you did something.
00:25:00.000 --> 00:25:03.000
That was the right shape.
00:25:03.000 --> 00:25:07.000
It looked like science.
00:25:07.000 --> 00:25:21.000
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.
00:25:22.000 --> 00:25:34.000
The whole… basis of science is the scientific method. And the scientific method is, you try to explain things by.
00:25:34.000 --> 00:25:47.000
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.
00:25:47.000 --> 00:26:00.000
zero in on the truth by disproving all the untruth around it, you can eventually get to a part that is.
00:26:00.000 --> 00:26:05.000
Clean enough to describe what you're seeing.
00:26:05.000 --> 00:26:11.000
Uh, to a degree that you can't do any better. That doesn't mean you're right.
00:26:11.000 --> 00:26:18.000
It just means you can't do any better. That's why we call gravity a theory.
00:26:19.000 --> 00:26:25.000
We're not 100% sure we understand how gravity works.
00:26:25.000 --> 00:26:41.000
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.
00:26:33.000 --> 00:26:34.000
Sure.
00:26:42.000 --> 00:26:44.000
So.
00:26:44.000 --> 00:26:46.000
We're going to use what we've got for now.
00:26:47.000 --> 00:27:00.000
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.
00:27:00.000 --> 00:27:04.000
Changing our
minds.
00:27:04.000 --> 00:27:30.000
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.
00:27:30.000 --> 00:27:39.000
Guess what? You didn't actually learn anything. Because that's what learning is. It's you changing.
00:27:39.000 --> 00:27:51.000
For Feynman, uh, the missing ingredient when people do this cargo cult science is scientific integrity.
00:27:51.000 --> 00:28:07.000
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.
00:28:07.000 --> 00:28:13.000
Um, you can't favor your answers. You need to look at the big picture.
00:28:13.000 --> 00:28:28.000
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.
00:28:28.000 --> 00:28:30.000
Umm.
00:28:30.000 --> 00:28:50.000
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.
00:28:50.000 --> 00:28:52.000
Verified.
00:28:52.000 --> 00:28:55.000
that that was controlled for.
00:28:56.000 --> 00:29:02.000
And the version for us, for programmers, is when you've got some test.
00:29:02.000 --> 00:29:06.000
And to you, it's beautiful because it's green.
00:29:06.000 --> 00:29:16.000
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.
00:29:16.000 --> 00:29:25.000
First, you run it so that you can see it fail. And then you fix the thing it's supposed to test.
00:29:25.000 --> 00:29:29.000
And you run it, and you watch it be green.
00:29:29.000 --> 00:29:40.000
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?
00:29:41.000 --> 00:29:43.000
And that's the other half.
00:29:43.000 --> 00:29:44.000
Now you know.
00:29:44.000 --> 00:29:49.000
Um… In the ah.
00:29:50.000 --> 00:29:52.000
Challenger.
00:29:52.000 --> 00:29:59.000
situation. Uh, for those of you who might have been alive then, in the 80s, uh.
00:29:59.000 --> 00:30:09.000
the Challenger exploded on launch, killing several astronauts and a teacher, Krista McAuliffe.
00:30:09.000 --> 00:30:10.000
Umm.
00:30:10.000 --> 00:30:19.000
And… NASA did not want to understand exactly why it exploded.
00:30:19.000 --> 00:30:27.000
Uh, they wanted a reason that exploded that didn't land back on them.
00:30:27.000 --> 00:30:32.000
The real reason it exploded… Was.
00:30:32.000 --> 00:30:45.000
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.
00:30:45.000 --> 00:30:50.000
So the last thing they wanted to hear was that the engineers were right.
00:30:50.000 --> 00:31:07.000
Um… I'm gonna quote, For a successful technology, reality must take precedence over public relations, because nature cannot be fooled.
00:31:07.000 --> 00:31:09.000
Ah.
00:31:09.000 --> 00:31:23.000
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.
00:31:24.000 --> 00:31:39.000
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.
00:31:39.000 --> 00:31:53.000
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…
00:31:51.000 --> 00:31:53.000
Yeah, yeah.
00:31:53.000 --> 00:32:16.000
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.
00:32:16.000 --> 00:32:25.000
requires, so much of it is going to be an abstraction you didn't build.
00:32:25.000 --> 00:32:28.000
For both me and Jim, for instance.
00:32:29.000 --> 00:32:36.000
Key to the functioning of the systems we make are that the database works.
00:32:36.000 --> 00:32:43.000
But I'm not looking at the database code, what's actually in Postgres.
00:32:42.000 --> 00:32:44.000
Right, we trust it.
00:32:43.000 --> 00:32:44.000
Tip.
00:32:44.000 --> 00:33:00.000
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.
00:33:00.000 --> 00:33:10.000
Um… So, the question is, what makes something a trustable, healthy abstraction?
00:33:10.000 --> 00:33:12.000
And what makes it me?
00:33:12.000 --> 00:33:15.000
Cargo Cult Engineering.
00:33:15.000 --> 00:33:17.000
I'm.
00:33:17.000 --> 00:33:19.000
Well, here's a working test.
00:33:20.000 --> 00:33:24.000
Do it's not do you understand it?
00:33:24.000 --> 00:33:25.000
It's.
00:33:26.000 --> 00:33:28.000
Umm.
00:33:28.000 --> 00:33:40.000
Do you know what would show you it is wrong? An abstraction with a contract and a failure, you could notice, is fine.
00:33:40.000 --> 00:33:45.000
Uh, but a ritual you cannot falsify.
00:33:45.000 --> 00:33:46.000
is cargo.
00:33:47.000 --> 00:33:49.000
Umm.
00:33:49.000 --> 00:33:51.000
Anything.
00:33:51.000 --> 00:33:53.000
That.
00:33:53.000 --> 00:33:58.000
works, but you don't know why it works.
00:33:58.000 --> 00:34:00.000
is the trap.
00:34:00.000 --> 00:34:06.000
So, let
me give you some examples from the modern day and age.
00:34:06.000 --> 00:34:14.000
When you… Copy pasta, some line from Stack Overflow.
00:34:14.000 --> 00:34:27.000
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.
00:34:27.000 --> 00:34:36.000
If you see how someone else is doing it, and you grab their solution, and don't investigate any deeper.
00:34:36.000 --> 00:34:42.000
All of these are pieces of code that.
00:34:42.000 --> 00:34:45.000
You are treating like they're an abstraction.
00:34:45.000 --> 00:34:52.000
Because you don't look inside, they're a black box, but they're not an abstraction.
00:34:52.000 --> 00:34:59.000
They are a ritual that you are trusting because they came with some authority.
00:35:00.000 --> 00:35:01.000
And.
00:35:02.000 --> 00:35:06.000
My friends, authority is not good enough.
00:35:06.000 --> 00:35:15.000
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.
00:35:15.000 --> 00:35:17.000
But.
00:35:17.000 --> 00:35:27.000
Trusting your database is different because you have arranged the scenario such that you can know.
00:35:27.000 --> 00:35:37.000
when the database fails. And you can figure out what about your interaction with the database went wrong.
00:35:37.000 --> 00:35:43.000
If your build fails, even after you put that magic line in it.
00:35:43.000 --> 00:35:44.000
Do you know why?
00:35:45.000 --> 00:35:47.000
You don't.
00:35:47.000 --> 00:35:48.000
Okay.
00:35:49.000 --> 00:36:06.000
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.
00:36:06.000 --> 00:36:08.000
Is.
00:36:08.000 --> 00:36:16.000
I'm going to say it in the way that I hear it, but this isn't the way they say it.
00:36:16.000 --> 00:36:21.000
They will say to me, it is not possible to do that.
00:36:21.000 --> 00:36:22.000
I'm.
00:36:22.000 --> 00:36:40.000
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.
00:36:40.000 --> 00:36:53.000
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.
00:36:41.000 --> 00:36:42.000
Oh, yeah.
00:36:53.000 --> 00:37:00.000
Where there is a back door, but only the good guys can use it.
00:37:00.000 --> 00:37:02.000
Right? Now…
00:37:01.000 --> 00:37:03.000
Sure.
00:37:03.000 --> 00:37:05.000
That turns out to be true.
00:37:05.000 --> 00:37:11.000
There is no answer where you can have a backdoor and only the good guys can use it.
00:37:12.000 --> 00:37:21.000
In this case, I'm not the one who refuses that statement. Politicians are. They believe.
00:37:21.000 --> 00:37:25.000
That we're smart, we could just figure it out and give it to them.
00:37:25.000 --> 00:37:32.000
Uh, and I'm like, nope, you cannot do that. That is not how it works. Uh, so.
00:37:30.000 --> 00:37:34.000
Because nobody knows who the good guys are.
00:37:34.000 --> 00:37:37.000
That's just right.
00:37:35.000 --> 00:37:36.000
Yeah.
00:37:37.000 --> 00:37:48.000
And I'm going to say it in a different way. The dissemination of information is non-ergodic.
00:37:48.000 --> 00:38:00.000
Which means that, um… Once you learn something, short of a power drill to the skull, you cannot unlearn it.
00:38:00.000 --> 00:38:27.000
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.
00:38:27.000 --> 00:38:36.000
Um… And today, the trap is AI. If you let AI write the answer for you.
00:38:36.000 --> 00:38:44.000
And you don't look, and you don't understand it, and it's not writing the right thing, and you never know.
00:38:44.000 --> 00:38:49.000
Guess what? You are a cargo cult programmer.
00:38:49.000 --> 00:38:55.000
You're doing something that looks like programming, but it's not.
00:38:55.000 --> 00:39:09.000
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.
00:39:10.000 --> 00:39:12.000
A pretty simple.
00:39:12.000 --> 00:39:23.000
world a pretty simple idea that it is incredibly easy to solve our problems.
00:39:23.000 --> 00:39:27.000
But we're not actually solving them.
00:39:27.000 --> 00:39:32.000
A real solution is going to use your brain.
00:39:32.000 --> 00:39:39.000
That's our job. You can't abdicate using your brain.
00:39:39.000 --> 00:39:44.000
You have judgment. You have understanding.
00:39:44.000 --> 00:39:49.000
Um… Stack Overflow doesn't have those things.
00:39:49.000 --> 00:39:55.000
Claude doesn't have those things. ChatGPT doesn't have those things.
00:39:55.000 --> 00:39:58.000
It's on you.
00:39:58.000 --> 00:40:01.000
to use those things.
00:40:02.000 --> 00:40:13.000
and be a programmer. And we're not going to give those up just because we have better autocomplete, better editors, better typing.
00:40:13.000 --> 00:40:19.000
You are still going to do the thing you've been doing all along.
00:40:19.000 --> 00:40:24.000
Figuring out what's right and what works and why.
00:40:24.000 --> 00:40:35.000
So, um… Before, and this is for everybody, for every listener out there, before keeping a line you pasted.
00:40:36.000 --> 00:40:47.000
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.
00:40:48.000 --> 00:40:56.000
Why is that line important? What does it actually do? For tests, make it fail first.
00:40:56.000 --> 00:41:02.000
Writing a test that starts green and never turns red is pointless.
00:41:02.000 --> 00:41:09.000
You make the test red FIRST. FIRST prove it doesn't work. THEN.
00:41:09.000 --> 00:41:20.000
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.
00:41:21.000 --> 00:41:23.000
With AI output.
00:41:23.000 --> 00:41:31.000
Ask for the evidence. Don't just look at it and say, well, I guess that's good. Figure out.
00:41:31.000 --> 00:41:35.000
Why is this right? What would make it wrong?
00:41:35.000 --> 00:41:37.000
And DON'T…
00:41:36.000 --> 00:41:37.000
So.
00:41:37.000 --> 00:41:39.000
Yeah.
00:41:38.000 --> 00:41:43.000
Are you saying, like, you're having a conversation with Claude?
00:41:43.000 --> 00:41:49.000
Right? And you ask it how to do something, and it gives you a chunk of code.
00:41:44.000 --> 00:41:45.000
Mm-hmm.
00:41:49.000 --> 00:41:50.000
Mmhm.
00:41:49.000 --> 00:41:57.000
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?
00:41:57.000 --> 00:42:04.000
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…
00:42:03.000 --> 00:42:09.000
That's a good start. At the end of that conversation, did you understand the suggestion?
00:42:04.000 --> 00:42:05.000
Yes.
00:42:08.000 --> 00:42:11.000
Right, right.
00:42:10.000 --> 00:42:18.000
Like, ask Claude all you want, but at the end, you'd better understand it yourself, inside your own head.
00:42:17.000 --> 00:42:18.000
Sure.
00:42:18.000 --> 00:42:34.000
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.
00:42:34.000 --> 00:42:39.000
And what I'm finding now, they're creating views in the test system.
00:42:39.000 --> 00:42:53.000
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.
00:42:53.000 --> 00:43:06.000
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.
00:43:06.000 --> 00:43:14.000
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.
00:43:15.000 --> 00:43:30.000
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.
00:43:30.000 --> 00:43:37.000
And I think that's kind of what you're talking about. Make sure that you understand what it produced for you.
00:43:37.000 --> 00:43:40.000
before you put that code into into use.
00:43:40.000 --> 00:43:49.000
Yeah, um… I am saying that, and whether you get to that understanding, uh, with Claude's help or not.
00:43:49.000 --> 00:43:57.000
It is your understanding, you've got to own it, and critical is… You can think.
00:43:57.000 --> 00:44:01.000
What would prove this wrong?
00:44:00.000 --> 00:44:01.000
Sure.
00:44:02.000 --> 00:44:03.000
Sure.
00:44:03.000 --> 00:44:18.000
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.
00:44:18.000 --> 00:44:21.000
That's why I want to make sure I understand exactly what's going on.
00:44:18.000 --> 00:44:20.000
Exactly!
00:44:21.000 --> 00:44:27.000
I don't want to be blindsided by some decision that it made, right?
00:44:26.000 --> 00:44:29.000
Exactly and and.
00:44:29.000 --> 00:44:43.000
uh, to say something unpopular. That is why, um, vibe coding in its popular sense, uh, basically doesn't describe something that actually exists.
00:44:44.000 --> 00:44:54.000
Uh, when people use vibe coding to mean that Claude is helping a skilled programmer do the thing they do.
00:44:54.000 --> 00:45:09.000
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.
00:45:09.000 --> 00:45:11.000
A terrible movie.
00:45:11.000 --> 00:45:23.000
from an… kind of okay, kind of terrible book. The movie is very old, it is called, uh… Starship Troopers.
00:45:23.000 --> 00:45:25.000
Okay.
00:45:23.000 --> 00:45:49.000
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.
00:45:50.000 --> 00:45:52.000
And.
00:45:52.000 --> 00:46:04.000
an ordinary person who lives in society. And in this world of Starship Troopers, only people who have served in the military.
00:46:04.000 --> 00:46:06.000
are citizens.
00:46:05.000 --> 00:46:07.000
Hmm.
00:46:06.000 --> 00:46:26.000
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.
00:46:26.000 --> 00:46:27.000
But.
00:46:27.000 --> 00:46:30.000
At the end of the movie.
00:46:30.000 --> 00:46:37.000
Um… Some the the same person who gave the book answer.
00:46:37.000 --> 00:46:51.000
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.
00:46:51.000 --> 00:46:55.000
takes personal responsibility.
00:46:55.000 --> 00:47:06.000
for the health of the system, of the people, of the world, and does what it takes to make things right.
00:47:06.000 --> 00:47:13.000
Whereas a person who's not a citizen just doesn't do those things. They don't take that responsibility.
00:47:13.000 --> 00:47:20.000
We, as programmers, make it our personal responsibility.
00:47:20.000 --> 00:47:23.000
to understand and understand.
00:47:23.000 --> 00:47:32.000
validate the behavior of the code we write, no matter how we wrote it.
00:47:32.000 --> 00:47:49.000
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.
00:47:49.000 --> 00:48:00.000
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.
00:48:00.000 --> 00:48:02.000
So.
00:48:02.000 --> 00:48:20.000
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.
00:48:20.000 --> 00:48:26.000
Because you are the easiest person to fool.
00:48:27.000 --> 00:48:29.000
Take a sip.
00:48:29.000 --> 00:48:32.000
Was that the mic drop?
00:48:33.000 --> 00:48:43.000
Yeah. All right. Well, thanks, Wolf. It's really interesting. Gives me a lot to think about.
00:48:34.000 --> 00:48:35.000
Thank you.
00:48:43.000 --> 00:48:56.000
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.
00:48:56.000 --> 00:49:11.000
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.
00:49:11.000 --> 00:49:16.000
But yeah, that's neat. That's some neat stuff. So.
00:49:11.000 --> 00:49:13.000
Yeah, okay.
00:49:16.000 --> 00:49:26.000
Hey, if you made it this far, thanks for listening. We appreciate it. There are a couple of ways you can give us feedback.
00:49:26.000 --> 00:49:46.000
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.
00:49:46.000 --> 00:49:57.000
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.
00:49:58.000 --> 00:50:01.000
Any last words, Wolf?
00:50:01.000 --> 00:50:18.000
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.
00:50:18.000 --> 00:50:22.000
We want to know and thank you.
00:50:22.000 --> 00:50:33.000
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.
00:50:27.000 --> 00:50:28.000
Thank you, Jim.
00:50:34.000 --> 00:50:35.000
Bye-bye.