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


Transcript #331: Python From the Future

Return to episode page view on github
Recorded on Tuesday, Apr 11, 2023.

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

00:05 This is episode 331, recorded April 11th, 2023.

00:10 And I'm Brian Okken.

00:11 And I'm Michael Kennedy.

00:13 So I want to thank everybody that's showing up on the live stream and watches it on YouTube as well.

00:18 I know a lot of people just listen to the audio, which is great. Thank you.

00:22 But sometimes it's nice to pop over and join the chat.

00:27 We usually record it Tuesdays at 11 Pacific time.

00:33 So if you can catch it, great.

00:34 If not, we enjoy your presence anyway.

00:37 I also want to thank InfluxDB for sponsoring this episode.

00:41 We'll hear more about them later in the show.

00:44 But first, what do you got for us, Michael?

00:46 How about we make an application?

00:48 Yeah, let's do it.

00:51 Let's do it.

00:51 So this one was actually thrown out just in passing over on Talk Python when I had that panel about sort of the direction of packaging and Python in general.

01:06 Like we've got all these different choices.

01:09 We've got poetry.

01:10 We've got PipDMV.

01:11 We've got Hatch.

01:12 We've got straight Pip.

01:13 We've got PipDual.

01:14 So I had a bunch of folks on the show to talk about that.

01:16 And Paul mentioned like, oh, MakeApp is something that I'm really dreaming about right now.

01:21 That might be a nice way to think about how we work with packages.

01:25 And so Felix Ingram noticed this maybe more than even that I did while we were watching or while he's listening and thought, you know, maybe I should talk a bit more about this.

01:36 So I didn't I wasn't really aware of this before I dug into it.

01:40 But MakeApp, it's a little bit like cookie cutter and those kinds of things.

01:45 But it'll guide you through creating your application as well as helping you test certain things.

01:52 Like, for example, if I want to create some Python package having to do with secure, I can't call it secure because guess what?

02:00 That's already taken on PyPI as a package.

02:03 So I'm never going to be able to publish that.

02:05 I'm going to have to rename it.

02:06 I might find that out later along the way.

02:09 So MakeApp will do things like check to see that the thing you're trying to create could be uploaded to PyPI if you later chose to do so.

02:16 Right.

02:16 And also with a quick point out, Felix said, hey, look, here's where you can link to it over onto the Talk Python transcript page.

02:26 And it has every paragraph, I guess, more or less, has its own little link that you can link to and play and hear what it's talking about.

02:34 And I don't think we have that on ours.

02:37 And I'm wondering how much people care.

02:38 Like, that's work that Michael has to do.

02:40 But a bunch of people are like, yes, please.

02:41 Then let me know.

02:42 Anyway, that's how they shared it with me.

02:45 And I figured out what we're talking about.

02:46 So this is an app that simplifies creating applications, rolling them out and publishing them.

02:53 And what it does is it will make a skeleton for your new application in one command.

02:58 That's kind of the cookie cutter equivalent.

03:00 Although there's absolutely fewer templates or project types, right?

03:04 There's like five or six project types instead of five or 6,000 for a cookie cutter.

03:08 So that's a consideration there.

03:10 But then it'll automatically create a Git repository for you.

03:14 I'm guessing just locally and you've got to link it to GitHub or wherever.

03:18 As I said, it'll check whether the application name is available on PyPI.

03:22 You pick your layout.

03:25 And then it also allows you to sort of manage your app over time.

03:29 So you can easily add entries like here's a new item or here's a breaking change to your changelog.

03:36 Oh, cool.

03:37 It'll publish your application.

03:39 You know, push to source control, push to PyPI, those kinds of things in a single command.

03:44 I don't know if I'd use that.

03:45 I think I kind of just am always pushing to GitHub.

03:48 I don't really wait until I'm ready to publish something.

03:51 Like I'm pushing like stuff.

03:52 I always kind of feel bad.

03:54 I think GitHub try like, why does this person commit so often?

03:57 But it's just like, you know what?

03:58 I'm done with this little thing.

04:00 I want to save it.

04:01 What if I'm on my other computer?

04:02 I don't want to have to try to remember how to get it back.

04:04 Anyway, that's a cool feature.

04:06 I'm not sure I would use.

04:07 So when you create a new one, you say make app new and you give it a name.

04:11 You give it a location and other things like what is the name or what's the author?

04:15 And you can also take things like the author, which you would put on the CLI.

04:19 You can put that into a config file and say, you know what?

04:21 It's me.

04:22 It's always me.

04:23 When I'm logged into this user profile, my name is still the same as it was before.

