Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

The Python Show

The Python Show artwork

51 - Dead Simple Python with Jason McDonald

Jan 9, 202538 minAudio
ShareXLinkedInFacebookWhatsAppEmail

In this episode, we have special guest, Jason McDonald, the author of Dead Simple Python from No Starch Press. We chatted about the following topics: * Python packages * Packaging in general * Python concurrency vs parallelism * Book writing * What’s coming in the 2nd edition of his Python book * and much more! Links Check out the following links from the show: * Get Dead Simple Python from No Starch * Check out Jason’s website * You can find Jason’s fiction books here The Python Show is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber. 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_03Mike Driscoll, The Python Show.

SPEAKER_00Hello, and welcome to The Python Show with your host, Mike Driscoll. That's me. Today, I have a special guest, Jason McDonald. He's the author of Dead Simple Python, which is out on NoStarch Press. Thank you for coming on the show, Jason.

SPEAKER_03Thanks for having me, Mike.

SPEAKER_00It's good to have you. So I'd like to start my show with just kind of an introduction. Could you tell us a little bit about yourself and your journey into programming?

SPEAKER_03Oh, absolutely. Yeah, so my journey into programming was accidental. My aspiration my whole life had been to be a doctor. But a run-in with a staircase banister when I was 16 ended that year. had a great traumatic brain injury, had to relearn a lot of things, including how to read. I did eventually rebuild academically, but just kind of that natural proficiency for biology was no longer there.

SPEAKER_00Okay.

SPEAKER_03But, Along the way, I had found educational games to be very helpful. You know, I had a collection of them, like stuff from the 90s, like Carver San Diego and Cluefinders and whatever. And that was really helpful for me to rebuild my skills. And so I started thinking, well, I wish there were more of these out there. I wish more companies still made these. So I thought, well, maybe I could make some in that. led me down this path of trying to build a game. And I didn't think I could do coding.

SPEAKER_03I thought, well, coding's for people who have degrees. And my mother, bless her, is like, hmm. I don't know. I think you could do it. And so she gets me, um, I think it was Sam's learn VB.net and 24 hours or something like that.

SPEAKER_00Yeah.

SPEAKER_03And, uh, that was my first foray into programming. I discovered, Oh, this actually makes sense to me and I like it. And so from there, I just kept, you know, building my skills.

SPEAKER_00That's great. I'm glad those, those, uh, 24 hour books actually work to some degree. Yeah. Yeah, it gave me enough of a taste to go, you know what, this makes sense.

SPEAKER_03You know, because I tried to pick up, ironically, I tried to pick up Python before that head injury. Okay. And it did not make sense. I could not wrap my head around coding. It just was illogical. But after that head injury, it made sense to me. Yeah.

SPEAKER_00Well, I feel like, and I don't know why a head injury would make a difference or not, but I feel like when I was first learning programming, I did not get it. And I was in a computer science class for two years and I'm like, I get the, I'm really good at testing, but I really don't understand how to put anything together. Even after two years of computer science, it wasn't until the third year that it started to click. And I'm like, what the heck? Why didn't I get it for the last 12 months, 24 months?

SPEAKER_03Yeah, I do know the head injury had something to do with it because of my relationship with math changing prior to it. I hated math, and I could get okay grades, but it made zero sense to me. It was just like, okay, I'll go through the motions, and I should get the right answer or something, at least approximating it. After the head injury, math... was like breathing for me it made sense and i enjoyed it which was weird because i math has always been my least favorite subject i would rather

wash dishes uh yeah do math um but after the head injury it became kind of this island of constancy and i loved it and i loved the fact that if i put the same things in i get the same

SPEAKER_03things out And programming was a kind of an extension of that. So I really started from the part that I gravitated towards first was really that algorithmic thinking. And I just really enjoyed the idea that you could tell a computer, take these inputs, do this thing, and then output the results and you get that. Although I will say the moment that I actually squealed like a little girl was when I first got a dialog box to pop up. and it was just yeah big deal because it wasn't just a dialogue

box it was my dialogue box oh i hear you okay getting the ui to work is really exciting so i like it i still like it i've been doing this almost 20 years now i still like creating a ui that works and it's somewhat intuitive yeah that's the it's the best part

