Latest / Talk Python To Me / #397: Evaluating New Open Source Tech Panel
Transcript
- 0:00The beauty of open source software and libraries is that you're not stuck with a single option some vendor is offering.
- 0:06This is especially true when that support is poor or antiquated.
- 0:09Almost any capability you can think of has multiple options, even for a single language such as Python.
- 0:16Just think about how many web frameworks you can pick from today.
- 0:19But therein lies a new problem.
- 0:22If there are 10 options, how do you choose?
- 0:24Do you go for the oldest and potentially most stable?
- 0:27How about the most up-to-date one?
- 0:30Maybe the hot new version that has the fastest adoption curve is the right one for you.
- 0:34It's not easy, but luckily we have an excellent panel here to discuss exactly that.
- 0:39You'll hear from Emily Morehouse, Cecil Phillip, Kim VanWijk, Lucas Schlinge, Gareth Thomas, and Dan Garland.
- 0:45This is Talk Python To Me, episode 397, recorded December 7th, 2022.
- 0:51Welcome to Talk Python To Me, a weekly podcast on Python.
- 1:08This is your host, Michael Kennedy.
- 1:09Follow me on Mastodon, where I'm @mkennedy, and follow the podcast using @talkpython, both on fosstodon.org.
- 1:17Be careful with impersonating accounts on other instances.
- 1:20There are many.
- 1:21Keep up with the show and listen to over seven years of past episodes at talkpython.fm.
- 1:26We've started streaming most of our episodes live on YouTube.
- 1:30Subscribe to our YouTube channel over at talkpython.fm/youtube to get notified about upcoming shows and be part of that episode.
- 1:37This episode is brought to you by Cox Automotive.
- 1:40Use your technical skills to transform the way the world buys, sells, and owns cars at talkpython.fm/cox.
- 1:48And by Sentry.
- 1:49Don't let those errors go unnoticed.
- 1:50Use Sentry.
- 1:51Get started at talkpython.fm/sentry.
- 1:55Transcripts for this episode are sponsored by Assembly AI, the API platform for state-of-the-art AI models that automatically transcribe and understand audio data at a large scale.
- 2:06To learn more, visit talkpython.fm/assemblyai.
- 2:11Hey, y'all.
- 2:11Welcome to Talk Python To Me.
- 2:12Gareth, Kim, Lukasz, Cecil, Emily, and Dan.
- 2:16I've got a bunch of you here, and I'm so excited to have you all on the show.
- 2:19Thanks for being here.
- 2:20Sure thing.
- 2:20Yeah, I'm excited, man.
- 2:22We have a nice little party going on.
- 2:23Yeah, we do.
- 2:24We definitely do.
- 2:25Yeah, so I'm really excited to talk about choosing technology, choosing libraries for programming, or maybe a database that we might use for a project.
- 2:34You know, we have this paradox of choice type of problem, and especially in the Python space.
- 2:40You know, I haven't even looked.
- 2:42Are we over 400,000 packages on PyPI?
- 2:45There's many, right?
- 2:46We are over 14 terabytes of storage on PyPI that I know.
- 2:50Oh, my goodness.
- 2:52Yeah.
- 2:52Jack, look.
- 2:53It's mostly machine learning, but, you know, Kenneth, there's a lot of packages.
- 2:58Yeah, there's definitely a lot of packages.
- 3:00Okay, well, how do you pick?
- 3:02How do you go to that list and say, I'm going to search for a web framework, and look, there's 100 results.
- 3:08How do I pick?
- 3:09Or I'm going to find a way to talk to a database.
- 3:11What database should it be?
- 3:13So that's going to be our topic for the show today.
- 3:16And let's just start real quick with the elevator pitch of who you are and your background.
- 3:24You know, 30 seconds or less.
- 3:25We'll go around the Brady Bunch squares here.
- 3:28Gareth.
- 3:28Hi, I'm Gareth.
- 3:30I've been programming for probably 40 years, I guess, and now, because I started when I was about three.
- 3:35I'm on a Dragon 64.
- 3:37But it was only recently I got into Python, really, when I took up a job as a CTO of a company that did everything in Python and haven't looked back.
- 3:44And now I'm doing CTO stuff the whole time.
- 3:47Fantastic.
- 3:48And I think CTO positions are very much in this role.
- 3:53You've got to set a little bit of guidance for the company and the teams, right?
- 3:57Yes.
- 3:57And I don't get to do code anymore.
- 3:59I just get to watch people write code.
- 4:01You just get to make decisions for them and watch whether they enjoy it or don't enjoy it.
- 4:06Kim, welcome back.
- 4:07Thanks.
- 4:08I must be roughly the same age as Gareth, but I have been writing code for probably about 25 years because I didn't start when I was three.
- 4:14Professionally, I've been doing some Python, some C, some otherwise for 20-odd years, writing software for embedded systems, doing DevOps work, and at the moment doing dot engineering work with, I guess, in the American sense, you'd fall a mortgage provider in South Africa, my current employer.
- 4:30Yeah, fantastic.
- 4:31Lukash, welcome back.
- 4:32Hi, I'm the core developer in residence for CPython.
- 4:35So actually getting money from the Python Software Foundation to help develop Python.
- 4:40Just yesterday, we released six simultaneous versions of Python at the same time, which I think is a record.
- 4:47Yeah.
- 4:47So I mostly do that.
- 4:48I don't program for 40 years.
- 4:50I'm 37 at the moment.
- 4:52Still maintaining 37 because my birthday is March.
- 4:56So like approaching quickly, but you know.
- 4:58Don't let 38 get you.
- 4:59Yes.
- 4:59I'm not almost 40.
- 5:01I'm 37, you know.
- 5:02Awesome.
- 5:03Well, congratulations on all the great work.
- 5:05I know you've done a ton of work to keep CPython moving forward.
- 5:10Yeah.
- 5:10Thank you.
- 5:10There seems to be like more and more to do, actually.
- 5:13So just looking at 3.1.1 that we released yesterday, it had like almost 500 comets since 3.11.0, which is kind of unprecedented as a rate of change.
- 5:24So, you know, kind of, we have so much kind of velocity right now that I have never seen before.
- 5:30So a lot of change.
- 5:31Amazing.
- 5:32I talked to Ned Batchelder on another podcast that we were doing.
- 5:35We'll come out before this one.
- 5:37And we looked.
- 5:38The change log for CPython is 175,000 words.
- 5:42A typical novel is 80,000.
- 5:45So that's a lot.
- 5:46That's nuts.
- 5:47Cecil, always good to have you on the show.
- 5:49Welcome back.
- 5:50Sure.
- 5:50Thanks for having me.
- 5:51Hi, everyone.
- 5:52I'm Cecil Phillip, developer advocate at Stripe.
- 5:54I will not tell you how old I am, but I will tell you that my programming grid beard is just starting to come in.
- 5:59So not fully there yet, but I'm still working on it.
- 6:02Primarily been doing a lot of .NET stuff, some Python stuff.
- 6:05Recently started playing around with Go.
- 6:07Maybe we'll talk about that, you know, in the midst of this conversation as well.
- 6:10But other than that, you know, I, you know, as an advocate, I spent a lot of time doing video and going to conferences and doing demos and stuff.
- 6:17So I kind of feel like my job is to learn stuff to an extent.
- 6:20You know what I mean?
- 6:21There's a lot of that that happens.
- 6:22And, yeah, I kind of have a lot of fun doing it both, you know, for work and, you know, outside of work.
- 6:27Yeah.
- 6:27That sounds like a great job.
- 6:29Emily, welcome back.
- 6:30Hi there.
- 6:30I'm Emily Morehouse.
- 6:31I'm the director of engineering at a company called Cuddlesoft.
- 6:34We are a kind of digital product consultancy focusing on, you know, user experience for full stack applications.
- 6:44But we also get into some of the nitty gritty stuff.
- 6:47So we kind of do that full spectrum DevOps, firmware, middleware development, web applications, all the way through design.
- 6:56So I get to touch a lot of different pieces of technology.
- 6:59A lot of my work is in Python, but not all of it.
- 7:02I write a lot of Ruby, a lot of JavaScript kind of across the spectrum.
- 7:06So I get to kind of see how different ecosystems handle open source, which is really interesting because I feel like the JavaScript world is very different.
- 7:14I found world and the Ruby world and kind of down that stack.
- 7:17So, yeah.
- 7:18So this topic is right down right in your wheelhouse.
- 7:21And I think also the consulting side, the agency side is interesting because you work with one group.
- 7:28You say, here's what we recommend for you.
- 7:29Oh, another group has another company has a different set of software skills.
- 7:35So you might recommend something different in that case, right?
- 7:37Yeah, absolutely.
- 7:38And the technical expertise that our clients come with is very wide reaching, right?
- 7:43So some people are completely non-seqtical, don't want to touch it, don't want to know anything about it.
- 7:48We're going to be able to connect to very technical teams where we're kind of coming in as a specific partner on a specific piece of their tech that they are eventually going to take over.
- 7:55And there's a lot more kind of risk management for this, right?
- 7:59Like we can't build something for our client that then we're going to say, you know, your library isn't supported in six months.
- 8:05So it also gives us a chance to start fresh a lot, right?
- 8:09Like most of our projects are greenfield.
- 8:10So we do get to say, hey, look, like we've been doing our due diligence on this new framework or this new library or whatever it is.
- 8:19And we think that this is a really good place for you to be and get a chance to like actually build something with a new library more so than like convincing, you know, a company to rewrite their Django application and something else.
- 8:32Right.
- 8:33You also were the chair of PyCon.
- 8:35Is that the right title?
- 8:36Yeah, I forgot to mention that.
- 8:39I'm the recovering chair.
- 8:41I'm chair emeritus now.
- 8:42Yeah.
- 8:43Yeah.
- 8:43So I was going to ask.
- 8:45I heard that there's a support group somewhere.
- 8:45I'm sure there is.
- 8:47Not overseeing 2023, are you?
- 8:49No.
- 8:50I'm taking a break.
- 8:52Yep.
- 8:53Fantastic.
- 8:53All right.
- 8:54Well, thanks for that.
- 8:55Dan, welcome to the show.
- 8:56Thanks.
- 8:57I'm Dan Gerlank.
- 8:58I've been doing software development professionally for 20 years to some degree, more in one capacity or another.
- 9:08I'm currently the director of engineering for the data science and ML engineering team at Ampersand, which probably the simplest way to think of it's kind of like a brokerage for television advertising.
- 9:22Prior to that, I actually ran my own consulting job for a decent amount of time.
- 9:28So I've worked on that agency side a bit and also started my career in quant finance.
- 9:34I've worked across a wide range of things.
- 9:38And I'm pretty involved with the Asara project these days on the open source side.
- 9:44I can also do a bit of teaching on the side.
- 9:47I've taught on O'Reilly about pandas and different things from time to time.
- 9:52So.
- 9:52Fun.
- 9:53Yeah.
- 9:53Teaching.
- 9:54Teaching is always a great way to kind of learn these technologies a little bit deeper as well.
- 9:58For sure.
- 9:59Then you definitely learn it for real when you go out to teach it.
- 10:04The fear of having to stand in front of a bunch of people and not know the answer.
- 10:07Motivate you.
- 10:08That's right.
- 10:11I guess conference speaking kind of works that way, but it's not as back and forth as well.
- 10:15All right.
- 10:16So let's kick off this conversation with maybe a story from some of you.
- 10:21So I wanted to start with just maybe a story how you've chosen some tech stack or some database
- 10:29or some new framework.
- 10:31You know, a lot of leeway in the scope there.
- 10:35But, you know, whoever wants to jump in, just, you know, what?
- 10:37Give us a story of something you've sort of gone down that path recently.
- 10:40Well, I'll jump in and talk a little bit about like the strategy of how I choose to learn
- 10:45stuff.
- 10:45And I think it's important that you have a learning or a choice strategy, at least for me, because
- 10:51like there's just so much stuff to play with.
- 10:53And like there's only so many hours in the day.
- 10:54And so you always have to be like surgical with your time about like what you choose to
- 10:58do.
- 10:59And so one of the things for me is like, I don't build production applications.
- 11:03And I think that's an important thing to note.
- 11:05So, you know, everyone else's perspective might be a little bit different.
- 11:08But like most of the apps that I'm building, I am beta testing stuff.
- 11:12I'm creating things for other folks, you know, doing proof of concepts with companies and
- 11:16stuff like that.
- 11:17So now when you think about the things that I have to learn, I usually have to learn things
- 11:20to like get it to work for a little bit.
- 11:22And then I'll walk away and I'll go do something else.
- 11:24Right.
- 11:24Like I don't learn it with the perspective of I have to maintain it over a long period of
- 11:29time.
- 11:29Now, that is not important that I do it the right way.
- 11:31But again, you know, the perspective is just a little bit different.
- 11:34So for me, one of the things that I often try to do is, you know, try to find the thing
- 11:39that like, I'm really interested in doing.
- 11:41I like the thing that'll be useful at work and try and like plug those things together.
- 11:45Right.
- 11:45And like try and see how we can find some symmetry there.
- 11:47And so an example would be like one of the things I'm playing with right now is open telemetry.
- 11:52Right.
- 11:53Now, I don't work for an open telemetry company.
- 11:55And, you know, that's not a thing that we have libraries or extensions for.
- 11:58But at the same time, too, like, you know, we think about as we're building apps, right?
- 12:02Like, you know, inspection is an important thing.
- 12:04Right.
- 12:04And being able to give folks guidance is an important thing.
- 12:06And so when people come to me as an advocate and ask questions, I might not have to know
- 12:12everything in detail, but I try and know things enough so that I can at least have an opinion
- 12:16and have a conversation about it.
- 12:17You know, be able to speak intelligently about it, even though I might not know like all
- 12:21the knobs and whistles and like dials I have to turn to like get the thing to work.
- 12:25You know, one of the things that I think would be really important for that role is really
- 12:30carefully tracking where's the momentum in frameworks.
- 12:34Maybe it's not the most important or widely used thing at the moment, but in six months, you
- 12:40know, a little bit of the Gretzky quote, you know, where is this thing going and what
- 12:43is the advice you're going to give to people?
- 12:45Yeah, I agree with that.
- 12:46And that also, again, kind of goes into the strategy, right?
- 12:48Of like, what am I learning this thing for?
- 12:51You know what I mean?
- 12:52Like, am I learning it to, again, like, am I learning it specifically to achieve like a
- 12:58particular personal goal?
- 12:59Is there something that I'm trying to fix?
- 13:00Am I trying to, am I trying to like explore technology so I could pick and choose the thing
- 13:05that I want to do, right?
- 13:05Like, like what exactly am I learning this thing?
- 13:07Am I learning it to teach it to someone else, right?
- 13:09Like, no, that's, that's a completely different perspective as you're trying to figure out,
- 13:13well, how do I kind of zone into the thing that I'm trying to do?
- 13:15Yeah, I was going to add something to what Cecil was saying there.
- 13:18One of the important things that you point out that you often end up doing is maybe helping
- 13:22people select a framework or a piece of tech stack or something to use.
- 13:26And the kind of thing that always, that used to strike a lot of the teams I've worked on,
- 13:30and I certainly was guilty as anybody else, is spending a heck of a lot of time going back
- 13:34and forth thinking, well, we could use this one or we could use this one and let's try
- 13:37this one.
- 13:37Well, if I take three days to try this one, and then next week we'll take three days to
- 13:40try that one.
- 13:41And ultimately, if somebody's paying you to write software, it's kind of an important
- 13:45lesson to remember that ultimately you have to pick something and it'll be good enough.
- 13:48Your job isn't actually to pick the right thing and spend a month on it.
- 13:51There are other things they're paying you to do.
- 13:53So one of the important things to think to take stack selection is basically, if it's good
- 13:57enough, that's fine.
- 13:58If it's not good enough, then obviously it must go.
- 14:00And it's useful to have somebody like Cecil to be able to tell you if it's good enough.
- 14:03But we can make them step seeking out kind of perfect.
- 14:06Is there absolutely anything wrong with this?
- 14:09Now we'll use this one.
- 14:10Let's try that one and stick it.
- 14:11Maybe it'll be better.
- 14:12And three weeks later, they're saying to you, why haven't you met the deadline?
- 14:14Ah, but we have the perfect tool.
- 14:16Haven't used it yet.
- 14:17It's taken us a month to find that.
- 14:18We have the perfect tool now.
- 14:19Yeah.
- 14:19It's an easy trap to fall into.
- 14:22It is.
- 14:22And I think a lot of people probably fall into it.
- 14:24And you got to decide, is this a one-way door or a two-way door?
- 14:27Is it the gate at the exit of the airport?
- 14:30Like if I make this choice, how committed am I to this thing?
- 14:33Because if you try it for a week and it's not what you thought it would, you could come
- 14:38back and try something else.
- 14:39Then why spend three weeks before you even start, right?
- 14:42You've learned a lot in that quote failure, right?
- 14:45This portion of Talk Python Nemy is brought to you by Cox Automotive.
- 14:50With brands like Kelly Blue Book, Autotrader, Dealer.com, and more, Cox Automotive flips the
- 14:57script on how we buy, sell, own, and use our cars.
- 15:01And now the team at Cox Automotive is looking for software engineers, data scientists, scrum
- 15:07masters, and other tech experts to help create meaningful change in the industry.
- 15:12Do you want to be part of a collaborative workplace that values your time and work-life balance?
- 15:17Consider joining Cox Automotive.
- 15:20Visit talkpython.fm/cox today.
- 15:23Thank you to Cox Automotive for sponsoring the show.
- 15:28I would even go further and say that technology choice doesn't really matter that much.
- 15:33The experience I had with large companies I worked for was that they often would choose
- 15:39technology that was utterly boring and not interesting even at the time when they did choose it, but
- 15:47became dated very quickly.
- 15:50And it didn't matter one bit.
- 15:51Like Facebook was PHP, MySQL, and Linux, right?
- 15:55Only when they already grew, it wasn't really Linux, it wasn't really MySQL, and it wasn't really PHP.
- 16:00But at that point, you already have enough infrastructure and enough employees and everything to actually,
- 16:08you know, keep it going anyway.
- 16:09Same with like Instagram that was purchased by Facebook, but it was Django, right?
- 16:13And still Django.
- 16:14But it's not really Django.
- 16:15It doesn't matter.
- 16:16Like it brought them to where they are through it being an established technology.
- 16:21And I would in fact kind of err on the side of boring because it's going to be there for you,
- 16:27you know, going forward.
- 16:29And that's important, especially like, you know, if you're choosing a data store, like you want to
- 16:33choose something that, you know, like you're not going to have to migrate from in a year or two,
- 16:37because that's not something that is a productive use of your time.
- 16:41So I'm going to kind of contradict what I'm saying now very often as part of my job and say,
- 16:47you shouldn't be an early adopter.
- 16:49But well, in case of CPython, you absolutely should.
- 16:52And you should test our alphas and test our betas.
- 16:55But you know, you have your CI for that.
- 16:58So it's a safe environment.
- 16:59Like don't run 3.12 in production right now.
- 17:01Do test with it, right?
- 17:03So this sort of thing.
- 17:04And Python, yeah, it's already like you can use 3.11.1 just fine.
- 17:08It should be okay.
- 17:09Since we are with our annual release cycle, a kind of in sync with Linux distributions,
- 17:16which are doing testing of a new Python version as part of their release for October.
- 17:23So Fedora and Ubuntu test our newest Python.
- 17:26So it's kind of best tested as it ever was.
- 17:30But when it comes to your data store, when it comes to your web framework, you know,
- 17:33choosing something that is extremely new.
- 17:35And well, we're not sure if it's going to stay forever.
- 17:39It's maybe, maybe a kind of a bold choice.
- 17:42Unless it's like a 10, 10 X multiplier of your productivity.
- 17:46I would just choose the boring thing.
- 17:48Well, your advice about CPython, you know, 3.10 versus 3.11.
- 17:52It's not the same as Django versus FastAPI, right?
- 17:55It's like the evolution of the thing, but you could always roll back a little bit, right?
- 18:00It's, it's a little bit different.
- 18:01Oh yes, absolutely.
- 18:02So it's like, I don't know, Postgres 13, 14 and so on and so on.
- 18:06At the same time, like, you know, kind of obviously technology changes.
- 18:09And even if we're not talking bugs, but just plant deprecations, that there might be some disruption
- 18:14when, whether, you know, upgrading to a newer Python version.
- 18:17Nowadays, much smoother than it was between Python 2 and Python 3.
- 18:22So it shouldn't be a big deal.
- 18:24But it might be a deal depending on what third party libraries you're using.
- 18:29So yeah, obviously there's considerations for you,
- 18:31which is why we would like you to test with 3.12, like in your CIs and so on and so on.
- 18:37It's already there.
- 18:37Just put it as a run target.
- 18:40Yes.
- 18:41But you know, kind of when it, when it comes to third party projects, I am usually very boring.
- 18:46And, you know, kind of, I was the last person from my friends to actually adopt VS Code and
- 18:52the last person to adopt Phish.
- 18:54You know, like I was happily with Bash and then I switched to ZSH just at the time when it started
- 19:00being boring, you know, and I was like, come on, really?
- 19:03I kind of like my work to actually not depend on something that is extremely volatile.
- 19:08Yeah, that makes sense.
- 19:09Yeah.
- 19:10And I think it goes back to what Cecil was saying earlier about needing to have some sort of like
- 19:14framework for how you make these decisions.
- 19:16And so I think that it's important to call out that a lot of times you need, you need a base set
- 19:22of criteria when you're evaluating a tool, right?
- 19:24Like, please like check the license, make sure that you're even allowed to use this thing for
- 19:29whatever you're doing.
- 19:30And then a lot of it kind of gets into that risk tolerance where it sounds like Łukasz probably
- 19:35is on like the very stable side of it versus the leading edge side, you know?
- 19:39And so you've got to say, do I care about doing the new and exciting thing?
- 19:43Or like, should I make the obvious choice to make sure that I have that long-term stability
- 19:47that you would get from, you know, choosing Django over FAPS API sort of situation?
- 19:54Yeah, absolutely.
- 19:55Gareth, how about you?
- 19:56You got some examples of decisions you had to make as your CTO role?
- 20:00I'm just thinking I'm very much in Lukash's world of boring is good.
- 20:05So, you know, it's, you always want to go for the tried and tested.
- 20:08If it's product, there's a marked difference between working in production and working in
- 20:14the, in the wider, in, in learning mode.
- 20:16So you've got Cecil's world of pulling the latest stuff, trying out new technology and playing.
- 20:21But if you're going to build a web frame, build a web app, then it's going to be hard
- 20:25not to choose Flask or Django still, because it's there, it's around.
- 20:29And at the moment, all my, all my current examples.
- 20:32So I, I'm currently at a company called My Energy and we process huge amounts of user data
- 20:37and we paid a company to write a platform for us.
- 20:40And it feels like they just went through npm and installed anything they ever wanted all
- 20:44the time.
- 20:45And now we're unpicking a load of...
- 20:47NPM install star, let's go.
- 20:49Yeah.
- 20:49And it, you know, and it feels like they're playing a drinking game with type, with TypeScript
- 20:54and this bit's functional and this bit's object orientated.
- 20:57And so, you know, picking technologies, not just picking technologies, picking paradigms.
- 21:02So it's TypeScript.
- 21:03That's great.
- 21:04But is it functional?
- 21:05Is it object orientated?
- 21:06Is it procedural?
- 21:07And the answer is this bit is, and this bit isn't, and this bit's over here.
- 21:10And then we need a type boat.
- 21:12We need an ORM.
- 21:13So it feels like they pull in the only ORM that they've seen in a tutorial that somebody,
- 21:18somebody's written.
- 21:19So we've got TypeORM, which doesn't do migrations and you're stuck.
- 21:22And we've got a massive pile of technical debt on a brand new project, which you're having
- 21:27to unpick because no one consciously chose the projects.
- 21:31Or is it known?
- 21:32In my last gig, we spent a lot of time because I've got horror stories about Zoop.
- 21:40But there's, you know, we spent a lot of time choosing the right framework and having the
- 21:45right reasons and put in a lot of effort into writing proof of concepts because we knew the
- 21:50traffic demands.
- 21:51We knew what we were doing.
- 21:52And we went Flask and we went certain technologies in AWS.
- 21:56We went Docker.
- 21:57We went and just follow this route through choosing things to be stable and scalable, not necessarily
- 22:03the latest and greatest, not necessarily the most cutting edge.
- 22:05We just wanted to make sure it was, we could develop on it.
- 22:09And even then we chose, badly chose a library because somebody followed tutorial.
- 22:13We didn't really think about end up using a REST framework that got deprecated.
- 22:18And so, you know, there's, you have to put the effort into choosing the right things and
- 22:23be okay with going, I don't care if we're not cutting edge.
- 22:25We let Cecil be cutting edge and go and play in his dev advocate role.
- 22:29And then once it's in production in other places, then you use it.
- 22:33Yeah.
- 22:33This distinction between like, what do you choose in production and what you choose other
- 22:37places.
- 22:37Also, you know, it doesn't necessarily have to be just learning, right?
- 22:40It could be, well, here's some tools that just like kind of pull in data and process it.
- 22:44But if it's not perfect, it, the website is not going to go down and we're not going to
- 22:48lose, you know, a thousand dollars a second until somebody fixes that type of situation,
- 22:53right?
- 22:53It's, oh, somebody's got to fix the ETL.
- 22:55Well, and I think that's another big part of it is in most companies, your job or your
- 23:01function with the company is not supporting a web framework or building out features within
- 23:05a web framework.
- 23:06You're trying to implement whatever business logic you need beyond that.
- 23:12So going to something tried and true or older is going to let you do that.
- 23:17And it may not exactly meet your use case.
- 23:20But like Łukasz was saying, once you have enough, once that's, if you have enough revenue,
- 23:26that that's a problem.
- 23:27If you're Instagram or Facebook, well, that's a good problem to have.
- 23:31You can deal with it at that point.
- 23:33Yeah.
- 23:34Yeah, absolutely.
- 23:35Well, and for you, Dan, the situation might be a little bit different as well.
- 23:38Being more doing like ML type of things.
- 23:41There's less tried and true, right?
- 23:43Yeah.
- 23:43The ML of two years ago is laughed at by the ML of today, right?
- 23:48Yeah.
- 23:48It's changing so fast.
- 23:49It's hard to say we're going to pick stable because you give up a lot by doing that.
- 23:52Yeah, for sure.
- 23:53A lot of stuff we worked on.
- 23:55And I think some of it is that I've spoken with folks who are building ML companies and
- 24:01they're like, yeah, the scale you're operating at is like 10 times or 100 times anything
- 24:07we've run for something that's an ML as a service platform.
- 24:11So we've had to build out some things where kind of existing frameworks didn't cut it for
- 24:17us, but it was first, can we actually use those existing frameworks?
- 24:21Because we ideally, we're not an ML platform company.
- 24:26We want to use whatever the framework is we can because that will get us our job done.
- 24:32Only when we can't do that, did we really need to go custom and kind of build things
- 24:40out for scale.
- 24:40It's easy to get into thinking like my job is to put this to work and make this framework
- 24:46as awesome as possible or to get it going just right.
- 24:49And really it's to deliver functionality to a business, right?
- 24:52That's just a means to an end.
- 24:53So yeah, for sure.
- 24:54I could maybe, maybe just a thought on that that began to be when we were talking about
- 24:58boring.
- 24:58The other thing that kind of can be very tempting is if me or I, the team, I come across
- 25:03a new fantastic tool.
- 25:05I think this looks great.
- 25:06Let's use this.
- 25:06I've been half an hour reading a tutorial that's going to point it out.
- 25:10I know everything there is to know about it.
- 25:11It must be great.
- 25:12I work it into the project.
- 25:13We don't touch it.
- 25:14You know, we make it work.
- 25:16We don't touch it for a week after that.
- 25:17Then I'm on leave three weeks from now on the beach somewhere and it goes wrong.
- 25:21Have I bothered to tell the rest of my team how this thing works?
- 25:24Because I've chosen something that isn't boring, you know, that doesn't fit in with
- 25:27the stuff the rest of us all know.
- 25:28And now there's a huge problem there.
- 25:30So there's, you want to give a bit of thought to that as well.
- 25:32You want to be consistent with the stuff you use.
- 25:33Sometimes, as Gareth was saying, in terms of paradigm, there might be shiny toys that
- 25:38don't fit in with the rest of it.
- 25:39And I'm afraid you've got to leave the shiny toy behind.
- 25:41Unless, I mean, for, again, we are talking in the, what you're paid to do.
- 25:44So it's obviously the toy you own and your own bat, shiny toy away.
- 25:47Yeah.
- 25:47You got to think about the team buy-in as well.
- 25:50If our group's going to be using it, right?
- 25:52We fund development sprints and we fund hack days to play with things.
- 25:57So let's get, if you've got an idea for, you know, do you fancy using FastAPI?
- 26:02Then let's build a small thing in it and we'll put a small project in, see how it works, see
- 26:07how it deploys.
- 26:08But don't bet the farm on it until you're certain about it.
- 26:13That's a great, great way to do it, right?
- 26:15It's sort of a more structured way to experiment.
- 26:17So I'll share a quick story with you all here.
- 26:20Recently, I wanted to re-kindle my blogging.
- 26:24I don't know.
- 26:25Social media and places are a little scrambled these days.
- 26:28So I thought it might be a good idea to have something written as well that I can point to.
- 26:32So I went to make this website and I thought it's something simple, something marked down,
- 26:36something static.
- 26:37And I don't know, I've done that.
- 26:39My last blog was on WordPress.
- 26:41I don't want to use WordPress anymore.
- 26:43I don't want to have a database for my blog.
- 26:47That seems like overkill.
- 26:48So I'm like, all right, well, what do I do to decide?
- 26:51So I went out to the community and I asked, hey, I'm thinking about this static website blog thing.
- 26:59Python tools preferred, but I'm open for anything.
- 27:02And Kim, I think you even maybe weighed in on this thread over here.
- 27:05I think I did, you know.
- 27:05Yeah, I think you did.
- 27:06And I got a bunch of different feedback.
- 27:09And so my solution to sort of exploring this place where I felt a little unqualified,
- 27:15I didn't have really much experience with, was to go out and ask.
- 27:18And the answer I got back really surprised me.
- 27:22I thought, well, maybe it's going to be Pelican or Ghost.
- 27:24But a bunch of people started saying, Hugo, Hugo, this thing is Hugo.
- 27:28It's amazing.
- 27:29Obviously, there were people saying Pelican and Sphinx and whatnot.
- 27:32So I ended up going with Hugo, which was a bit of a struggle for me to decide because it's unbelievably good.
- 27:41Kim, are you using Hugo as well?
- 27:42Yes, yeah, for a couple of things.
- 27:44It's glorious.
- 27:45It's so nice for writing, but it's written in Go.
- 27:48And so it's like, well, can I?
- 27:50I can't really fix it or tweak it as easily.
- 27:53But in the end, I decided, you know what?
- 27:55It's more important to have something that works really, really good that has got a lot of popular support
- 28:00than having something that is in a language I'm an expert in.
- 28:03So I'd kind of like to hear your all thought.
- 28:05If you're in that kind of situation, what's your process?
- 28:08How do you come to these decisions?
- 28:09Well, I kind of redesigned my own blog when I kind of got the new job because it's like, oh, I need to communicate.
- 28:17So I went through a similar process.
- 28:19What I ended up doing is, and you know, obviously it's a super anti-pattern, but it turned out to be super successful, which is just write your own.
- 28:28And obviously everybody writes their own static site generator.
- 28:31But like, I'll be honest with you, like with Python in 2020 and 2021 and 2022 now, like it is so simple because they're like all the building blocks are there.
- 28:43Like you're not, you're not writing strings of HTML into a file.
- 28:47Like, you know, like all of those kind of building blocks are done for you.
- 28:51And just let me bring up like for you how big my huge site generator is because it's like, it's super tiny, but it actually handles like everything I wanted to the extent where I'm using it for a couple of sites right now.
- 29:04And it's like what, and it's under 2000 lines of code at the moment, like the entire thing.
- 29:11So it's like, it's not super big.
- 29:13And it was growing like, you know, in time when I was adding new stuff to it.
- 29:17For example, at first I just did not have RSS at all because I was like, this thing is dead.
- 29:22Like nobody needs RSS anymore.
- 29:24And then a bunch of people just told, tell me like, Hey, like, why don't you have RSS?
- 29:28So I just added it like later on, you know, and it's just what, like, oh, we have XML in the standard library.
- 29:34And there's actually like, yeah, RSS libraries too.
- 29:37But like, this is so simple.
- 29:38You just have like, you know, this one template that you need to output.
- 29:42So, you know, kind of, I did my own thing and I can now write on the footer of the site that was generated with Python 3.10.
- 29:48I should just recreate the virtual.
- 29:51And so I'll, I'll be able to say 3.11, but you know, kind of.
- 29:54Then you'll be cutting edge.
- 29:55So yes.
- 29:56But like the reason why I actually did this was that all the notes that you're seeing there, you know, kind of, if you feel like click through the thing, like they are in fact, like in Markdown in my notes.
- 30:08So I'm kind of crazy about having notes.
- 30:10So like, I have a lot of them, right?
- 30:13So I have like thousands of them and they're like all in Markdown and like in a Git repository, synchronized over to my phone and whatever.
- 30:20So I can always just access them in a plane or whatever.
- 30:23So those are just tagged hashtag public in the Markdown text and they appear on the website and it's kind of automatic.
- 30:31So I don't actually have like a CMS for this.
- 30:34I just have my notes app that I'm using is FS notes is open source.
- 30:38It works on the Mac.
- 30:39It's glorious.
- 30:41And it's also, you know, on iOS and, you know, and you just kind of generate HTML out of that, which is pretty simple.
- 30:49And I can automate a bunch of stuff with this just kind of custom made, which with Hugo, I probably could do, but, you know, I would have to learn how, and I already know Python.
- 30:59So it was really, it really took me no time to get this up there.
- 31:03And it kind of works on the phone and it's okay.
- 31:06It's not, it's not going to kind of wow you, but it's a perfectly functional website, you know.
- 31:11Yeah.
- 31:11Jay out of the audience says, building your own static site generator is a great way to learn a lot about language.
- 31:16I learned a lot for you just maintaining my own static.
- 31:19I mean, choosing static sites is an interesting choice on its own, right?
- 31:23It's the DevOps story is incredibly nice that you don't have to worry about, you know, will the database go down?
- 31:29What, what kind of problem is, you know, it's, it's either going to be there or it's just not there.
- 31:33Will the database go down?
- 31:35The unspoken, the unconsidered problem until you're in the DevOps space on a non-static site is when your internal department would like us version of the site, they can change the CMS on to make sure it all looks good before they roll it to production.
- 31:48Now you've got to get database exports across into a different database, or you've got to get migrations going.
- 31:52But I had, not that I would ever do a thing like this, but you might have to have two versions of Docker running in direct production so that you can do a live MySQL copy of MySQL files from one to the other.
- 32:03There you go.
- 32:03I would never do that.
- 32:04Of course, of course.
- 32:08This portion of Talk Python To Me is brought to you by Sentry.
- 32:11How would you like to remove a little stress from your life?
- 32:14Do you worry that users may be encountering errors, slowdowns, or crashes with your app right now?
- 32:20Would you even know it until they sent you that support email?
- 32:23How much better would it be to have the error or performance details immediately sent to you, including the call stack and values of local variables and the active user recorded in the report?
- 32:34With Sentry, this is not only possible, it's simple.
- 32:37In fact, we use Sentry on all the Talk Python web properties.
- 32:40We've actually fixed a bug triggered by a user and had the upgrade ready to roll out as we got the support email.
- 32:47That was a great email to write back.
- 32:49Hey, we already saw your error and have already rolled out the fix.
- 32:52Imagine their surprise.
- 32:54Surprise and delight your users.
- 32:56Create your Sentry account at talkpython.fm/sentry.
- 33:00And if you sign up with the code Talk Python, all one word, it's good for two free months of Sentry's business plan, which will give you up to 20 times as many monthly events as well as other features.
- 33:11Create better software, delight your users, and support the podcast.
- 33:16Visit talkpython.fm/sentry and use the coupon code Talk Python.
- 33:24But it's also unhackable.
- 33:25That's an interesting...
- 33:26There is that.
- 33:27Yeah, the worst thing that could happen is it could deface.
- 33:30It could get defaced.
- 33:30I guess somebody could put some JavaScript malware on it if they took it over, but it's not open to little Bobby tables or denial of service to a large degree.
- 33:39You're right.
- 33:39That's a good point.
- 33:40Hard to hack.
- 33:41Very hard to hack.
- 33:43Well, for me, the most important thing that this literally just runs on the free tier, like on Netlify, and, you know, it just...
- 33:49Yeah.
- 33:49It's good.
- 33:50Mine is on Netlify as well, and I gotta say, it's really, really a relieving nice thing.
- 33:56One comment that we were making about picking a library, something that you pointed out and that Luke was just saying as well.
- 34:01There is something to be said for making sure you can fix it if it breaks.
- 34:04But I think to the large degree, it depends on how...
- 34:08I suppose it depends on several things.
- 34:09How important the thing is to you, how quickly you can change it if it does break.
- 34:13And how kind of big the thing is.
- 34:16It never occurred to me, for example, using Hugo, it didn't worry me too much that I don't know any go and I can't fix it because it's a big enough tool that I can probably make it do what I want.
- 34:25But I've got pretty simple needs.
- 34:27If I was picking a very fast, something really low level in kind of my previous C life, for example, to talk to the flash memory as fast as I can, I'd probably want to write that because, or at least know that I can fix the thing I got.
- 34:40Because maybe I need to be able to tweak it or otherwise.
- 34:43It also depends on what you need the thing for.
- 34:44How much does it matter?
- 34:46Whether you can tweak it or not.
- 34:48It's supposed to depend largely on how important it becomes to your project.
- 34:50The downside, of course, when you do that decision six months later and it's super important, now you're stuck.
- 34:56Now you're on the hook.
- 34:57I'm like you.
- 34:58I don't know any go.
- 34:59Not really.
- 34:59I mean, I've read like a paragraph of sample code to know what it looks like.
- 35:03But that's about it.
- 35:03But for me, it was okay to pick Hugo that is a go tool because it's not actually running while you interact with my website.
- 35:12If I was picking a go alternative to Flask, that would be a really big consideration because I'd have to kind of write code and live in it.
- 35:20Here's the thing I run on the command line and it either makes the static site or it doesn't.
- 35:24So it's not, you know, in the important path of interactions.
- 35:28You could swap it out without your website breaking.
- 35:29The end result will still be up and live on the website while you're replacing Hugo with something else if you want to.
- 35:35Yeah, exactly.
- 35:35There's a consideration there.
- 35:36Go down the Lucas route and try to recreate the same look and feel.
- 35:40Yeah.
- 35:41So unlikely it would break and not be fixed by core Hugo devs or like the surface of the application is relatively well defined.
- 35:51That brings me to the next thing here is when you go to an open source project and you find it on GitHub, how much does stuff like this Hugo thing has been forked 7,000 times and has 64,000 stars?
- 36:04Like, okay, if it breaks, someone else will fix it.
- 36:06Not my problem.
- 36:07If it had six stars and it breaks, it might be my problem if it breaks, even though it's not my project.
- 36:13How do you all think about that when you are choosing projects or Emily or Cecil in your case is recommending technologies?
- 36:21Yeah, I think for me, this is just my personal opinion.
- 36:23Like things like forks and stars are like vanity metrics for me.
- 36:27Like I don't really care, to be honest with you.
- 36:29I do care if, you know, it, one, it solves the problem I'm trying to deal with.
- 36:34You know, can I submit an issue and get, you know, relatively like within six months, like someone answered me fairly quickly.
- 36:42Like I don't want to wait for a response.
- 36:44And, you know, is it, is it, you know, are there commits being, even to that too, right?
- 36:48Like when I say, are there commits being made?
- 36:49You don't need to be making commits like every day and every hour or every week or every month.
- 36:53If I see the, like the last commit was like five years ago, I'm like, okay, well, if I have a problem, I don't know if this is the thing that I need to dump into because I don't know if I'm going to be able to get the support that I need.
- 37:04Well, you still might take it, but then you would have to take it on the assumption that you might have to write the fix or add the feature.
- 37:10Sure.
- 37:10So I'm going to use you as an example, Michael.
- 37:13So if you decided to go with Hugo and there was an issue with Hugo and you don't know go and you're like, oh shoot, what am I going to do?
- 37:19Now you're going to be in a position that you can either learn go or you're going to swap it out and go with something else.
- 37:24Right.
- 37:24But, you know, like, what do you, what do you do?
- 37:27I think I'd rather rewrite it from scratch than learn go.
- 37:30Well, see, so see.
- 37:31Not that I hate go or anything.
- 37:32I just like, you know, I think thinking of just a time effort sort of trade off, you know?
- 37:37Yeah.
- 37:37So again, for me, it's mainly just about like, how do we like, does it solve the thing that I want to solve?
- 37:43And then can I get like some level of support, you know, questions answered and documentation and stuff like that?
- 37:48Yeah.
- 37:48So when I looked at this, you know, commit last commit yesterday, there's a bunch of issues.
- 37:53But if you look at, say, the closed ones, there were issues closed a couple hours ago.
- 37:58Full requests, I suspect probably those are linked together.
- 38:02Right.
- 38:02So there's clearly the life in this project.
- 38:04And to me, that probably is enough.
- 38:06How about the rest of you?
- 38:07Emily, what do you think?
- 38:08Yeah, I totally agree.
- 38:09I think these are exactly the things that I look at is, you know, are things getting updated or commits getting in?
- 38:14You know, if it hasn't had a commit in a year or two, sometimes that's still okay.
- 38:19Right.
- 38:20Like sometimes you're looking at Django reset password library that like, yeah, it's just, it's continued to work over time.
- 38:28And you don't necessarily need new features added to a reset password kind of thing.
- 38:31So knowing kind of what you're looking at and what you need out of it, I think is still important.
- 38:35But I totally agree.
- 38:37You know, forks and stars, even downloads are kind of vanity metrics.
- 38:40I also think that something else that I always look at is, what is the audience of the tool, right?
- 38:45So Hugo is very much geared towards a community of people building for, you know, mass numbers to use it versus a tool that maybe, you know, Lukash's static site generator is probably very tuned to the things that he needs to do with it, that he could opt to open source it.
- 39:02But it's not going to be a tool for the message.
- 39:05We have a visual decline.
- 39:07Just a, hmm, no, enough projects.
- 39:10Knowing what you're getting out of it and knowing like what that sort of feature roadmap is going to be, either it's like, it is at a stable point and it's not going to change.
- 39:18This is something that is going to be very opinionated for someone's specific use case versus like Hugo is going to continue adding functionality that would serve a broader group of people.
- 39:29And just using that as part of your metrics for deciding if that tool fits your needs.
- 39:34One thing that I used to do is I look if the last comment on the thing doesn't need to be super recent, but like, is the build red or green?
- 39:44And if it's red and like, I'm like, you know, I don't like seeing red in the last comment on the project I want to use.
- 39:52And often if that would be a critical dependency, I would in fact just clone it locally and just try to just build it and see if tests pass on my end.
- 40:02And if they do good.
- 40:03And if I cannot download some dependencies or like pytest has like 15, you know, failures or whatever else, then I'll be like kind of more skeptical now.
- 40:12Because obviously if you are installing a package with pip install, unlike with CPAN in the Perl universe, you run no tests.
- 40:21So you kind of only the only thing you know is that the files were put in the right place.
- 40:26But whether they are going to work, well, you're just going to find out like at runtime, I guess.
- 40:30So yeah.
- 40:31So like every now and again, I would just try to build something when I actually depend on it.
- 40:35But, you know, kind of that's if it's really critical because all of the dependencies like, yes, like even downloads are a vanity metric because if, you know, push comes to shove, I can just vendor in the dependency and fix it myself.
- 40:48Well, there's also a project that you have a little involvement with that it's got a few downloads, right?
- 40:52Yeah.
- 40:53So like when Emily said that it's a vanity metric, like my heart was, you know, like kind of hit like right in the middle because, yeah, I live by those downloads, man.
- 41:02Like it's awesome.
- 41:03I have never expected this to go so big.
- 41:06So like, you know, it's still sometimes like I would just like sit and drink coffee and just suddenly think, how did that ever happen?
- 41:12It's just, you know, it's mind blowing.
- 41:13But actually, so I didn't mention it, but I think that this is a really good example of a library that is very clear about what you're getting from it, right?
- 41:22Like uncompromising code formatter, like it's very clear that it's very opinionated and that a lot of it came from you.
- 41:29And, you know, the joke that I was going to make is like, you know, with Black, like, even if you need setups.cfg support, you are not going to be able to just add it and open a PR and get it merged in.
- 41:43So like, again, knowing what you're getting into of and I think that a lot of this opens up a conversation on the other side of this for open source maintainers of being aware and being cautious and being clear to your users of what you're putting out there to say, look, hey, I'm not going to maintain this.
- 42:01This is just something that's here.
- 42:02If you like it, use it.
- 42:04Great.
- 42:04But, you know, taking that extra step to make sure that you're telling people what you are willing to take on as a maintainer as well.
- 42:11For Black maintenance in particular, the fun thing was that I gathered like a team of people who are maintaining it now.
- 42:18And like, I do relatively little these days, honestly, like there's a bunch of people who are super like, you know, active and they make, they actually kind of shook me out of this kind of psychological block to like, you know, a stable version has to be perfect.
- 42:34We will never get there.
- 42:35And, you know, like over 2021, we churned out a lot of releases and now like, yeah, Black is stable.
- 42:41It's amazing.
- 42:42So another kind of consideration that you might have when you're looking at a library or a tool that you might use is like, is the bus factor one?
- 42:51Is there just like one stressed guy who just tries to kind of make it work after hours or like, are there a few people responding on the issues?
- 42:59You know, like, is there more than one person with the keys to the kingdom?
- 43:02Because sometimes if you lose the keys for whatever reason, like it's, you know, very disruptive.
- 43:08Like we had a bunch of libraries like that in the Python world where forks were necessary because, you know, the original maintainers like lost interest or life or whatever else.
- 43:18So, you know, things, things happen.
- 43:20I cannot really say that, you know, I did anything like that, like, you know, kind of, well, like I planned for it.
- 43:27Like it mostly happened by accident because it just had like nice contributors that I liked.
- 43:32So I just shared the right access with them and they ended up being very trustworthy.
- 43:36But, you know, a maintainer should do that at some point because you cannot just do everything, you know, by yourself.
- 43:43It's just impossible.
- 43:44The bus factor is interesting.
- 43:46There was this guy who had an npm project, JavaScript project, who had done some kind of like protesting thing, like swapped out his project to just print stuff infinitely and some kind of just really frustrated that it was Color.js and Faker.js.
- 44:04And it was really frustrated that companies were using the project and not paying for it.
- 44:09It was open source under like MIT or something.
- 44:11But, you know, that was his take.
- 44:13But then had a full on breakdown and got arrested for creating bombs in Queens, New York.
- 44:18That's an extreme example.
- 44:20But it can happen.
- 44:21Something could happen, right?
- 44:22Like, or, you know, somebody could just get actually in an accident or they could have a health crisis, right?
- 44:27Like, could be a place where it stops.
- 44:28So, considering that is...
- 44:30On the topic of bus factor for that matter, which, I mean, I think fairly obviously what it means, just in case anybody needs a definition, you know, if you're the guy, if you're the only person who knows how it works and you get hit by a bus tomorrow and you spend four weeks in hospital in the somewhat sanitized version of the theory, can somebody pick it up after you?
- 44:48And I think one of the things that does feed into picking tech stacks and tech stacks and so forth is the bus factor on the libraries and so forth is quite important.
- 44:57But what's also important is if it's a really complicated, super hard to use library or something that you need to be an expert in and you have one of those experts, you suddenly made a bus factor issue there too.
- 45:08Because now you need that expert to know what he's doing and be around and not choose to go to another company or be hit by a bus or any of those things.
- 45:15There's a consideration there for the complexity of a tool as well.
- 45:18Sometimes it's unavoidable.
- 45:20Sometimes some things that you have to do are complex.
- 45:22But if the tools are...
- 45:24If you're constantly picking the hardest thing there is...
- 45:26Well, hardest.
- 45:27If you're picking the most challenging thing to use because it's the most fun, you might want to be considering that as well.
- 45:32How simple is it for somebody else to sit down, pick up your work and keep going with the libraries you've chosen to use is a consideration you should probably be keeping in mind as well.
- 45:41Yeah.
- 45:41Sounds like Gareth's projects of these hackathons or these group experimental projects might help a little bit to give a little exposure to some of the new tech rather than somebody figured it out in their corner and then just added it.
- 45:54And everyone was like, great, it works.
- 45:55I love it.
- 45:56Yeah.
- 45:57One of the things I think is interesting there, just talking about the bus factor, it makes me think a lot of times when we're learning stuff, we don't often think about or when we're choosing things, we don't think about the human aspect that's attached to it.
- 46:10Which as technologists, it's just not a thing that we do.
- 46:12So again, like the bus factor, right?
- 46:13Like something bad happens to the person and now what do we do now, right?
- 46:18Like what is the next step, right?
- 46:19Yeah.
- 46:20Another thing that I've noticed a lot, again, like kind of thinking about like the humanity of learning is a lot of the times people choose things because the person to their right and their left, the person, the people that are in their circle of influence are using that thing.
- 46:34Right.
- 46:34So I'll give you an example.
- 46:36Like, so I go to a lot of like senior design showcases at colleges and universities and so on and so forth.
- 46:41And when I kind of look and I say, oh, well, why did you pick this language?
- 46:45Or why did you pick this cloud?
- 46:46Or why did you pick this framework?
- 46:48It's usually because the people around them are doing it too.
- 46:50Right.
- 46:51And the reason that is, is now, hey, if I pick the thing that like Michael is using or Emily is using or Kim is using, you know what?
- 46:59I have people that I could go ask the question.
- 47:01You know what I mean?
- 47:01So now I'm going to choose that thing, not because of any technical reason.
- 47:05I mean, obviously it has to do the thing I want it to do.
- 47:08But like the main reason I chose it is because like socially speaking, like I have people that I could go ask the question.
- 47:14And so now my confidence level in that project is a little bit higher because of that reason.
- 47:18Yeah, that's a really good, really important factor.
- 47:20Yeah, I think this hits the nail on the head because like even in Python, like a popular programming language, right, by all standards, we have parts of the standard library that was written by a person.
- 47:31And that person is no longer around.
- 47:33And now like we obviously can still, we have access to the code, like we have tests that are passing.
- 47:39We can still maintain the code, right?
- 47:41We can still mutate it.
- 47:42We can still make it to different things if we need to.
- 47:44But the one missing piece, which is sometimes needed and we don't have it anymore, is why certain, you know, choices were made originally.
- 47:54Because that kind of informs where we should go next, right?
- 47:58Like if something is kind of uncharacteristically convoluted and you see this and you're like, oh, I would simplify this, right?
- 48:06Like, you know, after a while of core development, you're like, every time you want this, there is a reason behind like every kind of, you know, like weird, weird part that you're going to find.
- 48:17But if there's nobody to ask the question to, like that complicates things a lot.
- 48:22And, you know, we have a bunch of situations where like that, where there's like a stalemate between a few possible approaches because we don't really have an opinion of the original author to go by to, to kind of make a choice.
- 48:36It's definitely a challenge.
- 48:37Gareth, were you trying to jump in there?
- 48:38Often as well.
- 48:39We make decisions because then it sounds cool.
- 48:42But actually the best decision you can make around framework or language is the one your team already knows.
- 48:48So your default thing should be, don't change unless there is a really good reason to change.
- 48:53Because you introduce, you know, I've seen companies have gone, we need to write a thing in Java because the industry does it in Java.
- 49:00But all they were was Perl and PHP devs.
- 49:04And so suddenly you have an entire stack that your developers can't maintain.
- 49:08So it might be the most perfect Java application in history, but no one you employ can actually do anything to it.
- 49:13Going a bit back to Cecil's thought, right?
- 49:15Keep the humans.
- 49:16You've got to deal with it in mind, not just the technology.
- 49:18Yeah.
- 49:19All right.
- 49:19I want to move on to another topic.
- 49:21We're getting short on time here.
- 49:23So maybe I'll throw this first to you, Dan.
- 49:24So when we were talking about the bus factor, obviously that's a person who is a maintainer of an open source project in the context we were saying before, or as Kim brought in that to like somebody at the company who has that expertise.
- 49:37But a really common and big bus factor is a company has a closed source project and they either go out of business or they get disinterested in continuing that project and you're in a bad place.
- 49:51So what I wanted to ask you all is how important do you see the open source side of things versus a closed source?
- 49:59Like let's say there's some project for a database.
- 50:01It's twice as good, but it's closed source.
- 50:03Choose it, not choose it, putting money aside.
- 50:06Suppose it's free.
- 50:07I mean, I guess I generally say is how hard is it to change out for something else?
- 50:12Okay.
- 50:12Like is it Postgres, but 2x is fast Postgres or Postgres.
- 50:18Right.
- 50:18Or is it Microsoft SQL server, but it's still relational and you probably just migrate that data to Postgres or something.
- 50:24Yeah, I think the risk is really if you're using this and it goes away and then you're stuck.
- 50:31That is definitely a real risk.
- 50:33And I have seen that happen with companies that actually had to rewrite their entire code base because they use something proprietary that then was decided.
- 50:43Stopped.
- 50:43There's one specifically.
- 50:45It's not profitable enough.
- 50:46So your project stops.
- 50:48Exactly.
- 50:49Yeah.
- 50:49This one, it was called QA Studio.
- 50:51It was a finance, quant finance language, actually by Palantir.
- 50:56There was a hedge fund I knew that had fully adopted it.
- 51:01And then they actually made the reverse migration to Python after the fact.
- 51:06How about the SEO?
- 51:06What do you think?
- 51:07Well, where is that bar that you cross over?
- 51:10Yeah.
- 51:10I was reminded about kind of somewhat horrifying experience from my own career that Dan's just reminded me of.
- 51:16I've seen it happen with the third party software that the company's bought and then it's no longer available.
- 51:21But the other time I've seen it, and it ties into what we were saying about kind of picking things the team knows, is I've come across bits of software where somebody says, well, that's the app that Bob wrote 15 years ago using Visual Basic 4 or whatever it is.
- 51:34Nobody knows how to do it.
- 51:35It doesn't do what we need to do anymore, but we don't have the source.
- 51:38Even if we did have the source, we don't have a Visual Basic 4 compiler.
- 51:41Nobody understands it.
- 51:42We don't know how he built it.
- 51:43Bob is long gone.
- 51:44You need Windows 95 to build it.
- 51:47How do we get that?
- 51:48Well, exactly.
- 51:48All those things add up.
- 51:50And at the time, it's not to make you sound like Bob was an idiot.
- 51:54Bob did what Bob knew.
- 51:55Bob knew Visual Basic 4 and somebody said, let's turn out a tool as fast as possible.
- 51:59Bob can do it for us today, and Bob did, and the tool works, and it's fine, and you don't think anything about it until way down the line, and nobody knows how to maintain the thing.
- 52:09So there's an argument to be had for where do the libraries and so forth you pick.
- 52:13If you're not picking things that everybody knows, or at least that huge chunk of you know, sooner or later you run out of people who know how to maintain these things.
- 52:20But as I say, not to maliciousness, just through, you know, I need it done fast.
- 52:24If you ask Bob to do it fast, Bob's going to do it in Visual Basic 4 because that's what Bob knew.
- 52:27And that's fine.
- 52:29And that might have been a totally decent choice in 1995.
- 52:31Exactly, yeah.
- 52:32But it's not in 2022 or, you know, now.
- 52:35And code rots.
- 52:36It does.
- 52:37Over time.
- 52:38So, you know, it was the current compiler, but if you don't keep moving it forward, you get to a point you can't move it forward.
- 52:43Even if the code would work fine in that old platform, the OS has changed, and it somehow kind of gets a little out of line with that, right?
- 52:51CPU architectures change, right?
- 52:53So you have to rebuild at some point, and so on and so on.
- 52:55Exactly.
- 52:56Yeah, absolutely.
- 52:57That only helps if you kept up with the ability to do that.
- 52:59You decided to keep yourself alive.
- 53:01Now we need to make it run on 64 bits.
- 53:03That's what Visual Basic runtime and WebAssembly is all about.
- 53:08Let's get going.
- 53:09Emily, what's your thought on this?
- 53:13Open source.
- 53:14I mean, my tendency, obviously, is to choose it as the first choice, but where's the threshold there?
- 53:19Yeah, I think a lot of what we do very much lives in that realm of open source.
- 53:24But for me, I think it really comes down to portability.
- 53:26If it's something that can be easily swapped out, I'm all for it.
- 53:30But I see this a lot more with system architectures, right?
- 53:32So if you're going to decide to go with AWS RDX, it's Postpress, right?
- 53:38You can use the fancy versions and whatnot, but under the hood, it's still Postpress, and you can move that wherever you want to.
- 53:47Whereas if you're going to make the decision to go all in on serverless and you're going to write lambdas, that's definitely something that you can theoretically move someplace else.
- 53:55But that barrier to portability is a lot higher.
- 53:58So that's kind of where I look at it.
- 54:01If this thing goes away or for us, a lot of it's like looking at client budgets, right?
- 54:06So if this thing costs $10 a month now, but they decide to up their costs and now it's going to cost $1,000 a month.
- 54:14Is that something that our client is going to be willing to take on from a financial perspective?
- 54:18So yeah, there's a lot to it.
- 54:20I try to...
- 54:21Yeah, you're sort of touching on another angle that's interesting as well.
- 54:25We don't really have time to go into it, unfortunately.
- 54:27But even if you have an open source thing, maybe your code is in Python and it's talking to Postgres,
- 54:33you can get locked into commercial clouds, right?
- 54:36Like RDS or Lambda, right?
- 54:40While it might still be running your Python, like you can't, like you said,
- 54:43you can't just take it and run it somewhere else without rethinking all the little roots of things
- 54:49it's going into to hook into the other parts of the cloud there.
- 54:53And that's clearly not something you can take as an open source thing and run with.
- 54:56So I'll give you the final word on this and then we'll wrap it up.
- 55:00Yeah.
- 55:00One way I kind of think about it is, you know, like there's some things that I care that they're open source
- 55:05and other things that I just don't.
- 55:07Like as an example, like I use MongoDB randomly.
- 55:11I've never looked at the source code.
- 55:12I probably am never going to.
- 55:13Like whether it's open source or not, when I can see the source code or not, like, is it important?
- 55:18I don't know.
- 55:19Is it the fact that I appreciate that there's community contributions and the discussion happening?
- 55:24Maybe that's the important part of the open sourceness that I do care about.
- 55:28When I think about smaller projects, when I mean smaller projects, I mean like utility libraries and things of that nature.
- 55:35A lot of the times I'll find myself like debugging and actually looking in the code because I might have seen like a weird error message.
- 55:41And I'm like, I don't understand what this means.
- 55:43Let me try and navigate through, you know, let me git cloned and navigate through it and see what's happening.
- 55:48Right.
- 55:49In that case, sure.
- 55:50I totally care to this open source because I have a problem and I want to try and figure it out.
- 55:54Right.
- 55:54So I think it really just depends.
- 55:55Again, for me more so, like, I really appreciate like when those utility libraries that I'm using are open source so I can figure out what's happening.
- 56:02But, you know, major things like, again, I think about Mongo or RabbitMQ or Redis or anything like that.
- 56:07Like, I'm never going to look at that source code.
- 56:09You know what I mean?
- 56:09I'm with you on that.
- 56:10Yeah.
- 56:11I appreciate that they're open source, but I'm not going to try to change it.
- 56:14Yeah.
- 56:14I'll just probably break it.
- 56:15All right.
- 56:17Well, this has been a great conversation.
- 56:19I'm looking at the notes that we all put together to talk and like we're halfway through it.
- 56:23We could just keep going and going.
- 56:24But we only have so much time.
- 56:27So what I want to do is I want to close out.
- 56:29Normally I ask about editors and cool packages and stuff.
- 56:32I want to close this out with a lightning round on one other thing.
- 56:34And this final thought is, you know, how much does it matter that we have like really beautiful, say, like landing pages?
- 56:41You know, some of these open source projects like Vue.js or Tailwind, they could be, you know, a high end marketing budget spent on them.
- 56:49And even, you know, poetry in the Python space has kind of got like a cool little landing page.
- 56:52So we're top to bottom here.
- 56:55Final thought.
- 56:56Give me a, you know, a couple of thoughts real quick on this and then we'll call it a show.
- 57:00Dan?
- 57:01I think it definitely helps in terms of getting people involved.
- 57:05Not necessarily a requirement.
- 57:07And in some cases may mask issues with the underlying library.
- 57:12Okay.
- 57:13Like, I mean, the only thing I can think of is like profit kind of, which had a lot of Facebook.
- 57:18It was very fancy Facebook marketing, but there's been some, I think like the Zillow stories and things like that of cases where it wasn't necessarily appropriately used, but it was very fancily marketed.
- 57:28So I think it's just can be an entree even without full evaluation.
- 57:33Right.
- 57:33It might actually, maybe the effort should just be put to the code or somewhere else.
- 57:37Gareth, what do you think?
- 57:39You've seen the Tailwind CSS site.
- 57:41Are you ready to swap all your stuff over?
- 57:44All I care about is how quickly I get to a demo of it and the documentation.
- 57:48So I'm old school.
- 57:50So if it's got a man page, I'm probably happier.
- 57:53I often find myself looking at them going, that's great.
- 57:56I have no idea what it does.
- 57:58And I think the fancier the landing page, usually it actually puts me off a bit because I worry that they're putting a lot into it.
- 58:06Although I'm paying a lot more in JavaScript at the moment.
- 58:08They seem to have a lot more fancy landing pages.
- 58:11You've got to stand out when there's a new library every week.
- 58:15Kim?
- 58:15Sure.
- 58:15I'm pretty much with Gareth there.
- 58:17It would be hypocritical of me to expect an open source project to have a pretty page before I can use it.
- 58:22Because frankly, I can't do that.
- 58:23And that's just not reasonable to expect other projects I might consider using to do that.
- 58:28The one thing I would agree with Gareth on one thing, what I want to see basically is as fast as possible.
- 58:33What is it?
- 58:34And how do I use it?
- 58:35You know, the marketing dump and stuff is all very nice and well written, but it's less relevant to me.
- 58:40The only thing I would argue that turns me off immediately on a big project are ones that go very video heavy without much text.
- 58:47If you have angled your project towards here's a video to show you everything you need to know, that's 10 minutes I'm never going to get back if I decide I don't want to use your library.
- 58:56You can't skip it easily, no.
- 58:57Equivalent text, exactly.
- 58:58I could have read the equivalent text six times in the time it took me to watch your video.
- 59:01So maybe that's a personal quick, but that's the thing I don't like.
- 59:05Yeah, I hear that a lot too.
- 59:06For video heavy, it doesn't work for me, I must say.
- 59:09Emily, you probably have clients that come with fancy landing pages that they're going to recommend that you start with.
- 59:14Yeah, for sure.
- 59:15For me, I think, you know, documentation is paramount.
- 59:18And I think that a lot of, especially in the Python world, there are a lot of pieces of documentation that feel a little bit, you know, antiquated at this point where it is very much generated off of, you know, maybe some doc strings or, you know, argument types and all that stuff that sometimes it's not the most user friendly.
- 59:36So for me, it's like, yeah, I can look at this stuff in the code if I need to.
- 59:40So having something that, you know, is either a playground, quick start guide, how to use it, that sort of thing is really important.
- 59:47For the landing pages, I feel like it's not necessary, but I think that when a tool does a little bit of the work to show how it's differentiated, that helps me, right?
- 59:58So if I can look at something and go, all right, I'm going to look at poetry and they provide some great examples for, you know, why it's faster than this thing, why it looks better than this thing, whatever it is.
- 1:00:08It at least gives me sort of a starting point for, you know, why would I use this tool?
- 1:00:13Obviously, it's all sort of taken with a grain of salt because each tool is going to say that, you know, here are the things that they're best at and kind of hide the things that they're maybe not best at.
- 1:00:21I also think, you know, as you're sitting here on this page and you kind of scroll down and you can see all these sponsors.
- 1:00:27That does matter. Yeah.
- 1:00:29It matters, but it's also something that kind of can make you raise an eyebrow, right?
- 1:00:34So like Vue is great because it's very diverse.
- 1:00:37It's not, you know, a single large company that is sort of powering everything.
- 1:00:41But I do think that that is something to sort of watch for is, you know, who is driving this and what is the reason why it's here?
- 1:00:49Cool. Cecil?
- 1:00:51Yeah, I think like a lot of other folks on this panel, I am not a designer.
- 1:00:54And so I do appreciate the aesthetics of being able to like see things clearly and read them clearly.
- 1:01:01I'm not here for all like the marketing stuff and I'm better because stuff.
- 1:01:05You know what I mean?
- 1:01:06Like I'm usually going to come in and I'm going to look for that getting started button.
- 1:01:10I'm going to look for that docs button.
- 1:01:11I'm going to look for the little code sample that I can copy, paste into VS Code and run kind of thing for the most part.
- 1:01:18But then I also recognize the fact that like really nice documentation takes time.
- 1:01:22And, you know, a lot of open source folks don't always have the time to create that, right?
- 1:01:26Yeah.
- 1:01:27It is a signal.
- 1:01:28Yeah.
- 1:01:28But is that like a metric that we judge them by?
- 1:01:31You know what I mean?
- 1:01:32Yes or no.
- 1:01:32I mean, is that fair?
- 1:01:33You know what I mean?
- 1:01:34Like you can have a really good project, but if you don't have the good documentation, obviously I can't use it the way it's intended to use.
- 1:01:40But like, does that mean that this is not a good project?
- 1:01:42I don't know.
- 1:01:43So I feel like, you know, that's obviously a good opportunity for folks to, you know, contribute and send PRs and things of that nature.
- 1:01:50But, you know, for me, like I'm just going in really quickly to see, hey, how can I start the thing?
- 1:01:55How could I run it, install it, execute it, Docker compose it, whatever.
- 1:02:00And then kind of just get going.
- 1:02:01All right, Lukas, you got the final word here.
- 1:02:03Sure.
- 1:02:03Well, I don't think you can really go wrong with an ugly website for a project that is open source.
- 1:02:09Like it's very rarely hinders the project.
- 1:02:11Just look at Python.org.
- 1:02:13I'm being unfair, but you know, like in perfect fairness, like the last redesign was like some 10 years ago or something.
- 1:02:19So like, you know, kind of it doesn't look exactly like as flashy as like Tailwind or Viewer or whatever.
- 1:02:26And it doesn't really matter because it does kind of let us all PyPI is nice.
- 1:02:30Like Python.org.
- 1:02:31Yeah, and I was going to say PyPI actually did get that treatment though.
- 1:02:34Yeah, exactly.
- 1:02:35So yeah, like Python.org might get updated at some point as well, but it doesn't hinder us in one bit because, you know, it's a functional Django, in fact, website.
- 1:02:43And we use it every day.
- 1:02:45It's nice.
- 1:02:46I personally like if there was a designer that actually sat on the, you know, on the project and made the website work.
- 1:02:54There's a bunch of things that, you know, like until recently nobody thought about.
- 1:02:59So all those outdated websites don't have this.
- 1:03:02We're like dark mode, white mode, looking good on a phone screen or whatever.
- 1:03:07Like those things end up being quite useful to me now.
- 1:03:11Like the job I do, like I work with people in different time zones.
- 1:03:15So every now and again, they would catch me when I'm like, you know, away from a keyboard.
- 1:03:19And if I can actually go and check something, you know, on the phone, it's very helpful.
- 1:03:23It's not always possible or it's at least like, you know, complicated sometimes when, you know, like scroll.
- 1:03:30A white background.
- 1:03:30A white background.
- 1:03:31A white background.
- 1:03:31Yes.
- 1:03:32Or like a white background is going to glare at you like at like 3 a.m. or whatever.
- 1:03:36You know, so like I appreciate good design.
- 1:03:38It's obviously not something I do personally as well.
- 1:03:42Just like everybody else I think here.
- 1:03:45However, there are people that are great at it and I appreciate it when, you know, kind of people like this get contacted.
- 1:03:52And, you know, those sorts of websites look good and are functionally better that way.
- 1:03:57Thank you all for being here.
- 1:03:58It's been a great conversation.
- 1:03:59Thanks for taking the time and being part of the group.
- 1:04:02Thanks.
- 1:04:02Thanks, everyone.
- 1:04:03Thanks.
- 1:04:03This has been another episode of Talk Python To Me.
- 1:04:07Thank you to our sponsors.
- 1:04:09Be sure to check out what they're offering.
- 1:04:11It really helps support the show.
- 1:04:13Join Cox Automotive and use your technical skills to transform the way the world buys, sells, and owns cars.
- 1:04:20Find an exciting position that's right for you at talkpython.fm/cox.
- 1:04:25Take some stress out of your life.
- 1:04:27Get notified immediately about errors and performance issues in your web or mobile applications with Sentry.
- 1:04:33Just visit talkpython.fm/sentry and get started for free.
- 1:04:38And be sure to use the promo code TALKPYTHON, all one word.
- 1:04:42Want to level up your Python?
- 1:04:43We have one of the largest catalogs of Python video courses over at Talk Python.
- 1:04:47Our content ranges from true beginners to deeply advanced topics like memory and async.
- 1:04:52And best of all, there's not a subscription in sight.
- 1:04:55Check it out for yourself at training.talkpython.fm.
- 1:04:58Be sure to subscribe to the show.
- 1:05:00Open your favorite podcast app and search for Python.
- 1:05:03We should be right at the top.
- 1:05:04You can also find the iTunes feed at /itunes, the Google Play feed at /play,
- 1:05:09and the direct RSS feed at /rss on talkpython.fm.
- 1:05:13We're live streaming most of our recordings these days.
- 1:05:17If you want to be part of the show and have your comments featured on the air,
- 1:05:20be sure to subscribe to our YouTube channel at talkpython.fm/youtube.
- 1:05:25This is your host, Michael Kennedy.
- 1:05:26Thanks so much for listening.
- 1:05:28I really appreciate it.
- 1:05:29Now get out there and write some Python code.
- 1:05:31Bye.
- 1:05:32Bye.
- 1:05:33Bye.
- 1:05:34Bye.
- 1:05:35Bye.
- 1:05:36Bye.
- 1:05:37Bye.
- 1:05:38Bye.
- 1:05:39Bye.
- 1:05:40Bye.
- 1:05:41Bye.
- 1:05:42Bye.
- 1:05:43Bye.
- 1:05:44Bye.
- 1:05:45Bye.
- 1:05:46Bye.
- 1:05:47Bye.
- 1:05:48you
- 1:05:48you
- 1:05:49you
- 1:05:49Thank you.
- 1:05:51Thank you.