04:27 Right.

04:27 So don't ask me about that.

04:29 Right.

04:29 So that's kind of cool that you can do that.

04:31 It'll create templates for things like a click powered app, something based on pytest.

04:39 It'll let you create a pytest plugin project.

04:41 That's intended to be a pytest thing.

04:44 Django web app or this thing called Web Scaff, which is also a scaffolding thing for web

04:48 apps.

04:49 And then when you're ready to publish it, you say make app release and that'll bump a version

04:54 or you can say make app release increment the major version.

04:57 Like that's a major change that you want to make.

05:00 Right.

05:00 So this automatically bump the version number, tag it in source control, push the source

05:05 and the tag up to GitHub or GitLab or wherever you're acting on and publish it to PyPI all

05:12 in one fail swoop.

05:14 Then again, if you want to make changes, you can say make app change.

05:17 And then you put the text of that change and it'll put that into changelog in the right

05:22 place.

05:22 So you put like quote like here, it's plus new change command implemented or whatever.

05:28 And it has certain prefixes like plus for a new feature edition, exclamation mark for important

05:33 change, minus for a deprecation or star for some minor change.

05:37 Right.

05:38 Pretty cool.

05:38 And then on top of that, you it comes with autocomplete in your shell.

05:44 So if you're using bash or oh my z shell or something like that and you want to hit tab and have

05:48 it know about make app, what are its commands right after that, then you can put something

05:53 into your profile, your RC file, and it will activate the autocomplete, which is cool.

05:59 That's cool.

05:59 Yeah.

06:00 Anyway, so people can check this out.

06:01 Comes lightly recommended from that episode.

06:06 But yeah, pretty cool.

06:07 It looks interesting.

06:08 Worth all.

06:08 Nice.

06:10 Well, one of the things I've been thinking about and looking forward to is Python 312, actually.

06:19 So 312 is not here yet, but it is kind of here, right?

06:25 So it's a yearly development cycle.

06:28 Python's on.

06:29 Where are we at right now?

06:31 Well, we just had, so we just passed Alpha 7.

06:35 So Alpha 7 was released recently.

06:39 I don't think it was right on the list.

06:41 That many days ago, yeah.

06:42 Yeah.

06:42 But yeah.

06:44 So 312 Alpha 7.

06:47 And it's nice that they've published the schedule, the expected schedule.

06:52 So we've got up through a couple more months of four or five months.

06:57 Bad at math.

06:59 And this early in the morning of betas.

07:03 And then candidate releases and then the final in October, which is awesome.

07:08 So why am I bringing this up?

07:12 I'm bringing it up because a couple things happened recently.

07:14 So the Alpha 7, if we took the release notes, there's some fun stuff in here.

07:20 And I'm not sure when this came in.

07:22 But the thing that I really am looking forward to in 312 is, well, there's some stuff that isn't really mentioned here.

07:30 But I think we're going to get more speed improvements, which I'm pretty excited about.

07:33 But there's some cool stuff with, oh, this is just the major new features.

07:41 We've got even more improved error messages, which are great.

07:45 And that's one of the things I wanted to talk about.

07:47 A whole bunch of great stuff.

07:48 But these are pretty cool.

07:51 Also, invalid backslash escape sequences now worn for syntax warning and deprecation warning.

07:57 That's kind of neat.

07:59 So in the What's New article for 312, this does have some examples of the new error messages.

08:07 So these are really kind of neat things.

08:10 Like if you just kind of use SysVersionInfo, but if you forgot to import it, there's some new error logs of, did you forget to import Sys?

08:20 So did you forget to import?

08:22 Those are nice error messages.

08:23 There's another one from like if you're using a variable within a class that's not around, maybe it's a self variable that you forgot.

08:36 There's self member variables.

08:37 So there's a did you mean self.black.

08:40 Nice example.

08:43 Syntax error from, and I've done this a lot, of import from messing this up.

08:50 So it's import something from this other thing.

08:53 It's not that.

08:54 You're supposed to say from something, import something.

08:57 And the syntax error now says, did you mean to use this instead?

09:02 Which also, I don't know, to me begs the question of like, can't you just figure it out if you know what I meant?

09:09 But anyway.

09:10 Yeah, some other like import error messages, some cleanup.

09:15 More specific error messages, always exciting.

09:20 The other, there's always new exciting things in new versions.

09:24 One of the.

09:24 Off of that bit, I just want to bring a little audience feedback.

09:29 Sean Tibor from Teaching Python out there says, hooray for better error messages.

09:34 And Pamela Fox says, yay, I've already been benefiting from 3.11 error message improvements.