SPEAKER_03definitely

SPEAKER_00So you mentioned Python. What are like your favorite Python packages right now?

SPEAKER_03I am deeply in love with fast API for one thing. I've been using that a lot last couple of years. Building APIs is fun for me. You know, speaking of that user interface, it's like it's not very graphical, but you're still trying to create something that's consistent and easy to use. And I enjoy that. Yeah. I also have been having a lot of fun at the same time with Hypothesis, which is a testing library for Python works very well with PyTest.

SPEAKER_03API testing with Hypothesis is a trip. Because you define how it should be working, like reasonable range of possible inputs. And then Hypothesis will throw everything in the kitchen sink at it to try and break your code. And that can be really fun. I don't know why. Testing can be enjoyable. Yeah.

And I think testing APIs brings some special challenges because an API is usually

SPEAKER_03just an intermediary to something else. And so you have other things like files and databases and perhaps other APIs or websites, command line applications. When you're writing your tests, obviously you don't want to test all of that. You just want to test the API. And so... writing fixtures and monkey patching and using things like Faker to create fixtures that simulate an application or simulate a database without

actually being one,

SPEAKER_03that's very rewarding. And it's a little room for creativity, too, because you start having kind of fun with those fake things.

SPEAKER_00Yeah, yeah. Does hypothesis kind of do like mutation testing or is that different?

SPEAKER_03I believe so. I believe that's what it's called. Yeah, where it's where it's. Well, no, maybe not. So hypothesis will throw different inputs. So like if you could just say this needs to be a string. then it will throw at everything from a string of non-printing characters to a long blob of text to a horrible pile of Unicode to something completely normal because it's trying to find a way to break it.

SPEAKER_03Mutation testing, if I remember correctly, is where you are... correct me if I'm wrong, that's where the code itself is getting modified in some juncture to try and break it. Is that right?

SPEAKER_00I think so. Yeah.

SPEAKER_03I think it was a Python library called, I think it was called mutagen. I'd have to look it up. I think it was called mutagen. That does that.

SPEAKER_00Yeah, it was mutatest. I think mutagen. Now I got to look it up.

SPEAKER_03Yeah, so do I. Yeah. Oh, Mutagen is for audio metadata.

SPEAKER_00Yeah, I was thinking that's what it was.

SPEAKER_03Yeah.

SPEAKER_00There's so many different libraries.

SPEAKER_03There are. I think it's one of the other things that kind of is exciting. Yeah, it is Mutatest. There's also MUTpy. I think it's one of the other things that's exciting on the library front, though, is just watching the work that Seth and Python Software Foundation and the OpenSSF have been doing to secure Python Package Index with the... trusted publishers and basically finding ways to instill

provable confidence that you're getting the package you think you're getting and not a type of squat or any

SPEAKER_03of that. So I'm also, on a broader level, that's exciting to watch too.

SPEAKER_00Yeah, that is really cool. I'm glad they're tightening that up because we seem to be getting a lot of those the last few years.

SPEAKER_03Evidently. Yeah, I had... had one place that actually didn't want to use PyPy at all because of that risk, but they were still using NPM. Like, they've got the same problem. But really, any package repository is going to have that. I mean, Maven has had that risk.

SPEAKER_00Yeah.

SPEAKER_03You know, any of them are going to have it until... somebody finds a way to lock it down with like trusted publishers and other, uh, other patterns like that.

SPEAKER_00Yeah. That's not, I mean, if it's, if it's, if it's just a complete open kind of public domain, you gotta take that risk and measure it. Decide how much risk you want to take on.

SPEAKER_03Absolutely.

SPEAKER_00Anyway, I see, I mentioned that you were an author of a book. How did you get into book writing? Yeah. Well, actually, I've been writing books, fiction books, longer than anything.

SPEAKER_03Actually, I've been making up stories as long as I can remember. I first started writing professionally when I was eight. My mother started taking me to her critique groups, and they were like, okay, you can be a part of the group, but we're not going to treat you any different. So you're going to get our honest feedback, and you're going to have to give yours. That was good. I enjoyed that. Yeah. So I have a couple of fiction books published. I've got like nine manuscripts in motion. This is what I do with my weekends.

