Brought to you by Michael and Brian - take a Talk Python course or get Brian's pytest book


Transcript #123: Time to right the py-wrongs

Return to episode page view on github
Recorded on Tuesday, Mar 26, 2019.

00:00 Hello and welcome to Python Bytes, where we deliver Python news and headlines directly to your earbuds.

00:05 This is episode 123, recorded March 27th, 2019. I'm Michael Kennedy.

00:12 And I'm Brian Okken.

00:13 This episode is brought to you by Datadog. They're a big sponsor of the show and longtime supporter.

00:18 Tell you more about them later. Brian, do you think it's a pretty cool episode number?

00:22 I mean, often people say like episode 100, 500, 1,000. These are big, but 1, 2, 3, that's pretty cool too.

00:27 I was just going to comment on it. 1, 2, 3 is really cool. I like that number.

00:31 So I think we should start, maybe count it down, 3, 2, 1, XKCD, go.

00:36 Yeah, okay, sure.

00:39 And the intent is to say like, oh my God, Python packaging and deployment and version management is a mess.

00:44 Like the subtitle is, my Python environment has become so degraded, my laptop has been declared a super fun site, right?

00:50 So that's kind of the theme of it.

00:51 Yeah, but I mean, it is interesting that it's that title doesn't really say that the environment is terrible, but his particular laptop environment has a whole bunch of stuff on it.

01:02 Yeah.

01:02 And that's kind of where there's also now, Brett Cannon wrote an article called Deconstructing XKCD 1987, where he goes through all of the different pieces.

01:13 So if you're looking at this, a lot of people might, especially if they're new to Python, not even know what some of these things are.

01:21 So if you're not familiar with Anaconda or Homebrew or other things or why this comes in.

01:27 So Brett zooms in on all the pieces and just talks about all the different environments.

01:32 And he's honest to say, yes, some people's laptops kind of looks like this, because if you were trying out different things, you're like, oh, I want to try Homebrew, how to Homebrew install.

01:43 And or this other stuff, you can go down this route and do all these crazy different ways to install Python and have it in your environment.

01:52 But you don't have to.

01:54 Any one of these would be sufficient and you can delete them when you're done.

01:58 The you don't need you shouldn't have just the system Python.

02:01 You should have system Python and the thing that you're using at the very least.

02:06 Yeah, you know, I feel like this is a little bit like saying GUI desktop paradigm suck because like, look at my desktop.

02:13 It's a cluttered, absolute mess of like stuff piled on here.

02:16 And that's not necessarily the problem of your OS.

02:21 It's also one of the benefits is that you can have multiple Python versions.

02:26 There's like you're not going to say I've got like seven versions of Chrome on my desktop.

02:30 No, you can only have one.

02:32 I think you can only have one version installed.

02:35 Python is something you can have multiple different versions installed.

02:38 And it's that's one of the benefits, especially for developers to be able to test against multiple versions on one machine.

02:44 But it does kind of get out of hand.

02:46 He also, you know, so he'll just he describes what homebrew is and and what Anaconda is and all that.

02:53 But the I think actually it's kind of a fun article because it's a little bit of an educational history lesson into all of this stuff.

02:59 It looks super interesting.

03:00 I love it.

03:01 Well, well done, Brett.

03:02 And I'm glad you picked it.

03:04 I'm definitely going to go through it.

03:05 You just I just saw it here on the list last minute.

03:08 So I haven't read it yet, but it looks really good.

03:09 Yeah.

03:10 Nice.

03:10 And so let me take you on a journey with this next one, Brian.

03:13 OK.

03:14 So have I talked about Google lighthouse in the show?

03:16 Yeah, I think so.

03:17 It sounds neat.

03:18 Yeah.

03:18 Like about speeding up perceived page speed and most importantly, what search engines think your page speed is because Google uses your page speed somewhat as a index on like how you rank.

03:31 So going down that path, I did all sorts of work to make our sites much, much faster.

03:37 Python bytes.fm, a training site, all these things.

03:40 So that was great.

03:41 But what I realized is when I restart, like I deploy a new version of the Python app, the very first time you hit a page that hasn't been loaded by that like worker process, it has to parse up the templates and do a little bit of work.

