In this episode of the Python Show Podcast, David Mertz is our guest. David is a prolific writer about the Python programming language. From his extremely popular IPM Developerworks articles to his multiple books on the Python language, David has been a part of the Python community for decades. We ended up chatting about: * The history of Python * Book writing * Conference speaking * The PSF * and more! Show Links * David Mertz’s website * PyDev of the Week: David Mertz on Mouse vs Python * David Mertz on InformIT / Pearson Get full access to The Python Show at www.pythonshow.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00Welcome to a brand new episode.
SPEAKER_01Mike Driscoll, The Python Show.
SPEAKER_00Hello, and welcome to the Python Show. I'm your host, Mike Driscoll, and today I have my friend David Mertz, who is a principal engineer at SEIU, a union. I'm not sure, did you say it was on the West Coast?
SPEAKER_01It is throughout the United States. It's one of the largest labor unions in the United States with about 2.2 million members.
SPEAKER_00Awesome. And you also are a book writer, like a technical book writer, and you worked for the Python Software Foundation for many, many years for a long time as well?
SPEAKER_01Quite a lot of them, yes.
SPEAKER_00Awesome. Well, welcome to our show. I hope you'll enjoy our time together. How I usually do my show is I will kick it off by asking you, you know, give us a little bit about your background, how you got into programming, and We'll see how we go from there.
SPEAKER_01Yeah. Thanks, Mike. Well, there's quite a story here, actually, in a sense. I've had kind of a winding journey into programming. I suspect more than a lot of people who are your listeners, who are certainly then my fellow developers that I work with. Sure. I'm old. I'm 60 years old. But way back in the 1970s, when I was a teenager, I did a little bit of programming, but just sort of as a hobby. I had a little bit of access to some machines at school,
SPEAKER_01which at that point meant a teletype that connected to a mainframe across town. And that was fun. I mean, it's certainly something that engaged my mind.
SPEAKER_02But like...
SPEAKER_01like a profession, not like something that I really, really cared about. I mean, it was amongst things that I found interesting. There was an opportunity I had when I was maybe 14 years old. There was a summer class that was across town at the VOTEC back when that was, I guess that's still a thing, but back when programming was a vocation, not a profession, and they didn't have the kind of prestige that it does now. But I got to, well, take, you know, a few different buses and spend an hour on the buses to get across town.
SPEAKER_01But I got to go to the place where it was and write Fortran 66 onto punch cards, which were long out of date by the time that happened. I'm old, but they were still out of date by the time I was there. But in Boulder, Colorado, where I was growing up, IBM had one of its large facilities and they had donated an IBM 360 to the school district. So, and you know, in the punch card machines and that sort of thing. So it was just, it was actually, I can go into something else that's kind of interesting.
SPEAKER_01I hadn't thought of necessarily. So this was an opportunity to do this batch-oriented programming that was, as a teenager, it was exciting. Make the stack of cards and submit them and come back the next day for them to be processed and see the result, which might be a bug in the syntax of my code or whatever. It might be the result I was looking for. But it really kind of formed this idea of batch-oriented programming. sort of large for the time,
SPEAKER_01like, you know, data ingestion and waiting and getting the results, which still in very much shapes a lot of my thinking, notwithstanding that I've done, you know, a large number of other things that aren't necessarily on that model. So I did, you know, until like college age, a little bit more of that. I played with BASIC and Pascal and assembly on a few different architectures and machines, but it wasn't Really, my primary focus or obsession. College, it was sort of similar in the early 80s by then.
SPEAKER_01I did one work-study job for a semester, which is a little bit better than minimum wage, but subsidized by the federal government with the schools. And I got to move up to Fortran 77 for that one. And also in this town where I grew up in Boulder, Colorado, there were a lot of the National Scientific Institutes, including NOAA, National Oceanic and Atmospheric Administration, offices elsewhere, of course, as well. But they had one big building in town.
SPEAKER_01And so I did this job for a seismologist where way back then, early 80s, Seismology records were like many bound volumes that just had lots of numbers and dates and longitude and the different kind of waves and things like that. So it was not very accessible, but it was published in these journals. I don't remember now if it's monthly or quarterly, however often they did it, but a shelf full of lots of numbers.
SPEAKER_01So I wrote a data entry program back then. And then after I wrote this thing and tried to make it as few keystrokes as possible to enter the kind of data it was, the second half of the job was punch code entry, entering all those numbers. When I think that I was the first person to digitize seismology records in the world, I don't know whether those very small fraction of the data that I actually
SPEAKER_01digitized was then subsequently picked up by the things that are, of course, now all digitized. But I think that's a weird little footnote title. Yeah, that's cool. Accomplishment of sorts, which maybe is sort of foreshadowing of other things. And then sort of the same age in my late teens, early 20s maybe, I played with some computers like CDC Cyber and a PDP-11 at some various places. After college,
SPEAKER_01I went to grad school to get a doctorate in post-structuralist Marxist political philosophy, which is not programming. There's nothing that are really closely connected. And I read computer magazines still and everything. You know, maybe occasionally just for entertainment, I'd write a little programming, but really very little for way too long. I mean, it took far longer than I should to write a dissertation and to finish my doctorate.
SPEAKER_01But towards the end of that, when even before I had finished, I realized that nobody was going to actually pay me to know the stuff that I was studying in doctorate. I still recommend to everybody that they should... do the thing that brings them joy. I mean, if it's education as it has been for me and academic study, that's just great. But anyway, it's not something people... The tenure system in the United States sort of went to hell around the time that I
SPEAKER_01was engaged in doctoral work. So it wasn't like there was going to be a job. So somewhere towards the end of that, I guess my later 90s something, so basically a 10-year gap here. I took some programming jobs, part-time-ish, some rendering kind of things, and did some stuff in languages like Turbo Pascal and XBase languages like Clipper and FoxPro and Dbase 3, XBase++, and a few other dialects that are largely similar languages.
SPEAKER_01Even in kind of the same timeframe, helped create an open source XBase, basically Clipper clone that was called Harbor, making the obvious pun, which I don't think is, I don't even know if it's being maintained now. It didn't have huge success, but it was a neat effort that was fairly early in my exposure to thinking about open source things. Then I started being an actual programmer for good, decent wages and stuff, maybe around the age of 30.
SPEAKER_01Sorry, probably should have got some water, which is maybe atypical. Most people who do this do this from an earlier age. And even when I wasn't a computer person, I did just for fun read computer magazines, you know, Byte Magazine and Dr. Dobbs and things like that that were a thing at the time. And in 1998,
SPEAKER_01I know when it was, I was on a one-year contract for a particular place where I traveled to a different location and lived for a year. I worked for a big insurance company writing Clipper code, preparing things for Y2K. And so the world crashed for Y2K. And I don't know what, I mean, it might've been an online thing. It might've been one of these magazines. I'm not quite sure, but I saw a brief article, like a one page kind of thing on Python, which would have been Python 1.4 then.
SPEAKER_01and thought, this is interesting. I like this language. It has some elegance to it. It has a nice looking syntax. It seems expressive. But it wasn't actually like as many people I know say that they just saw the syntax and semantics and fell in love with it. I thought it was interesting, but I thought a lot of things were interesting. And I thought this is so much better than XBase, which is I mean, or other things I'd use, but that was the one I was using most around the time.
SPEAKER_01But then that job that was basically calendar 98 ended and I went back home to Massachusetts where I had a house and I was living at the time. And it was probably in 99, so the next year, I did some various computer kind of consulting stuff and everything. doctoral defense and stuff in 99. But I stumbled across The Chance. I don't even really remember exactly where I first saw it, but it was an opportunity to write for a publication called IBM Developer Works,
SPEAKER_01which still exists in a sense, but now it's pretty much just IBM selling their own stuff, which is fine. I mean, it's their publication. They have the right to do what they want with it. But for this period of basically the decade of the 2000s, it was a really good resource for open source stuff. And just Python, other tools and languages and so on as well, that is one of the premier sites you would go to if you were in that time period and interested in these things.
SPEAKER_01And so I wrote a column called Charming Python and another one called XML Matters back when XML was also a big thing. I have nightmares about now, but I understand why it was what it was at the time. And it's still inside of things now, of course. But so during that, writing that column and in some various other articles about programming, open source-y kind of things,
SPEAKER_01I got to be the most widely read Python author in the world. because I was fortunate enough to have a placement in a place that was well-read, but also I really do believe a lot of managing to have a particular authorial voice and a particular style of writing that appealed to a lot of people. It worked out over the decade or a little bit less than a decade that I wrote for them to tens of millions of people who had read my bylines.
SPEAKER_01And it was an amazing experience to do that. I mean, for a couple of reasons. One was that I'm smart and I know some things, but I never went to school for programming. I'd like to say I took a programming course, but that's technically not true. I took one called something like Fundamentals of Computer Science or something like that in my freshman year. So that's the one more on my record of having taken one course once. So I can't quite be an autodidact as one course.
SPEAKER_01But basically, it's just things I was interested in. So I got to write these articles that were a few hundred articles over the course of the years, like 2,500 words each, something along those lines. And every time I did it, it was almost like this opportunity to... jump back into grad school in a different topic than what I actually studied in actual grad school. But there'd be some algorithm or some data structure or some programming technique
SPEAKER_01or some interesting library or a different programming language. And I would learn enough about it to know it was interesting and that I would want to write an article about it, but then the documentation was never quite adequate or it didn't quite explore the niches that I was interested in or it didn't explain them as well as I thought would be possible. So I wrote the article I wish existed before I started to explore that topic, which of course also meant in many cases learning enough to understand what the
SPEAKER_01relevant concepts were, what the relevant framework was that makes that particular technology important, and then sharing it with people. And one thing that was really great was IBM never got anything other than first publication rights. So after a respectable period of a few weeks, a month, something like that, everything I ever wrote became public domain. And I got paid just by the article by IBM. It wasn't big money, but it was enough money to live on, so that's fine.
SPEAKER_01And And it was reaching all these people, but also getting sometimes feedback from around the world, especially in the global south. We say now, we didn't say it then. But the underdeveloped world, the people without the money to buy an actual book or go to university. But then, obviously, they cared about programming and computers to some extent and had some access. but who would write me from Bangladesh or Central Africa or somewhere like that saying,
SPEAKER_01I read this article and I benefited from the thing that you explained. And that was just so gratifying that I could have this effect around the world that somehow it made people's lives a little bit better. I mean, a particular kind of person who was interested in a particular thing, but it really always felt like this public service that I was doing it.
SPEAKER_02Mm-hmm.
SPEAKER_01I was paid for it too. It wasn't completely paid. So anyway, so I did that for a while. And then in 2006, I went to some conference and I was pitched on it. And I took this insanely high paying job in a a high volume trading company with this horrible, horrible toxic narcissist boss who was just abusive and horrible. And a lot of people have had these kind of experiences, too many.
SPEAKER_01And anyway, so I lasted a bit less than a year, but I made way too much money. And I was very glad when I got fired from that. Well, I mean, it was a little bit of a surprise. It happened exactly when it did, but I kind of knew it. He got fired at some point. It worked for him. So it was the normal course. So, you know, whatever, I had money in the bank. And then, and also in the course of that, I had moved to Los Angeles from a small town in Massachusetts. And so it was nice to be this much more culturally rich environment and
SPEAKER_01And I went on and did lots of other things while there, various jobs. Actually, including, I mean, I'm going on a long time with this and hopefully this is okay. But one of the things I did not, like a year or two years or something after the one thing ended, the thing that brought me to Los Angeles with the high volume trading thing, I had an opportunity to work for a company called Dishar Research who had built the
SPEAKER_01world's fastest highly specialized supercomputer for doing molecular dynamics, protein folding and the like. And this was completely custom. The chips, the CPUs were unlike those in any other machines in the world. They were, you know... They had the good chip designers who designed it. The interconnects between the nodes had much better latency than InfiniBand, for example, because at the time, InfiniBand was too slow for what we needed to do.
SPEAKER_01And there was a lot of really interesting, highly specialized stuff. There was no floating point. Everything was fixed point. And you just had to do constants of adjustment for the different kinds of quantities that would do. And it was, I mean, of course it was Turing complete because everything is Turing complete, but it was basically worthless for doing anything other than molecular dynamics. But when you wanted to do molecular dynamics, it was two to three orders of magnitude faster than the next best supercomputer in
SPEAKER_01the world. Which is impressive. And it was so exciting to have... I mean, what I actually started doing was documentation. It was as a writer, technical writer, about documenting the APIs and the chip architecture and the interfaces that people programming in Xero assembly would use initially. But... sort of moved up to C++ in the next generation. And then I sort of mostly did the documentation stuff, but they kept me around as a contractor.
SPEAKER_01And so I did a bunch of work in Python for various kinds of tooling. So the stuff that would queue up jobs and the stuff that would analyze jobs that were performed and the stuff that would manage code quality and a lot of the Mm-hmm. Code infrastructure kind of things. But one of the things, and this is the callback that I mentioned, is this supercomputer, fastest in the world for doing this particular kind of task that I was so honored
SPEAKER_01to be able to contribute to in my own way. I mean, I was surrounded by people who were just the smartest people in the world. I mean, just like literally, like they were the people. It wasn't just that they got their doctorates at Ivy League and other- world top universities, it's that they were the person that was smarter than all their classmates in those math, science doctorates at the best universities. And everybody there was way, way smarter than me. But it was in New York and I was in Los Angeles,
SPEAKER_01but I would go there once a month for the meetings and some of the other travel in as well. But there was a reason I was at the table. And that was such an honor that I had a good reason to be at that table, which was just still filled with joy at the opportunity that was and the fact that I could contribute. So I did that for that period. But one of the things about it was on the supercomputer with the molecular dynamics jobs,
SPEAKER_01long-scale simulations of protein folding and whatnot, it was batch computing. It was the thing that I started this whole story with because the chemists who were, again, world-class brilliant chemists would design the particular chemical simulation that they were interested in. And, you know, submit it to the queuing system and it would go in the queue and it would get time slices of the resource. And you would, you know, log the results from the amount of time that you got in your slice and then resume
SPEAKER_01and all this sort of thing. But in a sense, it was exactly like my 14 year old experience with the punch cards and coming back the next day and everything. So it was like this odd reinforcement of going from what's now a very crude machine to what's even today one of the most powerful machines for this particular task, where it was still sort of paradigmatically the same thing. And I thought that was just fascinating and interesting.
SPEAKER_00Mm-hmm. It's funny how computing has changed so much and yet remains still the same in some ways.
SPEAKER_01Indeed it is. And then more stuff after that. Well, I didn't help. I created the training program for Anaconda and I have taught lots of data science and machine learning stuff. And then along the way there, written a lot of books and a variety of other things.
SPEAKER_00That's really cool. I hadn't realized you'd gotten into data science, too. I don't know why.
SPEAKER_01Yeah, no, at least one of my books, the one that's called Cleaning Data for Effective Data Science, is solidly a data science book. That's what it is. I mean, it has the subtitle, Doing the Other 80% of the Work, because every data scientist has the joke that they, I mean, except it's not a joke, it's true, that the work of data science is cleaning the data. Sometimes you see a different percentage, but the joke's the same. And it's not
SPEAKER_01I mean, it's true. You have to make your data of sufficient quality that you can throw it into this, you know, sophisticated neural network, you know, whatever kind of model you're working with. I mean, well, okay. Like some of the raw data training on things like the new large language models and stuff are, it's a little bit different there. It's sort of not really very clean data. Well, there's still cleaning involved, but it's a different kind of thing. But I'm thinking sort of,
SPEAKER_01old-timey in the sense of five years ago. We have a bunch of data that is trying to make certain predictions, medical analysis or chat to show somebody or various things that might be data and make a prediction kind of structure of machine learning models. And for those, the cleaning part is definitely... you know, the core. And there wasn't a book about that. I mean, there was every book that was about some machine learning library or a particular
SPEAKER_01technique in machine learning. Not everything is always deep neural networks. There's lots of other techniques. But then it would, you know, there'd be like an appendix or the preface or the first chapter maybe that would quickly say, oh yeah, by the way, 80% of what you do is this cleaning stuff. And I really felt like there was this deficit of the book that I wrote, which is sort of, again, kind of calling back to when I wrote the articles that it was always like,
SPEAKER_01well, what did I wish existed before?
SPEAKER_00Yeah, exactly. Yeah, I was thinking back to when I started Python, and I'm pretty sure I know I used IBM DeveloperWorks as one of the many websites I used to learn Python. So I'm sure I was reading some of your articles on there, especially since I had to deal with XML a lot early on in my career. So it's funny you brought that up. I was like, oh, yeah, I remember IBM DeveloperWorks being a really good resource there for a while. It was great.
SPEAKER_00So many of those websites that I remember back then, you had that one, you had FBot, and that Frederick Lund's website, I believe.
SPEAKER_01Yeah, he's great.
SPEAKER_00And then you had, there's like the Starship or something that had a lot of different blogs on it. It was like the original, was it Starship? Something like that. The original kind of Python package index where like everyone was publishing their The packages. I can't think of what it's called now.
SPEAKER_01Oh, the was early. Remember that? I might be thinking of Cheese Shop, too. Oh, Cheese Shop. Yeah, yeah. That was a name I went through, too. I don't remember how much of the code is the same between the different iterations, but.
SPEAKER_00Yeah. Well, anyway, there's a lot of those fun different websites that just don't exist or they're so stale now they're hard to load anymore. Anyway, memory lane. So after seeing Python change so much over the years, do you have any favorite Python packages nowadays?
SPEAKER_01Well, there's so many things. I mean, obviously, we have such a wealth of thousands and thousands of packages, pretty much everything. And some are well-maintained, some are just throwaway things. But you can usually find something for any given thing. But in terms of what do I really use? I mean, there's always that more specialized thing that I need for this particular task. And of course, I use that to evaluate a few different options.
SPEAKER_01But every day, I use NumPy and Pandas, too. One of the things I really love is IterTools in the standard library, which is this little niche. It's so cute. I mean, it's actually sitting next to Raymond Hettinger, who was basically who hired me at the high-volume trading company. He recommended me, whatever, but he recruited me on it when he was writing Inner Tools.
SPEAKER_01Other people contributed too, but when he was getting this in there. Before it was part of Python, contributed a few ideas to how it would be designed. But all credit to Raymond and the other people who actually did it. I was a sounding board. But still, I was a sounding board before it was incorporated. But then also things like I use every day are requests and PyYAML,
SPEAKER_01which they serve a narrow purpose, each of them, and I can't believe they're not in the standard library. I completely understand the reasons why they're not in both cases, but nonetheless, it's hard to imagine Python without those. And I love CycHitler, for example. It has this kind of quirky API, but once you learn it, it's just so consistent and logical. And of course, models follow very much the same pattern, so you can just sort of
SPEAKER_01fairly transparently just substitute different kinds of models um i love soup still i mean beautiful soup's pretty old um scrappy is maybe kind of displaced it in some i don't know displaced but it's maybe it's more sophisticated than beautiful soup but i beautiful soup before scrappy was even developed so so yeah i still haven't agreed and it does what i need um I mean,
SPEAKER_01those are all sort of like, you know, basic toolbox kind of things that I said, not the more, I mean, maybe scikit-learn is a little in the direction of the more exotic, but it's like those basic tools, you know, your hammer and your screwdriver and stuff are good for so many things.
SPEAKER_00They are. I mean, when I wrote my first book, I was like, these are the Python library packages that are built in that you need pretty much for your entire career. You're always going to be using these. Like iter tools, the OS module, PathLib now has kind of replaced a lot of what I did with the OS module. But there's a lot of those basic modules that you just use every day. And you're going to continue using them every day if you continue to use Python.
SPEAKER_00And you just stop thinking about it. It's like, oh. I'm going to use that again tomorrow.
SPEAKER_01Yeah, I probably should have mentioned PathLive. I do love how much that unified a bunch of stuff that was stuck in OSPath and Sys and a bunch of different places. And you just, it's really nice to have, yeah, shout you too. But you just have this one path object, and it sort of has all the methods you need. And that is definitely a huge improvement that I appreciate.
SPEAKER_00Yeah, it still trips me up sometimes when something requires the string path and it won't accept the path object.
SPEAKER_01Yes. Which is why whenever I use something that's path-like, I mean, sometimes I'll do an annotation and I'll, you know, I don't think there's actually a decent path-like function. type in the typing module. So I always just define myself as string or bytes or a path object. Give that name in my own code basis. And it's probably a deficit. I should maybe try to submit a patch or something to typing that there has to be path-like.
SPEAKER_01And I know I get pushed back for a bunch of reasons. I know, but... I actually think are correct. Anyway, but I, you know, so maybe I'll annotate it as path like the argument that's going from one function to the other. But then by the time I want to use it, I just stick it inside an F string. So it's just, you know, F quote, curly bracket, my path, and like, it's going to do the right thing, no matter what kind of thing it started as there.
SPEAKER_00Yeah, agreed. There's always this edge case where, especially when you're doing a hack, and you're like, oops, I did it again, and that didn't work. Anyway, let's see. So you touched on writing books, but what made you motivated to start writing books in general? That's like a step up from writing articles.
SPEAKER_01It is. It's definitely more of a commitment than writing an article. I had this six, eight years where basically what I did for a living was write the articles. Although the first book I did was kind of in the middle of that time. But it seemed natural to go from, you know, writing these technical articles to writing technical books. But at the same time, though, really what I've done my whole life has been largely writing.
SPEAKER_01I mean, you know, Dr. Rodney's topic is about writing. Okay. But even as well as that, I've just always admired literary writers, you know, novelists and short story writers, things like that. But nonfiction too, some of it is just exquisite prose. And I've especially liked, get called like experimental or transgressive, some novelists, especially that way. And I kind of, that sort of, you know, got into my head and I,
SPEAKER_01there's a kind of literary quality that I really want to bring to whatever I write. Um, you know, it's about technical stuff nowadays. I don't write, you know, novels. Um, yeah, I'm not being dismissive of the people that do. That's wonderful. They do. Um, But the kind of style I have is very conditioned by the academic background. And I know that a lot of what I put in, the articles and the books, has a kind of obscurantism to it.
SPEAKER_01But I'm not unaware of it.
SPEAKER_02Mm-hmm.
SPEAKER_01When I read things like this throughout my life, that always appealed to me. Then when like, okay, there's something being expressed, it's definitely over my head, but I can kind of see why it's interesting or important. And I'm going to follow that away and I'm going to understand that later. And I really try to do that. Different people obviously have a different attitude towards writing. But when I try to put in these flourishes, the sort of very literary kind of qualities interwoven with the technical content,
SPEAKER_01and still always having in mind to try to write the thing I wish existed before I started writing. But also putting in this extra stuff that gives the prose a good quality as prose and that gives little hints to things that people will maybe find in later chapters or... will at least find interesting that they want to investigate. But the first thing I did, and it was very much motivated,
SPEAKER_01the same as what I've been saying repeatedly, was text processing in Python in 2003. And it was very much like, oh yeah, I wish there was a book that treated in a thoroughgoing way, text processing in Python, and there wasn't. So there's lots of books that had a chapter on it or brief mentions or a little bit in the Python tutorial that's about that or wherever you would find stuff. But there wasn't a book on that thing, which we heard it a book.
SPEAKER_01And then a few small books here and there for a bunch of years. Not that many, like two, I think. O'Reilly and they sort of commissioned a couple, you know, those kind of books that they give out at conferences as opposed to the kind that they're trying to sell. But in 2020, and partly because it was pandemic and everybody was at home. Mm-hmm. I think I started it when I was between jobs.
SPEAKER_01And so I had some extra time as well. I was still doing some training and whatnot. But anyway, I decided that Cleaning Data for Effective Data Science book was another bigger book that just had to exist. Because again, it was the thing that was mentioned passingly in lots of other places, but not really treated systematically. And I wanted that title to exist.
SPEAKER_01I mean, you're a book author. You know that you don't make money from books. Although, I mean, my good friend Luciano Romalo has actually made a lot of money from his book. Not a lot, but enough to live on kind of thing, which is in order of magnitude more than I ever make money from my books. I haven't seen your royalty statements, but I'm guessing it's the same story. So it's not that I'm motivated, but I'm doing this for a living.
SPEAKER_01I'm doing this for a passion that I want this thing to exist in the world and I want to share these ideas, these thoughts, this understanding with other people. Mm-hmm. sort of over pandemic, um, there's weird twists to it, but I did a couple more short books. They were again, sort of throw away special topic things. One was like, I did the first book on the, um, AI coding assistance for Manning. Um, basically, you know, right after copilot came out and, um, it was, um,
SPEAKER_01Regular Expressions and AI Coding Assistance, the title. And so it was this other material I already had about regular expression tutorial, which had been widely read for free. And I sort of touched that up a little bit and then through all the different examples at ChatGPT and Copilot and saw what it got right and what it got wrong and tried to give some insight why it goes wrong when it goes wrong, and how we should think about that, and where we should be cautious about the dangers of the AI coding assistance.
SPEAKER_01But at the same time, acknowledging where they actually go right and can be helpful. Now they've got a little bit more sophisticated, but I still think they merit the same kind of caution. Anyway, that was a fun book, but it was sort of a book of the month. It's not evergreen. Two years later, there's no reason to read that book anymore. Well, no, no. I think it's still fun. I'm not trying to urge people against buying my book. Go buy it.
SPEAKER_01It's still fun. But it was not fun. Well, I mean, the old 2003 one is completely out of date because it's about Python 2.3 or something. But the cleaning data, I think, it sold terribly because PACT is not good at promoting books, as in they don't promote books. And I advise any listeners, don't make the same mistake I did and don't publish with PACT if you want to write a book. But anyway, so I did another one that's most recent called Better Python Code,
SPEAKER_01which sort of got bounced around a little between publishers like all my books have. But it is an opportunity for me to express. It's still relatively thin. It's not tiny, but it's a bunch of insights and wisdom and advice in a variety of areas of Python. And it kind of spans some relatively beginning stuff to some fairly advanced stuff. But I hope that it weaves it together in a way that it is accessible across a variety of levels. And anyway, that's back on Addison Wesley, which I had done the very old one in 2003 with.
SPEAKER_01And it seems to be getting some readership, which is good. I mean, because that's what I want. I want people to read it. I mean, getting a royalty check is fine, but I want people to read the things I write.
SPEAKER_00Yes. Agreed. So with all this writing over the years, do you have any life lessons, things you've learned from being an author that you can share with our listeners?
SPEAKER_01Well, yeah, I don't know. That's tough.
SPEAKER_00I mean – I mean, you already mentioned you probably aren't going to make a lot of money, which hopefully that'll help people know this is a passion project.
SPEAKER_01Yeah. Well, unless you can be Luciano, who very, very deservedly has his book translated into 20 languages and sells well in all of them.
SPEAKER_00Or Al Swigert, who's got a ton of stuff, too.
SPEAKER_01He's done shockingly well with his book. It's a delightful book, but I... I'm, it's delightful, but I'm still surprised that it's done as well as it has.
SPEAKER_00Yep.
SPEAKER_01Um, but that's, that's great that it has. Um, and actually, um, Naomi Cedar, her book has done very well too. And that's a really great book. She's done an excellent job as well. Um, So, okay, so it's a little bit of a mixture. There's a few people who make actual money from it. But I mean, for me, it's... And maybe this is advice to other people who want to write. I mean, when I talk to young people at conferences in the last,
SPEAKER_01well, for a long time, but especially the last couple in the last year where I spoke in Nigeria and then in Ghana, and people are so eager about how can I... How can I learn this thing? How can I understand it? And me writing it down has often been of such benefit that I feel like I don't completely understand something until I'm able to write down a good description that is even hopefully helpful for somebody else of that particular concept.
SPEAKER_02And I mean,
SPEAKER_01very often, less and less with now getting to be on 20 years old articles because just things have changed. But there's some tool or some construct or some data structure or something like that I use infrequently. And, you know, then I realized I need to do that thing again that I wrote an article about or book about a bunch of years ago. And very often I go back to my own material, which I don't think it's just...
SPEAKER_01I wrote it down the way that I wanted it to be explained. So at least for my head, it is the explaining it that's most useful. And maybe not for everybody, but hopefully for many other people. And so then I can look at what I had done and that's a nice refresher on how do you... Oh yeah, that reminds me. That's how I think about this thing. And obviously I hope that it can be that way for other people as well. But even so, even if it's just their diary or their private blog or their whatever,
SPEAKER_01I feel like this act of writing is very much an act of understanding and learning. And I guess that's in many ways what I've learned as an author.
SPEAKER_00I think that's good advice. It's something I've said to a lot of people too. If you can write it down in a way that will help other people or your future self, you should definitely do it because I'm always referring to my old articles from time to time. In fact, sometimes weekly, I'll go back to an article I know I wrote a few years ago and relearn a subject. Yeah. That's a great piece of advice.
SPEAKER_00Let's switch gears here just a little bit. You mentioned that you have been speaking at conferences. Do you have any tips for becoming a good conference speaker? I sort of do.
SPEAKER_01And I sort of do in large part because I was asked this question by other speakers at conferences. And I have such sympathy with people who are just giving their first or early talks. There's a certain awkwardness and they aren't quite sure how to put their things together. And obviously then it is less beneficial to the audience than it should be. And it's not because they're not brilliant people who have relevant knowledge.
SPEAKER_01You need to structure things. And really, a good conference talk should tell a story. And I sort of like a good fiction where maybe the speaker is, in some sense, an unreliable narrator in that special sense of literature where an unreliable narrator is a narrator of a story. you know, the novel or the short story or whatever, but give away their, you know, position as being one that you can't necessarily trust in the way they're telling it.
SPEAKER_01And in a way that kind of device can exist even in a conference talk that tells a technical story, but that's okay. I mean, you can kind of like, it's a certain winky breaking the fourth wall kind of thing about admitting your position in that. But again, But whether or not that's true, the underlying story you're telling in your conference talk should be thought-provoking and something compelling to follow. So it really is a story people want to listen to.
SPEAKER_01And in my opinion, I rarely find that to be true where the story is a biographical journey. It's done entirely that. I've said a fair bit of biography in talking to you, and when I talk to other people, know a bunch of things about me. That in itself, for the person on the conference stage, isn't really that interesting. At least it's not that interesting to me. I mean,
SPEAKER_01whether it's the personal life history story or whether it's the programming story of, I tried this and I tried that and I tried that and then I arrived at a different thing or I wrote my own library or whatever is the thing that you did as a result. But if it's framed too much in terms of just... You should care because this is what happened to me. Well, I don't. I mean, a lot of the people that give those talks are my friends. Or even if they're not my friends,
SPEAKER_01yes, they're people I would love to be my friends and hear those stories when we go to dinner afterwards. But that's not what should go on stage. It should be this story about the... technology or the competing concerns of the different technical constraints, or if it's a more sort of community one about the social processes that are at play in considering this, organizing some project or...
SPEAKER_01you know, organizing a conference or a technical project or something like that, but it should still have a kind of narrative quality where you get a sense of, you know, journey, I guess, in a sense, but, you know, a, a, A set of protagonists, which aren't people, most likely they're technical constraints or antagonist and protagonist. And there's a resolution and this somehow fulfills or satisfies the concerns that started the story.
SPEAKER_01And it's great if it all gets tied up in the half hour or the 45 minutes or whatever and you feel like... You heard an interesting short story about a programming library.
SPEAKER_00Yeah. That makes sense. So is there any good tips for submitting a talk idea? Do you recommend asking chat GPT, give me some quick baby titles?
SPEAKER_01I'm not doing that. No, I kind of don't like the large language models.
SPEAKER_00Well, I don't either, but I'm just like, how do you get your talk in front of people? I mean, you and I might have great talks, but how do you get them accepted?
SPEAKER_01Oh, well, yeah, no. So this is jaded. Maybe you should just cut it out or something. I've actually... So I've gotten declined by US PyCon a ton of times. I've had some talks there, but not for a number of years. And I haven't submitted to every single one, but I have a number of times. And I know I don't have... current, current data. I mean, when I was on the board, I would have a bunch of years ago,
SPEAKER_01we would get a sort of summary report from the PyCon organizers. But basically, I know in a general way that it's the case that about one in six talks is accepted. At US PyCon, at other conferences in other places in the world or regional ones that aren't as central as that one, it's a percentage that are accepted. You sort of have to, there's a lot of guesswork involved. You have to sort of think like, where is the sort of spirit of the times at the moment?
SPEAKER_01What is the thing that, I mean, I suppose the audience, but also specifically the conference committee, really want to make this conference about at this point in time? And how do I pitch something that meets their idea of what the distribution of talks? I mean, obviously, writing it well with a clear description of what it is you hope to say and some explanation of why that is relevant and important. That kind of is a prerequisite before you get there.
SPEAKER_01But even one of the talks that do that, of all the proposals to US PyCon that are well-written and compelling and would be great talks, I mean, maybe there's a fraction, 20% or something that are sort of crappy proposals and those shouldn't be accepted. But then even of the ones that would be great, a small percentage are accepted. Yeah. So in a way, probably proposing to smaller conferences or less exclusive ones as a starting
SPEAKER_01point is a good idea. But the reason I said at the beginning that I'm jaded is that Mostly, I kind of know everybody in, not everybody, but I know a lot of people in PyCon communities. So mostly when I give talks, like the one in Nigeria and the one at PyCon Africa, or the year before last year, I gave a talk in Dubai where I was one of the advisors of the conference for PyCon
SPEAKER_01MEA Middle East Africa. And I gave one in Estonia and I gave one in Sweden on the same trip. And, you know, I just sort of knew, or I knew they would at least know me by reputation. And I just, you know, communicated with the organizers and said, Hey, I'm, you know, a person, you know, why don't you have me talk? And I realized people who haven't been around so long as I have, or, you know, have a relative recognition that you can't just do that same thing.
SPEAKER_01And I totally try not to say that in a way that's like braggadocio or elitist or anything.
SPEAKER_00No, I totally get it. No. Because, I mean, anyone who watches the talks, I mean, you can tell some people will get in more often than others. And there's nothing wrong with that. Most of the time, if they show up multiple times, it's because they're really good speakers. And maybe they do have an in, but most of the time, you know, like, who's a good example?
SPEAKER_01Dave Beasley.
SPEAKER_00He talks a lot. Yeah, Beasley. Or Raymond. I was trying to remember. Yep. And Reuven. Reuven. Oh, yeah, Reuven. Those guys always give great talks, and I would go to them every single time if I could. So... And, you know, we know in general that the thought committees, the submissions are blind. So they're not like getting chosen because of their name. They're just good at pitching to some degree. I mean, well, they're mostly blind.
SPEAKER_00Let's come on. But there's not,
SPEAKER_01I mean, I don't know proposals of anybody else, but there's not, I mean, even if you, every proposal I've ever made anywhere, you can, you know, take my name off it and everybody knows it's me.
SPEAKER_00I mean, okay, fine.
SPEAKER_01You know, you can take every talk that Raymond has ever given anywhere. You take his name off, you know, from the description, it's him. And I mean, people who are starting in the language or starting programming or whatever, no, of course, they don't know the sort of ins and the personalities and stuff. But the people on the speaker committees are familiar with, you know, 34 people who are well-known and have a style and a reputation and have a very
SPEAKER_01characteristic way of presenting and hence of writing proposals.
SPEAKER_00Okay. Cool. Well, I figured as much, but, you know, let's give them the benefit of the doubt. Yeah.
SPEAKER_01It's just, you know, I mean, it's the same in like academic publishing and whatever scientific field. And you're supposed to have a blind peer review, I mean, blind reviewer for the initial acceptance of it and stuff like that. But in most scientific fields, there's, I mean, you know, it's sort of a high level of, you know, nature and science and, you know, prestigious journals, New England Journal of Medicine or something. And you're writing on this particular subject you know, very specific scientific research topic.
SPEAKER_01I mean, the same as humanities of, you know, literary, you know, some novelist historically that you're doing or whatever. There's, you know, 20 people in the world who could possibly be writing that paper. And the reviewers, people with expertise know that's the case.
SPEAKER_00Yeah, of course.
SPEAKER_01And they know those 20 people personally.
SPEAKER_00Yeah.
SPEAKER_01And I mean, there's not really a way around that.
SPEAKER_00No, it's true. The Python community has grown by leaps and bounds, though, so I thought it might be a little bit more difficult to see some of that, but I can see that. Speaking of which, what do you think is your favorite part about the Python community right now?
SPEAKER_01Okay, so I'm going to give a... I'm going to go on in a little digression, but I kind of think it's interesting and important. Okay. So let me start with a bit. When I gave the most recent keynote in Africa in September, I led off with a comment that my journey into Python was the reverse of Brett Cannon's famous slogan about the community. And I said in this talk that I came for the community and stayed for the language.
SPEAKER_01Of course, the obvious reversal of the terms. But it really is true for me. I love the expressive power and the clarity of Python. And I love, of course, that it's become so prominent or even dominant in so many areas of software engineering over the last 20 plus years. But way back, what really grabbed me about Python, like the early 2000s, or even, I guess, slightly earlier, I started to learn it and write about it and things like that, was the delightful discussions on...
SPEAKER_01And even more than the technical discussions, the digressions on... The Usenet group, Compling Python, and then the Python mailing list that was a mirror of that. And folks like Tim Peters, and Alex Martelli, and Andrew Kuchling, and Steve Holden, and Raymond Hedden, Jay Abuji, and a bit later, Anna Ravenscroft, and other people that I apologize for not mentioning, but other old-timers. they really took the spirit of Monty Python to heart.
SPEAKER_01And there's a kind of levity and good humor to it, as well as this just insane erudition by many of those people. And it wasn't, you know, of course they would connect to technical things. And that was, you know, what this topic of discussion was, but they would do it in a way that was just, you know, for me with my background would just, you know, feed my brain so much. I mean, there was, I've said this a zillion times over the years, and the initiating episode was,
SPEAKER_01I don't know, in 2003 or something, so it's a long time ago. some issue in object-oriented design. Maybe it was into the metaclass stuff. Maybe it wasn't yet in the metaclass stuff. But anyway, it was object-oriented kind of stuff. And Alex Martelli, whom I just love to death, wrote some comment in which he quoted Cicero in Latin speaking to the topic of
SPEAKER_01object-oriented design. And it was like exactly perfect. I mean, it was absolutely relevant and completely illuminated the topic being discussed. And, you know, I mean, okay, that's kind of cheeky that he would do that and he would be able to do that. But to me, that was just such a delight. And it like was this... community forming thing where I know a lot of people didn't get it and that's,
SPEAKER_01I don't have to, but, you know, but this kind of humor about the, even the obscure parts or even the digression. And, you know, those people that are the ones I just named and others that I met online and then, you know, subsequently in person way back 20 years ago, or, you know, many of my, Genuine lifelong friends. And as I get to speak in different parts of the world, I make more such friends.
SPEAKER_01And we're in this initial common bond of Python and the language and the things you can do with it. But then there's more connection to that. And it's people who have all different kinds of geographic and cultural and religious and political and sexual identities and other backgrounds. But those are like the people I value in my life, which has been a wonderful experience with the Python community.
SPEAKER_01But then there is this negative thing that I do want to say that I think, well, so for a lot of years, I was very deeply involved in the Python Software Foundation, the nonprofit in the US that is meant to promote the Python language and protect the intellectual property. And I was a director for six years and I was chair of a lot of committees and I wrote any of the founding documents of the foundation and various other things in that.
SPEAKER_01And for a lot of people, probably including me for a long time, we took the foundation as a sort of proxy for the community it tries to represent. And obviously I understand that, I did it. But I also think it's a mistake. And it's a mistake for several reasons. I mean, partly it's a mistake for just sort of, you know, it's just factually incorrect. There is a community that's not just this particular organization, but also over the last couple of years.
SPEAKER_01But really it just sort of came to a head this year with a vote about making it easy to expel fellows if the directors wanted to. But it actually kind of started before that. I think the foundation's gone in some bad directions, which makes me sad. And a lot of folks, me included, have been banished for kind of, I mean, banished is maybe an overstatement, but shoot away for kind of petty and misguided reasons.
SPEAKER_01And that's me, but it's also basically all the folks I mentioned above as my friends who are the other old timers. And I sort of know why it happened. And I'm going to ask listeners and you to bear with an historical digression to provide a framework because I'm old and way too academic. So you get what you get. Yeah. So here's my story. After the 1917 Russian February Revolution, the revolutionaries invoked a slogan,
SPEAKER_01all power to the Soviets. And Soviets just literally means workers' councils. The idea of the slogan was that political power should be strictly bottom-up and that decisions made at the level of a single factory are made at that level with radically democratic participation of all the workers at that place. However, when the power consolidated after the October Revolution, later in the same year, the same slogan morphed into meaning that all decisions must be made centrally by
SPEAKER_01the Politburo under the understanding that only they could be the true voice of the workers. Okay, this is a weird historical digression that pertains to things I know. But for me, it's actually strangely informative of what happens with a lot of organizations where there's this reversal of meaning of things. And that's kind of what happened with the PSF and many organizations, of course, but it's as a way to facilitate local Pythonistas all over the world.
SPEAKER_01And it's become this much more draconian organization that wants to control and command those people who love the Python language and You know, shape what is a proper and authorized and appropriate community. And people, I won't say their names, but I mean, I know their names and you do too, that, you know, just overzealous in this feeling just way too much responsibility for making everything correct.
SPEAKER_01And that's unfortunate. But on the positive side, it doesn't really matter either. I mean, I go to conferences, as I've been talking about, and give keynotes and other talks. And I meet such amazing people. And here I mention a bunch of places I've been, like Ghana and Nigeria and Estonia and Sweden and Dubai. Belarus, South Africa, Cuba, England, and India. I think that's all the countries I've spoken at besides the US. I may have forgot one or two, but in every place we go, there's such amazing and brilliant pythonistas.
SPEAKER_01And very few of them care that much about the PSF as such. I mean, there is this kind of tendency throughout the world to fetishize a defining authority, and the PSF is the community. It's not a Python thing. That's a human failing. But it's also not true. I mean, all these amazing people all over the world, some who have a variety of their own organizations that help support a particular
SPEAKER_01conference or a particular user group or sprint or whatever kind of thing they're doing, like a project to a library or something. They remain wonderful and the things that I don't like about what's happened at the PSF just don't matter for any of that. They remain everywhere in the world that I've been. So welcoming and constructive.
SPEAKER_03Yeah.
SPEAKER_01So that's in a bunch of different directions. But I mean, so I like really... value these Python communities. And I think it really should be plural because there's definitely adjacencies of all these different communities in different parts of the world and overlaps and the same people can be in many of them at the same time or sequentially or things like that. But it's really... this commonality of interest and passion and you know caring about particular
SPEAKER_01technological things that at some point brings us together and can create very positive bonds among people and you know whatever I wish that harmful tendencies didn't exist but that's just sort of in the nature of humanity that those things
SPEAKER_00arise yeah yep yep it is Well, I am glad that there are so many other communities now because we have all these local smaller conferences, you know, PyCascades, PyOhio. Those are just a couple of the local North American ones. But then you have all those ones you mentioned that are around the world. So we have lots of choices for alternative friend-making Python gathering places.
SPEAKER_01Yeah, both those two you mentioned are such. And Baypiggies, too. And there's others, too. But in the Ohio, I mean, I don't know if Catherine Devlin is still involved, but she's wonderful. And she was, for a long time, at least one of the organizers of that. and whatever I know people at the Cascades and other places as well and they are just they seem like such great places I haven't been to all of them I probably should but airplanes get too many airplanes you get sick of them yeah I keep
SPEAKER_00thinking I'm going to try some of these smaller conferences and I just it's just hard to find time in the year to get to everything but are you going to Pittsburgh this coming year?
SPEAKER_01What's that? I'm sorry, I broke up there. Oh, sorry. Are you going to Pittsburgh at the big conference?
SPEAKER_00I'd like to. We'll see. Last year I couldn't make it, so I'm hoping that this year I'll be able to do so. But we'll see how it goes. I think we're planning a vacation in the spring, so if they don't interfere with each other, then yes, I can go. Yeah. Let's see. I will change the topic one more time to finish up. Do you have any non-technical hobbies that you like to do that you can share?
SPEAKER_01Yeah. I'm sort of embarrassed I don't have a good answer. I mean, it's not really that I do anything else. I mean, I do some other things, but they're just sort of – I don't know. They seem – plane that like everybody does I mean really a whole lot of in a way what I do for a hobby is travel but I travel as I get invited to go to some place and talk and
SPEAKER_00Well, there's nothing wrong with that. I mean, travel is, you know, when you go traveling, is there something you like to do, like trying food or hiking or anything like that?
SPEAKER_01Well, really, the cultural stuff. I mean, sure, the different kinds that are in different places is, you know, delightful to see that. Sure. you know whatever city in whatever part of the world and there's a whole part of the world that i haven't been to yet that i'd love to see um sure but to you know go out in the city with the throng of people and get a sense of how do they live their lives and what you know what's the feel of those you know large communities not just the python communities but the the whole city yeah um i mean i definitely
SPEAKER_01love looking at like art museums and galleries and stuff in all places and Looking at what the local creative people do and music similarly to go to a concert or something in whatever the places. And that's always so wonderful to get these little bit of cultural insight of a particular place. And of course it's little. I mean, I see some city. I was most recently in Accra, in one neighborhood of Accra, basically.
SPEAKER_01Okay, I did a little bit of tour around some other places too. But I would never want to say, okay, I know Ghana or I know West Africa or something like that. Because I spent, my conference was a few days and I took some extra days and did stuff. But like, okay, you get... a nice picture of a place and you meet interesting people and you talk to people on the street or, you know, colleagues at the conference or whatever. And you, it's really exciting to me to see these other backgrounds and life histories that
SPEAKER_01people have and creative things they do. But, you know, it's, it's a tiny snapshot of, you know, a rich and diverse community. nation or region or even city or something like that.
SPEAKER_00Yeah. That makes sense. That's cool. Every time I go to PyCon, I think I'm going to go out and visit Pittsburgh or Salt Lake City. I'm actually going to go out away from the conference hotel and visit and see stuff. I almost never do. I think it's cool that you're taking the extra time to go see stuff. around that area, at least. Yeah.
SPEAKER_01When I was in Pittsburgh last year, this is, well, it's sort of a Python thing, because I went with my good friend Nick Tolerby, who's a Pythonista from England and head for Python. Yeah, I know Nick. Python UK and stuff. We went, and then with a few other people, Actually, another good friend of mine, Katrina Rio, who was president for a long time of Numfocus, which is a sort of sister organization, and some other Anaconda people where Nick is working now,
SPEAKER_01went to Fallingwater, which is, what was it, like maybe an hour and a half out of Pittsburgh, but the famous Woodwright building, house that has this... It's not like a museum and preserved, but it's this architecturally interesting and impressive thing. So it wasn't quite right in Pittsburgh, but it was like, okay, I'm in this place. I can see this thing that I wouldn't see otherwise. And that's so exciting to me. And the people I was with were wonderful.
SPEAKER_00Oh, yeah. Yeah, that's really fun. I keep thinking that's one of my things on my bucket list for PyCon is actually going out, do something with some other Python people outside of the conference. And for some reason that hasn't happened yet.
SPEAKER_01One of these days. They're great people. And, you know, even if it's just go a couple miles away and get a nice dinner with, you know, you know, five of your friends who are in this community, then, you know, it's like this really great bonding experience with them.
SPEAKER_00Yeah. Yeah. So if you're, if you're a first time PyCon goer, try to find somebody to go out to have dinner with at the, in the evening. That's one of my recommendations. Yeah. All right, well, it's been really good to have you on the show today, David. I really appreciate you taking the time to chat with me about all these different topics.
SPEAKER_01Thank you so much, Mike. It's been a delight.
SPEAKER_00Yeah, and thank you all for listening to the show today. I will include lots of links to some of David's work so you can check out what he's been up to and maybe even watch some of his talks.
SPEAKER_01Follow on Apple Podcasts. Mike Driscoll, The Python Show.
In this episode of the Python Show Podcast, I am pleased to have Tim Hopper as my guest. Tim is the author of the Python Developer Tooling Handbook, a free online resource for everyone. We chat about Python tooling,...
In this episode, we hear from two sisters who put together a beginner's book about Python. The unique hook for their book is that one sister wrote the text while the other did the illustrations. Listen in as we learn...
In this episode, we have special guest Paul Everitt on the show to talk about the new Python Documentary that came our last week. Paul is the head of developer advocacy at JetBrains and a “Python oldster”. We chat about...
In this episode, we have the honor of having Nicolas Rougier on our show. Nicolas is a researcher and team leader at the Institute of Neurodegenerative Diseases (Bordeaux, France). We discuss how Nicolas utilizes...
In this episode, Mike Driscoll talks about his latest book, Creating TUI Applications with Textual and Python. Learn about how and why the book came about, what were some pain points in writing the book and how much fun...