SPEAKER_02I write books. But it never occurred to me to write a programming book, a nonfiction book. But a few years ago, I was writing articles pretty frequently on the dev.to platform.

SPEAKER_03Okay. And I was also hanging out a lot in the Python IRC room. And I noticed a lot of the same questions coming up continually in that IRC room. Um, and I noticed that even the regulars were struggling to find resources to explain it. So there were some links that would float around that we get recycled pretty frequently, certain articles like Ned Batchelder has a really good one on, on names and values. But a lot of times,

sooner or later, someone would just go, well, just read the documentation.

SPEAKER_03And someone else would go, well, the documentation is very hard to understand, which if you don't have experience with Python, it kind of is. It's not written for beginners. Even the tutorial isn't particularly clear. Um, so I began thinking, you know, maybe someone should just capture all of these gotchas into a series of articles. So I started writing a series called dead simple Python on dev. Um, didn't really have any great ambitions for it. I just thought, well, I can capture the stuff.

I can have the guys from the Python IRC channel who are always pedantically

SPEAKER_03correcting me and each other edit it. And then that way there's, there's just this, um, bunch of links that we can use to help people. Well, around this time, I get contacted by a publisher about writing another book and I'm, you know, pondering it, but it kind of falls through, but around throughout those conversations, I get contacted by, by a friend. He goes, did you see the Android newsfeed?

SPEAKER_03I said, well, I don't, I don't really check it. Why? He said, you're trending. What do you mean I'm trending? Your Dead Simple Python articles are trending. Okay. So that got me thinking, maybe this is something worth turning into a book. So I drop a line to No Starch Press because they accept proposals.

SPEAKER_01Yep.

SPEAKER_03And I just said, hey, you know, here's the article series. Here's what I'm thinking. Two days later, I'm in a phone call with the associate editor and with Bill Pollack, the publisher. And, you know, within a week, I have a book contract and I start writing this thing. And I have to tell you, I keep being asked, how do you write a 700 page book? Because it's nearly 700 pages. And my consistent answer to that is lie to yourself. no point did i actually acknowledge to myself that this is a

700 page book i'm just like no i'm just writing the next chapter i'm just writing the next section i just you don't you never look at the size of the project or you will lose your mind yeah yeah you don't think about that you just kind of yeah work with your outline and what you want to cover absolutely that's a big book that's cool yeah very hefty

SPEAKER_00So what is the focus of the book? Is it just doing those gotchas? I mean, do you cover basic Python? Does it go into advanced? What I figured out very quickly when I was asked what makes this unique is there's already a lot of amazing books for people who are beginning early intermediate programmers.

SPEAKER_03That is a well-covered market. Doesn't need more books for that, really. It doesn't. But there were almost none on the market for people who were already experienced developers who needed to understand the entire language from beginning to end. You look at lists, you try to find these. And I think the only two that I found, and I'm sure there's others floating around, but from the lists that are published online, the only two that are kind of out there would be the Quick Python book by Naomi Seager,

SPEAKER_03who actually wrote the foreword for mine. And that's, that's great as a desk reference because it's, it's, it's succinct. I'm not succinct, but I'm thorough. She's succinct. I love that. So like you get, you get the, you get the five minute answer that gets you moving quickly. And then fluent Python by, you know, I'm not even going to try to remember the name right now, but O'Reilly.

SPEAKER_02Yes.

SPEAKER_03Yeah. And, and that's, and that's got a lot of, again, it's kind of very, very succinct, a lot of quick examples to get you going. But the niche I spotted was like, okay, no one's explaining why this is Pythonic. Like, what does Pythonic even mean? You know, if you said, well, you should be using a loop for that. And the immediate question any experienced developer is going to have is, why? Because they're coming from another language. They're used to a different set of patterns. So explaining the Python language in sort of this...

SPEAKER_03technical understanding up approach of like, here's what's actually happening underneath the hood of that for loop. So once you understand that, then here's that for loop in action in a more complicated scenario than just, you know, looping over a set of numbers. So here's why you're using a for loop here instead of something else. And so you can actually see it and you can own the, the, the pattern. and know yourself when to apply because you're understanding what's happening underneath instead of just taking someone's word for it.