03:55 And so maybe the first time you hit like a landing page that might not get hit that often, maybe it's, I don't know, it takes half a second, 70, 750 milliseconds or something to load.

04:06 After that, it's like 20, 50 milliseconds.

04:09 It's super fast.

04:09 But the first time you hit it, it doesn't.

04:11 So I'm like, all right, well, what if I restart and I've done all this work and then like that's when the search indexing happens and everything like still appears slow.

04:19 So what can I do to make it faster?

04:20 Well, why don't I just request every page and do that in parallel as many worker processes I have?

04:25 So it has to hit all the worker processes.

04:27 It's not, you know, perfect, but it's a decent heuristic, right?

04:29 So it works like you run it one time and every request is kind of slow.

04:33 The next time it's incredibly fast.

04:35 So I wrote this little app and I'm like, well, I don't want to just like type Python, my little script against the thing.

04:42 What you do is you point it at a site map of any site and it'll figure out what the URLs are and it'll like warm them all up basically.

04:50 So I linked to this.

04:51 Yeah.

04:51 So I linked to this little GitHub thing.

04:53 But what I wanted to do is I wanted to type, I called it like warm up or wake up or something like that.

04:57 So I wanted to just go to my website and type wake up pythonbytes.fm.

05:01 And that was it.

05:02 And make that part of my like CI, CD deployment pipeline.

05:06 Yeah.

05:07 And I'm like, well, wait a minute.

05:08 How do I, how do I make a, I know there are things like PServe from Python and cookie cutter and pytest and all these things that I can run.

05:16 But how do I make that in Python?

05:17 I just had never thought about that.

05:19 And I think even you had sent me a message.

05:21 And so the idea is that if you create an entry point in your setup for your package, those will become executable commands on your OS, right?

05:31 Yeah.

05:31 So that's pretty cool.

05:32 So what I'm going to do is I'm going to link to a thing called Python package as a CLI option.

05:36 And this just talks you through all the steps.

05:38 I've set it up so that basically you create a package in the package.

05:42 You set up the entry points.

05:43 It talks about how to structure those.

05:45 And then if you just pip install your package, then, you know, all of a sudden these commands are available to you globally as if they were like full on executables in the OS.

05:53 Yeah.

05:53 Nice.

05:54 That's actually one of those, also one of those things that like, I'm glad you bring it up because it's not obvious how to do it.

06:01 But the once you know how to do it, you're like, oh, yeah, that's how you do it.

06:06 And then you don't think about it anymore.

06:07 Exactly.

06:08 It's super easy.

06:09 Everyone's like, oh, this is what you do.

06:10 I'm like, I've just never even thought about that.

06:12 Yeah, it's not super obvious because, you know, in other environments, the way you do that is you compile it to an executable binary and you put that in your path.

06:20 That's not how it works in Python.

06:21 No.

06:21 Yeah.

06:22 You have to have like this magic entry points thing for setup tools.

06:25 And then the other ones have like different versions.

06:29 Yeah, exactly.

06:30 So anyway, I linked to that little sitemap one thing that drove me down this path.

06:34 And then also to the article that talks about this.

06:37 How do you do this?

06:38 And it's, you know, it's not super new, but I think it's certainly relevant to people out there.

06:42 And I think I was inspired to do this because I wanted to have it as part of pipx.

06:46 So you can pipx install your thing.

06:48 It says, here's the executables that you got when you pipx install this thing.

06:51 I'm like, I want mine to have one of those.

06:53 Come on.

06:53 Yeah.

06:54 Well, I'm glad you were.

06:54 Actually, I'm going to use your app because we've got a new visualization tool that we're using at work.

07:00 And at one of the demos, we demoed it.

07:03 And like, it was super slow.

07:05 And it's like, oh, my God, what happened?

07:08 Well, it's the intern just edited all the code right before we did the demo.

07:12 Yeah, exactly.

07:13 And this will fix it.

07:15 If you have a site map, it'll just go request every page.

07:17 You tell it how many worker processes.

07:19 It'll do it all in parallel with async and await.

07:21 It's beautiful.

07:21 It's worth mentioning, I guess, that that little thing is not on PyPI, at least not yet, unless people can convince me to do it.