09:39 Some of which requested my, I requested myself in the Python forum.

09:44 Tell Pablo what you need.

09:45 Yes, I think this is really great.

09:47 It's certainly getting nice to have those, especially for people getting started in Python to be less confused.

09:53 Yeah.

09:53 And I'm finding myself just, I'm in a hurry more often than I, I guess I'm always in more of a hurry, getting stuff done.

10:01 And if the error message can help me solve something quicker.

10:04 That's a, that's a nice win.

10:06 So just one of the announcements that came out recently.

10:09 So I was, this is like tight schedule.

10:12 So we've only got, we're on alpha seven.

10:13 We've got no more alphas.

10:16 We've got some betas coming.

10:17 But I thought we were no new feet, no new features beyond the beta one.

10:23 And one of the new features that I don't see so far, but it's supposedly coming in is, is this, this per, per interpreter Gil, PEP 684.

10:34 It's a 312.

10:37 It just got approved.

10:39 And it's, I'm pretty, I think I'm excited about it.

10:42 I'm not sure.

10:43 I'm, I don't know if you know much about it, Michael, but it says here.

10:47 Okay.

10:47 So I'm just going to quickly summarize the abstract.

10:50 So, CPath on users, can run multiple interpreters, interpreters in the same process.

10:56 however, interpreters in the same process always shared the same global state.

11:01 And so one Gil, it is a source of bugs.

11:05 so, and, with a growing impact as more people use the feature, furthermore sufficient isolation would facilitate true multicore parallelism.

11:15 Ooh, I like multicore parallelism.

11:17 so I think we want this.

11:20 And, so there's outlines in the proposal.

11:23 So we're going to have, they're moving the, the, the data surrounding the Gil into the per interpreter data.

11:30 and I think I'm excited about it.

11:33 But then, then later on it does say, there's a, there's a reference to like for how do we teach this?

11:39 and it mentions, oh, I think I lost the link.

11:44 Oh, this is an advanced feature meant for a narrow set of users of the C API.

11:49 So I'm not sure how this will affect normal people, in the future, but it still thinks a good thing.

11:55 Do you have any idea, Michael?

11:56 I have no idea.

11:58 Yeah.

11:58 I think that the trick is how do you start a new interpreter?

12:01 And what I am, what I would imagine might come out of this is there might be right now in Python, we can create threads and we can create multiprocessing and we can do asyncio, right?

12:11 Yeah.

12:12 asyncio, it's just one thread.

12:14 It doesn't do any of that.

12:16 So kind of put that to a side, it's, it doesn't really fall into the same realm, but with threading versus multiprocessing, it's always been this trade-off of like, well, I really just want to run more than one thing at a time.

12:29 And, you know, like I've got 32 cores.

12:31 Why can I only use one of them?

12:33 I have this work I want to do.

12:35 And this might be interesting for, you as a data scientist or a scientist or somebody doing computational work, say on like hardware devices, a lot.

12:46 But then it also could be interesting for web consumer, web developers and APIs and stuff, right?

12:52 Like those threads might be, you know, you're still blocked on the GIL on the server side for each process that you spin off.

12:59 And that's why we have a bunch of worker processes that run, like you have eight worker processes already in a copy of your entire app consuming all that memory, right?

13:08 That's the, why do you do that?

13:09 Well, because you don't want to be subjected to the GIL for among other reasons, but that's a primary reason.

13:15 Cause you can't really do it in parallel, but if you had a bunch of processes that are independent.

13:18 So I can certainly see there might be some kind of API or something in the future where when you create a thread, you can say, and this thread lives inside this process, but I want more isolation.

13:30 Like interpreter isolation equals true when you create the thread or whatever.

13:35 And then, then when you run that work, there's two things that happen.

13:38 One, it should run in true parallel form, but let the OS, it'll be an OS thread.

13:43 The OS will schedule that on its own course, but then you also will have to actually care about lock.

13:49 Like other languages like C and C# and stuff, you do parallels.

13:53 And you're all about, okay, when do I lock this?

13:54 How do I lock that?

13:55 How do I unlock it?

13:56 What about a deadlock?

13:56 And then Python, you're like, eh, kind of the GIL will help us a lot.

13:59 Like that's gone, right?

14:01 And so it kind of levels up the difficulty of thread safety because there's more of a chance that these things run in parallel.

14:07 So anyway.

14:07 So we had, so I think the gist around it is there were a lot of people that were, or a lot, there are some people that are trying to utilize the multi-interpreter or sub-interpreter systems.

14:19 And they were running into problems because of this, the GIL is global sort of a thing.