SPEAKER_03Yeah. To be honest, I never intended to cover the entire core language, but I did. I think it was three quarters of the way through the book when I realized going through the documentation that I had covered like 80% of the core language. And I'm like, eh, let's just tweak the outline a little bit and make it a hundred percent. So, you know, if you're almost there, might as well go the rest of the way, right?

SPEAKER_00So you're talking about the core Python standard library, like the modules, or you just mean the core language itself?

SPEAKER_03The core language itself. I do mention some of the standard libraries, especially the important stuff, but of course the standard library itself would probably be another three volumes at that size. I've toyed with doing a sequel called Dead Simple Python, The Batteries, but that would just be a whirlwind tour through through selected parts of the standard library and the broader ecosystem.

SPEAKER_01Yeah. I think if I tried to do anything else, I think it would rival Donald Newt for longest book.

SPEAKER_00Probably. Your book reminds me a lot of a book I found way back in Python two days. It was a guy named Jeff Knapp who wrote The Writing Idiomatic Python, And it was a really short book, maybe 100 pages. But it covered a lot of Python idioms. Your book sounds like it's a much more in-depth version of that to me.

SPEAKER_03Quite probably. Yeah. And I, I, I haven't heard of that one, but I did draw a lot of inspiration from a number of other, of their Python authors. I mean, David Easley's essential Python reference was on my desk the whole time because that's, that's, that's quite in depth. And then Mike Pernat did a short book called making mistakes in Python that I really appreciated. And I, I, I actually credited him with a couple of the things in the book. Cause, um, his discussion of the diaper anti-pattern as he calls it,

SPEAKER_03uh, the bear accept, um, is very insightful. I'm like, why is this bad?

SPEAKER_00Yeah, that's cool. I like it. So what do you feel like you've learned as a nonfiction technical writer? I feel like just writing the book took my Python skills from very intermediate to, to, to expert because there were a lot of things I didn't understand especially things I thought I understood until I started digging into the actual specification of the language that's the number one source I was going back to was

actually the spec um uh you know the data model on the on the documentation and reading through peps and reading through discussions on the threads and it's like there is so much history behind this language and behind every decision like none of it's arbitrary

SPEAKER_03by any means um realizing that I, there were things I thought I knew that I didn't understand. Um, even something as simple as like how the names and values were actually working. You know, I had done a lot of work in C++. Um, I had also done a lot of work in BB.net, like I mentioned. So, um, I mean, when I first came into Python back in, oh, what was that, 2010, logged into the chat room because I could not figure out how to

declare a variable because I had a hardwired into my brain that you have to declare the type.

SPEAKER_03So I said, well, how do you declare a type in Python? And Habnabit, anyone who knows the Python IRC room will recognize that screen name. Habnabit was the first person to respond to me, and he responded in characteristic Python fashion, you're a data type. And then he and Ned Batchelder went on to explain, that's not how Python works.

SPEAKER_01Yeah.

SPEAKER_03But, you know, even moving on to understanding how the names and values actually relate to one another. One of the things I did not even know I had never worked with prior to this book was concurrency and threading and multiprocessing. I'd done some in C++, but I'd never really had any reason to do it in Python. Never had any cause. So when I approached writing those two books, and by the way, those two chapters, excuse me, they feel like books. And by the way, this is the height of the pandemic.

SPEAKER_03I am in a second story apartment with no air conditioning. Can't go outside because of the wildfire smoke. And can't go anywhere because, you know, COVID. And so I'm losing my mind. And I'm approaching these two chapters that I've been putting off. I'm like, I have to somehow write. good explanations of this with an example that is not downloading a picture from the internet, because that's what everybody does and nobody does it in practice.

SPEAKER_03So yeah, gotta have something better than that. So, you know, I, I came up with a scenario I thought would work and, and it did thankfully. And I just dug in and I spent, I think, I think those two chapters took me, I want to say about six weeks to, And I finally got them done, and then I sent them off to one of my technical editors, Dennis Povadra. Probably messing up his last name, but doing the best I can.

SPEAKER_03Anyway, Daniska on the channel. Sorry, clock. I'll wait for that to stop. It'll go 11 times.

SPEAKER_00It's all good. You can barely hear it.