07:28 Because I'm happy to build it for myself and it's on GitHub.

07:30 And you can pip install it from the GitHub link, you know, with the GitHub option.

07:34 But I haven't decided, I haven't committed to owning that puppy as an open source thing.

07:39 So I just, I don't want to put it necessarily on the pip just yet.

07:43 I'm not sure.

07:43 Okay, cool.

07:45 Well, next I want to talk about, we've talked about type checking and the, what do we call this stuff?

07:51 The type hints.

07:52 Type hints, yeah.

07:53 Yeah, yeah.

07:53 We've talked about mypy several times.

07:56 And I actually think, I don't even feel bad for not remembering who specifically, because I think we got this suggestion from lots of people.

08:04 There's another tool called PyRite, P-Y-R-I-G-H-T.

08:08 And it's a Microsoft, it's from the Microsoft repo.

08:12 And it's the Microsoft static type checker for Python.

08:16 And it's got a little bit of an interesting twist on it.

08:20 It's written in TypeScript.

08:22 Is TypeScript a JavaScript thing?

08:24 That's pretty meta.

08:25 So TypeScript is basically like the idea of adding type hints or annotations of Python.

08:31 Like TypeScript is that to JavaScript, but to like the nth degree.

08:34 So like TypeScript adds concrete typing and static typing and whatnot to JavaScript.

08:39 And then it's its own language.

08:41 And then it compiles to native JavaScript, basically.

08:44 So yeah, it's kind of meta that that's the way they did it.

08:47 Okay, so it's written in TypeScript and it runs within Node.

08:50 And they're very open about it.

08:53 It's intended for large code bases.

08:56 So they're hinting at this isn't something for just everybody to just use on your small little project or your small open source project.

09:04 Probably means it's a pain to set up.

09:05 Maybe, maybe.

09:07 I don't know.

09:07 I've never tried it.

09:08 Once you have it set up, it's supposedly five times faster than mypy for a lot of people.

09:13 And it has a watch feature.

09:14 It can watch code bases, large code bases.

09:17 So that's for people with a big code base with a lot of people getting involved in it.

09:22 That might be a really great idea then.

09:24 Yeah, this is like a super idea.

09:25 I think type hints are a good idea if not over applied.

09:28 And this definitely seems useful.

09:30 One of their comments, I just wanted to, they're not slamming mypy.

09:34 But they say PyRite was created to address gaps in the existing Python type checkers like mypy.

09:41 Okay, that's cool.

09:41 Yeah, it looks really great.

09:42 It has a lot of stars on GitHub already.

09:44 So happy to see them putting that out there.

09:46 All right, before we get to the next one, let me tell everyone about Datadog.

09:50 So this episode, as many of them are, is sponsored by Datadog.

09:53 And they're a monitoring and analytics service.

09:56 And they bring all of your metrics and logs and distributed traces together in one place.

10:00 They're client auto instruments, things like AsyncIO for Async and Away and popular frameworks like Django and Tornado to help you visualize performance.

10:09 So you can trace all your requests across service boundaries, identify bottlenecks.

10:14 You've got a bunch of microservices, like how do you correlate these into one sort of call stack performance statement.

10:20 It'll do that for you.

10:22 So pretty awesome stuff.

10:23 Check them out at pythonbytes.fm/Datadog.

10:26 Nice.

10:26 Thanks, Datadog.

10:27 Thank you, Datadog.

10:28 Now, it wouldn't be a show if we didn't talk about Anthony Shaw, would it?

10:31 Oh, is this an Anthony Shaw article?

10:34 And a real Python thing as well.

10:36 So this next one that I want to talk about is something I'm super passionate about.

10:40 And so I'm glad Anthony wrote about it.

10:42 And Dan Bader had it on real Python.

10:44 Is refactoring, especially for simplicity.

10:49 So he wrote an article that I think people who maybe haven't thought too much about this lately should check out called Refactoring Python Applications for Simplicity.

10:57 So pretty cool.

10:59 A lot of it turns out to be about answering the question of, is my code complex?

11:05 That's interesting.

11:07 Like, I don't know.

11:08 I've been working on it.

11:08 It doesn't seem bad.

11:09 Like, where is it bad?

11:10 That part over there, I don't like to edit.