14:27 And so push, it's not just the gill, but there's other things involved with this PEP that push more of the data around the per-interpreter thing into isolation.

14:36 So it's increased isolation of the per-interpreter stuff, including the GIL.

14:41 And those kind of people, like it says, maintainers of any extension module that created isolated interpreters, they'll now be able to utilize this better.

14:52 So there's some people making some cool things that'll continue.

14:56 So yay.

14:56 Anyway.

14:57 I'm very excited for this.

14:59 I'm excited for this.

15:00 I'm excited for the no-gil Python.

15:01 I think it's one of these sort of chicken and egg type issues.

15:05 Be like, ah, I don't really need the threading stuff.

15:07 I don't really use it because it's Python.

15:09 And a lot of people are like, well, there's no point in trying it.

15:12 So there's just not like a culture of really leveraging the hardware outside of these very specialized C APIs or certain Rust scenarios.

15:19 But then when you do see them, you're like, oh, it's like 50 times faster.

15:22 Like, hmm, wouldn't it be kind of nice to go 50 times faster sometimes if you might need it?

15:27 Or use half as much RAM on a server because you don't need to scale out as much for the gill?

15:32 But like you said, in other languages, we have to freak out about locks or using a message queue system for different processes instead.

15:41 And we don't have to deal with that now.

15:44 So I think it's good that we're taking slow steps towards it.

15:48 So it's good.

15:49 Anyway.

15:50 Yeah, no, I think this is good.

15:52 I talked to Eric Snow about it long ago.

15:54 It sounds like it's created better data isolation within the CPython source code anyway.

16:00 There's a bunch of global shared variables that weren't really meant to be shared, but they were because there's really only one thing.

16:06 And this refactoring, I think, has also made it a little bit better inside.

16:10 Yeah.

16:11 Okay.

16:11 Cool.

16:12 All right.

16:13 Do you know what else is cool?

16:14 Databases.

16:16 Yeah.

16:17 Databases are great.

16:18 And we want to thank InfluxDB for sponsoring this episode.

16:22 InfluxDB is a database purpose built for handling time series data at massive scale for real-time analytics.

16:30 Developers can ingest, store, and analyze all types of time series data, metrics, events, traces in a single platform.

16:38 So, dear listener, let me ask you a question.

16:41 How would boundless cardinality and lightning-fast SQL queries impact the way you develop real-time applications?

16:47 InfluxDB processes large time series data sets and provides low-latency SQL queries, making it a go-to choice for developers building real-time applications and seeking crucial insights.

16:59 For developer efficiency, InfluxDB helps you create IoT, analytics, and cloud applications using time-stamped data rapidly and at scale.

17:09 It's designed to ingest billions of data points in real-time with unlimited cardinality.

17:15 InfluxDB streamlines building once and deploying across various products and environments from the edge on-premise and to the cloud.

17:24 Try it for free at pythonbytes.fm/influxDB.

17:28 The link is also in your show notes.

17:30 Thanks, Influx, for supporting the show.

17:32 Very, very awesome.

17:33 Thank you for supporting the show.

17:34 Now, Brian, you live in the future in this world of Python 3.12.

17:41 Yeah.

17:42 I live in the present, as in just a few days ago, Python 3.11.3 was released.

17:49 How about that?

17:49 Oh, cool.

17:50 Yeah.

17:50 I don't know.

17:51 My feelings a lot of times when it's one of these point releases, maybe it's worth upgrading.

17:55 Sometimes there's something cool in there.

17:57 Sometimes not.

17:58 This one, you probably want to get in there and check it out.

18:02 Because number one, and this is not very common in the Python world, that there's a security update.

18:09 So they updated the underlying OpenSSL version for Windows and macOS to 1.1.1 T.

18:17 And we talked about like semantic version and calendar version.

18:20 This one's the T versioning style to address, let's see, 1, 2, and 3 CVEs.

18:29 And if you go pop over there to read a bit about that, it says severity high.

18:32 Okay.

18:34 That doesn't sound absolutely incredible.

18:36 Another one is moderate.

18:38 And another one is moderate, right?

18:40 So those are probably worth paying attention to then.

18:43 So that's, I just realized like 20 minutes ago that actually, I know it came out last week,

18:49 but I just noticed it this little bit ago.

18:51 And because of the security stuff, I decided I'm kicking out something I was going to cover before

18:55 and putting this one in here.

18:56 So that's pretty important.

18:58 Yeah.

18:58 I just want to be a little timely on that.

19:01 So there's also some other things, you know, there's always a few things like,

19:03 I wonder if that, that might be causing a problem.