SPEAKER_03That's good. Yeah. It shows up every now and then on, on recordings. Okay, good. Um, anyway, so I sent it over to Dennis and, uh, because he literally works with threading like all day, every day. He's, he's got, he's got a degree in, in, in computer science with a specialty and, and, concurrency and threading and all that jazz and he actually responds back and goes actually this is right i'm like you're kidding you're

absolutely kidding so anybody anybody who wants to say that threading is hard in python i'm like no it really isn't i mean if i can do that during a pandemic it's it's maybe not obvious if you're coming from another language and you're you've got certain patterns stuck in

SPEAKER_03your head but once you understand what tools are there it's it's not It's not that difficult to begin to work with. So I'm a lot less scared of it now than I was initially, because I was terrified going in.

SPEAKER_00Yeah, I feel like threading gets a bad rap. It is definitely more complicated than single threading, but I feel like threading in Python is fairly straightforward. I'm curious to see what will happen with the GIL being removed, to see if that changes, makes it worse or better, but...

SPEAKER_03Yeah, I mean, from what I've heard so far, the beta ability to remove the... Well, it's not beta, it's just the optional ability to remove the GIL does at present slow things down, which, I mean, nobody is surprised by that. Nobody that knows the GIL anyway. But I'm actually a fan of the GIL, which is weird to say, but I like it because... In Python, you cannot confuse concurrency and parallelism.

SPEAKER_03They're two different things.

SPEAKER_01Yep. And you can't confuse them in Python because you're using two entirely different

SPEAKER_03sets of tools for them.

SPEAKER_01Yeah. But in something like C++ or other languages like that, you hear the two used interchangeably.

SPEAKER_03People take it for granted that by threading, by making something concurrent, that it's probably going to wind up parallelized. But the problem is it isn't necessarily going to wind up parallelized. So they make assumptions that don't necessarily reflect in the day-to-day production performance of their software. Python, you know right out of the gate that you misunderstood something.

SPEAKER_00Yeah. Yeah. Yeah, I'm torn about it. I'm hoping it turns out to be a good thing in the end. I mean, in general, I think it'll be helpful for a lot of the data science uses for Python.

SPEAKER_03Oh, yeah. Yeah, I agree with that. So I heard you're already working on your second edition of your Dead Simple Python.

SPEAKER_00What's new? What's going to happen?

SPEAKER_03Yes. Yeah, I am working on the second edition. And of course, writing a second edition of a 700-page book is... Yeah, I was at PyCon and I found myself quite unexpectedly in a little circle after a talk with Al Swigert, Eric Mathis, Bill Pollack, and Brian Ward, how Linux works. And of course, I'm screaming on the inside like a little girl.

SPEAKER_03Absolutely geeking out. And I brought it up and said, how am I supposed to write a second edition here? And I remember Brian said, well, the biggest thing is you need to narrow down your audience because you don't want to make it longer. At least not any more than you have to. So with, with, with that simple Python, the first thing I had to think about is what do I drop? And so I think the main thing I'm trying to pull away from is, is the discussion of Python two to Python three. So that's something that you can still find in the first book.

SPEAKER_03But, um, second edition is kind of going to assume that you're, you're already on three and probably a much later version of three than, than before. Um, um, The other thing is type annotations have become, I think it's the biggest edition of the book, type annotations have become absolutely, if not ubiquitous, at least widespread. I'm seeing them more and more standard. And a lot of recent work in Python has been around type annotations.

So in the first book, I left out all the type annotations because they were optional.

SPEAKER_03I wanted to focus on just the language itself. And since, you know, I didn't know if a reader was going to be in earlier, later versions of Python, it just made it the most adaptable. But now with the heavy emphasis on Python 3, especially the later versions, you know, 10 and on, I decided to go through and put the type annotations into all the examples. So revisiting every example and actually making sure that the annotations are in there and are clearing my pie in strict mode.

And then explaining the why's and the where for's because type annotations make

SPEAKER_03sense until they don't.

SPEAKER_00Pretty much. And so I tried to explain the moments where you're scratching your head going, what?

SPEAKER_03Trying to make sure I get some succinct explanations in there. So I'm not adding a whole section to type annotations. I'm just weaving it into the entire book.

SPEAKER_00Okay. Makes sense.