11:12 I know that breaks a lot if I touch that.

11:14 So we just don't mess with that too much.

11:15 Things like that, right?

11:17 But in general, like, how do you know?

11:18 So he talks about different metrics for complexity.

11:22 So if you haven't thought about that, that's pretty cool.

11:24 So, like, lines of code, super obvious.

11:26 Like, it's 10,000 lines of code.

11:28 I don't know.

11:29 That can mean something.

11:30 Or it could just mean you have a lot of stuff you got to do.

11:32 But then...

11:33 Yeah, but 100 is easier, right?

11:34 Yeah, 100 is definitely easier in general.

11:37 So he talks about cyclomatic complexity, which is pretty awesome.

11:42 And as a tester, I think that's a pretty interesting thing to think about as well.

11:45 It's like, so if I've got, like, foreign loop, and within that foreign loop, I have an if statement, you know, maybe depending on how you've structured it, that might be like three for the cyclomatic complexity.

11:55 Because you could write some code that has an empty list, so you don't iterate over it.

11:58 So that's one branch of execution.

12:00 Another one is maybe you are looping through stuff, but none of them hits that if statement.

12:04 Maybe it does, right?

12:05 So how do you basically execute each path of all the potential conditional logic and, like, going in or not into loops and stuff like that?

12:12 So that's cool.

12:13 Like, if you have a function that has 15 of those things, I don't know what it's doing, but it's wrong.

12:19 Right?

12:20 It should not be doing that.

12:21 It should not be doing that much.

12:23 You shouldn't have smaller functions, probably.

12:25 You know, maybe that's a little bit of a harsh blanket statement.

12:28 But, like, there is a number where, like, I don't know what you're doing, but it's too much.

12:31 You know what I mean?

12:32 Where's lines of code?

12:33 You can't really say that.

12:35 And there's also, like, a couple other metrics that I'm not going to talk about that go into this thing that's, like, global, like, sort of takes more of them into account called a maintainability index.

12:44 And he also talks about Wiley, which I think we've covered on the show, which is a tool he created to compute those numbers for your Python application.

12:52 Yeah.

12:52 That's pretty cool.

12:53 So all of that is to say, is my code complex and where?

12:55 And then he talks about, all right, how do we refactor it?

12:58 What are the tools?

12:59 We can use PyCharm because it has killer refactoring stuff built in.

13:03 There's some plugins for things like Vim and stuff or packages you can get.

13:08 Also, VS Code stuff.

13:09 And then the most, I think the most important part is, like, here are some anti-patterns, like highly nested code, for example.

13:16 And here are ways to refactor your way to better code.

13:20 And I think that's actually the most valuable and actionable part of this article.

13:24 Like, do I do this?

13:26 Yes, I do.

13:27 That's bad.

13:28 Oh, here's the fix.

13:29 Let me do that.

13:29 I think that's great.

13:30 Yeah.

13:30 Actually, this is incredible.

13:32 I think this should be, like, turn into, like, a chapter in, or a couple lessons in all computer science programs.

13:40 Because there's a lot of information in here.

13:43 Yeah, it's super good.

13:44 I mean, the complexity measures is really interesting, as well as the anti-patterns.

13:49 And, yeah, I definitely like it.

13:51 And certainly, I think it probably would resonate with you as well, because it has this testing angle, right?

13:55 Like, how do you know it's safe to refactor your way out of anti-patterns?

13:58 Well, if you have tests, you're good.

14:00 Yeah.

14:01 With some of the things like Wiley and others, you can test for this.

14:04 Yeah.

14:04 Yeah, super cool.

14:05 Cool.

14:05 All right.

14:06 Well, check that one out if you want a refresher or on-route backtrade or you want to see some of the anti-patterns.

14:12 Speaking of, like, things to learn and lessons, we had Colin Sullivan suggested that we cover FastAPI.

14:18 So thanks, Colin.

14:19 Yeah, and I hadn't heard of it, but it looks cool, doesn't it?

14:21 Yeah.

14:22 My first reaction is, okay, I'll check it out.

14:24 But it's yet another API generator stuff so that you can create, like, REST APIs fairly quickly and easily.

14:32 But it is super cool.

14:35 And they're building it as fast.