19:07 For example, stack top value on tracing entries to avoid corruption on the garbage collection.

19:13 I'm like, I don't know that I do that, but maybe things that I use do that.

19:18 And I don't want a corrupted garbage collector, right?

19:20 That would be bad.

19:21 Who knows if, like, if it lose, if it leaks data that's bad, but if it goes and collect something that's not bad, that's really going to be a problem.

19:28 Overflow when creating very large dictionaries causes a crash when deallocating nested filter objects.

19:36 Seg fault from a race condition during garbage collection.

19:39 All right.

19:39 So there's enough stuff in here that I'm like, you know what?

19:41 This thing's getting an update.

19:42 All right.

19:43 So those are the cores and built in.

19:45 And then there's a bunch of things, a bunch of improvements to the standard library.

19:49 People can check out, right?

19:51 So it's just always interesting how much, how many things get changed, even though you think,

19:57 like, eh, standard library is kind of static and fixed, but, like, fixed dunder weak ref descriptor

20:02 generation for custom data classes.

20:05 And, you know, for binary mode, file hook compressed doesn't set the encoding, even if the value is none,

20:12 and so on.

20:13 So just a bunch of little things getting fixed.

20:15 But the reason I put it to the top of the list is the security stuff.

20:19 Yeah.

20:20 One of the security things that's interesting to me, I haven't looked into that yet, is that subprocess,

20:25 Popen thing.

20:26 A lot of people use Python to coordinate other activities on, you know, like DevOps and systems

20:35 admin and stuff like that.

20:37 So security patches around that, you probably should pay attention to.

20:42 So that's pretty interesting.

20:43 Absolutely.

20:44 Yeah.

20:45 Specifically for Windows users, right?

20:47 So now it uses a safer approach to find cmd.exd when launching with shell equals true.

20:54 Yeah.

20:54 And I can't imagine, like, I didn't even think that if you found the wrong command, you'd be

20:59 passing all your stuff to the wrong shell.

21:02 Some evil cmd?

21:04 Yeah.

21:05 Yikes.

21:06 Yeah.

21:06 Okay.

21:06 Cool.

21:08 All right.

21:08 Well, that's that one.

21:10 What's your last?

21:10 I want to do something fun because I'm looking forward to PyCon coming up right pretty soon.

21:18 Are you pretty excited about that?

21:19 I am excited.

21:22 I think it's approaching faster than I'm ready to prepare for being there for all that time

21:27 and getting the most out of it.

21:28 But yeah, I'm excited.

21:30 Yeah.

21:30 So there's an article.

21:32 Who's this?

21:33 By Sebastian Witowski, How to Make a Great Conference Talk.

21:37 And I kind of like this.

21:39 There's some really great advice in here.

21:41 So I know it's kind of late.

21:44 A lot of people that are speaking about people speak at all sorts of conferences, though.

21:48 So it's good.

21:49 But if you're speaking at PyCon, there's a couple of things I want to highlight.

21:52 You probably already have your slides set up, hopefully.

21:56 And no, you've already been accepted.

21:57 So you don't need to worry.

22:00 You can maybe skip the benefits of speaking at a conference.

22:04 But I highly recommend people try.

22:07 I think there's benefits of even submitting and trying to get an idea together, even if you

22:13 don't present it, because it's nice.

22:15 Anyway, then there's call for proposals, research preparation slides.

22:21 There's a whole bunch of stuff in here that's great.

22:23 I want to skip to the end.

22:25 So you're in the middle of maybe trying to do rehearsing.

22:29 So I say skip to this part, the live demos part and rehearsing and what to do on the day

22:36 of the presentation and make sure you review these, because these are great.

22:39 And the greatest advice I've ever seen for live demos is, do you really need a demo?

22:47 We've probably all, I don't know if anybody's, anybody that's tried to do a live demo has

22:53 had one not go as they expected.

22:55 Even if it turned out okay, it's a stressful thing.

22:58 So especially if you are new to presenting, I would say skip the live demo.

23:04 It's cool when it works, when it doesn't.

23:06 The other thing is, if you're going to do it anyway, and something goes wrong, the Python

23:14 people in the audience are not going to heckle you or anything like that.

23:17 We're a nice bunch of people and we've all had it happen to us.

23:20 So you're not going to, you shouldn't feel too embarrassed, but prepare for it.

23:26 Prepare for, what are you going to do if the wifi goes out?

23:28 Things like that.

23:29 So, and also, and also I just don't do them anymore because, because, because they've always

23:36 gone wrong for me.

23:36 Okay.

23:37 Moving on at the very least practice them.

