- Podcasts
- The Python Show
- 30 - Effective Python with Brett Slatkin
About this episodeWe welcome Brett Slatkin as our special guest for episode 30 of The Python Show Podcast. Brett is the author of the popular book…
We welcome Brett Slatkin as our special guest for episode 30 of The Python Show Podcast.
Brett is the author of the popular book, Effective Python
In this episode, we chat with Brett about the following:
* Programming languages
* Favorite Python modules and least favorite
* Book writing
* Book editing
* The worst practices in software development
* and much more!
You can now sponsor The Python Show or one of my other endeavors. Learn more here:
Get full access to The Python Show at www.pythonshow.com/subscribe
Transcript
From the publisherThis transcript comes from the podcast’s own feed, shown as the publisher wrote it.
30 - Effective Python with Brett Slatkin
Yeah, sounds good. So I'm a software engineer at Google, been there for 18 years. I've done a lot of different kind of programming while I'm there. How I got into programming, you know, I was always a big fan of computers, you know, as a kid and you know, games and stuff like that. Always wondering how they were made. I think a lot of people were in that kind of category. I got some exposure to Logo and Basic early on and a little bit of Pascal. And I just thought it was just so interesting and fun. You know, I liked math a little bit and so it was kind of a fun way to do that too. And one thing kind of led to another and I got my hands on a C book and ran all the examples and learned C and this is around when like it was possible to get a compiler pretty easily like with you know with Linux and open source just starting to get more widespread over the internet so I yeah I got really into like MUDs and a bunch of that kind of stuff and Linux and running Linux and modifying code you could get in the Linux kind of ecosystem and yeah so that's really how I got into programming it was you know when I was like 10 years old, 11 years old, 12 years old is really where I started doing more and more of it.
Definitely. Yeah. I feel like it was, you know, I feel like I knew programming before algebra. So when I look at a mathematical equation, it always, there's like L values and R values, you know, other people see it as like, so that's maybe damaged by math actually long-term, but, but yeah, it's like, I feel like I learned a lot about math from programming as opposed to the other way around. Yeah.
Yeah. Yeah. So that's kind of a funny story. So I was when I was getting into programming, you know, I did a lot of side projects on, you know, you know, building little apps and whatnot on, on, you know, modifying mods, like I said, and then I got really into like networking and internet servers and that kind of stuff and like scalable networking and, you know, really wanted to get into the most high performance kind of systems I could. So I learned C and C++ and, you know, and asynchronous sockets and all that kind of stuff. I was super into that. And that's why Google, you know, back in, I started there 2005, I was like, this is a scalable place, big software, our systems, and this is awesome. And I'm going to do this. And so. I was really fortunate to get a job at that point. And on my first day, they're like, cool. Yeah. So forget all that. You're going to be writing Python. Here's a book, you know, the person who wrote the book sits over there. So, you know, if you have any questions, it was Alex Martelli's Python in a nutshell. So I didn't know Python at all. I didn't, I had seen it maybe by reading the BitTorrent source code at some point, you know, 2004, 2003. And I saw Zope a little bit, that framework, which totally turned me off. I was like, I will never, never do this. And, but then, yeah, I was, I, you know, it was kind of put in this hot seat where they're, they had, they had a strong need for infrastructure orchestration in Python. And so I got to work on that for a number of years. And so, yeah, so that's where, that's where it started. And, and I ended up loving it, you know, and I did a bunch of C++ also and high performance code for sure, but Python was and still remains some of my main language of choice, both personally and professionally.
He was great. I love Alex. I learned a lot of really interesting details from him. Sometimes people say, if you had to rate your Python skills on a 1 to 10 scale, where would you put yourself? Well, I know Alex, so I know I'm not a 10 out of 10. You know what I mean? Like that's, he's the next level, you know, in terms of his knowledge. So, so yeah, he's great, great inspiration and mentor for sure.
Right. So that was a great resource. And yeah, so we had a lot of good times. And then after that, I worked on the Google App Engine team, which is the, you know, it was kind of platform, the first Google Cloud product and the first kind of one of the first platform as a service types of things out there. Kind of like Heroku, people have probably heard of. And, and Guido van Rossum ended up joining our team. And I worked with him for a number of years too. And again, learned a lot from him. Yeah. and that was really great. So I really benefited from learning Python by watching other people write Python, modifying their code, having them do code reviews of my code. So it was really a real blessing, you know, to be able to have hands-on with these people who really know what's going on and were able to be, they were patient with me, teaching me the right way to do things, you know.
Yeah, so I can list a bunch of these ones. I mean, I think I'd say there's some good ones and some bad ones. There's some ones I love and there's some ones I love to hate, if that makes sense. So maybe I'll go through a few of those. I'd say one of the ones that I'm you know, I'm most excited about, but isn't in yet, it's coming in Python 3.1.3. And it's the whole interpreters package. This is the sub-interpreters, you know, functionality from PEP. I think it's like 7.3.4, I was looking it up. And this is the ability to run many Python processes, sorry, Python interpreters in the same process. So unlike multiprocessing, where you have to start like creating sub-processes and moving data around, and serializing a lot of data, there's going to be a way to do it where you have many Python processes, sorry, many Python interpreters in the same actual process, sharing memory with separate GILs. And so I just think the ability for parallelism for a lot of like web serving workloads and data processing workloads, it's going to be way easier to do kind of large scale parallel processing. And so I'm really excited about that. I think it's been a slow burn The Python Show. Yeah, forever. And using, you know, multiprocessing, you know, has been a great module to have, you know, I've reached for it a bunch of times, and some of the tools in there, like shared memory, you can actually get a ton of throughput, you know, like, there's one thing I wrote one time, processing HD video streams, like, you know, gigabytes a second, you know, completely memory bound kind of workload. And we were able to get it to work on Python, which is, which is amazing, because you would never think it could saturate that kind of bandwidth. So I'd say interpreters and multi processing are kind of hand in hand. I really like, that's cool.
That's good. Yeah. Yeah. So I'd say another one, the other one I think that I'm spending a lot of time on is LLVM Lite. And so this is what powers Numba. So Numba is like the kernel accelerator, you know, if you're writing some math kernel function to do simulation or whatever the thing is you're doing. You can write just Python code. It's kind of like Cython and some of those other kind of like Python to C tools. So Num is really cool. It like JIT compiles your Python into a faster version that's, that is really running native code under the covers. That's super cool. And it's powered by this other package underneath that, which is LLVM Lite. And that's a wrapper around LLVM, which is like, I don't remember what that stands for. I don't know if you remember, but it's like the compiler backend behind Clang and the C compiler for Clang. and so it's a tool you can use to generate assembly code and compile it. And so you can write Python code and it will manipulate like a high-level intermediate representation or IR for assembly and then you can kind of turn the crank and it'll spit out native code that runs native speed on your on The Python Show. I've, in the last two and a half, three years, I've been really getting into building a programming language. I've built little toys before, but I've never built my own. And so I've been using this tool to build a new purely functional programming language, which has been inspired by Python and not, not, it's not public yet, but I'm still working on it and having a great time. And LLVM Lite's been just critical tool to do that. So I really encourage people who are interested in like building programming languages of any kind to check out this package. It's really well, well done and well maintained.
There it is. Yeah. Not to be confused with LLMs, which are another kind of buzzword right now, too. Yeah, for sure. Yeah, I guess that was the other one I was going to mention was all the LLM stuff. I mean, I feel like you can't, you know, say a single word without someone mentioning all of this AI stuff. Yeah. There's a bunch of cool packages there. Simon Wilson has one on LLMs. that makes it really easy to generate text and stuff. There's also GPT for all. So this is all just like models that run on your own machine to do all kinds of cool stuff like telling you stories or summarizing text, all kinds of like interesting use cases. And so, yeah, I definitely encourage people to check that out. It's actually really easy and it's free because it runs on your own machine. So it's pretty fun what's possible now. So there's a bunch of packages in that category. LangChain's another one. that just really makes this stuff super accessible. And so if you haven't poked at that, or, you know, or you're kind of, you know, you're, you're like, ah, there's too much hype here. It's actually pretty straightforward. So it's worth poking at and trying for sure.
Yeah, yeah, I would totally encourage you to do that. You start learning things about like stop tokens and how it actually understands like, whose turn it is to talk and that kind of stuff. And there's some fiddly bits in there. And then you start realizing what it's good at, what's fast, what's slow. So there's some intuition about the... Because I'm not an ML researcher or practitioner. I'm like, I can pick it up like a hammer. I have no idea how it works inside, you know? So, you know, I have some ideas, but you know what I mean? So yeah, I would definitely encourage people to try that.
Yeah. But yeah, in terms of, so then I did want to mention, you know, in terms of packages, I can't, I cannot, you know, have a conversation about Python packages without mentioning ones I really don't like. And I don't mean to be negative. You know, it's, I'll try to keep it positive, but I'd say there's two I really have problems with. And, and one of them is typing and the other one is async IO. And I, maybe I can spend a little time, you know, talking about that.
Yeah, but I feel like typing is really interesting because, you know, static types, if you look at like TypeScript versus JavaScript, it was completely revolutionized the JavaScript community. You know, TypeScript is so successful. It's actually very fun to use in my experience. So the idea really makes sense. Adding types to a dynamic language can really help developer productivity, collaboration, reliability. Like I totally, I get it. I believe it's possible. I know many people that were like, I will never use JavaScript because it's a terrible language, who are happy to use TypeScript because it basically put some rails in place that made everyone feel better about it. So I believe the idea of adding typing to dynamic languages is a good one. And the intent behind the typing module is also really good. But in practice, you know, and I don't know if it's the specific implementation approach that Python has taken or ByPy specifically, or the fact that there's many type checkers. I don't really know what it is, but I will say that when I, you know, like just qualitatively, my own anecdotal feelings is like when I've interacted with code bases that are heavily annotated, I find it to be so much more difficult to understand what's happening. and it makes me miss the Python that I remember, which was like super pithy, dynamic, very much to the point, easy to read, easy to fit in your head. And so I feel like maybe we've gone too far the other way. You know, we're like super dynamic. You can do anything, you know, monkey patch everything, you know, like Pearl-esque kind of too much. And then there's like too many types, too locked down. And so I feel like, you know, somewhere in the middle is where we should end up. And so I'd say, typing's really developed, it's still developing and it's hard. It's still too early to know if it's really something worth investing in as a development team, I think. Because we don't know what the right, what's the right balance point between like too many types and not enough types, you know? And so, I don't know, have you, have you had that experience at all with, with, with typing?
So, you know, I, typing gives me a little bit of heartburn too. I, I like it and I don't. Originally I really disliked it. But on a team, on the teams that I've been on the last couple of jobs, because we have super experienced and then people who barely know Python at all on the team, the typing has helped in those situations because they keep the, the, the noobs, well, unfortunately not know what type to pass through. And it is, it causes really subtle bugs.
And normally I wouldn't, you know, normally that's not really a big deal, but I work in big, big agricultural products. So we're guiding tractors on fields. And sometimes if you mess up, you know, guidance a little bit, or you mess up with the seeds getting planted, that can be kind of a big deal.
And so trying to get this stuff dialed in has made me realize that typing is helpful. However, I agree that the custom types, you know, you go beyond like lists and tuples and dictionaries. I don't like those. I find them really confusing because you have to go searching through the code base to find out where they're defined and if they're a type based on another type and it's basically a combination custom type.
you know, hey, you don't your tolerance for error is really low, you know, where if I'm hacking out some data science, like code, like I really do not care if there's an error, because it'll just blow up. And that's that, you know, so exactly. So that's why I'm also saying it's domain specific. So anyways, I think typing has got a lot of promise, you know, in the language I'm building, my program languages, I'm trying to build, you know, I'm putting in types that are inferred. I do see value in static typing for sure, but I agree that there's a certain amount of level to it. Do I want higher order, higher rank types and all that kind of type theory stuff? I don't know. I don't know if Python's the best place for that. Anyway, that's one. That's interesting. And then async.io, I want to talk about that too, which is like async.io is really cool. I mean, it's super cool technology. It's really powerful. It's complete. It has like tons of great stuff and async functions and iterators. Now they've got it all. Like it's all there now. And for Python, it does make sense in certain circumstances because you are limited by the gill. You know, there's only so much you can do. So if you have a web server or something like that, that's process, like it's waiting for a lot of IO. you can get some good performance out of it and, you know, it can help with efficiency or, you know, like time to response and some of those kind of metrics. And that's great. But, you know, the complexity required from like a developer standpoint to set that up and then to keep it going, like to debug a problem in async IO code, like where you can't even get a stack trace, you know, that's really reliable. Man, it is tough, you know, so I feel like very few teams actually need it, especially when you've got huge machines that can handle many threads. You've got the sub-interpreters thing in the new pep that we were just talking about. You got multi-processing, you know, you've got front ends like Nginx that'll run a hundred, you know, pointed a hundred different Python processes on the same machine anyway. I'm just like, I, I think it was useful about 10 years ago, 15 years ago as a concept. And now I'm like, I beginner examples and, and like how to's that start with async. I'm like, Ooh, we should, we should probably not do that. Let's, let's start with like synchronous blocking IO in, you know, maybe in threads, you know, just keep it really simple. Yeah. Cause that complexity will just kill you over time. You know what I mean? So that, that's, that's my big concern there.
Oh yeah, I agree. I remember when async.io came out, I couldn't get any examples to work that would actually do anything. Or I thought they worked, and I find out that they didn't. And I admit I haven't really used async.def and await since they added those, because my initial experience was so bad. So I just didn't do anything else with it.
No, it makes sense. And it's, like I said, it's come a long way since like the Tulip project, you know, which is probably what you're referring to. Like when it first came out, you know, you're kind of creating co-routines. There was no syntax, like, you know, it's come a long way since then. So I do think it's interesting, but, but yeah, it's got, it's got, you know, it still has issues, you know, for, for usability for sure.
Yeah. Oh, well it's there and a lot of people really like it. And I, you know, I have seen, I think, um, Was it Robin or was it a web framework that came out recently? It has some async, but I think it's using async with Rust under the covers. Oh, interesting. But it's a Python web framework. So the speed comes from RUF doing async stuff. So that one's interesting.
Yeah, that's interesting. Yeah, I think a lot of those hybrid type of approaches are also great. You know, Python's great for gluing together native code. And so that's stuff like that, I think is interesting. And there's also things like Curio, which is like a totally different threading model and using that package, you know. So I think, again, it's like typing, the jury's still out. on, do we need this really, you know, in the future, you know, it's how's the best way to go. So, so it's good to, you know, it's good to try things out. I think for both of the, for both typing and I think IO, I think just one last thing I'll say is like, I do wonder if they should have been more of like in an experimental directory. you know, so that, you know, like, because again, typing is like changing so much, getting better and more features. And, and it's changed so much in the past few releases of Python. I'm like, why is this in the standard library? Because you can, you have backwards and compatible changes and all this kind of stuff. So I wish maybe, maybe Python needs, you know, we've been removing the dead batteries in different releases, which is great, but maybe we also need like a, a battery development area, like laboratory to put packages that aren't quite ready yet, you know, that, but still use, you know. Maybe that, and then maybe that's from future import async IO or something like that. Maybe future is that, but yeah, I feel like there's still, it's not, you know, we're not, we're not done yet developing that as a community.
Yeah, so, you know, it's a great opportunity. I, you know, I'd done when I was working on the App Engine, I ended up, you know, speaking publicly at conferences and various, you know, user groups and stuff about what we were doing just to show it off as a side project. That was kind of wasn't my job. My job was writing code on the actual systems. But, you know, it was a much smaller company and smaller group at that point is a very small group of people that built App Engine. So we've got all just did something. And so So I really enjoyed that and I did like, I had been a teaching assistant back in school and stuff like that. So I always enjoyed educating people, tutoring, mentoring, all that kind of stuff. And so, you know, so one thing, you know, I would use to write blog posts about Python and other things like that. And one thing led to another, and I got hooked up with the publisher, you know, Pearson, who's like, hey, we want to write another effective book on Python. You know, do you want to do this? So it really just fell in my lap. I feel so lucky that that happened, you know, because I would like, Scott Myers Effective C++ was like my favorite book, you know, learning because we talked about earlier, I love C and C++. And then I'm like, how far can I go in C++? So I read every one of those books that he had about C++ and the standard template library and all that stuff. So to have that opportunity was just so cool. And so I'd already been thinking about, oh man, I'd love to write a book on Python. You know, I knew Alex Martelli had written his book on Python. So something I wanted to do. And so, you know, they, I got connected to them, you know, about maybe nine years after I started writing Python, nine or 10 years after I started writing Pythons when they, you know, contacted me. So yeah, anyway, so that's, that's what it was.
Yeah, I mean, I think that I'd say with all kind of creative endeavors, including software engineering, programming, development, writing, you know, any kind of English or language or whatever, I feel like Sharpening your tools is something that we don't do enough of in general. You know, people are like, I'm going to copy and paste this, or I'm going to just hack it out, or I'm going to like sloppily do this thing a hundred times instead of writing a script. I feel like I'm definitely that person who like, like will not, I will keep doing this stupid thing and clicking the button four times, you know, instead of scripting it for like a long time, like way too long. And so I think that, you know, what I really learned about you know, when writing the book is that like every, you know, books are really long, they're like 100,000 plus words. And so every everything that makes your kind of effort inefficient is going to just slow you down a ton. And so this concept of like efficiency of movement is something you hear people talk about, like in rock climbing or other kind of, you know, like athletic kind of thing, you know, you know whatever hobbies or whatever but like the the point here is like if you can make it really fast to have a tight feedback loop or to be very efficient when writing you're going to just be a lot better at it because you're not going to be fatigued from like all the stupid stuff like the toil like you got to minimize toil so i think i didn't really appreciate the full extent to that before writing a book like i i you know dealt with like i had scripted my environment set up my tools made things efficient for sure as a programmer but like Writing a book is just so much toil for so long that you get so tired that like building your own tools, making them work well, you know, maximizing your productivity, spending time to sharpen your tools, whatever you want to call that. I didn't really appreciate how valuable that is. There's like a famous XKCD, I think of somewhere where it has like this table of like how many times you do it a year and how much time you'll save if you automate it by like one minute or something like that. And like, that's a great kind of way to understand that. But I just like, didn't understand it personally, you know, until I heard the book. So that was a big one. I don't know. Yeah. So I feel like I've gotten better at realizing when I need to sharpen my tools, which I, and it's really helped me since for sure.
Yeah, totally. I mean, I think you, you know, you can do time management, but the other part of that was at the end of the day, it's just about time in the seat, you know, and the same is true with writing code. You know, sometimes it's just the number of hours. It just takes that much time to lug your way through it. No matter how good your language is or whatever else it is, you just have to like you know, get in the chair, sit in the chair and write the code. And so to me, it was more the consistency of showing up like, Hey, every day I'm going to work on this book this much time. And, and, and, you know, it was a very slow, like one baby step at a time, I'll eventually get there, you know? And so, you know, that, that really helped too, is just the, the amount of just, just planning for consistent time dedication. You know, I didn't, I'd say like, oh, okay, I'll do this chapter this week and that chapter next week. And you know, this is how I'll get it done. I'll split it up into pieces. And same thing happens when you're trying to design a program and implement a program. Okay, this module I'll build here, and this will take six weeks. And, you know, programmers are, as we know, terrible at estimating how long it takes to build anything. And, and so for me, I tried some of that, and it didn't work. So I ended up going all out, like, let's just just show up and, you know, every day and try to, to get things done. Yeah.
Yeah yeah I mean it's uh it was I mean this was my when I first wrote the book Python 2.7 was still like the dominant version of Python and it looked like Python 3 might never show up like I feel like you know I don't if you remember then but it was like people were like ah no not until Django not until NumPy not until you know this giant musical chair, not musical chairs, but it was like a plain chicken. People were just waiting for everyone else to jump, you know?
Yeah. So I, um, so the book, I wrote it for 2.7 and 3. And so, and the advice is very different for both of them and, and mostly for 2.7 and a couple of carve-outs for Python 3 where it really was different. Yeah. And then the second edition, I threw out all the Python 2 stuff And it was entirely focused on Python 3, which is great. And that's ended up, you know, the community is all on Python 3 now, basically, except for some of the enterprise users. But generally, you know, people have been really happy with just being focused on Python 3 coverage. And there's just giant differences in Python, like under the covers for Python 3. Um, and so I had to really change a bunch of the advice. So, so it was really a rewrite for the second edition, you know, like rewriting all the Python 2 stuff for Python 3 and then adding a bunch of additional like Python 3 specific. Uh, advice based on, you know, my experience and the experience I've witnessed, you know, other people that I've worked with or, or the community that I've, you know, things I've seen for best practices.
Yeah. I saw that that's shown up on the, uh, the Amazon, um, uh, pages somewhere. And so, yeah, it's, I, you know, I'm working on it. It's, it's going to be a long time. It's still not done yet at all. And so I hope to, to get it out, you know, sometime, I don't know if it'd be this year, early next year. Um, you know, I think that the. You know, people ask me, oh, should I, should I be, um, reading the second edition right now? Yeah, absolutely. Because it's just going to be more. It's not like a completely, like when I looked back through all of the existing stuff in the second edition, it's almost all still accurate, which is great. Python 3 has been pretty stable, which is, which is good. So, so I'd say, you know, the next version, I'm just trying to add more. I have a huge backlog of really good, you know, advice I have from learning, you know, how to use these tools. And so it's just an extension of even more advice for people. But yeah, I think if you're, if you right now are trying to, you know, enhance your Python, you know, skills or whatever, you know, I think the second edition is a great book and, and I would, you know, I'd hate to see you waiting for a long time. It's one of those problems, like the Osborne effect. It's like, okay, yeah, I'm eventually going to have a new edition available. It's not ready yet. Do you wait for the new one or do you, you know, what do you do? So I think, um, Yeah, it's a tough spot to be in, but I think, yeah, I'd encourage people to, like, just enhance their learning, you know, as soon as they need it. I definitely benefited from that myself. Yeah.
Yeah, I mean, I think one of the things that's been great about the format of Effective Python is that it is, it is like snackable, you know, like every book is not like a cover to cover, you know, like narrative, it's also not expansively covering everything. So it's really like, specific advice about specific things. And so, you know, I've got a ton of those, like from from my own experience, like I said, and everything else. So it's like, I'm just adding, you know, I'm adding a bunch and putting a bunch of cross references in. So in terms of the ability to do it, it's the hard part is really about making sure that the way it's expressed is like approachable for normal people. And it's not just some abstract concept. It has to be like a real example from a real use case that people might be able to imagine themselves encountering. And then so they can actually see the value of what's happening. I think if you talk about it too abstractly, it's like, okay, but why would I ever want to do this? You know, like if you remember, like, you know, like physics in school, there's two, you know, balls on a frictionless plane. It's like, well, when am I ever going to see that? You know, like, why do I have to calculate? Like, who cares? You know, like, why does that relevant?
Yeah, no, not at all. You know, I feel like I'm, I'm very much, I don't know if I'm like a Luddite or what you would call me, but I, I'm very slow and skeptical of tools, if that makes sense. You know, I, and I, like in my day job, I definitely am interacting with, you know, some of the LLMs and other generative AI stuff. And it's interesting for sure. But for my own purposes, like I, I don't, I feel like, you know, I kind of want my touch on it and I also want it all to come from my own ideas. I have no trouble writing words. I can type extremely fast and I can, like, my issue is more editing. You know what I'm saying? Where I'm like, here's a bunch of words and a bunch of code. Now make it actually into a narrative that's clear. So for me, I feel like the whole reason why people want a book like this is because it's been like handcrafted, half hand curated, you know what I mean? Yeah, I understand. Yeah. But if I were like firing off an email or something like that, maybe I would start using some of those tools. But then again, it's like, what's your voice? Where's your voice in that, you know, your personality, it's you have to be really careful about that kind of stuff. And you do, you know, so yeah, I think the Python Show. an integer in Lisp. Like I'm wondering if it can, if Bard, you know, or GPT, do they know Lisp? Can they speak in Lisp? You know, I'm curious if they, if they can, what program languages they actually understand or not. So I think a lot of it for me has just been kicking the tires on that kind of stuff. But I haven't really used it for my own my own you know, generation of text or any of that kind of stuff. Yeah.
Yeah, totally. I mean, one of the things that's nice about having a publisher is like, I have a copy editor that will actually go through and like, and I learned a ton, and that was another thing, like, what do you learn while in the book? I learned a ton about grammar. You know, I thought I knew English before, but I totally didn't. Like, I feel like I, you know, the copy editor will just, you know, completely destroy your confidence in your ability to write English. So, so that was, yeah, that was good.
That's cool. And that kind of reminds me of like, looking for like bugs in your code, you know, it's like, hey, I'm not telling you to change this. I'm just saying this is like, this is like this, the grammar of this sentence is confusing, or like, you should change this. Like, I think those are great tools. Like, I'm really excited about a lot of that kind of stuff. Like, finding bugs in code, especially security bugs, helping developers see their problems. And that was another thing to change the subject a little bit. When we talked about typing, the typing module, when you think about the tools that are becoming available you know, why should I have all these type annotations when I have these extremely powerful inference mechanisms? You know, like if you look at like Flake 8, the Flake 8 module, what it can infer about your code and tell you what's wrong, it's almost as good as MyPy in a lot of cases. Like it's amazing what it can figure out, you know? And I feel like that's only going to get better as these, you know, more advanced understanding systems come online and become more widely available. And so that's another thing is like, you know, in the case of the bug you saw for the junior developer, you know, where, oh, this types could have stopped that. I'm like, yeah, but they also could have had an assistant looking at the code with them and flagging the grammar error and say, Hey, this is the wrong type right here. You know, like you didn't even need an annotation on it for, for, uh, someone to look over your shoulder, like peer programming with you to tell you where the problems are, you know? So I think that's maybe an interesting place things are going to go, if that makes sense.
Yeah. Yeah, I can talk about that. So that's, it's like a, it's kind of like a podcast or maybe like a mini show. I don't really know what you'd call clips or reels or whatever you call it, but it's, it's like five minute videos or less with a bunch of software developers. just asking them like, what is your worst practice? What is the thing you do that you are, you know, most, the most shameful thing you do when you're writing code or whatever, working on software projects? and you know so some people are debugging with print or some people don't use IDEs or some people you know edit the standard library there's there's a bunch of like don't ever do this things that we learn in in school or in in in uh in guides and whatnot turns out everybody's actually violating those best practices all the time to be productive so yeah this is a way for us to all kind of agree that we have bad behaviors that we're doing and realize that sometimes those are useful things and, you know, that's okay. And so it's been a lot of fun talking to people. I'm hoping to do more of them, uh, this coming spring and summer too. Um, but just been really fun learning about people's kind of, you know, dirty, dirty secrets or what they're not, what they feel ashamed of, you know, and it's true that we all do a lot of these things anyway, so.
It's been a great, it's no, it's, I've had like thousands and thousands of people watching and it's been great, really good feedback and comments and emails and all kinds of stuff. So I, yeah, it's just takes a lot of time, as you know, to get it going, to really make it right, especially if you're trying to edit it down. And so, but it's been great. And I think I'd love to talk to more, you know, like people are super into esoteric languages. Like I'd love to talk to a fourth programmer and Haskell programmers about like their experience, embedded systems, you know, We talked about a little bit and scientific computing. So I think it's also interesting to see what the worst practices are by the domains that people are in or the tools they're in. And so that's where I'm hoping to go with it from now on. But, you know, just to make real, I think that sometimes there's a lot of gatekeeping in programming where people say, Oh, you absolutely cannot do X, Y, or Z. Or, you know, I only ever do this thing or this tool's bad. And I feel like that's never true. You know, I feel like, so I, so this is also a way to just kind of clear the air and make people realize like whatever you're doing, if you're writing code and it's useful, like that's fine. You know, like there might be better ways, but it's not like there's the one true way, you know, that's I think totally wrong. So this is a way to kind of help the people see that and maybe make programming a little more accessible generally, you know, that doesn't seem like it's a scary you know, at the upper echelon. So that's, that's really what I've been kind of focusing on, you know with Mike Driscoll
Exactly. Some dirty practices from back then. I mean, I've heard about things like that, where like, you've probably seen on punch cards, they would draw like a big line with a red marker on the side of the punch card. So if they dropped them, they knew how to put them back together without having to, you know, quickly. And I feel like, you know, but then there's other things like, a conversation The Python Show featuring Mike And so like, I just feel like, you know, instead of making your code faster, I would just move my mouse a lot. You know, like, I feel like I remember saying that or doing that. So I feel like tons of stuff like that. Yeah. I'd love to uncover. So yeah, if you have any ideas, I'd love to hear them for sure.