14:37 So it's FastAPI, high performance, easy to learn, fast to code, ready for production.

14:42 And, yeah, I'm going to drop in their little sales pitch.

14:45 It's fast, fast to code, fewer bugs, supposedly more intuitive.

14:49 And I just, this morning, I just went through their quick tutorial on it, installed it, ran something.

14:56 Because I had one question.

14:58 It has both Swagger and Redock, which are ways to document your APIs, like, live.

15:06 You can just go to the web page and go to the docs and see what it is.

15:11 What your API looks like.

15:12 And I'm like, that's just automatically there.

15:15 And sure enough, yeah.

15:17 Did the demo and it's right there.

15:19 You can walk along with the demo and see the hunt through it.

15:22 And it only took, like, a couple minutes for me to try this out.

15:26 And then it's built on top of Starlet, which I hadn't heard of before, which is a project for web part, some of the web parts of it.

15:35 Yeah.

15:35 The most important part about Starlette is, I think, is that it adds the async and await capabilities and the parallelism as well.

15:43 Yeah.

15:43 And then Pydantic, which is for some of the data, controlling the data structures.

15:49 And then at the bottom of just the front page that only takes a few minutes to go through, it says, oh, yeah, we also have this tutorial.

15:58 And the tutorial looks like it goes through, I think, like, some of the best practice, crash course of API best practices.

16:06 And so I'm totally going to go through that.

16:08 I think I might learn a whole bunch about schemas and a whole bunch of stuff.

16:13 Right.

16:13 Just trying that.

16:14 Which I use this verb.

16:15 And, yeah, it looks, this looks super cool.

16:18 And, you know, one of the things I like about, well, certainly one of the things I like is this async and await capability.

16:23 You know, there's some talk every now and then you hear these things flare up like, oh, we're switching to Go because it's not fast enough.

16:30 Or we're switching to Node.js because I don't know, right?

16:33 You know, because it was hot and amazing.

16:35 And they say we have super fast performance for this, like, on par with Node.js and on par with Go.

16:40 And I think largely they say thanks to Starlette and Pydantic.

16:44 And it's also thanks to this native asyncio and UVicorn and all the ASGI foundations, which is super, super nice.

16:53 Yeah.

16:53 And UVicorn, they have me using that with just the introduction demo.

16:57 That's cool.

16:59 And one of the things you can, they have you doing is to try out the reload flag.

17:04 Which just means, like, while you're, you can just type your code and change it and it just changes on the fly.

17:11 And you don't have to restart your application.

17:14 Right.

17:15 Normally, when you run your web app, you type UVicorn or Microwizzi or whatever.

17:19 And it's going to just load your Python files.

17:21 And until you restart it, it's not going to reload them.

17:24 Like, the UVicorn thing you're talking about is to watch the files.

17:28 And if there's any change, it'll just automatically restart your process.

17:31 So you can just type save request, type save request, and it's all good.

17:35 Yeah.

17:35 I feel smarter already just going through the little intro.

17:38 Yeah.

17:38 That's great.

17:39 I'm glad you pulled that out because that's super cool.

17:41 The API is really nice as well.

17:43 Okay.

17:44 So I talked about at the beginning, like, I don't know if I want that puppy.

17:47 I just, you know, there's a lot of folks out there that have probably open source projects.

17:51 And they're just like, ah, there's somebody angry at me on GitHub again.

17:56 I can't go back here today.

17:58 So there's a project called Bleach, which is a web server foundation type thing or web framework foundation type thing.

18:05 And the reason it's called Bleach is it will take, like, link text and stuff like that and make sure that it is safe for HTML.

18:12 Because if you get it from an untrusted source, there's all sorts of insanity that, like, with, I don't know, Unicode, escape codes,

18:19 and all sorts of bizarre stuff that you can put into links to make bad stuff happen on servers.

18:23 And so the idea of this is, like, it's supposed to apply some bleach to this user input, right, and stop the problem.

18:29 So this guy, Will Congreen, he had been maintaining this project.

18:33 He picked it up from someone else.

18:34 And he decided, you know what, I don't want to work on this anymore.

18:38 I've been working on it for a while, and it doesn't bring me joy.

18:40 So I'm going to step down.