23:39 Rehearsing.

23:41 I see a lot of people and I, I used to be like this to forget to rehearse.

23:45 The rehearsing is the most important part.

23:48 And I, I can't remember where it is in here, but it's good advice of taking, practicing the

23:56 first five minutes, making sure you've like got the five minutes, first five minutes, last

24:00 five minutes memorized.

24:01 You can like, you can like, you know exactly what you're going to say because it's hard.

24:07 If you think you kind of know what you're going to say, when you get up there, it's blank

24:11 page.

24:11 You have to, how do you start?

24:12 So knowing how to start and knowing how to finish is a, is a good thing.

24:16 I, so practice.

24:18 And I also see, I've seen people practice quietly and I've done this before in your head, practicing

24:24 in your head.

24:24 Doesn't count.

24:25 Do it out loud and do it standing.

24:27 You're going to be standing at a conference.

24:29 So don't sit and practice it.

24:30 Stand up and practice it.

24:32 I was at the lot at, Pike Cascades.

24:35 I was in the hotel room and what did I use for a standing desk?

24:38 The ironing board, the ironing work where it's great in a hotel for, for your standing

24:43 desk to practice it.

24:44 Anyway, practice your, your talk.

24:45 And I take one of these.

24:47 So I'm going to have a link in this.

24:49 I'm going to take, take a look at this in a second, but, one of these, time

24:53 timers.

24:54 So, there it's 36 bucks for a little tiny timer.

24:58 So what's the big deal?

24:59 you can visually see what's going on and I love these things.

25:03 and I, that's what I used to practice with.

25:05 and to, and the other comment in here was to, pay attention to where you are in your

25:11 slides at different points, which is a great idea.

25:13 Like at 15 minutes or 10 minutes, 20 minutes, whatever, where are you approximately in your

25:19 slides?

25:19 The reason for that is while you're doing your presentation, if you're at the 10 minute mark

25:24 and you're already halfway through your talk, slow down a little bit.

25:28 If you're at the 10 minute mark and you've only gone through the first three slides,

25:31 you're going to have to speed up a little bit or else you're not going to get into it.

25:34 Or skip something.

25:35 Or, yeah, or skip something.

25:37 know what you're going to skip, but practice it.

25:40 and then some great advice for day of the presentation.

25:43 don't drink too much water or your coffee.

25:45 You're going to want to, but don't, because, but drink, drink some, make sure you're

25:50 hydrated, but not too hydrated because you know, so anyway, some great advice here,

25:55 packing checklist, make sure you have extra chargers.

25:58 I, I've got like the little dongle thing because conferences usually have whatever you need to

26:03 hook up to, but I don't trust that.

26:05 So I make sure that my laptop can get to the HDMI, can get to, yeah, whatever it

26:13 needs to, extra charger if you've got one.

26:15 So just prepare.

26:17 Yeah.

26:17 It's a good article.

26:18 Sebastian's a great presenter.

26:20 So yeah, he's done a bunch.

26:22 I, I also have some thoughts.

26:25 I would say regarding the live demo part, I'm, I'm on board with Marco.

26:29 Like I think not that one, this one that I find talks with live demos.

26:35 He says more exciting.

26:37 I say more, more real, right?

26:38 Like if, and I think it applies an important role.

26:43 Like there's certain things you show picture, picture, picture.

26:45 You're like, Oh, that's cool.

26:46 But I bet that's really hard.

26:48 But if you show, actually there's these three lines that I wrote in a minute in front of

26:52 you.

26:53 And now the thing happens like, Oh, that's totally approachable.

26:56 I could do it.

26:56 And I think it just sets a different tone.

26:58 I don't think every talk has to have it.

27:00 Like, there's storytelling talks and like big picture talks and like those don't need

27:05 it.

27:05 But if you're trying to talk about as focused technology, I, I think it's almost table stakes.

27:11 So I disagree a bit with Sebastian on that.

27:13 Okay.

27:14 However, I, that said you can go into it with a blank file and get confused.

27:20 You can get distracted.

27:22 You can make mistakes.

27:23 You can forget things.

27:24 So two things leave a lot.

27:27 If you do do it, leave lots of breadcrumbs.

27:29 Like maybe put a comment, like here, I want to create a flask app here.

27:33 I want to make a view that responds to this URL.

27:37 And like, it might be hard to remember, do all the steps, but if you see, make the flask

27:41 app, you're like, Oh, I don't remember how to do that.

27:43 Create a view that call it responds to this URL with like the actual variable passing thing.

27:49 And Oh, okay.

27:50 Well, that's easy.

27:51 We'll drop that.

