00:23.18 Matt Godbolt Hey, Ben. 00:23.96 Ben Rady Hey, Matt. 00:24.76 Matt Godbolt I mucked up the intro, didn't I? So this is going to be a ah pain to edit. Nevermind. Hello. How are you doing? I'm just making notes for myself in the actual audio recording that everyone's going to hear about how badly I mucked it up. 00:38.08 Ben Rady I'm doing just fine. 00:38.64 Ben Rady Well, you know, that's fine. This is this is a high production value podcast. 00:43.08 Matt Godbolt it is Well, it is. 00:43.93 Ben Rady So we have. 00:44.36 Matt Godbolt I made you get an electronics project box out just to make your microphone a bit higher up. 00:48.94 Ben Rady Uh-huh, yeah, because I had to build a better microphone. 00:51.20 Matt Godbolt so 00:51.72 Ben Rady So you start with the electronic project box, and then no. 00:54.05 Matt Godbolt You had to. 00:54.74 Matt Godbolt No, we didn't quite. I dread to think how complicated and how deep that rabbit hole goes. If you if you can actually say, no, I want to make my own microphone because I. 01:01.94 Ben Rady I'm going to make my own USB microphone, right? 01:04.86 Matt Godbolt Oh my gosh, what technology would, that's, that's a really interesting, I know this is not what we were going to talk about, but what a fascinating set of technologies you need to understand, both analog electronics, digital electronics protocols, isochronous, whatever it's called, isochronous. 01:22.13 Ben Rady Yes. 01:22.20 Ben Rady Yeah. 01:22.27 Ben Rady Uh-huh. 01:22.34 Matt Godbolt I just feel like it should be isochronous really, but, um, yeah. All right. Well, we're not doing that right now. We both have commercially bought microphones, I should add. 01:31.78 Ben Rady Yes, made by professionals who are not us. 01:32.42 Matt Godbolt and And hopefully, yeah we yeah, I'm a professional. 01:37.14 Ben Rady A professional USB microphone maker. 01:40.00 Matt Godbolt No, but I am a professional. You just said professionals. 01:42.49 Ben Rady Mm-hmm. 01:42.74 Matt Godbolt You didn't qualify. 01:45.34 Ben Rady I'm a professional boxer. Here's my USB microphone that I made. 01:48.50 Matt Godbolt That's right. what That works. 01:50.62 Ben Rady Yes. 01:51.88 Matt Godbolt Anyway, that's not what we were going to talk about today. What are we going to talk about today? 01:56.16 Ben Rady ah I was kind of thinking about talking about I don't really have a better title than The Joy of Programming. 02:02.90 Matt Godbolt The joy of programming. 02:04.66 Ben Rady It's right. 02:05.10 Matt Godbolt I love that name. That's great. 02:07.24 Ben Rady It's, yeah, it's sort of like, um you know, possible references to possible things from the 70s that might be not appropriate for children but um the 02:17.20 Matt Godbolt Didn't Madonna make a book that was something like that as well? I think that was ah the joy of something else that, yeah, again, not. 02:24.52 Ben Rady maybe I don't know that that the book I'm thinking of is not that isn't was not written by Madonna, but in any case, ah the the phenomena of ah doing things that cause dopamine to be released into your brain. 02:38.02 Matt Godbolt OK. 02:38.32 Matt Godbolt Right. 02:38.94 Ben Rady which in some instances you might call addiction, in other instances you might call ah the thing that we do professionally and get paid for, which is programming. 02:48.11 Matt Godbolt Well, that's an interesting. 02:49.10 Ben Rady And there are many other things, but there's just sort of this amazing phenomena of if you love to so program, ah there are aspects of it that are deeply rewarding to you. And I have definitely had this sort of like, you know, um moments in my life where I had opportunities to maybe step away from that and then ultimately decided that I did not want to do that because programming brings me a lot of joy. And it seems like it would be a shame to give up on it. So I was maybe gonna talk through and think about, okay, what specifically about programming 03:23.50 Ben Rady brings us joy as programmers who love to do these things. 03:25.74 Matt Godbolt What an amazing, what an amazing topic. And as all of these, uh, therapy sessions, I mean, sorry, podcast recordings go, it couldn't be more timely in so many ways, which I'd like to think that you had the foresight to think about that and go, Hey, I'm going to propose a topic which is going to make Matt feel better. 03:46.02 Matt Godbolt but um you know ah But one thing I would say is that your comment about addiction um is rings somewhat true, but my understanding is that the addiction part has the negative connotation, a negative part of the definition, which is that you will seek out that dopamine rush to the detriment of other aspects of a normal life, or something 04:04.82 Ben Rady And we don't do that with programming because. 04:07.10 Matt Godbolt Some phrase, and well, I mean, so there's a difference. There is a difference. Like if you leave your child at school and forget to pick them up because you're programming, that might be considered an addiction. 04:18.84 Ben Rady Yeah. 04:19.00 Matt Godbolt And I'm sure we've but all but skirted the edge of things like that. 04:22.66 Ben Rady Yeah. 04:23.00 Matt Godbolt But I said, it's a very different thing from, you know, and so right. Personal example, many times while I'm in the flow state, 04:30.56 Ben Rady Yeah. 04:31.06 Matt Godbolt pun intended for coming up. 04:32.74 Ben Rady huh 04:32.94 Matt Godbolt I'm in the flow state and I'm programming and time has no meaning whatsoever. 04:37.16 Ben Rady yeah 04:37.54 Matt Godbolt By the time I finish I realize that it's actually excruciatingly painful because I've needed to go to the bathroom for probably half an hour and I've zoned it out so badly that now I need to get into a very different flow state um quite urgently and 04:56.01 Ben Rady Yeah. Yeah. 04:56.56 Matt Godbolt that you could say it has the hallmarks of like being so sort of somewhat destructive of a sort, right, or self destructive, right. 05:01.66 Ben Rady Yeah. Yeah. Yeah. 05:01.76 Matt Godbolt So I get that as ah I get it's on the scale, but I get the I just want to make sure that like, we don't, first of all, we don't um minimalize folks who are on the addiction side of things, whatever those things are, right, there's not trivialize it, right, because this is a little bit of a, this is a light hearted conversation about things we love, not like oh ah anything other than that. 05:22.62 Ben Rady Yeah. Yeah. 05:22.78 Ben Rady Mm hmm. 05:23.10 Matt Godbolt But um yeah, I think maybe the the The part where at programming the the joy of programming is detrimental to my life is that I don't know when to stop doing it for money, and when doing it for fun. That that changeover is. you know like And that can be abused, for example, a hundred million years ago when I was in the games industry. 05:45.42 Matt Godbolt the fact that they barely paid anyone to do anything, but expected us to do 14, 15 hour days for you know seven days a week, for weeks and weeks and weeks upon end. 05:54.68 Ben Rady Right. 05:55.56 Matt Godbolt um There, I think that the fact that I loved it so much and I got so much out of it carried me through in a very different way than I would do nowadays, even though I do love doing it. I will go, actually, you know what? 06:05.78 Ben Rady Mhm. 06:05.86 Matt Godbolt I've got a family to go home to. 06:08.64 Ben Rady Yeah. 06:08.64 Matt Godbolt Anyway, so getting those caveats aside, what makes programming that most that much more fun than most other activities, other than maybe, I don't know, I mean, between consenting adults, golf. 06:25.42 Ben Rady ah Well, or video games. 06:28.70 Matt Godbolt Or video games, yeah. 06:29.44 Ben Rady i mean so i mean and And this is one of the things that was on my mind thinking about this. And again, not trying to trivialize addiction and people who struggle with addiction. 06:37.72 Matt Godbolt Sure. 06:38.20 Ben Rady But there is an argument to be made um And, you know, I was talking to a friend about this earlier today and he was kind of making this argument. It's like, you know, there are sort of older models of addiction and there are new newer models of addiction and one of the more new, although I am not a psychologist or a psychiatrist and I am not trained in any of these things. I'm a very, very much a layman. But I'm just saying from my perspective, the way that I think about this stuff is that you can have functional and dysfunctional behaviors. 07:04.90 Matt Godbolt Mm hmm. 07:05.60 Ben Rady You maybe heard the term functional alcoholic before, and that is a person who struggles with alcohol addiction, but does so in a way that it's not really affecting their life in any sort of like significant enough way. 07:19.84 Ben Rady to be dysfunctional, right? To be in those situations, like you say, where you you know you don't pick your kids up from school or you lose your job or something like that. And video games certainly have this this the same property or can have the same property of you know playing video games 07:36.33 Matt Godbolt Hmm hmm. 07:37.00 Ben Rady Maybe you are you are a functional video game addict and you just play a lot of video games and you enjoy it and you you know just spend a lot of your time on that and that's fine. And maybe you're a dysfunctional video game addict where you're like ducking out of ah work in the middle of the day to play EVE Online. 07:52.33 Matt Godbolt Right. 07:52.60 Matt Godbolt maybe Maybe, maybe it's five in the morning and you're still playing your level 70 cleric and you know, you've got to get up in 35 minutes time and you're, I hear. 08:01.30 Ben Rady Yes, right. 08:01.82 Ben Rady Exactly, exactly, exactly. And I am guilty of of that for sure, especially in my younger days where it's like, you know, I would play video games until two zero in the morning. And then, ah you know, like when I was in in school, I would play video games super late and then have to wake up early for class and then fall asleep in class. And I'm like, this is a problem. I need to not do this anymore. And so like, why are these like, why why do we do these things? We do these things because dopamine. and Programming has this, ah and you know you're talking about the flow state earlier, programming has this amazing ability to put us into this state where we're just like getting the dopamine rewards over and over and over again. 08:40.02 Ben Rady And you're like, oh my God, this is amazing. And then five hours fly by just like with the with the video games, right? um But of course, no one's going to like, you know, say, Ben, you're addicted to programming and you need to stop, right? 08:52.62 Ben Rady Like, like that's, 08:53.22 Matt Godbolt No, they say, thank you very much, Ben. Here's another paycheck. Keep doing it. 08:55.80 Ben Rady Exactly. and And as you were saying, like ironically, in maybe not ironically, in the video games industry, that it's like, yeah, they'll be very happy to just have you work 12 hour days. And not only will they not have an intervention for you and tell you that you have a problem, but they will reward you and say great work and you know put your name on the on the side of the of the case. 09:13.66 Matt Godbolt That's not exclusive to video games. 09:14.22 Ben Rady so True. 09:14.34 Matt Godbolt You know, I think, you know, there are many places that will be happy to take on extra, extra work for no extra money. 09:20.11 Ben Rady Of course. Of course. 09:20.94 Ben Rady Of course. So so like I kind of wanted to to think about this in the context of like how do you harness this this property, this reality, for good? and how do you And what are the things that you do that sort of bring you this joy and and let you do these things um and let you turn it into a career? And you know the sort of dimension that I was talking about before of like not giving up on it, right? Because it's like, 09:49.38 Ben Rady You could, for certain other behaviors that are like this, see this property as a curse. Like when you do this thing, your brain releases a bunch of dopamine and that means you're just going to want to do it all the time, right? And you apply that property to a bunch of different things and you get a bunch of different results. You apply it to programming and we call that a career, right? 10:09.96 Ben Rady So like, what is it that that does that? And is that something that you should give up? Is that something that you should try to stop? I argue no. I argue lean into it. I argue embrace it and maybe even be thankful for it. um As I was saying, you know, 10 minutes ago, I've had different opportunities in my career to sort of move into roles where I'm not coding anymore. 10:38.78 Ben Rady And I've tried that, I've done it, and I didn't enjoy it. and um I think we've talked about this on the pod before. 10:45.30 Matt Godbolt Mm hmm. 10:46.50 Ben Rady um And one of the reasons why I decided not to do that is because I really view this joy of programming as a gift. It is a very fortunate thing that the thing that I, one of the things I absolutely love to do also pays really well. 11:05.02 Matt Godbolt the Yes. 11:05.72 Ben Rady And I would be sick if I ever gave that up and put myself in a position where I was like, ah, I hate my job now. Right? 11:14.50 Matt Godbolt It's yeah, I mean, this has been a 30 plus year career for me too, where everyone I've ever spoken to who has a quote, normal job, because I don't know how common it is that you and I, the situation that you and I are in. 11:28.49 Ben Rady Yeah. 11:28.98 Matt Godbolt But other people would introduce me and say, you know, like, you know, he does his hobby for a living. And I think, yes, I do. And, you know, it was 10 years into my career that my mum stopped asking me, when are you going to get a real job? 11:41.30 Matt Godbolt Because to her, I didn't have I mean, part of that was games, right? 11:44.01 Ben Rady yeah 11:44.22 Matt Godbolt But but also like, you know, if you if you 11:46.70 Ben Rady right 11:47.24 Matt Godbolt you know that was the quote you know about work-life balance whatever like if you love your job then there is no balance to be had you know there is no work and life that are separate things your your work is part of your life which i mean inevitably it is and the dysfunction then comes when you do it too much and you can't stop and your but let personal relationships suffer in a way that you you know 12:07.41 Ben Rady Yeah. 12:07.77 Ben Rady Yeah. 12:08.12 Matt Godbolt But just suffer, full stop. 12:09.58 Ben Rady Right. 12:10.28 Matt Godbolt But yes, to your point, if I can get on a train at 7:30 in the morning, get to work, spend eight, nine hours a day in a flow state or close to enjoying what I'm doing, provide enormous value, we hope, to a company and they remunerate me for doing that. 12:28.67 Ben Rady Mm hmm. Mm hmm. 12:29.56 Matt Godbolt and I high-five everyone on the way out, get on a train, go home, maybe even have some energy to do some hobby programming in the evening still somehow, then why would you stop doing that? What what possible reason is there to do that? 12:43.20 Ben Rady Why would you stop? 12:43.62 Ben Rady Yes, yes. 12:44.21 Matt Godbolt you know you So, one counter there, obviously, is that you do have, unlike, again, many other careers or things that you might ah um What's the word I'm looking for here? ah Let me just explain it like one thing that we have is our job is accessible to us remotely as in when I get home I can carry on my job but I can also do the things most of the things that I could do in my day job I can do as an individual person I can write the I can write code for my hobby projects I can nowadays fire up cloud providers worth of GPUs if I want to play around with GPU related stuff and it's you know it's not 13:18.48 Matt Godbolt free, but it's also not super expensive. and There's not like too many things. Now, the very, very crazy low latency stuff that I also love doing gives me the probably the most dopamine is not something I can do because I do need some magical stuff to be able to play with ah in the evenings. 13:32.11 Ben Rady Mm hmm. 13:32.26 Matt Godbolt But by and large, I could say to myself, all right, for some other trade off in my life, I will spend my time at work not doing the thing that I love for some other benefit to be determined. 13:46.02 Matt Godbolt But I still at least can go home and do it ah on my own time and do my own projects, which is, again, harder to do for some folks, or at least maybe they have a different thing that is just, you know, I knit when I get home. 13:58.40 Matt Godbolt Sure. Right. 13:58.99 Ben Rady Mm hmm. 13:59.06 Matt Godbolt Fine. um So that that would be my only counter ah to you, um is that like, well, you know, if you loved programming, you can do it on your own time. 14:09.50 Ben Rady True, but like you don't you can't make a career in knitting, at least not in the modern age, right? 14:13.68 Matt Godbolt I'm, yeah, I'm i'm sure that so somebody somewhere is listening to this going like, wait, what? But that's what my grandma did. 14:20.78 Ben Rady Yeah, I mean, it's very difficult. 14:22.56 Matt Godbolt Sorry, I'm gendering that. 14:22.90 Ben Rady Let me rephrase. 14:23.18 Matt Godbolt ah It's difficult. All right. 14:23.64 Ben Rady It is extremely difficult to make a career in knitting that um 14:27.56 Matt Godbolt Well. 14:27.56 Ben Rady it's ah there's a there's a I'm gonna bring back the golf reference. There's a golf joke. The the Korn-Ferry tour is like the the you know the the minor leagues of golf. 14:39.36 Matt Godbolt Okay. 14:39.84 Ben Rady And there's a joke that's like, what's the difference between a Korn-Ferry tour player and two large pizzas? Two large pizzas can feed a family of four, right? 14:48.57 Matt Godbolt Yep. 14:48.82 Ben Rady Like the problem with those sort of hobby professions in most cases when you're sort of doing the thing that you love is that it doesn't pay particularly well. 14:57.02 Matt Godbolt Right. You may be the world's best musician, but like only one in a million people will make it to somewhere where they can support themselves. 15:04.77 Ben Rady Right. 15:04.90 Matt Godbolt So you're probably working three jobs and then busking in the evenings if you want to try and make that a career. Whereas programming, at least the programming that you and I do, someone is more than happy. 15:13.93 Ben Rady Yeah. 15:14.06 Matt Godbolt They will fall over themselves to say, can you please come and program for me? 15:17.40 Ben Rady Right. 15:18.00 Matt Godbolt And here's some money for you. That's like very, very reasonable. Thank you very much. Right. So that's a difference. 15:22.65 Ben Rady Yes. 15:22.74 Matt Godbolt I get you that. But what if that same company says you are We value your wisdom. You've been doing this for 30 years, Ben. You have a great way with people. we People follow your lead. People will align themselves with your goals. You will carefully and patiently explain things to junior folks, and they will be better because of what the time that they spent with you telling them or teaching and coaching them. Could you do that for us instead? 15:49.54 Matt Godbolt because It's so much more valuable to my company that I have you making the shot, calling the shots and mentoring and coaching than it is to have your hands on the keyboard because I only get one Ben and he's amazing, but your hands on the keyboard make one Ben go fast. 16:05.36 Matt Godbolt Whereas you talking to 15 people in a, you know, for an hour gets 15 people going 20% faster. Now, unfortunately beats you. What would you say to that? 16:13.42 Ben Rady Uh-huh. Well, so in that particular case, I also love mentoring people. So like that's that's maybe a special situation of like, oh, I don't mind doing that at all. 16:20.70 Matt Godbolt Okay. All right. 16:20.76 Ben Rady That's fun, too. um But for maybe the more ah you know a different aspect of that, which is, Ben, you're really good at organizing and planning and coordinating. 16:31.62 Ben Rady Can you please sit in meetings all day and make sure that the you know software engineers who work in this company are working on the right thing? I would say, yes, I am capable of that. And I'm going to choose not to. 16:42.16 Matt Godbolt Right. 16:44.38 Ben Rady because that will not bring me joy. 16:48.30 Matt Godbolt Right. and And again, the fact that you could go home and bring joy to yourself, which sounds now very dodgy now I say that out loud. Not like that. ah Not in a lusty way. 17:01.40 Matt Godbolt um um You could come home and and program. 17:02.82 Ben Rady Yes, I could come home and I could do any number of things and I do, you know, I i love golf and I play golf on the weekends, right? 17:09.24 Matt Godbolt Yeah. 17:09.36 Ben Rady No one's gonna, you know, again, feeding the family of four, no one's gonna pay me for golf and I'm not on the Korn Ferry tour anytime soon. 17:15.28 Matt Godbolt Yeah. 17:15.78 Ben Rady um I do those things and those are fun. That's part of having a, you know, heterogeneous, rich life full of lots of, you know, different aspects and not just being single, you know, yes. 17:26.34 Matt Godbolt Right, right. So you're saying like. as as part of the tapestry of life, programming is a really big part of that, of joy for you, sir but that it's not the only thing, but of the things that bring you joy, it is the only one that you could make ah your career out of, and therefore the spare time that you have when you get home could be used for more programming, but it could also be used for time with loved ones, ah time play on on the golf field or in your backyard, in your golf simulator with your crazy, all those video games, yes, yeah. 17:54.93 Ben Rady yeah Yeah. Yes. 17:55.34 Ben Rady Great. Yeah, or playing those video games that I love to be addicted to. a Yes, exactly. 17:56.52 Matt Godbolt Yeah, I think that's a really level. I mean, I don't know. I'm not surprised, ah but it's a very thoughtful level headed response to what I thought was going to be a difficult and challenging question for you. 18:07.24 Matt Godbolt So evidently. 18:07.24 Ben Rady Well, I mean, I do think about these things. um But yeah, so one thing I wanted to get into in this episode is you know we talked about flow state earlier, right? 18:18.91 Matt Godbolt Yeah. 18:19.28 Ben Rady We should probably talk about that for people who may not be familiar with it. I would hope that most programmers will at least recognize it when they when they when they hear it explained, right? 18:27.48 Matt Godbolt Or even if it exactly, yeah, yeah, I think you've got Oh, well, even not without it. I think the name is sort of quite a motive of what the the concept feels like. 18:33.04 Ben Rady Yes. 18:33.04 Matt Godbolt But yeah, we should definitely I will I will I mean, we sort of touched on it already. 18:38.86 Ben Rady Yeah, yeah. You want to take a crack at a definition of flow state? 18:39.14 Matt Godbolt You know, like we said that flow state where you look up and five hours have gone and you're busting for a wee, right? You know, that's that's what flows. I'm pretty sure there are textbooks that describe it like that. um No, but it it is the point of which you have become um so 18:52.82 Ben Rady here 18:52.82 Matt Godbolt deeply ingrained in what you're doing, that you don't notice what's going on around you, you completely zone out anything that's around you. um And you're able to make essentially what feel like, um ah I always think when I was talking to my kids about this in their music, which is a complete non sequitur, but like, I talk about it in terms of of Star Wars references, it's like it's when the force is flowing through you. 19:18.18 Ben Rady Mm hmm. 19:18.64 Ben Rady Yeah, yeah, yeah. 19:19.08 Matt Godbolt Right? You know, you you everything comes instinctively, you're all tabbing between things, you're pressing buttons, and you're not even aware that you're doing them. 19:26.23 Ben Rady Mm hmm. 19:26.30 Matt Godbolt It feels all automatic. Everything's going. Maybe you've got music going in your ears that tends to help me. 19:31.71 Ben Rady Mm hmm. 19:32.04 Matt Godbolt Maybe you haven't. Maybe you don't need it. Maybe you're just in that. But like, essentially, your attention is focused and directed and everything is just feels so natural. And then you get a tap on the shoulder and the whole thing falls over. 19:42.68 Matt Godbolt It feels like you've tripped over a tree root, you know, in those kind of weird dreams where you suddenly your whole body twitches and everyone Oh, what, what and you're jarred out of it. 19:49.06 Ben Rady Right, right. 19:49.14 Matt Godbolt And then you're like, Oh shit. And then you're trying to get back into it and it's gone, but you can be so productive and it's so, so, uh, uh, enjoyable. 19:56.06 Ben Rady Mm hmm. 19:56.34 Matt Godbolt I mean, to, to coin, you know, to go back to your endorphin, uh, rush or your dopamine rush. 20:00.99 Ben Rady Mm hmm. 20:01.74 Matt Godbolt Um, it is so enjoyable when you're in that you're making progress. 20:03.99 Ben Rady Mm hmm. 20:04.20 Matt Godbolt Everything just feels great. So yeah, I made it sound very druggy now. 20:10.54 Ben Rady No, I mean, it's, so i I read, I tried to read a book on this. so I'm gonna go see if I can figure out the name of this book. 20:18.40 Matt Godbolt Oh, good luck finding that. 20:19.57 Ben Rady um But I, yeah, no, there's, um what is the name of this book again? 20:20.60 Matt Godbolt This is where, because we're not going to do much editing of this, I can talk while you Google if you like. So but we're going for listener. 20:29.00 Ben Rady It is Flow, The Psychology of Something, The Psychology of Optimal, 20:37.74 Matt Godbolt We are. Oh yeah, we got it. 20:38.02 Matt Godbolt Oh, he's trying to. 20:38.18 Ben Rady the psychology of optimal experience. So this book, I didn't really like this book, because I was looking for like a deeper, more thorough explanation of this phenomena. And this book kind of seemed like... 20:48.50 Matt Godbolt Sorry, you said Phenomena and I have to go... but Phenomena. 20:51.96 Ben Rady Yep, phenomena. do doo do do 20:54.49 Matt Godbolt Well, there's our cold open. 20:58.88 Ben Rady Yep. 21:02.28 Matt Godbolt well Anyway, you didn't like the book. You didn't like the book. 21:03.76 Ben Rady Uh, yeah, I didn't like the book because it it got a little culty. It got a little like, uh, woo woo. You know what I mean? 21:09.68 Matt Godbolt as As these self-help books are want to do, 21:11.58 Ben Rady yeah Yeah, but but therere i um my memory of this is that he did have a pretty clear definition of flow state, which is sort of the intersection of focus and proficiency, right? 21:24.10 Matt Godbolt Oh. 21:24.42 Ben Rady You're very focused on something that you know how to do well. And and again, getting back to video games, if you've been like a moderately good player in like a first-person shooter, you have definitely experienced flow state where you are just moving around, reacting to your environment, shooting at targets, you know you know going through the a level maybe that you've done a couple of times. like That is 100% flow state. And it is the same thing that you feel when you are working on a task where you are proficient and are able to focus. 21:56.92 Ben Rady and you're making sort of good progress. Now, there's definitely a state of programming where you're not in flow state where you're just staring at a stack trace and you're very confused and you're not feeling very proficient and maybe not very focused and you're just like, I don't understand what's going on here. 22:12.00 Matt Godbolt Mm hmm. 22:12.16 Matt Godbolt Or, or more on brand for us, you're waiting for a long build, or, you know, you've been knocked off of like your, your, your, your flow, because you're waiting for something you've all tabbed to, because you've been distracted, right? 22:22.43 Ben Rady Yeah. 22:22.47 Ben Rady Yeah. 22:22.50 Matt Godbolt You've had ah and ah some kind of external stimulus has applied to you. 22:27.30 Ben Rady Mm hmm. Mm hmm. But but I view that flow state as being like the core of the joy of programming. Right. Is is and there are other interesting things. 22:37.18 Matt Godbolt That's. 22:37.18 Ben Rady There are other interesting things about programming that are fun and I enjoy. But it's like that's like the main loop of of the joy of programming. 22:42.12 Matt Godbolt That is your, right, the nugget, the center of it that you build everything. 22:44.72 Ben Rady Yes. 22:45.20 Matt Godbolt is I was going to say, like, you know, again, away from the keyboard and having just come out of a few meetings today where this has happened to me, we've had some great discussions with people with, the you know, the moral equivalent of whiteboarding ideas where that can also be very rewarding. 22:58.39 Ben Rady Mm hmm. 22:58.74 Ben Rady Yeah, yeah. 22:59.46 Matt Godbolt And, and, and essentially when when people ask me, what do I like about programming? I do, I do like the flow state and I think it is a very big part of, of certainly the, you know why we why you are and I are so aligned on things like, you know hey, if we had the build be this much faster, then you know you would just build it and test and build and test. 23:15.57 Ben Rady Right. 23:15.64 Matt Godbolt And then you're like banging away at the code and everything's just going. 23:18.30 Ben Rady Mm hmm. 23:18.30 Matt Godbolt And you're like, this is great. Nothing here has to stop me. um But also, what I tend to say to people is it's problem solving. And it's deep digging. It's like you know always picking up another rock and going, like but why is this broken? 23:29.93 Ben Rady Mm hmm. 23:30.96 Matt Godbolt Hmm, well, that doesn't make any sense. 23:32.15 Ben Rady Mm hmm. 23:32.40 Matt Godbolt And like almost like this. Yeah, that that's what I think. I, I, I, that's what I tell people that I like about programming, but the flow state is a core part of it for me as well. 23:43.67 Ben Rady Yeah. 23:43.98 Ben Rady Yep, yep. And sometimes those things go together, right? 23:47.09 Matt Godbolt Right. 23:47.30 Ben Rady Like you can be in a flow while solving a problem. And like, again, video game analogy, it's like, OK, how do I solve? How do I figure out this um this dungeon? 23:55.90 Matt Godbolt This dungeon. How do I get this thing up to this? 23:58.92 Ben Rady Yes, exactly. 23:59.12 Matt Godbolt How on earth do I get the fight flame down from up there if without? 24:00.98 Ben Rady Right. 24:01.09 Matt Godbolt Yeah, yeah, yeah. 24:01.40 Ben Rady You know, it's like play Portal for an hour and you will experience this for sure. 24:05.50 Matt Godbolt Oh my gosh. 24:05.80 Ben Rady Right. 24:05.99 Matt Godbolt That's true. 24:06.36 Ben Rady um So like you can you can be doing both of those things at the same time. You can also be solving a problems and not be in the flow state and still find that very rewarding. And I certainly do. 24:17.24 Ben Rady Like it's almost more of like a jigsaw puzzle thing where you're just kind of like, you know, like I don't understand how these things are going to fit together. 24:24.43 Matt Godbolt Right. 24:24.58 Ben Rady What am I going to do here? um Although that's maybe not exactly a jigsaw puzzle, but but it's like it's like kind of the same thing, right? 24:28.94 Matt Godbolt No, no, I'm with you. I see it. Yeah. 24:32.08 Ben Rady Yeah. um But yeah, I mean, and those those things, can know the sort of puzzle aspect, maybe more like a Rubik's Cube, like when you don't know all the algorithm to do the Rubik's Cube and you're doing it in 3.4 seconds, right? 24:42.53 Matt Godbolt So. 24:42.54 Matt Godbolt Right. Which is yet not me. 24:44.14 Ben Rady um Yeah. um But like that kind of problem solving and that sort of puzzle solving is also very rewarding, but it's maybe not flow state, right? 24:53.18 Matt Godbolt Yeah. Yeah. Yeah. So do you, I mean, flow state obviously is not a programming concept. It's not unique to programming. We've already just said that, you know, video games also, you can be in a flow state. 25:04.34 Ben Rady Mm-hmm. 25:04.84 Matt Godbolt um Obviously only a very few people get paid a living wage to play video games all day. 25:10.14 Ben Rady Right. 25:10.98 Matt Godbolt I'm something I need to keep informing my teenage children. ah Um, but 25:16.66 Ben Rady Yeah. 25:19.14 Matt Godbolt What else do you think, what other things can be flow state? And what is it about programming, do you think? Is it just ah an accident that we found a job that flow state is good for? Do you think, maybe I mean, maybe ah maybe this is where we could actually invite listeners to send us messages on the emails or hack a term or whatever the communications is and say like, what what other things are there out there? 25:40.17 Ben Rady Mm hmm. 25:40.26 Matt Godbolt Because, you you know, I'm skewed by my knowledge of what um uh what are my experiences and the only other things i can think of that are close to that that uh that you could maybe call a career of people who are like scientists and um you know ah mathematicians who are trying to solve difficult problems of a sort. 26:03.88 Matt Godbolt And, you know, sitting down with a piece of paper working out stuff, and I can only imagine that must be something like a flow state, if you're going to be staring at something for, four you know, three or four hours while you manipulate symbols around and look for that, that glimmer of inspiration that goes, ah, this will cancel with that or so again, I'm so bad at maths, but like, um or similarly, you know, I have, ah there's ah acquaintance of mine that is a theoretical physicist. 26:26.60 Matt Godbolt And I can only imagine that what goes on when he's at his ah desk at work with his feet up on his desk, just with his head hands hands behind his head, just thinking about physics, which is presumably what a theoretical physicist does, right? 26:39.34 Ben Rady Mm hmm. 26:39.62 Matt Godbolt There's got to be something going on in there that's like, you know, akin to what I must be feeling when you know, you're trying to go, well, what if that happens over there? 26:46.04 Ben Rady Right. 26:46.10 Matt Godbolt i can Yeah, but yeah, it's and maybe other knowledge work in general. Do you think other knowledge work? 26:51.94 Ben Rady There's probably I mean, my I don't really know. Like I said, I've tried very hard to spend most of my career doing programming, but um I would imagine that there's a lot of knowledge work that has this property, right? 27:02.83 Matt Godbolt Yeah. 27:02.96 Matt Godbolt Right, but we've just, this happens to be the one that we did as kids, and turned out to be a decent career and gives us this joy, as as well. 27:12.84 Ben Rady Yeah. 27:13.04 Ben Rady Yeah, yeah. 27:13.44 Matt Godbolt I wonder what it was so yeah I mean if we just so There's this problem solving. There's and something like you've ah like to say the problem solving sometimes are the problems of your own making, you know, the whole what is it that detect? 27:29.80 Ben Rady hu Oh yeah, programming is a murder mystery where you are both the detective and the murderer. 27:33.37 Matt Godbolt Tell me you did. 27:33.58 Matt Godbolt Right. And so in a sense that that you're you're doing both of those things, right? 27:37.57 Ben Rady Yes. 27:37.60 Matt Godbolt You're both committing murders and also solving them at the same time. 27:41.36 Ben Rady Yes. Yes. 27:42.82 Matt Godbolt you know There's definitely always something to to to be looking into. i yeah ah I'm really interested in what it is about programming specifically. um I've always thought, again, you know it's like there's you're building these edifices, these complicated interlocking systems, and yet they don't exist anywhere but your own mind, really, and a bit of crappy ASCII in a way in a text file somewhere. 28:03.91 Ben Rady Mm hmm. 28:04.17 Ben Rady Right. 28:04.30 Ben Rady Yeah, no, I mean, there's 100% there's a big creative aspect of programming, which I think most lay people wouldn't really expect, right? 28:12.16 Matt Godbolt i I remember vividly talking to my game producer in like the late 90s, early aughts, and we were talking about some aspects of programming. and it was I can't remember what the the discussion was about, but halfway through I realised that he thought the thing that was blocking us from getting more work done was our inability to type faster. 28:33.32 Ben Rady Right. 28:33.98 Matt Godbolt And you're like, oh, my God, no, it's not like I just know what to do and I have to tell the computer what to do. And if only I could type faster, it would get done quicker. 28:41.56 Ben Rady Yeah. 28:41.82 Matt Godbolt It's that I don't know how to tell the computer what to do, because none of us really understand whether it is we want the computer to do in the first place. And that's the half. 28:48.78 Ben Rady Right. 28:49.06 Matt Godbolt And you're like, that was a mind blowing thing, because it's yeah, as you say, lay folks may not necessarily realize that it is a very creative process. And that's just also mea culpa on my own front front here. Obviously, I sort of said at the beginning of this, you know, this is a therapy session, but I have just managed to put to one side my management responsibilities in order to get back to doing more programming. So this couldn't be more on target for me. um One thing I realized was, um yeah, I've been trying to do a bit of programming in between, but I've been so mentally exhausted by everything that I don't think I realized how much 29:24.36 Matt Godbolt space and time and relaxation and the creative process needs. You need to be able to like pace around the room and not feel under the time pressure to to to have these creative things pop into your head and go like and you know like I think we've probably said some at some point on this show before now. 29:42.53 Ben Rady Yeah, yeah. 29:43.78 Matt Godbolt often times you go home with a terrible problem and by the time you've got on the train or by the time you you know that next morning on the shower you kind of like put your head in your hands and go well of course I forgot that this thing is unsigned or signed or whatever whatever it was or of course that will never work because of blah or you have some new leap of thing in the first thing in the morning because ah because something is going on in your head and that is again another example of the creativity part of this where where it's not like you can just 30:10.18 Ben Rady Right, right. Yep. Uh-huh. Uh huh. 30:10.88 Matt Godbolt squeeze harder against something and keep banging the keyboard for longer which I guess actually does dovetail back into the beginning part of this where if you're in flow state it is both um obviously very productive and very rewarding but it's exhausting too or it can be you can get to the end of it and cofi the go to the loo and then go oh my god I just I'm done now I'm done for the rest of the day and you can't keep on doing it which maybe is different from some other things that fall under addiction 30:37.10 Ben Rady Yeah. Yeah, yeah, yeah. 30:37.80 Ben Rady Right. I mean, it's almost like going for a long run and then stopping, right? Like it's, it's. 30:44.30 Matt Godbolt Which is the only reason to go for a- Sorry, excuse the dog. Alright, we're gonna hope that I remember to edit this. Or else everyone gets to hear Monty barking. 30:47.21 Ben Rady Yeah. 30:47.22 Matt Godbolt um But that's the only reason to go for a run, is to stop. As far as I'm concerned, there's no other benefit other than the blessed relief when it's over. 30:54.74 Ben Rady Yeah. Yeah. Yeah. 30:55.16 Ben Rady Right. Right. And then it's like, I don't know if you've ever been in this situation where it's like you go for a run and you stop and you like realize that you need to actually run more. That is terrible. 31:06.48 Matt Godbolt That is that sounds nightmarish to me. 31:08.54 Ben Rady Like, like you, you stop for like two minutes and then you're like, Oh, I was supposed to do like seven miles and I only did five. Uh, okay. 31:15.52 Matt Godbolt Oh, no, yeah, that that's that's like. 31:15.78 Ben Rady I guess I need to, it's like, it's, it's awful. 31:18.38 Matt Godbolt I can only imagine that that again, sorry to get all toiletty on you here, but it's like if you have to if you. 31:23.25 Ben Rady It's awful. 31:23.50 Matt Godbolt If you're going to the bathroom and for whatever reason, you suddenly have to stop. And then that's the worst, is it? Oh, no. Hang on. Someone's just opened the door. I didn't. Oh, yeah. 31:31.89 Ben Rady Yes, uh-huh. 31:32.72 Matt Godbolt Nobody needs that. Um, but this will this be our first R rated. 31:38.48 Ben Rady Nobody needs that. 31:39.02 Matt Godbolt Um, I don't think, Oh my gosh. 31:39.40 Ben Rady No, we're just gonna edit all kinds of stuff out of this podcast. It's gonna be great. 31:42.16 Matt Godbolt I don't know that we are. I think you've, uh, you think too much of my editing skills. Um, but. 31:50.40 Ben Rady Uh, yeah, no, I mean, yeah, it's, and I've a hundred percent had that too, where it's like, you know, you're cranking away on something and then you like commit push and you let it build and just all of the adrenaline and on the and all the chemicals just drain out of you. 32:07.38 Ben Rady And your brain just goes, and then you're like, all right, now I need to go to bed. Cause, uh, I've been at this for 10 hours and that's enough. 32:13.02 Matt Godbolt I'm spent now. 32:14.04 Ben Rady Yes. 32:14.28 Matt Godbolt Although actually just just thinking about that and in that terms, I know you know both you and I are pretty fair proponents of TDD and other sort of aspects, which is broadly falls under the umbrella to me of gamifying something to capitalize on the human love of a little hit of endorphins or dopamine or whatever the chemicals are. 32:33.60 Ben Rady Yeah. Mm hmm. Mm hmm. 32:34.70 Ben Rady Right. Every time the bar turns green, you just get a little ding. 32:37.57 Matt Godbolt I love it. 32:38.23 Ben Rady Yeah. Uh huh. 32:38.90 Matt Godbolt because and ah but ah but But again, we you and I have spoken about this before. 32:42.65 Ben Rady Yeah. 32:42.87 Matt Godbolt You and I are ah aligned on this because of bias and and that's why we're that's well we have a podcast together, right? you know Because we found how aligned we are. 32:50.16 Ben Rady Right. 33:00.54 Matt Godbolt But I've worked with people, and and and I'm sure you have, who are much more I just sit and I write code, and I write code, and I write code, and I write code. And three days later, I build it for the first time, and it works, and we're done. 33:03.20 Matt Godbolt And you're like, I don't know how you could have be satisfied at any point throughout that whole thing. Because the entire time I'm sat in my hands, kind of rocking backwards and forwards, saying, just build it, build it, build it, there's a typo, build it, there's a typo, build it, there's a typo. 33:16.54 Matt Godbolt ah And then the quicker I find it and I even that is a reward like I will often comment out large gobs of code that doesn't compile While I'm sort of doing refactoring just to kind of get the warm Gentle pat on the back that hey at least the bit you've done the bit you've converted over still builds and I'm like, okay That's good enough for now and then carry on So people can be different about this right, you know, it can be a 33:38.21 Ben Rady Yeah. 33:38.29 Ben Rady here 33:39.22 Ben Rady yeah Yeah. Yeah. Yeah. Yeah. No. Yeah. And you're right. Like. for sure. Those those habits that we that we both have really do kind of gamify the process. right And it's like it's it's playing into the way that we think about it and what is effective for us. And it and you know i as much of a TDD guy as I am, like you have to recognize that this is not for everybody. right It might not even be for most people. 34:00.78 Ben Rady I think it's a skill that everyone should learn how to do, but whether you use it or not, that's just depends on you and your team also um because you kind of can't do it by yourself. You need a team. 34:11.66 Matt Godbolt So finishing up on the sort of themes that we normally touch on on this. Another thing that you and I have liked to do and I haven't done for a little while is pair programming. 34:20.68 Ben Rady Mm hmm. Mm hmm. 34:21.56 Matt Godbolt Can you get into a flow when there's another human being in the mix, do you think? 34:25.88 Ben Rady Yeah. Have you ever had a conversation in a restaurant? 34:29.82 Matt Godbolt ah Oh, what an interesting analogy. 34:32.86 Ben Rady You're eating your food, you're talking. 34:37.02 Matt Godbolt And you don't, you know, unaware about everyone else in the restaurant who's having their own conversations. 34:40.69 Ben Rady That's, that's pair programming flow. 34:41.31 Ben Rady Right. 34:41.44 Matt Godbolt Yeah. 34:43.00 Ben Rady Until, until, and this is a feature, not a bug. The person behind you talks, starts talking about how they murdered their wife and you're just like, what, what? 34:49.84 Matt Godbolt I was going to say this. 34:50.86 Ben Rady And your brain just like clues into that. 34:53.38 Matt Godbolt There are neurons in my head that will will respond to, you know, your own name being mentioned somewhere. 34:57.38 Ben Rady And it's like, yes. 34:57.54 Matt Godbolt That's immediately jumps you out of it. Or if someone says something, you know, factually incorrect about 1980s gaming hardware, then of immediately. 35:04.87 Ben Rady Yes. 35:05.86 Ben Rady Right, right. And it's boop, right. And then it's like, you know, when the, when the people who are, you know, two seats down from you start talking about how they're going to delete the module that you're working on. You're like, wait, what, what are you guys, what are you doing? 35:15.68 Matt Godbolt But yeah, get up immediately. Yeah, right. 35:16.78 Ben Rady Right. Um, so yeah, it's, it's humans are wired for this, right? Like they're absolutely wired for this. 35:22.89 Matt Godbolt ha 35:22.94 Ben Rady Now, not all humans are wired for this and not all humans, um, can do this sustainably every day and work this way all the time, you know, and, and some people who can just don't like to. 35:34.55 Matt Godbolt Good point, you know. 35:34.76 Ben Rady So there's all kinds of caveats here, but like humans are, are, are. 35:39.39 Matt Godbolt Right. 35:39.50 Ben Rady Can be social creatures, even programmers and If you've ever had a conversation in a restaurant where you're eating a meal and talking to somebody, then I think that you can pair program and get into a flow state. 35:54.42 Matt Godbolt It's funny, I mean, I do believe you and I'm sure that things that I have done in that world could count as being in the flow state, but I just don't think of it because I think of it as so ah such a solitude and whatever that word is, ah solitary there, there's the word such a solitary activity and it's very personal to me that state where I've got 36:15.80 Ben Rady and 36:15.80 Ben Rady Mm hmm. 36:15.80 Matt Godbolt music blasting in my ears and I'm like ah on the keyboard. Um, that doesn't come out on the radio very well. 36:22.79 Ben Rady Right. 36:22.90 Matt Godbolt That's it. I'm just miming keep like infinite monkeys banging on the keyboard. 36:26.45 Ben Rady Mm hmm. 36:26.95 Matt Godbolt Um, but, but I, I'm sure you're right actually. And I'm thinking of, you know, you know, probably the same person that you're thinking of who's very fast on computers that we've both paired with over in our careers. Um, those episodes pairing with him have probably been the most that I could imagine as being flow-ish, even if I wanted to strangle him from time to time. 36:42.46 Matt Godbolt And I'm sure likewise he, he to me. 36:45.14 Ben Rady Yeah. 36:45.53 Matt Godbolt But. 36:45.92 Ben Rady Yeah. Now I will, I will caveat this a few ways by saying it's rare. It's kind of a skill and it's sort of hard to do. And it's not like I'm not, and it's not like that much or productive. 36:56.24 Ben Rady Right. Like it's, it's good. It's a nice thing to be able to do, but it's not going to turn you into like some superstar programmer. So it's like, you know, it's kind of an interesting thing, but it's my point. My only point in saying this is that it is definitely possible. 37:07.54 Ben Rady Like ah many times in my career have I been doing that. Uh, another thing is kind of like his tennis or like ping pong, where you're just sort of like, you know back and forth you know, you're just watching the ball and moving around and hit the thing. 37:20.11 Matt Godbolt Oh, right, yeah. 37:20.26 Ben Rady And then, you know, 17 back and forths and then someone hits the line and you're just like, all right, that's the end of that point. And it's like that's a mutual flow state. 37:30.29 Matt Godbolt Right. 37:30.48 Matt Godbolt No, I guess so. Yeah, that's a very, ah yeah, even in, that's a sort of competitive flow state, right? You've, there's two of you there for a short, depending on obviously you could play doubles and tennis or whatever, but no, that's interesting. 37:40.28 Ben Rady Right. And I think it's no accident that sort of like the basic intro to ah pair programming exercise is called ping pong because it's it's very much like that. 37:50.38 Matt Godbolt Yeah, you you'd like the the whole I'm writing a test that will fail or you know, yeah, that kind of thing. 37:55.77 Ben Rady Mm hmm. 37:55.86 Matt Godbolt Yeah, that's interesting. 37:57.16 Ben Rady Yeah. 37:58.36 Matt Godbolt Well, friend, we're, we're basically at recording time, I realized because we've been in a flow state. 38:03.02 Ben Rady and Well, the time just flew by. 38:03.34 Matt Godbolt it did didn i Come on. I mean, dog, dog interruptions notwithstanding, which will again, if people go what dog, I've done a very good job, but likely is not, you'll know exactly which dog I'm talking about. 38:15.17 Ben Rady Yeah, right. 38:15.32 Ben Rady Yeah. 38:15.46 Matt Godbolt Um, yeah, this has been really interesting, very, very, um, very cathartic for me as I move back into hopefully times where I can have a lot more flow in my life and less talking to people in rooms. 38:25.27 Ben Rady Mm hmm. 38:25.42 Matt Godbolt so Um, but, um, but yeah, and I can take you for your, your, your answer to the question of like, why don't you just become a manager? ah 38:33.44 Ben Rady Right. Yeah. Yeah. Well, sometimes you just got to like take advantage of the gifts you've been given. 38:40.43 Matt Godbolt Very true. 38:41.12 Ben Rady And and in my mind, this is definitely one of them. I i don't want to give it up anytime soon. 38:45.76 Matt Godbolt Cool, well I guess that's a great place to end then, so until next time my friend. 38:49.16 Ben Rady Until next time.