18:42 And I thought I'd just highlight this because I think it tells an interesting story that probably resonates with a lot of folks.

18:47 He said, look, I picked up maintenance of this project because when I was familiar with it, the current maintainer wanted to step down.

18:53 I guess he worked for Mozilla, and Mozilla was using it on a bunch of sites.

18:56 And he felt an obligation to make sure it didn't just drop to, like, nowhere.

19:00 And he knew that he could do it.

19:02 He didn't really like working on it because it's just, you know, really tedious to, like, sort of fight all these weird escape codes and stuff.

19:09 And he did a bunch of work.

19:10 He didn't like using it, but he felt obligated to make sure it kept going.

19:15 So he said, is he getting paid to work on it?

19:18 No.

19:18 Does he like working on it?

19:19 No.

19:19 Seems like he shouldn't be doing it.

19:21 So it's just basically he's stepping down.

19:23 But I thought it was just, like, kind of an interesting journal entry of, like, that side of open source.

19:28 Yeah.

19:29 So, you know, people are out there.

19:30 They can read this, and maybe it'll resonate.

19:32 Maybe it'll help them stay on the project.

19:34 No, no, actually, I don't feel like this.

19:35 You know, actually, I am getting joy from this or whatever.

19:38 Or maybe they are.

19:38 Is there somebody else taking it over?

19:40 There's somebody else who's working on it, I think, who may be taking it over.

19:46 Last line of the article said something to the effect of what happens to bleach.

19:52 I'm stepping down without working on what comes next.

19:54 I think Greg is going to figure that out.

19:56 I'm afraid I don't know who Greg is, but he's one of the people working on it.

19:59 So it's kind of like someone else is going to have good luck, Greg.

20:03 Yeah, yeah.

20:04 Good luck.

20:05 So anyway, not a super positive story, but also I just thought it would be, like, kind

20:09 of interesting to share because it's an interesting look into, like, the sort of life cycle of maintainers

20:15 of open source projects.

20:16 Yeah.

20:16 Interesting.

20:17 Nice.

20:17 Yeah.

20:18 Brian, you got any extras for us this week?

20:20 Things you wanted to start real quick?

20:21 So something that came up that I thought was funny, Tim Hopper sent this out, and it's called

20:28 SleepSort.

20:29 And he found another implementation of SleepSort, and then he implemented it as his and Python.

20:34 But I think it's just hilarious.

20:37 So the idea is, can you make a sort algorithm by just sleeping for the period of time what the number is,

20:45 and then printing out the number when you're done?

20:47 So if you're on it, just sort numbers.

20:49 Oh, that's awesome.

20:50 So if I have, like, 1, 7, and 3, and I want to print 1, 3, 7, I just go to all of them and sleep as long as they are and then print them out?

20:57 Yeah.

20:57 With Async, you can just, like, line them all up and sleep for the amount of time that it says, and then they'll all be sorted because that's time sorting.

21:06 Time sorts for you.

21:07 How interesting.

21:07 Yeah, I guess it does.

21:10 I don't think it's useful, but it's interesting.

21:13 Anyway.

21:14 It's an interesting thought experiment.

21:15 And, you know, if you're in college and you're in one of these algorithm courses and they want to talk about QuickSort, BubbleSort, like,

21:20 here's a little interesting one that people might not see coming.

21:25 Yeah.

21:26 I have a couple I want to throw out there really quick.

21:28 First of all, Python 3.7.3 is out now.

21:32 So that's pretty cool.

21:34 There's a decent number of changes to it, I would say.

21:38 There's some decent number of changes.

21:40 It's really hard sometimes to find on the, like, change logs for Python to see what the point release changes are versus just the major one.

21:49 So, like, you go to where they say what the changes are for Py3.7 and it says, well, these are the new pips in 3.7.

21:54 Okay, well, what about this particular one?

21:57 You know what I mean?

21:57 Anyway, so probably people can point me in a better place in the release logs, but that seems like it should include those.

22:04 Anyway, so if you want to stay in the latest visual release of Python 3.7, you can go install Python 3.7.3 or however you do that, right?

22:13 Don't end up like the XKCD at the beginning.

22:16 Pick one and go with it.

22:17 Yeah.