27:51 Right.

27:51 Like you can make it hard on yourself or easy on yourself.

27:54 And then second, have a backup.

27:58 Pample says at, at his research lab, they were actually saying, keep a spare laptop.

28:02 I don't know necessarily about that, but I would at least have a finished version that

28:07 you're like, Oh my gosh.

28:08 Well, let me pull this up and show you.

28:09 Then we'll talk like some kind of fallback.

28:11 Right.

28:11 There's like levels of live demo.

28:14 Do I say file new project and we write a thousand lines or do I strategically highlight the important

28:20 bits and not distract people with like oil and get potentially lost?

28:24 Right.

28:24 I don't know.

28:25 So I think one of the, one of the halfway betweens is to script your demo.

28:30 And there's a tool that the, the, the Sebastian links to called demo magic.

28:35 And what you do with this is basically you, you have these commands of a PEI or PE and, and

28:42 other things and wait for prompts and whatever.

28:45 And these, what happens is you, you're demo, it looks like you're demoing, but all you're

28:50 doing is hitting enter to go to the next thing.

28:52 and, and then people can see in real time what it looks like, but they don't have to wait

28:58 for you to type it just sort of, you know, yeah.

29:00 It kind of types it out as if it's doing.

29:02 Yeah.

29:02 Absolutely.

29:03 Yeah.

29:03 So this is kind of nice.

29:04 I also, one of the things of all conference advice, Sebastian does talk about this,

29:10 but keep it in mind.

29:11 This is what works for him.

29:12 I disagree with some of it and, and you disagree with some of it and be, it's okay if you disagree

29:18 with it because it works different for everybody.

29:20 like one of the exam, one of his advice, pieces of advice also is to write out your talk

29:26 before you write your slides.

29:28 I never do that.

29:29 because I'm writing my slides in Markdown.

29:32 I'm thinking about what I'm going to show while I'm, while I'm talking and while I'm thinking

29:37 about the topic.

29:38 So my, my slides really are kind of outlining to begin with.

29:42 And, and then I, you know, I can put junk in there and cut it out, whatever.

29:47 also a code, I don't know how to do, and it says you should be able to do your talk without

29:52 slides.

29:53 I just, I, I don't think that's true.

29:55 This is a, for, for the kind of demo or kind of stuff I'm doing, there's a lot of code I'm

30:00 showing.

30:01 I'm not going to describe that code.

30:03 If the slides don't work, I don't know what I would do if my slides didn't work, but anyway.

30:08 So, yeah.

30:09 One, one other, piece of advice that I want to emphasize is Sean out there says,

30:13 I always take three slow breaths before I start talking.

30:16 Try to talk slow and smooth for the first minute.

30:18 That's really good advice.

30:19 And you know, we, your body reacts to stressful situations like this in weird ways, right?

30:25 Like you think your body's like, you're going to be eaten by a bear.

30:28 If you like say something wrong, like, no, you won't be eaten by a bear, but you know,

30:33 you, your heart does race.

30:34 And a lot of times, especially when you're new, it's easy to perceive that as like, oh

30:37 my gosh, I'm so nervous.

30:38 I hope I don't screw up.

30:39 But an equal interpretation, viable interpretation that would be, I'm really excited.

30:46 Like my body's going like really those butterflies in my stomach are like, I am psyched to do

30:51 this.

30:51 And so I just convinced myself rightly or wrongly kind of lie to myself.

30:55 Like, well, if you feel nervous, that's because you're getting excited and you're just about

30:59 to do something awesome.

31:00 So, you know, get ready for it.

31:01 Right.

31:01 Rather than, oh my gosh, I'm nervous.

31:03 I'm going to make a mistake.

31:04 So I think it's okay to lie to yourself in that regard.

31:06 I also, I've been like, I don't want to go over.

31:11 I don't think anybody's going to be mad if you go under.

31:14 So I, my personal, I personally, if it's 25 minute talk, I practice it in 20 minutes.

31:19 Absolutely.

31:20 It's easy to expand.

31:21 It's hard to shrink in real time.

31:23 And also if you, if you're done early, nobody's going to complain about that.

31:27 But also, also if something goes wrong at the beginning and you have trouble with your,

31:32 the, the video setup, you're still, you still have enough time to finish it.

31:36 So I think that's cool.

31:37 The other, the other thing is pauses within.

31:41 I just keep, I just talk constantly and I don't, I have to remind myself if I'm showing something

31:47 that I think is going to be shocking, let people take a second to be shocked by it.

31:51 And if I, and if people laugh, take a moment and let them laugh before you move on.