SPEAKER_03Yeah. And then beyond that, it's just going in and adding... adding the stuff that's shown up in the last, you know, four or five versions of Python, making sure I give proper coverage to newer features. And especially the peps that have moved things from like, well, before you had to use this workaround or from future import or all that, moving into the newer patterns, calling that out, making sure I've updated the examples to use those.

SPEAKER_03I'm going to completely rewrite the packaging chapter. um to use pyproject.toml which is uh i haven't seen a project that didn't use that in about two years now so i'm sure they're there i'm sure they're out there but it's just becoming so so common especially now that toml is part of the standard library that um you know moving away from setup.cfg setup.py towards that standard pyproject.toml is is just going to make life easier

for people to wrap their head around python packaging and addressing that the trusted publisher stuff too along the way yeah do you think you'll add coverage of oven there too or

SPEAKER_00however you pronounce that jewel

SPEAKER_03I did mention it. So I do mention of and Rust at the beginning. I'm sticking with the... I think I'm actually just using Rust outright. Not Rust, Rough. It isn't Rust, but I think I'm actually using Rough outright. I'd have to double check. I've kind of oscillated between the two because I do see the value in maintaining the original packages that it draws inspiration from. The hangup is pyproject.tomo has become ubiquitous and Flategate has absolutely

SPEAKER_03cemented graffiti into the ground and said we're not implementing it. So it's created this split in the linter community where you're either using uh, you're either more or less, you're either using rough or you're using an older version of Python. It's like, it's, it's kind of created that split, which is unfortunate. Uh, cause I think flake gate is a fantastic tool. Um, of I'm just mentioning it in passing, but I'm still going to stick to using just the standard tools.

SPEAKER_03You can stick UV in front of them if you, if you want to use, um, it is very convenient in that regard.

SPEAKER_00Yeah. I was thinking of a lot of people are using of now to just like launch apps and gets of X or something. I don't know. I don't have a lot of experience with it. I'm like, I need to start looking at this. Cause it sounds like it's moving into a poetry's territory and there might be a useful tool to understand better.

SPEAKER_03Yeah, it might be. But I mean, to be fair, I didn't really give much space to poetry in the first place either, which is, some, some, some of my early readers were a little ticked off with. She was like, well, poetry is awesome. I'm like, I'm sure it is. But the problem is in five years, we'll be onto the next thing. Like we've been on setup tools as long as we've had setup tools and we will be on setup tools long into the future. Like it's just, it's, it's the standard thing. No one's going to dispute that.

Once you understand setup tools and you understand all the reasons why poetry is better.

SPEAKER_03And you move, and the rest is history.

SPEAKER_00Yep. Gotcha. So do you have any tips for if someone wants to be a better writer or communicator? What would you say to them?

SPEAKER_03I would say the number one thing is to watch... Watch out for lack of clarity. We tend to, just as a species, we tend to, to elide over a lot of information because we assume the other person is just going to catch our unstated nuance. Yeah. Unfortunately slash fortunately, we usually do. It's that 20% of the time that we don't,

where almost all conflicts originate.

SPEAKER_03I mean, that's ultimately the reason why the book is 700 pages is because I couldn't make those assumptions. I don't know what background the person's coming from. Um, I don't know if they're coming from C plus plus or JavaScript or Haskell or whatever, you know? So everyone's bringing their own assumptions on what words and phrases mean.

SPEAKER_01Yeah.

SPEAKER_03They have their own connotations. And so I have to make sure. And I, and I did with this book, I, I stuck religiously with the same language as the specification. They're not variables. I say names or values.

SPEAKER_00Okay. Or I never say... I would say header and suite instead of the body of the loop.

SPEAKER_03It's the suite of the loop because that's what it says in the spec. So using Python's terms, making sure they're clear up front and then sticking with them. A lot of people notice I have big vocabulary when I'm speaking. And that's really because... words that are used less often have less overloaded meaning. So people are not going to misunderstand them as easily. Yeah. I'll sometimes have someone go, what, what does that mean?

SPEAKER_03I don't mind defining it. Um, actually I prefer to define it because then I get to explain what I'm meaning. I get to clarify, but I think just being careful of where we leave out information because that's ultimately what's kind of, led to a lot of confusion with a lot of Python articles and tutorials is how much gets left out. I spent a week trying to find, back in 2010, trying to find instructions on how to run a Python module. No one wrote it down back then.

