#345: 10 Tips and Tools for Developer Productivity Transcript
00:00 You know that feeling when one of your developer friends or colleagues tells you about some
00:04 amazing tool, library, or shell environment that you never heard of and that you have
00:08 to run out and just try right away?
00:10 This episode is jam-packed full of those moments.
00:14 We welcome back Jay Miller to discuss tools and tips for developer productivity.
00:18 The title says 10 tips, but we actually veer into many more along the way.
00:22 I think you'll really enjoy this useful and lighthearted episode.
00:26 This is Talk Python to Me, episode 345, recorded November 17th, 2021.
00:31 Welcome to Talk Python to Me, a weekly podcast on Python.
00:48 This is your host, Michael Kennedy.
00:49 Follow me on Twitter where I'm @mkennedy and keep up with the show and listen to past
00:54 episodes at talkpython.fm.
00:56 And follow the show on Twitter via at Talk Python.
00:59 We've started streaming most of our episodes live on YouTube.
01:02 Subscribe to our YouTube channel over at talkpython.fm/youtube to get notified about upcoming
01:08 shows and be part of that episode.
01:10 This episode is brought to you by Coiled and CockroachDB.
01:14 Please check out what they're offering during their segments.
01:16 It really helps support the show.
01:18 Jay, welcome back to Talk Python to Me.
01:22 It is always a pleasure to join the show and hang out.
01:27 Yeah, it's a pleasure to have you here.
01:28 You help out with all sorts of things and it's been great to bounce ideas off of you.
01:33 I've had you on the show a couple of times, literally two times so far, I believe.
01:37 How many more before I get like that golden jacket like they do on SNL?
01:42 You get the golden jacket after 10.
01:43 This is a really...
01:44 After 10?
01:44 Wow.
01:45 It is a commitment to get the jacket.
01:47 Wow.
01:48 Yeah.
01:49 Well, we'll pick up the cadence here and we'll get you the jacket.
01:52 I mean, you're a third of the way there, basically.
01:54 All right.
01:54 All right.
01:55 I got goals now.
01:56 Before I retire from the Python community, I will have my golden jacket from Talk Python.
02:01 That's right.
02:02 Oh, man.
02:03 If you come on 10 times, you are getting a jacket.
02:04 I'll figure out how to get one of those.
02:06 I'll demand one.
02:07 Thank you for being here.
02:08 This episode is going to be something of a reversal, but not 100% reversal.
02:13 I've got all these ideas about developer productivity.
02:16 I've been bouncing around and I want to share them with the audience.
02:20 And so we're going to kind of share those together, right?
02:23 I'll present them because it's my idea.
02:25 I don't want to force that recommendation coming out of anyone else or you in particular.
02:31 So I'll present them and then we'll discuss them, right?
02:33 So you'll be both the guest and the sounding board.
02:37 How's that sound?
02:37 I get to be the Simon Cowell to your performance.
02:40 I love it.
02:41 Yeah, exactly.
02:42 Well, hopefully you're in a good mood because Simon, he can be tough sometimes.
02:47 We'll see.
02:47 We'll see how it goes.
02:48 We'll see how it goes.
02:48 I've seen the talk.
02:49 I think there's a lot of great points in there and some stuff that I immediately was like,
02:54 oh, and then I heard you explain.
02:55 I go, actually, you know, that's not a bad idea.
02:57 Maybe.
02:58 Well, you know, you let me know where you disagree because a lot of these things,
03:02 one thing that works for one person is exactly the wrong thing for others.
03:07 Now, before we jump into it, though, you know, you've been on the show a couple of times.
03:11 The most recent time we were on, we talked about little automation tools, which was super fun.
03:16 We had you.
03:17 We had Rusty, we had Kim Van Wick, and we had Rivers Cuomo, of all people, who did a fantastic job on the show.
03:23 So that was really fun.
03:25 And I feel like that's a really good lead into this conversation here.
03:29 Before we get to it, though, for people who don't know you, it has been a little while.
03:32 When was that?
03:33 That was back in July since you've been on the show.
03:35 Tell people a little bit about yourself.
03:36 Yeah.
03:37 So I'm Jay Miller.
03:38 I'm a developer advocate for a company called Elastic.
03:42 We do Elastic Search.
03:45 I also do podcasting and a lot of productivity automation.
03:50 And you can usually find that stuff over either on Relay.fm, where my podcast lives,
03:55 or on YouTube, where I'm often talking about different productivity tools around the macOS ecosystem
04:02 or the iOS ecosystem, mostly Mac.
04:04 And I guess the biggest difference there is I don't shy away from the programming-friendly stuff.
04:13 I am the more that I can hack in, you know, shell scripting, Python scripts, even Swift from time to time, like, bring it on.
04:22 I am here for it.
04:23 And yeah, so you're not, you're not, you're going to see some software recommendations from me.
04:28 But I often tell people like, let's use what we know, build what we can, and ultimately just make things that work for us.
04:35 And it's kind of me.
04:36 That's kind of what I do in my day-to-day.
04:38 That's awesome.
04:38 If it's got to be solved with if this, then that, then let it be solved that way, right?
04:43 Absolutely.
04:43 Yeah.
04:44 You want to give a quick shout out to your podcast in particular, Conduit?
04:47 That's kind of new, right?
04:49 You also did the productivity podcast before this and then transitioned over here, right?
04:54 Yeah.
04:54 So before I did a show called Productivity and Tech, it was, you know, just a general productivity conversation with people around the tech, I guess, lowercase word, tech ecosystem.
05:07 Just learning how they did things and how they were more productive.
05:09 Somewhere along the lines, I found my co-host for my current show, Kathy Campbell.
05:14 And we do a show on Relay.fm called Conduit, where we talk about productivity, but make it so that it fits no matter what tools you're using.
05:24 We don't, we don't like to, we do like to make up, you know, our own different funny names for things, different techniques and tools and stuff.
05:32 But ultimately the idea is whether you like GTD, whether you like bullet journaling or whether you absolutely have to build to-do lists and Visual Studio code, like whatever you're choosing to do, like hopefully we can provide some guidance on how to do it to the best of your abilities.
05:49 Yeah, that's awesome.
05:50 We all have different tools.
05:51 I remember being in one high-level meeting with some executives and such, and they said, for some reason, my screen was being shared because I was demoing something.
06:01 And I said, Michael, can you just go ahead and take some notes on this?
06:03 I'm like, yeah, sure.
06:03 So I fired up VS Code in Markdown mode and just started taking notes.
06:07 So I go, okay, I see how we're taking notes here.
06:10 This is very, like, I didn't know they expected like one note or something.
06:12 I don't know what they wanted, but yeah, like, no, this is how we do it.
06:15 We're doing this.
06:15 Yeah.
06:16 I mean, you'll often hear me talk.
06:18 I'm a notebook pen and paper person.
06:20 So when it comes to managing projects or tasks, I'm often starting in my notebooks and then I'll move it over to a digital format.
06:28 Like if I need to share it out or something like that.
06:30 Yeah.
06:31 Right on.
06:31 Also from the audience, Jaylee says, please make that golden jacket a thing.
06:35 Goals.
06:36 We got goals.
06:38 I think so.
06:38 It's easy for me to stand behind this because I'm pretty sure we don't have any 10 time repeat guests.
06:44 I've put the bar pretty high, but we'll get there.
06:46 It'll happen.
06:47 It'll be awesome.
06:48 I feel like I'm in the race with people like Rusty Van Wick and Anthony Shaw and maybe Brian.
06:54 I feel like Brian can sneak his way on.
06:56 Brian does sneak in periodically.
06:58 He's an easy one to reach out to and like, hey, we got to cover this topic and I can't find somebody.
07:03 You want to drop in and do it?
07:04 Yeah.
07:05 Awesome.
07:06 So what do you think?
07:07 Should we jump into the tips straight away?
07:09 Let's do it.
07:10 I'm excited to do.
07:10 Awesome.
07:11 Well, I think there's a lot of little things that you pick up when you work in software.
07:17 And I feel like you and I share this belief that software is the superpower to whatever you're actually trying to do.
07:23 You talk so much about, oh, I found this cool tool to automate that.
07:27 You've even created mail through automation and stuff like that.
07:33 It's beautiful.
07:33 Yeah.
07:34 You know, I think the coolest part about tools is that they are that.
07:40 They're tools.
07:40 I love artists that are able to take a tool that wasn't designed for that thing and make something truly beautiful with it.
07:50 Like, I mean, the first time I saw like Bob Ross on like TV, you see some of the brushes that he uses and they're not like these little ones that you used in like your high school arts class.
08:00 They're like shop brushes that you would use, like paint a fence.
08:03 And like somehow he could still make these crazy pictures in like 30 minutes.
08:08 That's where the happy trees come from.
08:09 Exactly.
08:10 Awesome.
08:12 So the things we're going to cover here, they're like that.
08:15 They're a bunch of little things and I specifically chose them because I thought they're incredibly easy to try out.
08:22 Right.
08:22 They're not like, oh, you know what you should do?
08:24 You should move to a no SQL key value store database.
08:28 That would be better.
08:29 You're like, yeah, no, that's like a month.
08:31 And then we have to live with the consequences.
08:33 Like, so everything that we're going to talk about here, I believe is something you could try out really quick and say, yeah, that's cool.
08:39 Actually, no, maybe not.
08:42 Okay.
08:42 And if we got some time, I'm going to throw in some extra ones there.
08:45 I think everything here is free except for like one or two things.
08:51 So like, absolutely.
08:53 Your download manager like might get exhausted, but your bank account won't.
08:57 Exactly.
08:58 Exactly.
08:59 So the first one that I wanted to start out with, and I feel like this is a very bimodal distribution is shells or terminals or command prompts, depending on your origin, where you're coming to think about these things.
09:12 And I say bimodal because I feel like there's one group of developers that lives in the shell even more than me by quite a wide margin.
09:20 They're incredibly talented there.
09:22 And then there's a whole group that are just like, well, whatever is on my system, that's what I'm using.
09:25 What do you think?
09:26 What would your estimation on that population be like?
09:30 It's tough because I think as the community continues to grow, you're going to have more and more people that are not back in my day.
09:38 We we had the green screen with the blinky dot, you know, like I don't think you're going to have as many people that are doing that.
09:44 And I don't think that's necessarily a bad thing.
09:47 I think the first programming thing I learned was like when I was like eight or nine and like my grandfather was using Eclipse.
09:56 And it's like I don't go anywhere near Eclipse now.
10:00 Like that is not that's not me at all.
10:03 But nowadays, like even in my IDE, I find myself often going into Vim to make changes like in my IDE instead of just clicking on the file right there, making the change.
10:16 It's like, oh, I know I can do this faster just from my muscle memory.
10:21 So I think I think having at least some knowledge of, you know, if I need to dig into the shell, I can.
10:28 And I think that was actually, you know, one of the things you talked about here was using different tools to augment the shell.
10:35 I think that even if you're not going to go in there a lot, at least when you have to go in there, make it make it at least enjoyable.
10:42 Yeah, there's a bunch of little tools.
10:44 And there really seems to be a renaissance of the tools around the terminal.
10:49 We've got things like Rich and Textual, allowing people to make really cool apps there.
10:53 We've got OhMyZShell, OhMyPosh, a bunch of things there.
10:58 Some stuff called Big.io.
11:01 I'm not totally sure I want to make a recommendation for it yet, but I'll sort of bring it out there and so on.
11:06 And so, yeah, so my recommendation was if you open up your terminal or command prompt, if you're on Windows and you're still using cmd.exe, if it looks like the way it looked when you got the machine, there's a problem.
11:21 You're doing it wrong.
11:22 If it if it just comes out of the box and it's just cmd.exe, that's what you're using.
11:27 Or if you just open up macOS and it's the white bash, like you're missing out on so much.
11:33 Yeah, Brandon Brainer out there in the audience says, I'm using Fig and it's pretty awesome.
11:38 I just started checking out Fig.
11:39 I'll pull up Fig in a moment.
11:41 We'll talk about that.
11:42 So on one hand, there's a bunch of people who are incredibly talented, but there's also all these things that support being more efficient on the terminal.
11:50 So for example, I'm a big fan of OhMyZShell, OhMyZSH at OhMyZ.sh, which I learned that macOS now switched to ZShell as the default terminal.
12:03 So that's interesting.
12:04 But that means it's even easier to install OhMyZShell because you've already got ZSH or ZShell.
12:09 And there's just so many little nice tricks.
12:12 Like if you go into a directory and that directory happens to be within a Git repo, you get information about your Git repo right there in the prompt.
12:21 It tells you what branch you're on and what repo you're in and all those kinds of things.
12:25 If you can get it to say things about like the Python version that you're on and so on.
12:29 Do you ever use ZShell?
12:31 Yeah.
12:31 What do you use?
12:32 Oh, I use OhMyZShell.
12:33 Absolutely.
12:34 Like it's to me, if I'm not using it, I immediately know because of like, it's like, wait a minute, what's happening here?
12:44 I'm typing stuff and nothing's happening and I don't get it.
12:47 I hit tab and it didn't help.
12:48 Or I hit, I typed a few things to hit back here and it just went back to the previous command.
12:52 This is broken.
12:53 So, so we can't, I can't give you the name on it because I guess we'll try to be a family friendly episode.
12:59 But there's one of the things I like about OhMyZShell is that they have these plugins that do a lot of the configuration for you, which is already a big help.
13:09 Like the fact that I don't complete and all sorts of things.
13:12 Yeah.
13:12 Not even that.
13:13 Just the fact that I don't have to go into like my like ZSHRC and then put a bunch of like path statements and this crazy shell scripting to make things work.
13:24 I can just go to the plugin section and type something in.
13:26 But one of the things that one of my favorite ones, the command for it is WTF.
13:32 So if you know, you know, but the way that it works is if you type in something wrong, like if you mistype it, if you type in the phrase, the magical phrase, it'll go, Oh, I think you meant to type in this.
13:47 And you can just hit Y and then it inputs it in for you.
13:51 So like if you can't remember, what's that one weird command that you have to use if you're using something like said or awk, which I will.
13:58 I have another suggestion if you're using those still like you can be like, Oh, I think you meant awk slash this not awk slash this other thing.
14:08 Yeah.
14:08 Like, yeah, that's what I meant.
14:09 That's awesome.
14:11 There's one also that is the spelling out of the last of those three letters.
14:16 Yeah.
14:17 In there.
14:18 And you type that and it'll say, did you like if you do like a get checkout and it meant get branch or something like that, it'll you can just type that and go, did you mean this?
14:27 You say yes.
14:27 And it'll fix it.
14:28 Yeah.
14:28 It sounds similar as well.
14:30 That's awesome.
14:31 Yeah.
14:31 And things like fast D and ASDF, like ASDF, I'm sure we'll talk about later, but fast D, like the fact that you can do like things like fuzzy searching, you don't have to remember the exact path.
14:41 You just know the name of the directory you want to go into.
14:44 You hit Z space, the name of the directory, hit enter, and then now you're in that directory.
14:48 And if it ever messes up, you just hit tab and then you can manually set it to whatever you want it to be.
14:54 So in the future, it doesn't mess up again.
14:56 To me, it's like you're missing out on a very modern and clean browser experience if you're not kind of unleashing it with some of these extra plugins.
15:06 And Oh, my Z shell is the way to start with those.
15:09 To me, it feels a little bit like I'm programming in Notepad versus I'm programming in PyCharm or VS Code.
15:15 Like, why would you not want all this stuff that can help you with what you're trying to do?
15:18 Okay.
15:19 If you just take the base one.
15:20 All right.
15:20 So now if you're in Mac, I think macOS has the best shell of all the OSs.
15:25 And then you've got Linux.
15:26 There's a lot of good stuff there.
15:28 They're very, very similar.
15:29 But then if you're on Windows, I felt like that's just a different world, right?
15:33 It's just you're not meant to be on the terminal command prompt that much until recently.
15:39 So Microsoft released this thing called the Windows Terminal, which I started using on my Windows machines.
15:45 And I really like the Windows Terminal.
15:48 There's a bunch of good stuff in there.
15:49 And in particular, you can install Oh My Posh on there and get fantastic similar experiences over on Windows Terminal plus Oh My Posh.
15:59 Yeah.
15:59 I haven't gotten to play around with the new Windows Terminal experience.
16:03 But everything that I've seen makes me really impressed with what they've been able to do in the last few years.
16:10 Yeah, totally.
16:11 And you can set up Windows so that if you just say open command prompt, open terminal, the default terminal is the Windows Terminal.
16:19 And then within Windows Terminal, you can set up the new PowerShell, the PowerShell 7 or whatever it is, not the old school PowerShell 3 or command prompt version.
16:28 So it'll also drop in to like the latest version with Oh My Posh set up.
16:32 And then you're in a pretty good place on Windows, actually.
16:34 Yeah.
16:35 And I guess on Mac too, I mean, Terminal is fine.
16:38 Use iTerm.
16:39 Like iTerm 2, it is...
16:42 Unless you're using data of some sort, I would highly suggest iTerm 2 to replace it.
16:49 This portion of Talk Python is brought to you by Coiled.
16:54 You already love using Python to build your data science projects, but training models and working with tons of data on your laptop is limiting to say the least.
17:02 But that does not mean you need to learn new cloud APIs or buy expensive and hard to acquire hardware.
17:08 Just use Coiled.io.
17:11 Coiled supercharges the tools you already use for scale and performance, so you can use Python for your ambitious problems.
17:17 In the words of Eric Ma, principal data scientist at Moderna, quote, Quite literally, burst into the cloud from your laptop.
17:24 Everything I've been dreaming of since grad school, unquote.
17:27 With Coiled, you really can burst into the cloud with a few clicks and stay focused on solving the important problems.
17:33 Adding Coiled to your project takes less than one minute.
17:37 So what are you waiting for?
17:38 Get started today.
17:39 Just visit talkpython.fm/Coiled or click the link in your podcast player's show notes.
17:45 A couple other things.
17:46 We're going to spend a lot of time.
17:48 We're going slow, but we'll make it.
17:50 We'll make it.
17:50 We've got a lot of stuff to cover.
17:52 This is the most exciting one for me because it's like, oh, you want recommendations.
17:57 I'm here for it.
17:58 Yeah, absolutely.
17:58 Oh, it's so good.
17:59 Yeah.
18:00 If we spend a lot of time here, I think that's also totally fine.
18:02 So one of the things I much prefer about all my Z shell over, say, bash is I could type git git space and hit the up arrow and it'll only show me stuff that started with git.
18:15 So if I'm like, all right, what were the git commands I recently did?
18:18 I hit up arrow, up arrow, and it'll cycle through them.
18:19 Very common, like SSH.
18:21 I'm like, I need the third server I was recently on.
18:23 I don't want to type it.
18:24 So SSH space, up arrow, up arrow, up arrow, enter, right?
18:26 And that's really good.
18:28 Something I've been using for about a month now that's really neat was recommended to us by somebody listening to Python Bytes.
18:35 We covered it there.
18:36 Was it McFly?
18:36 Are you familiar with McFly?
18:37 I'm not.
18:39 And now I want to know because I have a very specific wish that ohmyzshell would do.
18:46 And if this does it, I will insta-download it.
18:48 Okay.
18:48 First thing that makes this nice is it integrates in a non-conflicting way with ohmyzshell.
18:55 So I have McFly and ohmyzshell working together.
18:58 Okay.
18:58 So McFly, what it does is if you type normally, if you type control R, it'll go to a reverse search on Bash or zshell or whatever, right?
19:07 And that's, I find, to be very useless.
19:09 I've never done that.
19:10 Yeah.
19:10 You know what?
19:11 I'll tell you what I do.
19:12 I'm like, oh, I tried to type something else and I accidentally hit it.
19:15 I'm like, darn it.
19:15 I got to get it out of this thing.
19:16 I know that you can search for stuff historically and it's useful.
19:19 But what I already talked about with the up arrow stuff, that's like the way I go through history.
19:25 And zshell, like, ohmyzshell, really nice.
19:27 But this, imagine if you could just say, actually, what I want you to do is use artificial intelligence, a context, and fuzzy matching to show me a dropdown, Emacs-like experience for my history that I can then run.
19:42 So what you can do is you can type a part of a command and hit control R and this replaces your control R with this, like, full screen select mode that'll show you all the stuff, which is really cool.
19:53 The stuff that matches.
19:55 And it doesn't have to just be the beginning.
19:56 It can match in the middle of strings and commands.
19:59 So you're like, oh, I checked out this branch.
20:01 I don't remember where it was.
20:02 Or you just type part of the word of the branch and hit control R and then boom, there's all the commands you ever issued to that branch, basically.
20:08 Which is fantastic.
20:09 It uses context.
20:10 So if you're in a certain directory or you had just typed one command that's usually followed by another command, it'll give you different ordering on your history, not just the order you typed in.
20:19 But, like, usually go to this directory and type that.
20:21 So you're in this directory.
20:22 You ask for help on it.
20:23 So we're going to suggest that one first.
20:25 Isn't that cool?
20:25 See, that's the exact problem that I had was the directory sensitive, like, context.
20:32 I mean, I guess the big example for me is if I'm building something in, like, Flask, I often use something like Tailwind CSS to do the styling for it.
20:40 And I need to reload Tailwind from time to time to add the changes.
20:45 And, you know, on some project, I might put that CSS file in, like, static CSS Tailwind slash Tailwind CSS or something like that.
20:55 And the other one might be in, like, static Tailwind CSS.
20:58 And the thing I need to remember is when I do NPX Tailwind CSS output, whatever that file name is, I always mess it up.
21:05 And I always put it in the wrong folder.
21:07 So if I knew what folder, like, based on history it was supposed to be in, like, to me, that solves that problem.
21:14 Yeah.
21:14 I don't know how well it'll work there, but that's one of the types of things it takes into account.
21:20 You can also optionally turn on fuzzy matching and some other stuff.
21:24 So, so far, it's been working pretty well.
21:27 I'm pretty, pretty psyched with it.
21:28 So, yeah, this one's fun.
21:31 I would recommend people check it out.
21:32 It's been working well for me.
21:33 I'm going to give this a shot, but I have one that I recently just started using.
21:38 And I think that this is, this might be something that a lot of folks have had issues with.
21:43 Have you ever tried to do, like, a grep for something, and then you find the thing that you're looking for, and then you're like, wait, but now I need to go and replace that thing?
21:53 How do I do that?
21:54 Yeah.
21:54 Like, I found a program called Amber, which has two commands to it, AMBR and AMBS.
22:03 And the way I think I sent you a link in, oh, it's a link in the doc there for you.
22:10 But AMBR is a replace and AMBS is a search and everything else is basically the same.
22:19 And it uses that grep-like feature.
22:21 So you could do AMBR for, sorry, AMBS for search.
22:26 And then type in what you're searching for, what file directory you want to have it search through.
22:32 It'll do some nice, you know, stylized matching.
22:35 And then when you're ready to replace it, just hit up, replace the S with an R, and then add whatever you want to change it to.
22:43 And it'll just go in and make that change.
22:46 So like, if you don't have to remember, like, how does sed work or how does awk work?
22:50 It's like, you know what?
22:51 Just AMBR, I found what I'm looking for.
22:54 Or in AMBS, other way around.
22:57 That's the one thing I will say is I get them confused and mix them up when I'm talking about it.
23:01 But you don't have to remember two different languages.
23:05 You just have to remember, replace one character with another and then add whatever I want to do as my substitute.
23:12 Oh, that's pretty nice.
23:14 Yeah, I haven't heard of this.
23:15 This is great.
23:15 So another one, the one that Brandon talked about that I mentioned was fig.io.
23:21 This one is new and interesting.
23:23 So with tools like PyCharm and VS Code, as you type things, you get autocomplete dropdown.
23:30 What if you could have that as part of all of your shell?
23:33 That's what this fig thing is.
23:35 And it has crazy integration, like all sorts of coloration and stuff.
23:39 And to the point where I have a bunch of custom icons I put for certain folders so I can find them more quickly.
23:46 When it shows the folders, if I type cd space, like GitHub space, like talk and start to type top Python,
23:52 it'll show the top Python icon on the folder.
23:55 It's autocomplete in the terminal.
23:56 Like it's ridiculous.
23:58 See, this is where like I wish that there was like copilot for just working through the shell.
24:05 Like I just start typing something.
24:07 It's, oh, you meant to do this.
24:09 And it's like, yes, exactly.
24:10 And I hit okay.
24:11 And I'm good.
24:12 So I was trying it.
24:13 They updated today.
24:14 It broke some stuff.
24:15 I got frustrated.
24:16 I've only tried it for one day.
24:17 So it's not a real recommendation.
24:18 Brandon seems to like it out in the live stream.
24:21 I thought it was pretty cool.
24:22 But I can't give a full recommendation.
24:24 But I can tell you to check that out.
24:25 All right.
24:26 So that was a bunch of stuff for just the shell.
24:30 But I think this is really one of the things that's super important.
24:33 I'd also like to point out, was it Starship?
24:36 Is that the one?
24:37 Yeah.
24:38 Starship was the reason why I specified use iTerm if you're not using some type of emulator.
24:44 because Starship is actually pretty cool.
24:45 Yeah.
24:46 That's the one Brett Cannon definitely recommends all the time.
24:49 And I definitely admire his recommendations.
24:52 So this is another one.
24:54 If you're not on the Oh My Zoo Shell bandwagon, that sounds like it'd be pretty good.
24:58 This one's more about the prompt and not the whole shell.
25:01 So you can like swap it from place to place, which is also pretty cool.
25:04 All right.
25:04 Ngrok.
25:05 Have you done anything with Ngrok?
25:07 I haven't.
25:08 Please.
25:08 Like I was taking a look at it and I was like, this seems amazing.
25:12 But I also don't know if I have a need for this.
25:15 Ngrok.
25:16 Is it .com?
25:17 Yeah.
25:18 Ngrok.com.
25:18 So there's this, there's like three or four scenarios that are just so painful that this
25:24 hauls so well.
25:25 So Ngrok is a tool that's free, but also has a paid plan.
25:28 It's like a hundred dollars a year.
25:29 They get a hundred of my dollars every year because it's extra useful what you can do with
25:34 the paid plan for me, but maybe it's not for you.
25:36 So you can try it for free.
25:37 So let me give you a scenario.
25:39 I'm working on rewriting the credit card e-commerce system of Talk By Line training.
25:45 Yeah.
25:45 Okay.
25:46 And the way this new site that I'm at a new service I'm going to integrate with tells me
25:51 somebody bought something because you don't want to do all the processing on your server
25:55 because then you have PCI compliance and all that stuff.
25:57 Like they do the processing and they let me know and I take the person to where I tell them
26:01 they need to go.
26:01 The way they let me know is they do a web hook, a call into my server with the results.
26:07 And then I create the access to the course and then redirect.
26:11 And then when they go to that place, they have access to it, for example.
26:14 Right.
26:15 So I've got to debug this and I've got to debug their server calling into my server.
26:20 And you're like, well, how do you do that?
26:21 Right.
26:22 So one terrible way would be to like open up your router and put your computer straight
26:27 on the internet.
26:28 But with Ngrok, you could just say Ngrok, I want to accept HTTP messages to my local machine.
26:33 It opens an SSH tunnel out.
26:36 So I don't have to open any firewalls, any ports.
26:38 It can be as complicated on the way out of town as it wants to be.
26:41 And then it listens on Ngrok.com for an HTTPS URL that then is SSH tunneled back to my local
26:48 server.
26:48 So I put a break point in PyCharm, go to their little app and type in my stuff and say, test
26:54 this purchase.
26:54 And then boom, paused in PyCharm, pausing their server request as I'm going through.
26:59 See, I thought about something like that.
27:01 And as soon as you pulled up the site, an actual use case for me popped up.
27:05 And a good example of this was, you know, doing the developer advocate thing.
27:10 I often have like builds of stuff, servers, you know, Docker composed instances.
27:14 And I keep all of this on like a Mac mini at my house.
27:17 And the one time I actually needed it and it kind of, you know, bit me in the backside was
27:23 I was in LA for KubeCon recently.
27:26 And I was like, oh no, I want to do this demo.
27:29 But all of my database stuff is like on my server at home because, you know, we haven't
27:36 been going anywhere for like a long time.
27:38 So yeah, you forgot what it meant to leave the home.
27:40 Exactly.
27:40 So had I had something like this, I could have just said like, you know, open up access on
27:46 this port and this port only and say like, hey, now I can actually access data on my home
27:51 server and keep all of my configs the same instead of doing what I had to do, which was like redownload
27:57 all the data, open up a cloud instance and then, you know, move everything to the cloud
28:03 and then get a call from our company saying, hey, you, you, your bill went up like several
28:08 hundreds of dollars with the gives.
28:09 And it's like, oh, sorry.
28:10 I was downloading gigabytes and of data and left it on.
28:14 Yeah.
28:14 Yeah.
28:15 On conference wire on conference wifi nonetheless.
28:17 Yeah.
28:18 Yeah.
28:19 So you don't even have to open up ports.
28:21 It just like you run this and then it, it, it SSH tunnels in reverse back.
28:26 Oh, that's really, really awesome.
28:28 So, and you can just leave it running for days if you want.
28:31 Another example is when we were debugging the mobile apps for viewing the courses, we just
28:37 told it the URL was that opened up the phone.
28:39 It didn't matter if we were on LTE or whatever, hit a button and boom, break point again.
28:44 Another one that I think this would be really helpful for is, Hey, I'm in this standup meeting.
28:49 I want to show everybody this new feature we added to the website, but it's only on my local
28:53 version.
28:54 We haven't deployed it, but you don't want to show it over Zoom.
28:56 Cause like the animations look crappy and all that just and grok it, give everybody in
29:00 the meeting a URL and they can interact with it live with all like the JavaScript fanciness,
29:05 but it's running on your server, right?
29:06 It's just the latest one.
29:07 It's beautiful.
29:07 I was, I was thinking about that in terms of like, what's the, what's the overall latency
29:12 of what is happening there?
29:14 Because in my mind, I'm, I'm like this, this is the better way to, to show people things
29:19 is like, you can go to this website and you can play around with this.
29:21 And at the end of the day, like you just close the end grok connection and you know,
29:25 it's all done.
29:26 You don't have to control C and like you're off the network again.
29:29 Yeah.
29:29 Yeah.
29:29 I might have to play with this as soon as we're off this call.
29:32 Cause I have a demo that I have to do soon.
29:34 So yeah.
29:35 It's awesome.
29:36 One of the things you get with the paid plan is you can create a stable URL.
29:39 Whereas if you have a free one, it always resets the URL.
29:42 So you got to like reshare it, which might be fine.
29:45 It might actually be good, but yeah.
29:46 That's good for me.
29:47 I needed to reset on its own.
29:49 Yeah.
29:49 So instead of trying to set up some crazy server setup at home and trying to do like router
29:54 NAT routing, which you probably don't want to even expose your, your server to the, or your
29:59 machine to the internet, just fire up an ingrock session.
30:01 Good to go.
30:02 I really think this is a, I've been using this like all week and it just reminds me how much
30:06 I love it.
30:06 I'm like, yep.
30:07 It's just set the sandbox URL to have my ingrock endpoint instead of the production endpoint.
30:13 And boom, it's good to go.
30:14 You know, one of the things that I was thinking about as a productivity tip is very much for
30:20 the beginners out there.
30:21 Like I, I have always struggled in the idea of like, Oh, what do I do with all of this server
30:29 admin stuff that I don't want to have to do?
30:32 I remember how intimidating that stuff was.
30:34 Yeah.
30:35 And, and I think that this is, you know, it's, it's kind of a good segue between, you
30:40 know, the next topic that you're going to talk about and this existing one.
30:44 And that's like the idea of like you, it's okay to embrace, you know, not necessarily the
30:50 serverless ecosystem, but like the power, like the past product as a service ecosystem
30:56 to where like, Hey, I just want to build my app and I don't want to be a, you know,
31:01 sysadmin.
31:02 Can I do that?
31:03 And now with stuff like Netlify or sell digital ocean has a thing now, like Heroku, Heroku.
31:10 Yeah.
31:11 Like taking advantage of some of those things or even doing something like in grok that you
31:16 can spin up when you're done with it, tear it down.
31:19 I think that was actually a tip on the, the last time we were in this call is like, I often
31:24 build admin consoles and flask, do them locally, have them connect to my servers offsite to do
31:30 any database changes.
31:31 And that way I know for a fact, I'm not leaving anything secure open because I'm just doing localhost.
31:37 It's sending the API calls.
31:38 And when I'm done and I close the terminal, it disconnects and there's no more access unless
31:44 someone has my API keys.
31:46 I'm not putting anything up on a server.
31:47 I'm not putting anything up in GitHub and I don't have to maintain it and be worried about
31:51 it.
31:51 I can just go, Oh, Python app.py enter, and then go to localhost 5000, make my changes and
31:58 then close it.
31:59 And then cool.
32:00 Got access.
32:01 Don't got access.
32:02 That easy.
32:03 This portion of Talk Python to Me is brought to you by Cockroach Labs.
32:08 Let me ask you a question.
32:10 What if you could build like big tech?
32:12 Use the same powerful infrastructure that they spent engineering centuries building.
32:17 It's actually possible with CockroachDB.
32:20 The founders has spent the last eight years creating a cloud native distributed SQL database
32:26 that provides the consistency, ultra resilience, data locality, and massive scale for modern
32:32 cloud applications.
32:33 Tech that was only once available to the likes of Google, Facebook, and Netflix.
32:37 The easiest way to kick the tires on CockroachDB and feel the power of a distributed SQL database
32:43 is to sign up for their serverless database over at talkpython.fm/cockroachDB.
32:49 With CockroachDB, you'll get automatic scale without breaking your budget.
32:53 The storage and transactional volumes automatically scale up and down to meet your application's
32:58 demands.
32:59 You get a familiar SQL interface that's compatible with Postgres.
33:03 Zero downtime.
33:04 The ability to make schema changes in production with no interruption.
33:08 And even a generous free tier.
33:11 You get up to five gigabytes without even entering a credit card.
33:15 With their credit cardless free tier and Postgres compatibility, you owe it to yourself to check
33:20 out CockroachDB.
33:21 Just visit talkpython.fm/cockroachDB or click the link in your podcast player's show
33:27 notes to get started.
33:28 Jaylee out there also says, I'm using Ingrock to work with my RPI, or Raspberry Pi.
33:36 Raspberry Pi, yeah.
33:37 Yeah, for home security services.
33:38 Works great.
33:38 Yeah, that's another thing on devices that aren't necessarily listening.
33:42 You can get them to sort of push out and then start listening again on the public internet.
33:46 Yeah, there's a lot of good use of it.
33:47 Told you, it's Ingrock thing.
33:48 It's a thing of beauty.
33:49 All right.
33:50 So another thing that I think, speaking of people who are beginners and struggle, right,
33:55 has to do with security, right?
33:57 You push something out on the internet, you know, who knows what's going to, how quickly
34:01 will it get owned, right?
34:03 It's not going to be good.
34:03 And there's a bunch of recommendations from OWASP that they say, look, these types of things
34:10 we found to be common vulnerabilities that websites have, like injection, cross-site scripting,
34:19 other things like if you don't explicitly disallow it, people can take your site and embed them
34:25 in an iframe and then wrap other stuff around it, right?
34:28 Like go to your login screen, but actually overlay something that captures the keystrokes
34:33 or other weird things, right?
34:34 So how do you keep track of these?
34:37 How do you prevent them?
34:37 So this thing called SecurePy is fantastic.
34:41 And it's got the most amazing PyPI name, just secure, like how they got that name.
34:47 I have no idea.
34:47 That's incredible.
34:48 But it integrates.
34:50 One of the things I like is it just, it's like a couple of lines of code to integrate
34:53 into whatever framework you're using.
34:55 So Quart, Responder, Sanic, Flask, FastAPI, Django, Pyramid, AIO, HTTP, like all of these
35:02 things.
35:03 And it's just a couple of lines of code to get it integrated.
35:07 Usually it's some kind of like middleware type of thing that you wrap it up with.
35:12 And so in order to use it, all you have to do is create one of these secure headers.
35:17 And then you set a couple of values like whether or not you want to allow cross-site scripting
35:23 and things like that.
35:24 And then what it'll do is it'll automatically put all the security controlling headers into
35:30 the response coming out of your website.
35:32 So for example, X content type options, no sniff.
35:35 Did you know any of that?
35:36 Want to protect against that X frame thing or iframe?
35:39 X frame options, same origin.
35:41 So you can do it with no one else.
35:43 Things about the referrers and so on.
35:46 Cross-site origin for JavaScript and whatnot.
35:49 So it's super easy to integrate with what you're doing.
35:53 It also has like a tamper-proof cookie type of option for doing that as well.
35:58 So what do you think of this one?
35:59 So I know when I first saw this, I was like, oh, what is this obfuscation of like what's
36:05 happening behind the scenes?
36:06 And, you know, I literally just talked about this 30 seconds ago.
36:10 Like, oh, you don't want to have to think about that stuff.
36:12 Yeah, I'm going to completely walk that back.
36:15 And like in my own projects like that I'm building, it's like I want to know what's happening.
36:21 I just don't want to have to maintain it.
36:23 Yeah.
36:24 Which is like, yeah.
36:25 And that's kind of where you actually, your response in like showing how this works and
36:30 showing like it's just adding the headers on that it needs makes me feel a lot better because
36:36 I mean, I'm in a DevOps space where we're like, we do a lot of like APM stuff.
36:41 And I just got off a live stream where someone was like, yeah, it just connects to your platform.
36:46 And it's like looking and digging and getting like logging of all of this stuff that like
36:51 is a dependency of the tools that you're using.
36:54 And it's like, oh, that's kind of, I mean, it's cool.
36:57 Should it be doing that?
36:58 I don't know.
36:59 I mean, it's great because I know that I can drill down and see where the problem is.
37:03 But at the same time, like I want to know that it's doing that.
37:06 And that's my concern with tools like this.
37:10 But I will always say leave security to people who know security and don't try to roll your
37:19 own.
37:19 I think Jacob Kaplan Moss said that.
37:22 Yeah, that's good advice.
37:23 One of the things in my dream world imagination or idealification of this thing is if a new
37:31 recommendation comes out, some new header that we should all be adding that we are not paying
37:35 attention to that we should have added, but we didn't for some sort of configuration change
37:40 for security, secure pie could be updated to make those changes and you just pick them up
37:46 and you don't have to know that that was improved.
37:48 So that makes me wonder, do you know if any of these protections come in at like a platform
37:58 level?
37:58 Like if you can, you know, if you're using something like a Netlify, you say, oh, I use Netlify
38:03 functions to load a thing.
38:05 I mean, I wonder if Netlify is doing something on their end to also include some of these.
38:11 And that's, I mean, that's where a lot of my concern comes from is that, you know, if
38:16 down the road I'm doing a thing and then like my provider is also doing a thing, am I going
38:20 to run into some goofy error that I have to troubleshoot?
38:24 I would guess because it's headers, just they would overwrite what your app creates.
38:29 Yeah.
38:29 This is more intended for like Flask or Django or something like that where you're kind of
38:35 the beginning and the end of the security statement.
38:38 Yeah.
38:38 I mean, something like that.
38:40 Absolutely.
38:41 And like I said, I will always leave security to in the hands of people who get paid to
38:47 think about security because I know I should be thinking about it.
38:51 And the most secure thing I can do is say, hey, I need an adult in this situation.
38:57 Please make this right.
38:58 I've thought a lot about this and I haven't.
38:59 Absolutely.
39:00 I also would like to point out that if you're not doing Python and web apps, I mean, first
39:05 of all, what's wrong with you?
39:06 No.
39:07 But seriously, second, there's tools like this for other frameworks for like ASP.NET
39:11 and other ones.
39:13 If you want it, if you seek it out, they have a totally different name.
39:16 Very unlikely to have a cool name like secure, but there's other tools for other frameworks
39:20 and platforms as well.
39:21 You'll have to listen to talk whatever that language is to me, I guess, to hear about
39:26 that.
39:26 Yeah.
39:27 Yeah.
39:27 Talk Cobalt to me about our APIs.
39:30 All right.
39:31 So yeah, to integrate it is like incredibly easy.
39:33 So that's super cool.
39:34 All right.
39:35 So here's a recommendation, which is in some sense in contrast to how much I went on and
39:41 on about how much I love the shell and the terminal.
39:43 And that is don't shy away from UIs for your Git.
39:46 For source control, basically.
39:48 This is the one that I was like, I'm ready to fight on this one.
39:53 All right.
39:53 Let's battle.
39:54 So here's the thing.
39:55 I think there's a lot of value to having nice visualizations of what's happening, right?
40:02 Like, for example, my first thing I pulled up for this was source tree from Atlassian.
40:07 And when you open up a repo, you see the branch history and who has made what changes and where
40:12 the tags are all in like one quick shot.
40:14 And you still have hotkeys.
40:16 Like if you want to just do a pull latest, you shift command L and that's the same as
40:20 Git pull.
40:20 You want to push shift command.
40:22 I don't remember what the push one is.
40:24 P maybe.
40:24 But, you know, there's a couple of hotkeys that are sort of give you a quick access that
40:30 is like being on the terminal.
40:31 But you also have really nice and beautiful things.
40:35 One, for if you're an expert or two, like if you have two branches, you want to merge
40:38 one, you drag one branch on the other and that merges the changes from one to the other.
40:42 Right.
40:42 There's things that help people who are new a lot.
40:45 So I, I find this doesn't mean you should never do source control in the terminal or with
40:50 Git in the terminal, but that also shouldn't mean you should never use UI tools.
40:54 That's my stance.
40:55 How do you feel about this?
40:56 Okay.
40:57 Same.
40:57 I can tell you feel the same.
40:58 With that phrase, with that phrasing, I'm like, fine.
41:02 But I did.
41:05 I took the first word on this one.
41:06 So go from there.
41:08 So I, I have many a tweet that has said, I have made said mistake.
41:15 I need to unmistake it.
41:17 And how do I do this?
41:19 And almost like clockwork.
41:21 I do it wrong.
41:22 And I wind up.
41:24 Yeah.
41:25 I just, I wind up deleting things that weren't supposed to be deleted.
41:28 And then I'm banging my head against the wall and then figuring out how do I fix this?
41:31 And the biggest get undo is just delete the whole directory.
41:35 That is, that is actually.
41:37 Check it out again and just hope that you can like kind of get it back.
41:40 Yeah.
41:40 That's, that's exactly my, my solution in most cases.
41:44 and, and again, I also want to say, I am not saying that any type of UI is bad.
41:51 I'm just saying, if you're getting started, learn the basics because you're going to be
41:57 on a server one day.
41:58 You're not going to have access to tower or source tree or something else.
42:03 And you're going to need to know what was that command?
42:06 Like what would get, get Brent?
42:08 What, what is cherry picking?
42:10 Get whatever, whatever.
42:11 And it's like, you're going to need to know it.
42:13 And if you have an over reliance and you don't understand what's happening behind the
42:18 scenes, that's when you're going to be in trouble.
42:21 So for me, it is very much, you can use the UIs, you can use the tools, know what's happening
42:29 behind the scenes and know what they are as well.
42:33 And I love what's this comment.
42:35 Why make things more difficult?
42:37 There's so much to memorize in our languages already.
42:39 Why do we need to memorize the get commands as well?
42:41 That's the thing.
42:42 You don't have to memorize all of the commands.
42:45 You just need to know, get a good understanding of what you do need to know.
42:49 And on top of that, plus we already talked about use things like OhMyZSH where you can just
42:54 tap through it and get a list and you can use man and you can learn about all the different
42:57 commands and what they do.
42:58 But again, if, if you hit delete on the Git or the GitHub, you know, interface, what is that
43:08 doing?
43:08 Is that just deleting your re is that deleting your entire repo?
43:11 Is that deleting the clone that you have locally?
43:14 Like what is happening?
43:15 And what happens when you go to use some other tool and they use the exact same phrasing to
43:19 do something different?
43:21 What happens when you go to a new company and your Git workflow changes and you're like, Oh, well, now we don't do branch stuff.
43:30 We do tagging and things like that.
43:32 I'm not saying that you can't use the UI.
43:36 I'm just saying it's good to kind of understand what the UI is doing so that if you ever need to change it or if you ever need to change what UI you're using, you can do so and do it in confidence.
43:47 And when you're stuck in that one situation that I have personally been in where it's like, crap, I don't have I don't have the button that I press.
43:54 Like, what do I need to do?
43:55 Like you can at least have a better chance at making the right decision.
44:00 Yeah.
44:00 No, that's fair.
44:01 I would say to Robert, I think our jail is Robert.
44:05 Hopefully I got that right.
44:06 Robert.
44:06 There's probably five or six Git commands you need to actually know how to do.
44:11 And then the rest I would go go to the UI because to me, it's like, do I really need to like visualize the branching in some other way?
44:19 No, just open up source tree and look at it.
44:21 That's going to be totally fine.
44:22 But if I need to know how, you know, Git pull, Git commit, Git add, push, Git checkout, like these, these are the various things I need to know, you know, but like a complicated rebase, maybe I'm maybe I'll just go.
44:36 I'm going to find I'm going to find the server or the UI and I'm going to do it.
44:40 We've all done that interactive rebase.
44:42 And we're just like, why am I doing?
44:44 We get like three of them through and we're like, yeah, sure, whatever.
44:48 Just accept the rest of them and go.
44:50 And then you realize that you weren't, you shouldn't have done that.
44:53 I mean, I'm totally there.
44:55 Why am I, why am I in VI?
44:58 Just accept theirs, accept theirs.
45:00 But I think that that's the thing is like, no, I'm not typing Git commit dash M insert my message.
45:08 And then all the files that I want to commit.
45:10 I'm often just doing Git add dot GCam for Git commit add message all.
45:16 And then whatever my message is.
45:18 But at least I understand what those commands are doing.
45:21 So that down the road.
45:23 And to be fair, I do understand it.
45:24 Yeah.
45:24 And to be fair, sometimes the tools like you're also giving access to your repo.
45:29 Like, I mean, it's cool if you're using like GitHub and everything's public.
45:33 But like, you're also adding a layer of opening to another company.
45:40 Yeah.
45:40 And I would be hesitant to say that there's no company out there that's not going to be vulnerable
45:47 to some type of attack.
45:49 And then you got to revoke access to your repos and things like that.
45:53 Because again, in order for these UIs to work, you're giving it a lot of access to what you're
45:59 doing.
45:59 So again, some of them, I think, I think source tree mostly just work.
46:04 Like you can just drag a folder onto it and it'll start to do its thing.
46:07 Whereas there's other ones where you're like, oh, off, you know, all the, oh, I'll sign
46:12 it into GitHub or get lab or something.
46:14 Yeah.
46:15 All right.
46:15 I'm going to, I'm going to let Anthony from the audience have the fun word here.
46:18 Don't roll over source tree.
46:20 Yeah.
46:20 Not at all.
46:21 Not at all.
46:21 Like you use the tools.
46:23 I think tower is great.
46:24 I think the GitHub UI is great.
46:26 I've never actually used source tree.
46:27 I'm sure it's fine.
46:28 I would say source tree is the one that hides the least.
46:31 It's there to help you.
46:32 And there's UI, but like, it's actually pretty complicated in what it does.
46:36 And I don't mean that necessarily in a bad way.
46:37 Like it's, it's not hiding everything behind pseudo actions.
46:40 Yeah.
46:41 And I'll also throw out there.
46:43 I am probably not the best, you know, subject test case for this because most of the project
46:48 that projects that I work on, it's just me or it's me and like one or two other people.
46:54 So it's easy to follow that tree.
46:56 If you've got 50 people working on a thing and you need to be able to trace back and forth
47:01 what's happening.
47:02 I totally get using a tool to help with that.
47:04 Yeah.
47:05 If you find yourself over here in the SKCD world where you start out writing beautiful,
47:12 beautiful code, like created main loop and timing control, enable config parts.
47:16 And at the end, you'd find yourself just eight A's, A-F-D-K-F-S-G.
47:21 My hands are typing worse.
47:22 Hands.
47:23 Yeah.
47:24 You're kind of breaking down there.
47:25 All right.
47:26 So I reset this on active.
47:29 Where did they get access to my get commit messages?
47:32 Exactly.
47:32 How did they do that?
47:34 All right.
47:34 There's also GitHub desktop, which I reckon is kind of neat.
47:38 I would say the other area that I just point out really quick is a lot of the tools we have
47:42 already have built in awesome Git stuff.
47:44 Like PyCharm has fantastic Git integration.
47:47 And so does VS Code with like Git lens and stuff.
47:49 So you might already have a UI for it if you just press the button.
47:52 You know what I mean?
47:53 All right.
47:54 Keeping along with Git, if you've got a Git repo that you've forked, something that's always
47:59 driven me crazy is like, I've got to go and there's a series of events I got to do on the
48:05 terminal, like add a remote origin.
48:08 And then I can earn upstream origin and then I can do some commands to pull the upstream origin and merge it back into my main branch and so on.
48:19 And so GitHub added a button that just says, have you forked this?
48:22 Oh, look, there are changes.
48:23 Press this button to make them the same.
48:25 I love this fetch upstream and fetch and merge.
48:28 This is awesome.
48:29 I really want to give a shout out to like a lot of the features that Git has added recently that like every time I go in there and like I see something, I'm like, oh, this is nice.
48:40 Yeah, GitHub is coming along.
48:42 Yeah, there was concern about what would happen to it and Microsoft bought it.
48:46 I think it's only gotten better.
48:47 Yeah, I think because, you know, I'm such a professional open source contributor.
48:52 There was a misspelling in a read me and I wanted to lift, tilt my glasses up my brim and go, well, actually, you swapped the T and the H and without.
49:06 Yeah.
49:07 And you're like, and by the way, I am a contributor to Django now.
49:10 Exactly.
49:10 And like just the process of doing all of those things can sometimes be more when it's like this is a simple fix.
49:18 And like in your mind, you're like, now I got to go do this thing.
49:22 I need to fork the code base.
49:23 I need to go and do all this stuff.
49:24 And like I literally did everything just in the browser.
49:28 And then it was like, hey, do you want to sync this?
49:31 Or, hey, do you want to create a new, you know, do you want to put this on the branch?
49:34 Do you want to do a new thing?
49:35 How do you want the PR to look?
49:37 Hey, they accepted your PR.
49:39 Do you want to go ahead and delete this?
49:41 And it's like all this maintenance stuff that I am bad at doing.
49:45 I am glad that GitHub will be like, hey, it looks like you merged a PR.
49:49 I mean, to me, Microsoft just clippified GitHub and made it easier for me to do what I do.
49:55 Good afternoon, Jay.
49:57 Are you trying to write a letter or merge a PR?
49:59 It looks like you're trying to rebase.
50:02 Would you like some help with that?
50:03 Exactly.
50:04 Wait a minute.
50:05 First, why are you rebasing?
50:06 All right.
50:07 So I love this.
50:08 This is like a single button click.
50:10 It solves a lot of the problems.
50:11 Really nice.
50:12 Because keeping your forks in sync have been a problem.
50:14 What I would love to do is just say yes and do this every day and don't tell me about it ever again.
50:19 Just make it happen.
50:20 Make it as if they're committing a line.
50:21 It depends on what I'm working on.
50:23 But there's a lot I would be happy to do that on.
50:25 Yeah.
50:26 I think as long as I maybe give me like a deadline.
50:30 Give me like, hey, we're going to auto merge this in after like five days.
50:34 You know, at least that way you can get the messages of like, hey, we broke this thing.
50:38 Don't do it.
50:38 Don't do it.
50:39 Yeah, sure.
50:39 So for me, there's like two reasons I'll fork a repo.
50:43 One is because I really love it and I want to contribute to or explore.
50:46 The other is just I really want a personal copy of this thing that I can control just because I depend on this so much.
50:53 I want a copy of it.
50:54 And for those, just keep it in sync.
50:56 You know, I can always go back to the version before.
50:58 I was wondering, like, how many like were you doing this for like dependency management?
51:04 But I don't know if I I don't know how much I'm doing that.
51:09 I'm not really forking someone else's code and then like bundling it in with my projects.
51:14 But I mean, there I'm never going to say never because that's the one time you need to go and do that.
51:20 Yeah.
51:20 Yeah, for sure.
51:21 All right.
51:22 Well, so glad that we're I mean, we're only partway into like we're on halfway through now.
51:27 And we're just barely into the podcast.
51:30 So it'll be fine.
51:31 Oh, I mean, some of some of these I am just like, I agree next.
51:35 Like, yeah, this one's perfect.
51:37 If you're not using Let's Encrypt and like you're not a company that buys their own certificates and other things like just just use Let's Encrypt.
51:46 Yeah.
51:46 And it is so simple.
51:49 I I would say getting a certificate is kind of a challenge.
51:52 I remember being on the phone with a certificate company and having to verify the identity.
51:58 Where's the office and what do you do there?
52:00 Maybe we'll give you an SSL certificate.
52:02 It might have been one of those enhanced ones or something that didn't really matter, but they thought it would matter.
52:07 And it was just such a hassle.
52:08 And then, oh, my goodness, if you've got to renew that thing and you don't remember the details or the person who originally got it is gone.
52:15 What what a hassle.
52:17 Right.
52:17 And so one of the benefits of Let's Encrypt is not just you get an SSL certificate, TLS certificate.
52:22 You also get them automatically renewed behind the scenes without you doing anything.
52:27 That's beautiful.
52:28 And this is I mean, again, this is a plus one for those platforms as a service.
52:32 I know like Jamstack and all this other stuff.
52:35 People are like, I don't want to have time to deal with that.
52:37 The fact that I can just commit to GitHub or, you know, push my push my repo up to GitHub.
52:43 And then from there, I know my website's done and I don't have to worry about the sort of like certificate renewals and everything else.
52:50 I will always go that route, but I do have servers that I run for like, hey, I want to show you what it looks like to run the server.
52:57 Let's Encrypt is absolutely like the first step in that process.
53:01 Like, OK, let's make sure this is good to go.
53:03 And I always imagine this would be kind of complicated until I actually saw the steps.
53:07 The steps are apt install software properties common apt add apt repository universe apt update and then just apt install certbot Python 3 certbot Nginx.
53:20 And then just run certbot Nginx.
53:21 That's it.
53:22 That's then say yes to the prompts.
53:25 You know what I mean?
53:25 That's it.
53:26 Yeah.
53:27 It's really, really not that intimidating.
53:29 So people should absolutely be using it.
53:31 And the audience, RJL, Robert says, hey, don't forget about FlaskCon in a couple of weeks.
53:34 Michael will be speaking.
53:35 I will indeed.
53:36 That'll be super fun.
53:37 And he agrees with us.
53:39 I'm also speaking at FlaskCon.
53:41 You're speaking at FlaskCon?
53:42 I had no idea.
53:43 Awesome.
53:43 We didn't even get a chance to connect.
53:44 What is your talk on?
53:45 My talk is on utilizing the Google Maps auto complete API to do location based searching with Elasticsearch.
53:55 That's awesome.
53:56 And I'm demoing it in my college board clone.
54:00 So anybody that's, you know, in high school getting ready to go to college and wants to know how much student loan debt you're going to go into.
54:05 Yeah.
54:06 Check out my talk.
54:07 There you go.
54:08 Awesome.
54:08 No, congratulations on being there.
54:09 You could run in Grok and let the audience interact with it.
54:13 That's why I said I was going to test this as soon as we're done here.
54:15 Nice.
54:17 Yeah.
54:17 I'm doing Flask plus HTMX stuff.
54:19 I'm a big fan of that.
54:20 And it's not even on my list of my suggestions.
54:22 All right.
54:22 Here's another one I find really challenging is testing web maps.
54:27 And yes, you should write very focused tests like, oh, here's the e-commerce section.
54:31 And this is what the price is when I set a discount code and I'm not logged in and I tried to purchase it.
54:38 But sometimes you want to know, will the thing just catch on fire and 500 or will it actually work if I put it, if I were to push this to production?
54:47 So this recommendation is that if you have a sitemap and most sites do, one of your tests can be just request all the pages and see if they 500 or 404 or if they return something that looks like a response like 200, 201, 302, something like that.
55:02 I'm trying to remember what it was called.
55:04 I think it was like pytest Request or something like that that does something similar.
55:08 But I love the idea of using sitemaps.
55:11 I'm going to do a shameless plug.
55:14 One of the things that we started doing with our search platform is adding a crawler that you can tell it to just go and, you know, brute force all of the links on your site and make sure they're good.
55:25 But you're going to miss something like you will miss something that way.
55:29 But you can also just add a sitemap.
55:31 So sitemaps are a great tool.
55:33 And it's one of those things that like a lot of like I don't think Flask does it by default.
55:38 Django doesn't do it by default.
55:39 But there's usually a very simple way to add a sitemap to those applications.
55:46 And I think if anything, this is just another reason to implement sitemaps.
55:52 Also, search engines do like sitemaps.
55:55 So if you want to get another bump in the SEO ranking, this is the way to do it.
55:59 Yeah, absolutely.
56:00 Super easy.
56:01 It's not a lot of work for the relative benefit you get.
56:04 John out in the audience says, Ingrok sounds similar to Cloudflare tunnels, which are also free.
56:09 That's awesome.
56:09 I have no idea what Cloudflare tunnels are, but it's a good recommendation.
56:13 People can check that out.
56:14 So thanks, John.
56:14 I'm going to add that to the list.
56:15 Right on.
56:16 All right.
56:17 Here's actually the code I put up there.
56:18 Like it literally is 15 lines of code or something to do the sitemap test, which is pretty straightforward.
56:25 Another one, you're talking about the SEO aspect.
56:29 Google's been paying attention to how fast your site responds and not just what is the server response, but how long does it take to get all the JavaScript and parse it and run it?
56:39 How long does it take to read the HTML and then get the images and resize them and all kinds of stuff?
56:45 So there's a place called PageSpeed Insights by Google, which you can just go put any web page, your root page or some sub page in there.
56:55 And it'll give you not just what they think your speed is, but what their recommendations are.
57:00 Like your image is too large here on wimpy processors like phones.
57:06 It's going to slow down the page load.
57:08 So you should resize.
57:10 Like you're saying 300 in your CSS, but the image is a thousand.
57:13 Just make it 300.
57:15 I'm right in the orange on my site.
57:17 So I got, I got, I'm at the high.
57:19 I'm like right underneath green.
57:20 So I got some changes I can do.
57:23 But I, one of the things that I thought about this and I love the idea and I absolutely agree with it 100%.
57:30 One, if you're doing static, static tends to be faster.
57:33 I'm just going to throw that in there.
57:35 But, cause I love static sites.
57:37 But it's not as easy of a fix as you would think.
57:40 There's still a lot of problems you can have with a static page.
57:43 Yeah.
57:44 And, and actually one of the things that I wanted to add onto that, speaking of like scores and ranking is the idea of accessibility scores and ranking as well.
57:53 We've all, we don't want to be dominoes.
57:56 We don't, we don't want to be the company that gets sued for not having, you know, good accessibility.
58:00 Luckily, I don't think anyone here is, you know, building stuff like that.
58:04 And if you are high, welcome.
58:05 I'd love to chat sometime.
58:06 But I do think that it's important to be good stewards in the community.
58:10 That's, that's something that I think is, is really great.
58:14 And if your site isn't accessible, like you're, you're cutting off a lot of people.
58:18 And, you know, a lot of people are like, well, you know, it's hard to do this.
58:21 And, you know, what, what else can I do?
58:23 There are a lot of great tools out there.
58:25 The one that I'm going to promote is wave, which is the wave web accessibility tool.
58:32 And it gives you a bunch of different things.
58:34 It even does its own evaluation and you can use it to say how accessible is my website?
58:41 Yeah, that's cool.
58:42 Definitely.
58:43 People should check that out.
58:44 This is important.
58:45 I think it might even be legally required.
58:47 And then also page speed is starting to be used for actual ranking as well.
58:51 So we'll should consider that.
58:53 All right.
58:54 Here's an interesting one, which I don't know how you feel about this, but I find if I set
58:59 up a server and the server's job is to run a website or an API and I log into it, there
59:05 is about a half of 1% chance that I want to change details about the service of the system
59:11 Python.
59:12 There's a 99.5% chance that anything I need to change is with packages or details or commands
59:19 involving the service I set up.
59:21 And I found I was always, I would log in there.
59:23 I'm like, okay, well, where's the virtual environment?
59:25 I got to activate this thing.
59:26 And now I can issue the pip install this new thing or, or do some other command that I needed
59:32 to do on the server.
59:33 And then it occurred to me, like, why do I do this every time?
59:35 Why don't I just set my ZS HRC to say the last thing is to source activate the virtual
59:42 environment.
59:42 So now when my servers, when I log in, at least the ones that are web servers, it automatically
59:46 activates the virtual environment that runs the web app.
59:49 So are you familiar with DIRENV?
59:51 D-I-R-E-N-V?
59:52 Yes.
59:53 So to me, my solution here is DIRENV.
59:56 For those that don't know.
59:58 Tell people what this is.
59:58 Yeah.
59:59 Yeah.
59:59 So DIRENV is this way to load an environment in based on the path that you're in.
01:00:07 And in most cases, this works for just environment variables, which I mean, I love.
01:00:13 It means I don't have to put stuff in open source.
01:00:16 I don't have to risk putting a password in there.
01:00:18 I can just point to an environment variable, load that stuff in, and then know that if
01:00:22 I'm actually in that folder, then the variables are loaded properly.
01:00:26 Right.
01:00:27 Exactly.
01:00:27 If you're in the folder that contains the somewhere above it contains the virtual environment,
01:00:32 it's going to use that.
01:00:33 Exactly.
01:00:34 And the thing that's really cool about this is there's another tool called ASDF that uses
01:00:39 something similar to PyEnvironment or PyE and V that you can put into your environment
01:00:45 variables to say layout Python and the Python version.
01:00:50 And it creates a virtual environment the same way that when you load into that directory, you're
01:00:56 loading into a virtual environment that you can control the actual version of Python that
01:01:01 you want to run.
01:01:02 And that works for both pip and the Python environment.
01:01:05 So when it's like calling PyE and V every time you you change directories into a certain
01:01:12 path.
01:01:13 And to me, like this is the new way of doing it.
01:01:16 When Python 310 came out, all I had to do when I wanted to test for 310 was change my
01:01:22 ENV RC to say layout Python 3.9.1 to 3.10.0.
01:01:28 And from there, that was it.
01:01:31 I CD'd out of it, CD'd back in, it created a new environment.
01:01:34 I reloaded my requirements and I was off to the races.
01:01:36 That's pretty awesome.
01:01:37 Yeah.
01:01:37 Yeah.
01:01:38 Very cool.
01:01:38 Yeah.
01:01:39 I think that's good as well.
01:01:40 For I would definitely lean heavy on that for the dev side for the servers.
01:01:45 I'm like, I might not log into the location I want to be in.
01:01:48 I just, it depends on if I have a bunch of services running there, just one.
01:01:51 But yeah, those are good recommendations for sure.
01:01:53 Especially like I said, on the dev side where you're doing lots of different projects.
01:01:56 All right.
01:01:58 Last one is dependencies and there's all sorts of dependency stuff going on here.
01:02:03 So there's levels.
01:02:04 So you can pip install some package.
01:02:06 Like I could pip install Pyramid that would install Pyramid.
01:02:08 It'll get me the latest one.
01:02:10 Unless I already have it.
01:02:11 Then it says you already have it.
01:02:12 So you're good.
01:02:13 Even if there's a newer version.
01:02:14 It's cool.
01:02:15 So you just do --upgrade and you get a new one, right?
01:02:19 But Pyramid might install Chameleon and my Chameleon might be out of date.
01:02:22 But this pip install Pyramid --upgrade doesn't upgrade my Chameleon, right?
01:02:28 It doesn't upgrade the transitive closure of all the dependencies, which is a hassle.
01:02:33 And then, you know, you got to remember to run these commands.
01:02:36 What if there's like a security vulnerability that I just got a notification a couple of days
01:02:40 ago.
01:02:41 There was some security vulnerability and not something I'm using, but something that I'm
01:02:44 using is using, right?
01:02:46 Very indirect.
01:02:47 So there's all these challenges, I think, around dependencies.
01:02:51 You talked about GitHub having cool features.
01:02:54 If you pin a version in your pyproject.toml or your requirements.txt and there's a security
01:03:01 problem, right?
01:03:02 If I say I'm using flask 0.1 and there's a security vulnerability that was fixed in flask
01:03:08 to get up will automatically create a PR for me and say, there's a problem except this PR
01:03:12 to fix it.
01:03:13 Right?
01:03:13 That's pretty cool.
01:03:14 Right?
01:03:14 So one of the questions I had with this was, does pip-tools solve this second problem
01:03:20 of like doing upgrade, but then it only upgrades like the top level and none of the stuff below.
01:03:25 Yes.
01:03:26 And that is my current solution is I'm using pip-tools.
01:03:31 And I think the command is actually pip compile in there.
01:03:35 I don't remember.
01:03:35 I've aliased it away.
01:03:36 So it's like gone from my mind.
01:03:38 Like I just type pip, pip.
01:03:40 I think it is pip compile update all or something like that.
01:03:42 It's pip compile --upgrade.
01:03:46 I do the same thing except for I never thought to just alias the whole pip compile upgrade
01:03:53 plus pip sync.
01:03:54 Like that makes sense.
01:03:55 Exactly.
01:03:55 Yeah.
01:03:56 I've aliased these things away.
01:03:57 They're all down to like, like pip install dash r requirements dash dev dot txt is just
01:04:02 PIR, PIRD.
01:04:03 If you want to without the dev, he's PIR.
01:04:05 Like I'm all about the aliases.
01:04:07 My, my Neo Vim, because I could never remember N V I M.
01:04:10 I just do V V I.
01:04:11 Yeah.
01:04:12 Nice.
01:04:12 Exactly.
01:04:13 So, the pip-tools is my current recommendation because what you do is you create a requirements
01:04:19 dot I N and you put the things you would have pip installed yourself, like pip install flask,
01:04:24 pip install SQLAlchemy, not their dependencies, just the things you want.
01:04:29 And then when you run the command that you talked about, it'll create the requirements
01:04:32 dot txt with the closure of all of the dependencies and actually on dent them showing why they're
01:04:39 in there.
01:04:39 Like blast depends on it's dangerous.
01:04:41 So like it would put that in there and it would be clear.
01:04:44 This is a dependency of flask and it pins the versions of all of them.
01:04:47 And then at first say it drops the it's dangerous requirement and you rerun this again, like
01:04:53 that'll come out of your txt file entirely, which is also nice.
01:04:56 So there's, I think this is fantastic.
01:04:58 You, it sounds like you're using it as well.
01:04:59 Yeah.
01:05:00 That's, I mean, that's part of my default setup of, of any new project is install, you know,
01:05:06 pip-tools.
01:05:07 And then from there build my requirements dot I N and then immediately compile and upgrade.
01:05:12 Yeah.
01:05:12 Yeah.
01:05:13 Awesome.
01:05:13 Also package managers for the OS, like homebrew.
01:05:16 I use homebrew on my macOS.
01:05:18 I know there's other things to use, but that works well.
01:05:20 Windows has chocolatey, which I think a lot of people on windows are not using a package
01:05:24 manager.
01:05:25 And I think chocolatey is awesome.
01:05:26 You can install Python that way.
01:05:27 Obviously there's apt and other things on Linux, right?
01:05:31 Yeah.
01:05:31 I really like a homebrew.
01:05:33 I know they were, I think they're now in one there.
01:05:37 Yeah, they are.
01:05:38 One ready.
01:05:38 Okay.
01:05:39 Good.
01:05:39 On this computer we're talking on, I got this one in December, 2020.
01:05:43 It has the Intel homebrew on it, but my new MacBook.
01:05:46 Pro, I put just the straight up, in the Apple Silicon version on there and it's been
01:05:52 working fine.
01:05:52 I haven't had any problems.
01:05:53 Okay.
01:05:54 Yeah.
01:05:54 Homebrew to me, it just makes sense.
01:05:57 the one thing that I will say is ASDF.
01:06:00 if you're using that, you're, you don't want to run, you know, Pippin or brew install
01:06:07 Python because then you have different, they're like your stems and stuff will get all weird.
01:06:12 so install Python through ASDF.
01:06:16 If you're using that, but other than that, like, yeah, I think homebrew is, is great.
01:06:21 and I guess the other bonus to ASDF is you can use that not just for Python, but if
01:06:26 you're doing like Ruby and you have like RVM or, you know, you need to manage node versions,
01:06:30 which I hate managing node versions, but you have to do it, I guess.
01:06:34 that's like, you can do all of those things in that environment control area, you know,
01:06:41 in VRC.
01:06:42 and again, with homebrew, it's like, it works, but when it doesn't work, you're just
01:06:47 like, okay, great.
01:06:48 Now I need to uninstall this.
01:06:49 I need to run brew doctor.
01:06:51 Like, I'm going to format the computer.
01:06:53 I'm going to, yeah, exactly.
01:06:55 You just need to just, just reformat your hard drive.
01:06:58 It's destroyed.
01:06:58 It's destroyed.
01:06:59 It won't upgrade Python anymore.
01:07:01 We're done.
01:07:01 I've had so many times where just updating Python is like.
01:07:04 Just giving me time to be like, well, I'm done with this.
01:07:07 Yeah.
01:07:08 Yeah.
01:07:09 All right.
01:07:09 A couple other things out in the audience.
01:07:12 Anthony suggests pip depth tree, which will show you kind of that.
01:07:16 Here's the top level things you installed and what they depend upon, which is great.
01:07:19 That's really a good one.
01:07:20 Product fund says pip audit is a cool tool.
01:07:23 If you want something on security, it's a project by Dustin Ingram, who is associated with
01:07:28 pypi.org and pypa and stuff, which is awesome.
01:07:30 One more thing I'll throw out there.
01:07:32 Pretty new is pip dash or pypi dash changes.
01:07:35 So this just came out and you type pypi dash changes and you point at the Python, the Python
01:07:41 executable in a virtual environment.
01:07:42 And it'll list all the things you've installed, what version they are, how old they were.
01:07:47 Like, here's a thing I've installed.
01:07:48 It's 10 years old.
01:07:49 Maybe I should think of something newer, but also whether or not there's an update.
01:07:52 So this is a fun one as well.
01:07:54 That's nice.
01:07:55 Again, I'm really impressed with a lot of these tools and companies.
01:08:00 Like, I mean, the fact that Python now has some folks that are dedicated to working on
01:08:06 these systems and it's what they do.
01:08:08 I mean, talking about like Lucas and having a developer in residence.
01:08:13 I think this is the benefit that we see of this is you get these little touches that just
01:08:17 make each version of Python, not just, you know, more performant, but also nicer to work
01:08:23 with and nicer to play around with.
01:08:25 Yeah.
01:08:25 It gives you joy, not frustration as you work with some of these things for sure.
01:08:29 All right.
01:08:30 So those were the 10.
01:08:32 How about I just throw a real quick thing out there for people as a delightful little
01:08:36 takeaway.
01:08:37 Nerd fonts.
01:08:38 Have you played nerd fonts?
01:08:39 I haven't.
01:08:39 What is this?
01:08:40 So if you want fonts that are good for programming that support font ligatures and for example,
01:08:46 the Oh My Posh I talked about, they have all sorts of weird like continuation between like
01:08:51 transitional characters and stuff.
01:08:53 All those things test against nerd fonts to make sure every nerd font will work well in
01:08:58 that shell fancy extension.
01:09:00 So if you go over here to the downloads, you can see there's like a huge scroll bar, but of
01:09:06 all these different fonts that support font ligatures, nerd fonts, et cetera, et cetera,
01:09:11 that you get here.
01:09:12 So, and they all come with a ton of variations.
01:09:14 So if you want to have a bunch of cool programming fonts, you've got like Neto nerd font looks
01:09:20 pretty good.
01:09:20 Pro font nerd font, not a nerd action.
01:09:23 That is, that is if you support.
01:09:26 That's if you like ligatures, you can turn them off.
01:09:29 I mean, you can turn them off, right?
01:09:30 You can turn them off.
01:09:31 I was going to say, I don't want to start that, that war of whether or not ligatures or anything.
01:09:35 I love ligatures, but I don't want to, I don't want to battle that out right now.
01:09:38 But I went and installed every one of these nerd fonts on my new MacBook.
01:09:43 It took half an hour longer for that little font book app was like locked up.
01:09:47 I thought it destroyed my computer, but nope, it just had 2,600 font families to install
01:09:53 or something.
01:09:53 I'm glad you don't use Photoshop.
01:09:56 It probably doesn't like you either.
01:09:58 Probably not.
01:09:59 What are all these fonts?
01:10:01 Exactly.
01:10:01 No, but if you're looking for good programming fonts, I don't have one over the other to
01:10:07 recommend, but there are many, many of them here.
01:10:09 All right.
01:10:10 And then I see Antonio out there in the audience who is saying, we got to wrap this up with
01:10:14 a notable PyPI package.
01:10:17 I mean, I had, I had two that weren't included in the list and that was black and eyesort.
01:10:24 I'm pretty sure the folks listening know like black is a great formatter for your code.
01:10:31 If you're like me and pepe is a thing that you want to, you want to understand and believe
01:10:38 in, but from time to time you're like, but what about this weird scenario?
01:10:42 I don't think about that anymore.
01:10:43 I just run black and then I'm done with it.
01:10:46 You know what I think is the real value that black adds is not necessarily that it does
01:10:49 the formatting.
01:10:50 Like I could open a PyCharm, go to the top level of a project, right click and save format
01:10:54 everything in this directory.
01:10:56 And it would format it the way I told PyCharm.
01:10:58 I like it, but it solves the debate.
01:11:00 It's like, you don't have to debate.
01:11:02 Is there a space before the comma or after the comma?
01:11:05 Does it go on one line or does it go on three lines?
01:11:08 Like black puts it on the lines.
01:11:09 We've agreed that we're just going to take this and nobody's going to be a hundred percent
01:11:13 happy, but you're going to be 84% happy.
01:11:15 And we're just going to stop fighting about the formatting.
01:11:17 And I sort is the exact same, except for it does this with sorting your imports.
01:11:23 And I, I mean, I will say sometimes when I'm writing code, it's messy.
01:11:29 Thank goodness.
01:11:30 I have black and I sort to make it not so messy whenever I have to give a talk.
01:11:34 And then someone goes, is there a repo for this code?
01:11:37 And I'm like, give me 30 seconds.
01:11:38 Black.
01:11:39 I sort.
01:11:40 Okay.
01:11:40 Now there is now, now I can, now I'm willing to share this.
01:11:45 That's right.
01:11:46 It's not embarrassing anymore.
01:11:47 Also, John out in the audience says, I was just going to say black and I sort get out of
01:11:52 my head.
01:11:52 Jay.
01:11:53 Oh man.
01:11:54 Well, other than that, I mean, I, you've talked about rumps so many times.
01:12:00 I mean, we can, we can, we can play the classics, you know, all the time here.
01:12:05 I personally, I try to, to not do a lot of installation of stuff, but, if I go to
01:12:14 some of my projects really quick and just open up, you know, actually, I think I do know one
01:12:20 and let's see.
01:12:22 I, I'm trying to remember what it's called.
01:12:24 yeah, I have an app I built with rumps, Python three and pie to app.
01:12:31 That's running up in my Mac terminal bar.
01:12:33 And if I'm really unlucky, it'll get hidden in the notch of my new Mac book.
01:12:38 Oh no.
01:12:39 I haven't played with rumps recently.
01:12:41 I need to do some more with rumps.
01:12:43 rumps is good.
01:12:44 Honestly, some of these little dependencies that I add to some of my projects that, I mean,
01:12:51 I could probably do my own, but also I don't want to like sluggify.
01:12:55 you know, if you've ever, again, a lot of this is just getting rid of how do I do
01:13:01 this?
01:13:01 one of my projects that I just started working on is this idea of we've all done, you
01:13:08 know, markdown and then you convert it to like a markdown table or, you know, you convert
01:13:13 it to like HTML and you got to do some stuff with it and then you got to process that HTML.
01:13:17 But what about doing like markdown to JSON, like where I have a markdown table and I want
01:13:22 to convert that table into a CSV file or a JSON file.
01:13:25 So I'm like playing around with this.
01:13:27 And in my head, I am, I'm like physically pulling my hair out, but I'm also like banging my head
01:13:32 against the wall going like, Oh, but how do, what's the regular expression for this thing?
01:13:36 And that's where stuff like validators is absolutely amazing.
01:13:40 Cause you can just go, is this an email?
01:13:42 If it is okay, good.
01:13:43 Run this, you know, is this a properly formed URL?
01:13:45 It is good.
01:13:46 Okay.
01:13:47 Run this.
01:13:47 Like I don't need to, to rebuild those things.
01:13:50 Yeah.
01:13:51 Awesome.
01:13:51 Yeah.
01:13:52 A bunch of good recommendations.
01:13:53 So thanks for being here, Jay.
01:13:54 This was a lot of fun.
01:13:55 I, I love just going through a bunch of these little tools because I learned a bunch from
01:13:59 you and it looks like people, the audience have found a bunch of interesting ones that we
01:14:03 covered as well.
01:14:03 I love it.
01:14:04 I mean, as always, now that I'm a front runner for the golden jacket club of, you know, talk
01:14:10 Python, I, I absolutely love coming on and, you know, just now that you got the chat
01:14:15 here, they're, they're talking about products.
01:14:17 I'm like, what's that?
01:14:18 Let me, let me add that to my list.
01:14:19 And, you know, I get to learn as much as you know, everyone else does.
01:14:23 Yeah.
01:14:24 That's awesome.
01:14:24 Yeah.
01:14:24 I just want to give a shout out to the YouTube live stream.
01:14:27 It's been really fun to have so many of you all come and join the streams and give us
01:14:31 feedback and thoughts during the show.
01:14:32 I think it lets the audience have a little bit of representation.
01:14:35 If you want to watch that one, just go to the episode page.
01:14:37 You can click it right at the top.
01:14:39 It'll be there.
01:14:40 Or subscribe to the newsletter.
01:14:41 there's a link to the YouTube videos.
01:14:44 Every, every newsletter drop.
01:14:46 They are in there.
01:14:47 Absolutely.
01:14:47 Every time.
01:14:48 That's awesome.
01:14:48 All right.
01:14:49 Robert says, thanks again, J.
01:14:51 Michael.
01:14:51 This has been very informative.
01:14:52 Thank you so much for being here, Robert.
01:14:54 J.
01:14:55 Final word.
01:14:55 Call to action.
01:14:56 People are psyched about this stuff.
01:14:57 What will you tell them?
01:14:58 honestly, just play around with it.
01:15:02 Have fun.
01:15:02 be a good steward of the community and absolutely take, take someone that was like me.
01:15:10 Seven years ago.
01:15:11 That was like, this Python thing seems hard, but I really like flask.
01:15:15 So I'm going to keep trying it and just continue to, to pour time and energy into them.
01:15:20 Trust me.
01:15:20 It'll, it'll pay off for them in the future.
01:15:22 And you know, they'll, they'll be sure to thank you with all the drinks that they can.
01:15:26 And, yeah, if you ever want to get in touch with me, you can do so.
01:15:29 I'm on Twitter, KJAYMiller on Twitter, LinkedIn.
01:15:33 That's kind of it.
01:15:34 yeah, I'll definitely put that in the show notes as well.
01:15:36 Yeah.
01:15:37 And, yeah, again, if you're interested in my productivity takes in wild, hilarious
01:15:42 opinions on things, but you know, you want to get outside of the Python space, check
01:15:48 out conduit, on relay FM relay.fm slash conduit, where, we put out an episode
01:15:54 every other week, this next one actually talks about having to do your job when you're
01:15:59 in physical pain, which is something that, you know, you don't think about until you have
01:16:04 that migraine for like the third day in a row.
01:16:06 And you're like, all right, how do I do this?
01:16:07 My most recent example was when I fell in a river and landed on some mossy rocks and broke
01:16:14 my finger in three or four places and couldn't, and had a cast that went to the tips of my fingers
01:16:18 could only work with one hand for two months.
01:16:20 Let me tell you, you got to find some productivity tips to keep things going.
01:16:24 Absolutely.
01:16:25 That was a while, a couple of years ago, but still, yeah, it's, it's all of a sudden
01:16:29 it usually realized, oh boy, I got to keep going, but this is not so easy.
01:16:32 Oh man.
01:16:33 Yeah.
01:16:34 So, people should check out conduit.
01:16:35 Yeah.
01:16:36 Thanks for being here.
01:16:37 It's been great.
01:16:37 Absolutely.
01:16:38 Yep.
01:16:38 Bye.
01:16:39 This has been another episode of talk Python to me.
01:16:42 Thank you to our sponsors.
01:16:44 Be sure to check out what they're offering.
01:16:45 It really helps support the show.
01:16:48 Coiled supercharges the tools you already use for scale and performance.
01:16:52 So you can use Python for ambitious problems.
01:16:55 Add coiled to your project in less than one minute.
01:16:58 Get started today at talkpython.fm/coiled.
01:17:02 Experience the joy of distributed data in zero downtime with cockroach DB.
01:17:07 Get started with no credit card and Postgres compatibility at talkpython.fm/cockroach
01:17:13 DB.
01:17:14 Want to level up your Python?
01:17:15 We have one of the largest catalogs of Python video courses over at talk Python.
01:17:20 Our content ranges from true beginners to deeply advanced topics like memory and async.
01:17:25 And best of all, there's not a subscription in sight.
01:17:27 Check it out for yourself at training.talkpython.fm.
01:17:30 Be sure to subscribe to the show, open your favorite podcast app and search for Python.
01:17:35 We should be right at the top.
01:17:37 You can also find the iTunes feed at /itunes, the Google Play feed at /play,
01:17:41 and the direct RSS feed at /rss on talkpython.fm.
01:17:46 We're live streaming most of our recordings these days.
01:17:49 If you want to be part of the show and have your comments featured on the air,
01:17:52 be sure to subscribe to our YouTube channel at talkpython.fm/youtube.
01:17:57 This is your host, Michael Kennedy.
01:17:59 Thanks so much for listening.
01:18:00 I really appreciate it.
01:18:01 Now get out there and write some Python code.
01:18:06 I'll see you next time.
01:18:24 Thank you.