31:57 on to the next thing.

31:58 So yeah.

31:59 Yeah.

31:59 I embrace it.

32:00 Absolutely.

32:00 Very good.

32:01 Cool.

32:01 And good article, Sebastian.

32:03 Okay.

32:03 Well, those are our topics.

32:05 Do you have anything extra for us?

32:06 I sure do.

32:08 I got a few things.

32:09 I finally got that CDN Python web apps that fly with CDN's course published and online.

32:16 Like I said that I would, but now I officially have it up so people can go check that out.

32:20 It's super fun.

32:20 Speaking of releases, Django 4.2 was released last week.

32:24 Also a one day before Python 3.11.3.

32:27 Major highlights include Psycho PG version three support, comments on columns and tables, support

32:35 for asynchronous streaming responses and async interfaces related to managers and models.

32:40 So you can go check that out.

32:42 If you're doing the Django.

32:44 Also, it's a LTS release.

32:46 So.

32:46 Oh yeah.

32:47 That's important.

32:48 Yeah.

32:49 It has been designated a long-term support LTS release, which means it will be around

32:53 for three years.

32:54 All right.

32:54 That's it for my extras.

32:55 You?

32:56 No, no extras this time.

32:58 Oh, I forgot.

32:59 I realized that I forgot.

33:00 There's a lamp in the background.

33:02 That's new.

33:03 I had a big Easter party and the lamp got moved in here to save space in the rest of the house.

33:11 I forgot to move that.

33:12 Because why wouldn't you cram it into your office?

33:14 Why not?

33:15 I had a lovely experience where we had to remodel the inside of our garage, basically do a bunch

33:20 of drywall and stuff.

33:21 And so everything had to come out.

33:22 So pretty much the entire garage moved up into my office into a mountain of junk behind me.

33:26 It was awesome for a while.

33:27 I'm very glad to have that mostly gone.

33:29 Yeah.

33:30 Well, how about a joke?

33:32 Yeah.

33:33 All right, then.

33:34 This one comes from Programming Humor.

33:36 And we are in this time of a thousand flowers blooming AI revolution.

33:42 See where it goes.

33:43 You know, we've got ChatGPT, got MidJourney, got StableDiffusion.

33:48 And it seems like everyone is plugging AI into their tools.

33:53 And email, copywriting, all those, there's a bunch of things.

33:57 Like Notion, for example, you can get an AI plugged in to help you write your app, right?

34:03 And so here, this is like two views.

34:05 People send an email to each other, a couple of coworkers on one side, a couple on the other.

34:09 And they don't know about each other, right?

34:12 The first one is just one bullet point.

34:15 You could see like a dot and a line.

34:17 There's like one line.

34:18 And this person's bragging to their coworker.

34:20 AI turns this single bullet point into a long email.

34:24 So I can pretend I wrote it.

34:25 Boom, send.

34:26 The person who receives it is talking happily to their coworker.

34:29 He says, AI makes a single bullet point out of this long email.

34:32 So I can pretend I read it.

34:34 Oh, here we are.

34:38 Yeah.

34:38 When you talk about stuff getting sent over, how does that work?

34:41 Well, first you connect over TCP.

34:43 And then there's DNS.

34:45 And then there's TLS.

34:46 And then there's the HTTP layer.

34:48 And now there's like this AI translation layer that rewrites it.

34:52 But it's kind of the opposite of efficiency.

34:56 Instead of sending the single bullet point, it expands it to a whole paragraph, sends it,

35:01 and then shrinks it back down.

35:02 It's the opposite of compression.

35:04 AI is kind of freaking me out.

35:06 I hope that I still have a job five years from now.

35:08 But anyway.

35:11 Well, we'll ask ChatGPT about that later.

35:14 Yeah.

35:15 At some point.

35:16 And you know more about this than I do.

35:18 So at some point, you're going to be like, can I get an AI, Brian, to host the podcast with me?

35:25 Yeah.

35:26 I'm already digging my bunker for when Skynet activates, as Sean says.

35:31 Yeah.

35:32 Anyway.

35:34 Start growing carrots.

35:35 Yeah, exactly.

35:36 Find some goats.

35:38 No, actually, I'm going to go right to it.

35:41 Go back to writing by that code.

35:42 But as always.

35:44 ChatGPT, make me a goat.

35:45 How do I start a goat farm and live off grid?

35:49 Fantastic.

35:51 All right.

35:51 Well, Brian, thanks, as always.

35:53 Thanks.

35:53 Talk to you later.

35:54 Bye.

35:55 Bye.

35:55 And thanks to everyone out in the audience.

Back to show page