22:19 Another one, this one I didn't really think is worth covering the whole episode, but Alexander Lurie, who is a medical doctor who's learning Python, a guy I know from the podcast and also from courses and stuff, really, really great guy, sent us this thing called Stack RoboFlow.

22:35 So, we all know Stack Overflow.

22:36 So, Brian, click on Stack RoboFlow and see what you get.

22:40 It looks like Stack Overflow.

22:41 So, here, let me just read, like, real quick, summarize what I get.

22:44 So, it looks like Stack Overflow, sort of, but there's obvious disclaimers.

22:47 And it says, subversion branches related to local directory.

22:50 Sometimes, I need to rename a local file on my SVN repository.

22:54 And in remote desktop, I do this, svn-l.

22:58 It goes in and talks about it.

22:59 This is written by an AI.

23:01 Oh, interesting.

23:02 So, it's like an AI that's, like, been trained on Stack Overflow.

23:05 And it knows how to ask questions and answer questions as if it were a Stack Overflow-like movie.

23:10 Oh, funny.

23:11 Yeah, and they have the code.

23:12 So, if you're into machine learning and stuff, you want to check that out.

23:15 It's pretty amusing.

23:16 Or if you just want to laugh to see, like, you know, how close can an AI get to just, like, random Stack Overflow.

23:22 But I really also like the logo.

23:26 Yeah.

23:26 It's funny.

23:26 Yeah, it's cute.

23:27 All right, last one, really quick.

23:28 I thought this one just might be useful.

23:30 I can't remember where I ran across this.

23:32 I don't think it's written in Python, but it doesn't actually matter.

23:34 It could be useful for teams writing Python.

23:37 Called Passbolt.

23:38 Have you heard of Passbolt?

23:39 No.

23:39 So, Passbolt is a password manager, like, one password or LastPass, something like that.

23:46 But it's for teams, like, for software teams and stuff.

23:49 And it's free, open source.

23:51 It's self-hosted.

23:52 It's based on OpenPGB and stuff like that.

23:54 So, it's, like, your own private, personal hosted stuff for things like server passwords.

23:59 And, you know, how do I get into this GitHub?

24:02 And, like, whose password goes to the mail server?

24:05 And, like, all that kind of stuff meant for teams.

24:08 So, it looks pretty cool for software teams to, like, keep track of that stuff.

24:11 That's actually pretty cool.

24:12 Yeah, it's pretty awesome.

24:13 So, maybe some folks out there can not put that on Sticky Notes or Excel or wherever it's right now.

24:19 Yeah, or in a wiki or something.

24:21 Yeah, or a wiki, exactly.

24:22 Okay, so that wraps it up for our serious topics.

24:25 How about something not serious?

24:27 You got a joke for us?

24:29 You got a pie joke for us?

24:30 Yeah, pie joke.

24:32 Thanks, pie joke.

24:33 How many programmers does it take to kill a cockroach?

24:35 I don't know.

24:36 Two.

24:37 One to hold it and the other to install Windows on it.

24:39 It's pretty bad.

24:43 All right, I got one for you as well.

24:44 Thanks, pie joke.

24:45 Eight bytes walk into a bar.

24:47 The bartender asks, can I get you anything?

24:49 He said, yeah, replies to the bytes.

24:50 Make us a double.

24:51 This is not really a joke, but it's just, like, serious advice from pie joke.

24:56 Friends don't let friends use Python 2.7.

24:58 So, maybe we'll just leave it at that.

25:00 Yeah, definitely.

25:02 All right.

25:02 Well, Brian, thanks for being here and finding all these things and sharing them with everyone.

25:06 Thank you.

25:06 You bet.

25:07 Bye.

25:07 Thank you for listening to Python Bytes.

25:09 Follow the show on Twitter via at Python Bytes.

25:11 That's Python Bytes as in B-Y-T-E-S.

25:14 And get the full show notes at pythonbytes.fm.

25:17 If you have a news item you want featured, just visit pythonbytes.fm and send it our way.

25:22 We're always on the lookout for sharing something cool.

25:25 On behalf of myself and Brian Okken, this is Michael Kennedy.

25:27 Thank you for listening and sharing this podcast with your friends and colleagues.

Back to show page