SPEAKER_03Everyone just assumed, oh yeah, you run it. So every article is just like, run the module. I'm like, how? What is a module? How do I run it? Oh, it's a .py file. Maybe we can figure that out. And it was just because everyone assumed I know it. So therefore, you know, it just never occurs to them. My friend, John Chittum from, from Canonical calls it the curse of knowledge. You know it. So you forget that everyone else might not being really mindful of that. I think is, is the key to, to avoiding communication snafus in writing and in,

in day to day.

SPEAKER_00Yeah. Yep. That makes total sense to me. All right. Well, we're getting close to the end. I like to, I kind of like to wrap up by just asking you, you know, do you have any non-technical hobbies that you enjoy and like to share with the audience?

SPEAKER_03Oh, absolutely. In the beginning, I write fiction and every Saturday you will find me in a local coffee shop with an honest to goodness manual typewriter. I have a Royal heritage typewriter. Nice. That I write, I actually do write novels on. So I just finished one that I'm now looking for an illustrator for. um and i'm working on another one right now i mean that's that's my number one hobby i think i i enjoy cooking as well um i enjoy uh playing

piano guitar songwriter um gardening you know i'm just i'm creative but like anything writing letters to friends with a dip pen not kidding um that's a lot of hobbies i

SPEAKER_03I'm a child of the 90s. That is the 1890s. When I'm done with work, I love to be able to just unplug and get away. I do have some video games I enjoy here and there, like Elite Dangerous and Minecraft. But ultimately, anything I can do to unplug from this and just go get in touch with the real world, tactile, analog things, I love.

SPEAKER_00That's cool. By the way, what kind of fiction do you write anyway?

SPEAKER_03I write a pretty broad range. So a couple of the books, well, the two books that are out there, one is called Finding Scrooge. It's a sequel to A Christmas Carol set five years after the original and it's written in Dickens' voice. I must not have done too bad because Lucinda Dickens Hoxley endorsed it and she's the third great granddaughter of Charles Dickens and the family expert on his legacy. So

SPEAKER_00That's cool.

SPEAKER_03And then the other one I have out right now is called Noah Clue P.I. And it's a murder mystery set in Seattle in the 2010s. Okay. And that's part comedy, part classic murder mystery.

SPEAKER_00Okay.

SPEAKER_03Lampooned detective fiction. Turned all the stereotypes inside out. And the book I just got finished writing is called Beyond the Bramble Thicket. So it isn't published yet, but I'm hoping in the next year or two to get it out. And it is about a fox and a rabbit who become best friends very much to the surprise of their respective communities. It's kind of in the vein of Beatrix Potter, but it's set in North America pre-European contact.

SPEAKER_03You don't really see any humans in the story. It's just wildland.

SPEAKER_00That's quite the variety. That's cool.

SPEAKER_03Yeah, I have a short attention span. I can never stay on one genre for long.

SPEAKER_00I hope they do well. That's really cool.

SPEAKER_03Absolutely. So yeah, those first two I mentioned, you can find them anywhere you buy books. So they're on Barnes & Noble and even in the independent bookstores can order them actually.

SPEAKER_00Cool. I'll make sure to include some links to your books, including the Dead Simple Python one as well. Excellent. All right. Well, it's been great to have you on the show today and I hope you'll come back on again when you've got some new books or new topics to cover.

SPEAKER_03Absolutely. Thank you so much for having me, Mike.

SPEAKER_00Thank you.

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. 57 - Python Developer Tooling Handbook with Tim Hopper

    Aug 27, 202643 minAudio

    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,...

    Credit the people on this episode

  2. 56 - Python Illustrated

    Mar 13, 202653 minAudio

    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...

    Credit the people on this episode

  3. 55 - The Python Documentary with Paul Everitt

    Sep 3, 202540 minAudio

    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...

    Credit the people on this episode

  4. 54 - Neural Networks and Data Visualization with Nicolas Rougier

    Aug 27, 202537 minAudio

    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...

    Credit the people on this episode

  5. Writing Creating TUI Applications with Textual and Python

    Jul 24, 202525 minAudio

    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...

    Credit the people on this episode