Learn Python with Talk Python's 270 hours of courses

#363: Python for .NET and C# developers Transcript

Recorded on Wednesday, Apr 13, 2022.

00:00 Are you coming to Python from another language and ecosystem?

00:02 It can seem a bit daunting at first, but Python is very welcoming and has a massive array of tools and libraries.

00:09 In this episode, I speak with my friend Cecil Phillip, who does both Python and .NET development.

00:15 We discuss what it's like coming to Python from .NET, as well as a whole bunch of compare and contrast across those two ecosystems.

00:22 This is Talk Python to Me, episode 363, recorded April 13th, 2022.

00:29 Welcome to Talk Python to Me, a weekly podcast on Python.

00:45 This is your host, Michael Kennedy.

00:46 Follow me on Twitter, where I'm @mkennedy, and keep up with the show and listen to past episodes at talkpython.fm.

00:53 And follow the show on Twitter via at Talk Python.

00:56 We've started streaming most of our episodes live on YouTube.

00:59 Subscribe to our YouTube channel over at talkpython.fm/youtube to get notified about upcoming shows and be part of that episode.

01:07 Hey folks, I want to share a cool opportunity with you.

01:11 Many people reach out to me and ask about getting a job doing full-time Python rather than, say, Java in the day and Python on a hobby basis.

01:19 If you're in the market for a proper Python job with adventure right in the description, then check this out.

01:25 The Intelligence and Space Research Division at Los Alamos National Laboratory is seeking some smart and talented developers to help them blaze new galactic trails across the solar system.

01:35 They're located in the American Southwest, so you'll also have time to explore earthly trails in the beautiful mountains of northern New Mexico.

01:42 You could use your amazing Python skills to write software for satellites orbiting the Earth, design systems and interfaces that help protect America's security interests, process data from Mars, or even explore a host of other fascinating space research projects.

01:58 Does that sound like an adventure?

01:59 Well, you won't be alone.

02:00 Your team will be filled with experts in software, engineering, and space science all working together.

02:06 Just visit talkpython.fm/Los Alamos and shoot them an email.

02:10 That link actually opens your email client, by the way.

02:13 The folks at Los Alamos can't wait to hear from you.

02:15 The link's right in your podcast player or on the episode page.

02:18 Transcripts for this and all of our episodes are brought to you by Assembly AI.

02:23 Do you need a great automatic speech-to-text API?

02:26 Get human-level accuracy in just a few lines of code.

02:28 Visit talkpython.fm/assembly AI.

02:31 Hey, Cecil.

02:32 Hey, what's going on?

02:33 It's going to be fun to just chat about past, future, present.

02:36 I see you're wearing the C-sharp shirt.

02:38 Yeah, I decided to wear this today.

02:40 Also, this is a vintage shirt.

02:42 Like, you can't get these anymore.

02:43 I think this was from, I want to say, Xamarin Evolve.

02:48 Back before Xamarin was a Microsoft company, they had a conference called Xamarin Evolve, and they used to give out, you know, swag and bags and stuff.

02:54 And I got this shirt.

02:56 And I try to only wear it on special occasions because I want to preserve it for as long as I can because I know I'm not going to get another one.

03:03 So, I figured today was a special occasion.

03:04 I'll wear it today.

03:05 Yeah, for sure, for sure.

03:06 I got my Vivaldi shirt on today, which is, should have brought my Python ones.

03:10 Anyway, I'm super excited to have you back on the show.

03:14 You've been on the show a couple of times.

03:15 We talked about live streaming of all things.

03:19 And, you know, some of my live stream setup is actually thanks to you because you blazed the trail, which is awesome.

03:25 You and it was Brian Clark, right?

03:27 Who had been doing your Python live stream, right?

03:30 Yeah, yeah.

03:31 Back when Brian and I were both at Microsoft, we were doing a Pi Weekly Live is what it was called.

03:36 Or we were just kind of looking at Python from a perspective of people that don't do Python for a living.

03:42 Or, you know, I don't push Python's production or I don't maintain Python open source libraries.

03:47 But it's still a cool language and we wanted to learn it, right?

03:50 And we wanted to learn in public.

03:52 And I think as advocates or pretty much just as anyone, I think now like learning in public is a great way to not only help yourself, but also help the community too.

04:01 It is.

04:02 And putting yourself out there in that way.

04:03 I think it's scary, especially when you're brand new.

04:07 You're like, oh, I've been doing this for a few weeks.

04:09 I'm going to look really bad.

04:10 But at the same time, you learn that people want to help you.

04:12 And other people who are also having the same problems really appreciate that.

04:16 So that was a really cool episode.

04:17 And we also talked about developer relations and what the heck is that with you and Paul Everett and some other folks as well.

04:24 So anyway, welcome back.

04:26 This time we're going to be talking about what may seem initially like a bit of a weird topic for the Talk Python show.

04:36 And that's somewhat .NET.

04:38 So what we're going to talk about is really reaching out to folks who are experts in C Sharp and .NET, hence your shirt, saying, look, Python is this excellent language as well.

04:48 And it seems really like such a different ecosystem, such a different language, such a different tool chain, like are almost all the axes.

04:57 It looks really weird from a .NET perspective, right?

05:00 And I think it's going to be super fun to explore those.

05:02 But I want people listening to take this from a slightly different perspective.

05:06 Obviously, if you're a C Sharp or .NET person, you know, that's a really focused conversation.

05:11 But what about the teams who are doing Java and they're looking at Python or the teams who are doing C++ and look at it?

05:17 I think this could be a sort of a stand in or a prototype for how people coming from other technologies coming into Python might evaluate it and perceive it and think about it.

05:27 Yeah, I think so, too.

05:28 Like, so first of all, I want to tell folks like this is not like a my language is vetted in your language kind of conversation.

05:33 You know, we fight.

05:35 We're girlfriends here.

05:36 You know, we all like each other.

05:37 But I always find that, you know, if you kind of look through like the history of programming languages, like we all kind of evolve together, right?

05:44 Like we all borrow features from each other, whether it's libraries or, you know, actual language core features or whatever the case is.

05:51 And, you know, it's always interesting to see folks when they're like, oh, your language can do that, too.

05:56 So can mine.

05:56 And so now that kind of just makes them a little bit more relatable, right?

06:00 Because you're like, OK, well, I know how that works for me.

06:03 So now I'm maybe I can pick up your language a little bit easier because I already know like that particular concept, you know?

06:08 Yeah, I totally agree.

06:09 And it's not a one way street either.

06:11 Yeah, exactly.

06:12 For example, we in Python have async and a wait.

06:16 Thank you to C Sharp.

06:17 But C Sharp has generators and yield return.

06:20 Thank you to places like Python.

06:22 Right.

06:23 So there's like this sort of give and take.

06:24 Yeah.

06:25 Yeah.

06:25 Which I think is quite interesting.

06:27 Another thing that C Sharp has.

06:29 I don't know if you know, I think it was in C Sharp 9.

06:32 I might be a mistake.

06:33 I think it was C Sharp 9.

06:34 C Sharp, by the way, if you're not following it, has many versions.

06:36 This is actually an interesting thing to discuss as we'll get into it later.

06:40 Yeah.

06:41 So C Sharp 9, this is like a lot of releases.

06:43 Yeah.

06:43 Yeah.

06:44 I think C Sharp 9 was two years ago.

06:46 Right.

06:46 So last year's version was C Sharp 10.

06:48 And then C Sharp 11 is going to be released in November of 2022.

06:52 Yeah.

06:52 So yeah, like Michael said, there's a lot of versions.

06:54 But I kind of want to follow up on that last point you made about async await because another

06:59 feature too, which is one I actually really appreciate, is records.

07:03 And so when I think about records, I almost think about like data classes in Python.

07:07 Yeah.

07:07 They're very similar.

07:08 Yeah.

07:08 Yeah.

07:09 I think about like these immutable classes, these immutable types that I have.

07:12 And essentially like their job is really just to pass information back and forth.

07:15 But I want to say I feel like Python had that first.

07:18 Right.

07:19 Again, .NET got that like two years ago.

07:21 I'm not sure how old data records are.

07:23 Or data.

07:23 Oh, yeah.

07:24 Data classes, I believe, are older than two years.

07:27 But yeah, I'm pretty sure.

07:28 But yeah, I don't totally remember the exact release number it was.

07:32 Yeah.

07:32 We have a lot of releases too.

07:33 We just put them as point releases, 3.7, 3.8, 3.9.

07:35 Now, let's start this conversation from a perspective of a C Sharp developer.

07:42 Now, imagine you don't know a lot about Python.

07:43 You do know a lot about both languages, just to be clear.

07:47 And that's why I actually have a ton of experience in .NET before I got into Python.

07:51 But let's imagine that you don't know a lot about Python.

07:54 And you're thinking about, you know, maybe I just really need to either I'm going to get a new job.

07:59 And it's not the same technology I was working in.

08:03 This is a Python place.

08:04 And I've been doing .NET at my company.

08:06 Or you're just thinking, you know, more like I was.

08:09 It's like, gosh, I kind of need to diversify my technology and my career experience and not put all the eggs in one basket sort of thing.

08:18 And really actually love that change.

08:21 But think about what are the things that you really love about working in C Sharp and .NET.

08:28 And you're like, I just, if I had to leave this feature or this language thing behind, it would nearly kill me to do so.

08:36 Yeah, I think for me, and it's almost not so much so for me about like the language.

08:43 Because like you mentioned before, like we've had the opportunity to play around with like a lot of different languages and kind of see how the world works.

08:48 For me, it's the tooling, right?

08:50 From a .NET developer perspective, it's the tooling.

08:53 And the libraries.

08:54 The tooling and the libraries.

08:55 The tooling, the libraries and the integrations with like some of the other ecosystem that kind of surrounds .NET that makes it really useful for me.

09:02 So I'll give you an example.

09:04 Like, so for .NET developers, you may already know this, but, you know, we have project types that are based on CS projects and solution files and things of that nature.

09:13 Where I know some folks might look at and be like, oh man, why did my project have all of these different files?

09:19 And like, there's so much stuff just to do like a hello world or a simple project.

09:23 But then I look at that as, okay, well, I know where the root of my project is, right?

09:27 And I know there's a very standard way to define like what are my dependencies and what are the different projects that denotes, I guess, sub projects in like that larger solution, right?

09:40 Whereas one of the things that, you know, hurt me a little bit as you look at other languages and not just Python, but if you look at JavaScript and Go and some of these other ones, I'm like, okay, well, how do I know where's the roots?

09:51 And then how do I have multiple projects?

09:54 Or I guess you could call them multiple components for that same project or multiple pieces, but I want them in the same folder.

09:59 And I want when I hit build or run that all of them run or like the right subset of them run.

10:05 Like, right, right.

10:05 I maybe have a web front end and some API back end and they both need to be running that type of thing.

10:10 Right.

10:11 So for me, like one of the things I love about Visual Studio back when I was on Windows, because I don't use Windows as much anymore.

10:17 I used to be able to like select multiple projects to start, like when I started debugging session so that whenever I hit F5, famous F5, you know, start and run and do all that types of stuff.

10:27 Now I'll have like multiple projects running.

10:30 So it could be, like you said, like my web API or my back end, or I have a Xamarin thing that's running or whatever the case is.

10:36 But now they're all running and debugging at the same time in the same solution.

10:41 Because again, the editor knows what projects are part of this.

10:44 It knows what the dependencies are.

10:46 It knows what ports they're running on and all that types of stuff.

10:48 Whereas, again, if I walk away from that world a little bit, I feel like now that becomes like a manual process and I have to write like scripts or YAML files or something like that.

10:58 Yeah, yeah, yeah.

10:59 Well, let me riff on that for a minute.

11:00 So, so often what you'll see in the tutorials and stuff, the getting started stories in the Python space is create a blank Python file called app.py, main.py, whatever, and write this bit of code.

11:16 Yeah.

11:17 And the sort of starting structure that is presented to you is, it's almost wholly absent, right?

11:23 If you're going to build a web app, you have to figure out, well, where do the static files go?

11:27 Where is the JavaScript?

11:28 How do I align that?

11:29 What do I do with my view templates versus like just, it's completely unstructured, right?

11:35 And I think that that is the world that's presented to a lot of people and keeping with my opening theme, if you're coming from a place where there's a lot of guidance through the tooling, you may see that and want to just run in horror and go, I've been shot back to the 80s.

11:50 What has happened to me?

11:51 I don't want this.

11:52 Like, I don't need this.

11:53 Why am I here?

11:53 But as you dig deeper, if you want to opt into those things, they do exist in a much more sort of decentralized, you know, by choice, go hunt them down way.

12:06 And that's like, if you want a lot of structure, you could use cookie cutter to generate very structured projects.

12:13 So much so that I think a lot of the cookie cutters are overly specific.

12:18 You end up like, you know, I don't really need two layers of Redis.

12:22 One layer of Redis was enough.

12:24 Like, why is all this stuff here?

12:25 People get carried away with it.

12:26 But you can generate those types of like, here's the pieces and it's really structured how they fit together.

12:31 You can use things like PyCharm to create a project that might have a little bit of structure.

12:36 They very rarely have much, but a little bit.

12:38 But none of that is presented to you in a way that is discoverable in the first week.

12:42 Right?

12:43 If you're brand new, you're like, I'm here at this one file.

12:45 That's what the tutorial says.

12:47 Why is it all in one file anyway?

12:48 Shouldn't this be broken up?

12:49 Yeah.

12:49 And to that point, there's like pros and cons to each of those approaches.

12:53 Because like you mentioned before, one of the things that I could say I love about Python is the fact that I could just get started with one file.

13:00 Right?

13:00 Yeah.

13:01 And that getting started experience and that evolvability of the language, I think is important.

13:05 Right?

13:05 I think that's one of the reasons why people like latch onto it so much.

13:08 Because my barrier to entry is like extremely low.

13:13 It is literally like a file and, you know, whatever Python runtime that you have on your machine.

13:17 You know what I mean?

13:18 Yeah.

13:19 And that's a huge attraction for many people coming into the ecosystem from what I can see from talking to a lot of people is, right?

13:25 I'm a biologist.

13:27 And I learned that if I write these five lines into a text file, I can now do magic.

13:33 Whereas if you've got to learn about public static void classes, namespaces, compiling, linking, you're like, wait a minute.

13:39 I'm not a programmer.

13:41 This is not for me.

13:41 Yeah, exactly.

13:42 And when I think about that, right?

13:44 Like if I think about like the structured nature of Visual Studio style projects and .NET projects and C Sharp projects.

13:51 And like you mentioned, like the Python projects and even the cookie cutter stuff and whatever the case is.

13:56 I have to kind of look at the history and see like, oh, well, what space did these ecosystems kind of evolve in?

14:02 Right?

14:03 Like when I think about that .NET ecosystem, you know, for folks that are listening, that's mostly where I spent a lot of my time in terms of like my career coming forward.

14:11 You know, I think about like schools and enterprises and big companies that need like structure.

14:17 Like give me the structure and then now I'll add the bits and pieces that I kind of need going forward.

14:22 Right?

14:23 When I think about Python, and again, if I'm wrong, please correct me.

14:26 When I think about Python, I think about, okay, folks that are doing like a lot of scientific experiments, like numeric computations.

14:33 And hey, I just want to do these things really quickly.

14:36 I don't really need structure, but I want to like execute experiments.

14:40 Not experiments from the perspective that the code is not important.

14:43 The code is important.

14:44 But like it's the task is more important than the code is, if that makes sense.

14:49 Sure.

14:49 Yeah, that makes a lot of sense.

14:50 And that's not always true, but that's often true.

14:52 And I would say there's different areas in like certainly the scientific area, maybe the data science exploration area, but even like the DevOps or just the automate stuff with Python rather than bash.

15:05 Right?

15:05 Like I need to copy these files over here and then rename them and then put them on S3.

15:10 Right?

15:11 So that's not a super structured experience, but Python's really good at it and often it's used for it.

15:17 Yeah.

15:17 And I agree with you when we look at where both of these languages have come today.

15:21 So if you kind of look at, okay, now .NET is what?

15:26 .NET is like 16, 17 years old, something like that.

15:29 20.

15:29 I think it's 20.

15:30 I think because, yeah, I think there was the whole, yeah, Richard Campbell and crew have been going on about like the anniversary and stuff.

15:36 Right. So if you look at languages 20 years later, right, like your initial intent was this.

15:41 As the world evolves, as the world of software development evolves, and then now we're, as developers, like we're looking at attaching on to new, you know, new work types.

15:50 And, you know, you're hearing about Kubernetes and mobile apps and all these types of things.

15:55 Now, like our languages kind of have to evolve with us.

15:58 Right.

15:58 And like we have to evolve with the industry.

15:59 And so now some of those initial use cases have like expanded and multiplied.

16:04 Right.

16:05 And now we got to take care of all of these other things now as well.

16:07 Yeah.

16:08 Well, that's a big shift, honestly, that the whole .NET side has had to sort of come to terms with over the last 10 years is the open source, the open sourceification of this whole sort of commercial side of things.

16:21 And let's maybe explore that for a little bit, because I think there's a lot of interesting variations and differences and stuff.

16:29 Right.

16:29 So Python, in a sense, was open source before open source was a thing.

16:34 Right.

16:34 It was just, here's the source code.

16:36 Right.

16:37 There's no GitHub and PRs and all of this sort of formal open source structure.

16:42 It was just released on Usenet and other places.

16:45 Whereas Python, I'm sorry, whereas .NET has been a product from quite a long time.

16:53 Right.

16:53 It was a way to build things in the early days for like Windows servers and for Windows and the Microsoft tooling.

17:01 And like, let's make it really good for developers over there.

17:04 Right.

17:04 But that was not released by a bunch of people contributing in different ways.

17:09 It was way more structured.

17:10 Right.

17:10 Yeah.

17:13 This portion of Talk Python to me is brought to you by Cast AI.

17:17 Cast AI is the number one Kubernetes cost management and automation platform.

17:22 Get on top of your cloud costs, streamline DevOps processes, and remove the complexity that slows down software delivery.

17:30 Cast AI uses automation to eliminate manual tasks, provision your infrastructure, and keep it optimized at all times.

17:38 It selects the right resources at the right time and for the best price.

17:42 So you can focus on things you want to do, like building new features and writing code.

17:47 Teams using Cast AI see an average savings of 50% and more.

17:52 Your friendly cloud giant is making tons of money.

17:55 Don't send them more than you need to.

17:56 So why not scan your cluster and discover how much you could save with Cast AI?

18:00 They have a special offer for Talk Python listeners.

18:04 Just visit talkpython.fm/castai or click the link in your podcast player show notes and get a free optimization report.

18:12 Thank you to Cast AI for supporting the show.

18:15 Again, like when we look at the history of things, right?

18:20 Like for me, the initial intent or one of the initial intents of .NET was to make it easier to build apps on Windows specifically.

18:28 So you think about like, well, who's building Windows applications, right?

18:31 Like at that time, you know, you go back to like 2001, 2002, right?

18:35 That's what we're talking about.

18:36 And at that time, mostly we're talking about like desktop applications, right?

18:41 Like we're thinking about Windows forms.

18:42 This is the successor to Visual Basic 6 and all of its glorious.

18:46 Right, like the drag and drop UIs and like all that types of stuff, right?

18:49 And then eventually that evolved into WinForms and those types of things.

18:52 But still from a very Windows specific perspective.

18:56 And then now we forward on to like, I don't know, let's say 2013, 14, 15.

19:02 And even up until today, now like the cloud has become a major thing.

19:06 And I'll be honest with you, I'm not a business person and I wasn't in the room, but I can tell you, anyone that wants to compete in the cloud computing space, you have to be cross-platform.

19:17 And you almost have to have a more open community, be able to work with different types of folks and interoperate with different types of technologies just because of the nature of the landscape of cloud computing, right?

19:30 Like you mentioned Redis earlier, right?

19:32 Like how do we plug into Redis?

19:33 How do we plug into RabbitMQ?

19:35 How do I plug into Docker and Kubernetes, right?

19:38 Like, you know, a lot of these things have their best experiences on non-Windows machines, right?

19:43 So how do we now plug into that ecosystem and evolve to kind of follow along with where the rest of the industry is going?

19:50 And so that's why you'll see now, like now .NET is, now it's open source.

19:54 Now it runs on ARM devices and it runs on, you know, what's that?

19:57 The M1 Macs and all of these.

19:59 Yeah, it runs on our Mac, right?

20:00 Right, like it runs everywhere that you could potentially want it to run.

20:04 One's on, I'm sure, I'm pretty sure it runs on like Apple watches and on your fridge if you have a Samsung fridge and like all these different places, which is really crazy to think about.

20:12 Again, like looking back at the history of what this thing was intentionally, you know, initially intended for.

20:19 Sure.

20:19 To me, the biggest, maybe two biggest, the two big things that are sort of tied together that are affected by this different origin story of Python and .NET

20:31 really have to do about what I'll refer to, I guess, as the one true way versus a thousand flowers blooming and some of them growing in, you know, maybe in the tall trees or whatever.

20:43 And then people's perception of using open source content versus like what is blessed by the project organizer, right?

20:54 So maybe we can think about that for a little bit, right?

20:56 So when you're a .NET person, you go traditionally, I think this is actually fading a lot, but traditionally you would go into Visual Studio and it has a list of projects.

21:07 What do you want?

21:07 I want a web project.

21:09 I want a UI GUI type of project.

21:11 I want an API.

21:13 And then you click it and it goes whoosh and a ton of files come out and a bunch of linked libraries off to the equivalent of PyPI.

21:22 And those are certain frameworks, right?

21:24 It says you will use this web framework, ASP.NET, some variety.

21:28 You'll use this data access framework, entity framework, probably of some variety.

21:33 Now go.

21:34 Like those, you start from the assumption of, well, I'm using these frameworks.

21:37 Now I get decisions about architecture and other things I bring in and how I build, whereas somebody coming from that world into the Python space, I think they're going to have almost a rude awakening, both in a beautiful way, but also not so great, like a paradox of choice.

21:53 So you want to do a project that's a web app?

21:55 Okay.

21:56 First, you begin the web framework selection story.

21:59 Flask, Django, Pyramid, FastAPI, Tornado.

22:04 So like just, and then the next layer down, now we begin the data access layer exploration, right?

22:10 Is it SQLAlchemy?

22:11 Is it SQL model?

22:12 Is it some MongoDB thing?

22:14 Like you just, every step is a, is great in that there's a ton of choice and variety.

22:20 You don't like one, you pick another one, but to get started as an experienced person, that feels like a great option.

22:26 As a brand new person, I think that feels like an impediment and not quite a problem, but almost a problem.

22:33 What do you think?

22:34 Yeah.

22:34 I think it definitely gives you a lot to think about, right?

22:37 Because now you have to wonder, am I making the right choice?

22:41 Right.

22:42 Yeah.

22:42 And not only am I making the right choice, am I making the right choice today?

22:47 And is this choice going to grow with me as whatever I'm building hopefully grows because hopefully all of our projects are successful, right?

22:55 And hopefully it will grow with me.

22:56 And so if you kind of go back again to like that Microsoft thing that you were talking about, like you said, .NET was not originally open source and .NET is a product that was essentially created to make it easier to build things on Windows.

23:10 And now, again, over time, it's become open source.

23:13 And now it's in the cloud and runs on different devices and all those types of things.

23:17 But I keep going back to this because the origin story is important, right?

23:21 Because like you said, Python was almost open source by default from the beginning, right?

23:27 And so like its intent from the beginning was already like, hey, I have a community of people that are going to come and latch on to us.

23:34 And then we're going to kind of just grow organically together versus like I have big company X that's going to throw millions of dollars in developer time and research and all these other things to tell you this is the right way for me to do this.

23:47 Now, I don't think there's a good or a bad way for either one.

23:51 I think at that point it comes down to us or you as a developer to kind of sit down and think about, well, what's really important to me?

24:00 Like, how do I really want to build applications?

24:03 And it's such a funny thing because I like to look at building software like writing a book or like drawing a picture.

24:08 Like you can tell me to write the same app that you write, but you might write it in a different way.

24:13 You might have a different style or different patterns or different tools that you like to do.

24:17 But ultimately, maybe it solves the same problem, but like it looks different because it came from different people.

24:23 Just like, again, like telling a story, drawing a picture, whatever the case is.

24:26 And so for some people, the way that they work and the way that their organization is set up, you might prefer to be able to pick each and every single piece of your stack, right?

24:38 And make it look exactly how you want it to look with the pieces that you want, the frameworks you want, the databases, all that type of stuff.

24:47 Or you can go to Microsoft and do a file new project that you can get ASP.NET, an ADD framework and a right click publish to the cloud.

24:56 And then you could just be like, okay, well.

24:58 And by the way, when you publish to cloud, how many vendors, cloud vendors do you get?

25:01 Usually it's Azure, right?

25:03 I mean, if you're talking about Visual Studio out of the box, it's, you know, published to Azure, right?

25:08 Just being like that, that's another thing that's sort of like strongly encouraged as like one more choice.

25:13 Yeah, that's another thing you have to think about, right?

25:16 Yeah.

25:16 And so now for people that are in that space, like if you're in a space of, hey, I just need the template.

25:21 I need you to tell me like how this thing is structured and like where my dependencies go, how they're defined and how the build process works.

25:27 And all I want to do is just write code and publish, then sure.

25:31 Again, like I said, there's nothing wrong with that.

25:34 But then if you're in a space where you want to control every minute detail of the development process and the libraries and how they plug in,

25:42 maybe you even want to write some of your own libraries, right?

25:44 To like augment some of those additional things that are in there and do some of that type of stuff.

25:49 Then, you know, maybe again, you want to make some different choices.

25:52 You know, one thing that just occurred to me, I think is pretty interesting as a difference here is you talked about the benefit of all these, the tooling, you know, like file a project, boom, it gives you all these things.

26:02 And for people who haven't played with it, you can get like these database visualizers for designers for say the classes that are backing entity framework and things like that.

26:15 The presence of those tools is also kind of a limiting factor.

26:19 Well, you wouldn't choose some other database way of working because you're going to lose access to all those good data integration tools, right?

26:28 Whereas in our space, we don't have those to nowhere near to the same degree.

26:33 And so it doesn't matter so much which tools we pick, whether or not they fit exactly together in that way, because they're not really available.

26:41 So we have more flexibility, I guess, to say like, actually, I like the API of this one better.

26:45 The performance story of this one or maintenance, how lively the GitHub project is, you know, is better on this one, even though it wasn't traditionally like exactly.

26:55 Yeah, I think there's definitely something to be said if you walk into a world where the entire stack is unified.

27:03 And when I say that, I mean, you know, I can go into a place and the programming language runs on the operating system that they built, that runs in the IDE that they built, that runs in the cloud that they built, that runs on the DevOps pipeline, security, whatever, whatever that they built.

27:20 And it all plugs in together.

27:21 And so with that integration, like you said, like you can get a different level of visualization, a different level of reporting and metrics on all of that types of stuff with a lot less work.

27:31 It's not that you can't get it from other places, but it's just a little bit more work to get it, you know, to kind of kind of put those puzzle pieces together to make the world look like how you want it to look.

27:41 Every level is like a decision you have to make and an integration you have to consider as opposed to it just by default clicking together.

27:50 Right. Just like cloud computing. I'm going to bring this up because I have a talk where I talk about something I like to call like the microservice matrix.

27:56 Yeah. And I do. Before you get into that, I do really quickly want to point out last time you were on the show, you were developer relations on the Azure team at Microsoft.

28:03 And now you're at Stripe.

28:05 Now I'm at Stripe.

28:06 Right. We didn't, we didn't point that out. Right. I want to point out that you're not actually at Microsoft anymore.

28:11 Yeah. I'm not at Microsoft anymore. So there's no backgrounds baseball happening here. Like, you know, I'm not sharing anything that, that I know more about than anyone else at this point.

28:20 Yeah. Kind of going back to, if you think about the world of like microservices, because I kind of look at that as like everything that we've already done, just like existing on another level.

28:29 And I'm using that as an analogy when I talk about this microservice matrix, because with everything that you do, you have to make a choice. Right. So like I mentioned before, like, where am I going to store my state, my database? It's like, I have to make a choice. Right. Like, how am I going to do metrics and monitoring? I have to make a choice. How do I know what my services are? How does my DNS routing situation work? I have to make a choice. How does ingress work? I have to make a choice. How do I do publish, subscribe? Like I have to choose a thing. Right. And so now you're going to make a choice.

28:59 So you're sitting down having to like make some of these decisions about what's the right way for me to compose my app. And then also what are the right combinations of tools that I'm going to compose them with?

29:09 So if we come back now, now to the level of just talking about Python and .NET, again, it's a very similar thing where you could just say, hey, just give me the menu, right? The GUI, like file new block. And there's a thing. Or I can sit down and I could fine tune and optimize my application to perfection.

29:27 Or what we consider to run and work and have the right integrations of things that I wanted to have. And like I was saying, like, there's no wrong way. It's just a matter of like, for your business and what you're trying to do, like, what do you think makes the most sense?

29:41 Yeah. It certainly is an interesting difference. Now, I do think there are more opinionated paths, we would call them in the Python world that you can choose. For example, you could say, and many people do, like, let me just use Django.

29:57 Sure.

29:58 Right. And you choose Django, it's very much this sort of holistic, click together stack that we spoke about, right? Like the data access layer is the Django ORM. The database is relational. You put it in something that could be SQL server, but more likely it's Postgres. There you go.

30:15 Yeah.

30:15 Right. But I personally very much appreciate the ability to look at all those options and go, no, no, for this one, I want to use FastAPI and Beanie rather than Django and Django ORM.

30:26 And that's what I'm saying, like, depending on what your goals are. So I know for you, you have your top Python websites and your courses, and I believe you all have a mobile app too, right?

30:35 Yeah, we do. That's actually Xamarin. Shout out to the shirt, man.

30:38 I didn't know that. That's cool.

30:39 The APIs are all Python, but the front end, like, mobile app itself is Xamarin.

30:43 It's all Xamarin.

30:43 Okay.

30:44 Yeah.

30:44 So, like, for your web experiences, like, you already know in your mind what your objectives are. So you're like, okay, I'm going to use this database and this caching thing and this thing because I need them to work this way, right?

30:56 Because the thing with having opinions, it's always great to have opinions, but when sometimes someone's opinion just doesn't line up with what you're trying to do.

31:06 But then on the other side, you know, sometimes there's just too many opinions, right? And so now you're like, oh, man, can I choose this or this or that or the other?

31:12 Yeah.

31:12 Like, what's the right puzzle piece for me?

31:15 There's opinions and then there's opinions within a context, right? And there's a very popular article that keeps getting passed around and around. And I'm sure I'm somewhat to blame for this. It's like the title goes something like, you're not Google, you're not Facebook, you're not LinkedIn, you're not Instagram.

31:30 So subtitle, don't design your software like they do.

31:34 Yeah.

31:34 Right. And opinions often mean, I believe this is how code should be written. If this is your general use case, right? And if your use case is really different from that, then those opinions might not just be someone else's opinion.

31:49 They might actually be wrong because they were formed for another situation. I, I believe you're having a relational database and around 100,000 or fewer users a day. But if, if it's significantly different in some other direction, then maybe you should make different choices. Right. And having that flexibility is awesome.

32:05 Yeah, for sure. For sure. And then kind of going back to like what we were talking about a little bit earlier with the tooling, like, like once you've made those choices, now you have to make a choice of like, well, what's the thing that I'm going to build it with?

32:18 So again, on the Microsoft side, you have Visual Studio, which is like a kitchen sink of stuff. So I could, I could look at my databases, I could look at my deployments, I could build, deploy, debug, analyze memory dumps and all these types of things. Right. Again, like big thing.

32:32 Or on the other side, we probably might want to do like some more command line tools, or we might want to grab like a bunch of different tools and kind of put them together. Again, all depending on like what we're trying to do with our use cases. And I think with that too,

32:46 what you notice is that like the culture of either side of those of those languages is a little bit different. So I will tell you as a dotnet person, automatically, it is ASP.net. It is any framework, and in a SQL server, automatically. I mean, I'm not going to say 100% of the people do it. But I want to say,

33:04 a lot of people do that, right? That's the default. But I'm sure on the Python side, like the culture is probably different, right? It's probably a little bit of Mongo or Postgres is probably a little bit of

33:14 Blask or Django and probably now FastAPI, because I know that's another popular thing.

33:18 And, you know, whatever other tool they put on top of that, whether it's PyCharm or VS Code, or I know a lot of you, people love them, right? I know you've had a lot of them folks on the show, right? So it could be that too, right?

33:30 But that culture is different. You know what I mean? And so like the expectations about like how software is built is going to just be totally different.

33:38 Yeah. When I opened this segment, I said there were two things that were closely tied together. We covered the one, I think a very similar related parallel here is developers often in the Microsoft space, my experience I've had interacting with them is like, if it's not recommended by Microsoft, or the .NET team or whatever, I don't want it.

33:59 If it's not the product story or the company story that you should use this framework or that, then even if the other one might be better, might not, like it's just, they just don't want to consider it.

34:10 Yeah.

34:10 Which I think is an interesting angle. Like it's very much at odds with the, you have a thousand choices.

34:15 Yeah. For me as a .NET developer, before and during and now after Microsoft, like that's one of those things that's such a hard habit to break.

34:24 Yeah. Do you agree with my assessment?

34:25 I agree with your assessment 100% for sure.

34:27 Okay.

34:28 And I think it's something that particularly when you're living in an open source development world, like all of us are, you know, majority of us languages and tooling and stuff are open source.

34:38 We have to be able to, like developers still have to develop.

34:42 You know what I mean?

34:43 Like, and you can't really expect things to always be given to you all the time.

34:48 So when I say that, I mean like, just because company X doesn't create a thing for you, doesn't mean that there's not a ton of other great options available.

34:57 But again, the culture or the way that .NET developers have been raised, right? If you think about them as, you know, evolving over time.

35:06 Growing up through their career.

35:07 Growing up through their time.

35:08 And the way that they have been raised is that like, I'm going to open Visual Studio on Windows and whatever's in the box. I'm going to use that. I might be one or two or other two other things that like, I'll use. But those things are usually recommended.

35:20 When we think about like JSON.NET as an example, those things are usually recommended from the box.

35:27 And then not going to use that.

35:28 Right.

35:29 They might actually be third party, but they end up getting installed anyway.

35:32 Exactly.

35:32 Right.

35:33 Like a pip dependency effect.

35:35 Like a pip dependency or something like that.

35:37 Or I don't know if you remember back when ASP.NET MVC was a thing.

35:40 Like the first version of it, like it shipped with jQuery.

35:44 And so anytime you did found new project MVC, like you automatically, you had jQuery, you had jQuery validation.

35:50 And I think there was a couple other libraries that were in there.

35:52 I think jQuery UI maybe might've been in there or something else like that.

35:55 Right.

35:56 Yeah.

35:56 But again, like these are the things that like just come out of the box with that, that style.

36:00 And I think what happens with that now is that, and again, this is my opinion, I think it hampers innovation.

36:08 Because now when I look at the Python side, we joke about, oh my gosh, like there's a new Python web framework like every other year or every year or whatever the case is.

36:15 But I could also look at that and seeing, wow, like people are so invested in this ecosystem that they're constantly trying to make it better.

36:22 And they're constantly trying to like pull resources together to create new experiences to improve developer productivity.

36:29 Not to say that people are not trying to do that on the Microsoft side.

36:33 But what I'm saying is that like, if it's not in the box, people are like, I'm not messing with it.

36:37 Versus on the background side, it's like, we'll just make it.

36:39 Sure.

36:39 The realm of possibility is wider.

36:41 Yeah.

36:42 We'll just make it.

36:42 Well, we'll make it together.

36:43 We'll open source.

36:44 And if people like it, now we'll start a community around it.

36:47 And now it's a thing, right?

36:48 Again, like FastAPI and Pedantic and Sanic and like some of those other things that have come up recently.

36:54 Absolutely.

36:54 Okay.

36:55 So one of the things I did want to talk to you about here, I think that's really interesting.

37:00 And FastAPI is a good example of it.

37:03 FastAPI basically exists because as you mentioned, Pedantic and some of the new language features of Python 3, 5, 6, 7.

37:13 You know, the somewhat enforced typing information, data classes, those kinds of things.

37:20 The async and await.

37:21 So these are now possible.

37:25 These are these new experiences that can be created from the language.

37:30 But one of the really interesting things about languages, places like C Sharp, or we could just as well say Swift and Apple or other languages, is there's a team of people whose job it is to work on the language.

37:46 Which I think is really interesting.

37:49 It has some very good positives.

37:50 Like there's people who are constantly focused on it.

37:53 I mean, we have the core devs, but they're kind of more broadly focused.

37:55 And sometimes that means the language.

37:56 But in the .NET space, that means the language is always changing.

38:02 Maybe if it doesn't even need to.

38:04 That's my statement.

38:06 You don't have to stay behind that if you don't want.

38:07 But I feel like there's people who are working there.

38:09 And every year there's a new version of the language.

38:12 If there's no new keywords, then what's their job about?

38:15 Yeah.

38:16 So for folks that don't know, .NET as an entire product and family of things has gone through changes over time.

38:23 So when Michael and I first started doing .NET, it was .NET framework.

38:26 And then over time, it became like...

38:28 Back in early 2000s.

38:31 Yeah, for sure.

38:31 And then it evolved into what today is known as .NET Core.

38:35 And I think .NET Core went from 1.1 to 3.1 or something like that.

38:42 Right?

38:42 And then after that, we skipped a number.

38:44 We skipped 4.

38:45 Right?

38:45 I don't know why we skipped 4.

38:46 But we skipped 4.

38:47 And then we went to .NET 5.

38:48 Not .NET Core 5, but just .NET.

38:51 Right?

38:52 So we had .NET Framework.

38:53 We had .NET Core.

38:54 And now we just have .NET.

38:56 Nothing else after it but the number, right?

38:58 .NET 5.

38:59 And what's happened over time now with .NET 5 and 6, 7, and until they decided to call it something else,

39:06 what's happened right now is that it switched to like this yearly release cycle.

39:11 And I'll be honest with you, I don't know how I feel about it yet.

39:13 We're looking at .NET 7 coming up in November.

39:17 So it's really only been, you know, 5 and 6.

39:19 We've had two versions that have been on this yearly release cycle.

39:22 I don't think that's enough time for me to like feel like, you know, see how I feel about it.

39:27 See what the actual effects of that are for sure.

39:28 Well, my initial thoughts are, I don't think we really need to release that quickly.

39:32 Because like you said, one, how many people are going to update every year or even every two years?

39:38 You know what I mean?

39:40 And then as you're pulling out these new features, I often have to think about, well, who is this for?

39:45 Because if one of the goals of your language is adoption or if it's growth or if it's how do I bring new people in by adding new features,

39:53 I can tell you regardless of how many features you add to make it easier, when they go to work,

39:59 they're going to end up in a code base that's going to be 10 years old.

40:03 With three flavors of Lambda expression, that three flavors.

40:06 And it's going to look different and it's going to feel different.

40:09 And their experience is not going to be hello world or a to-do application.

40:15 And so now like the minds, like the mental efforts.

40:18 So now you kind of like have to exist in multiple worlds.

40:21 Like, oh, here's the new cool stuff.

40:23 And if you're lucky, maybe you start in a company that's doing the new cool stuff.

40:27 Or here's like the framework stuff or the older tooling or here's this older version that's, you know, still kind of new,

40:34 but still doesn't have like the things from like six or seven.

40:38 And it's like, well, if I am considering myself a language X developer, how many of these new language features do I need to know?

40:46 It's a really good question.

40:47 I mean, let me just give a little bit of background for people who obviously most people listening probably don't work in C Sharp.

40:54 But C Sharp, like Python, has a way to express properties.

40:57 Honestly, C Sharp's way is way better than Python's.

41:00 There is a way to do Lambda expressions that's very similar across both languages.

41:05 But if you look on the C Sharp way, there's how many ways are there to do properties?

41:09 There's at least four.

41:11 There may be five different pieces of language syntax to accomplish effectively the same thing.

41:17 And there are benefits to argue on some of the newer ones, but so much so that there needs to be a fourth, not just three ways to do it.

41:23 You know what I mean?

41:24 Like there's a lot of overhead.

41:26 And my feeling is that the language looks that way because it's a product and there's a team whose job it is to continue to work on that product.

41:34 Whereas like in Python, if it doesn't make sense to add it, there's nobody whose yearly review doesn't look so good because they didn't add a new way to do properties.

41:43 Yeah.

41:44 And I agree with you.

41:45 I think that's another thing that I feel like I ever really appreciated about the Python ecosystem.

41:49 Because Python also has like a scheduled cadence of release.

41:54 It's not like, yeah, yeah.

41:55 And it's yearly as well now.

41:56 And it's not like Python hasn't updated the language in like six years or whatever the case is.

42:00 Like you said, like there's async await and, you know, there's new operators and things of that nature.

42:05 But I always find like the additions to language, I think with the exception of maybe type hints, I think that might be a little bit more in your face for a lot of folks if they decide to use it. But if you look at some of the other language features, a lot of the times it happens in the core library and not so much so on the language surface. And then the few that happen in the language surface.

42:25 Yeah, or some package, but you don't have to know about it to consume it, something like that.

42:30 Right. And then the things that happen on the language surface are usually very subtle, right? Like we'll have a whole version and they might add like one operator, right? Or you might add like, again, like a sink away, like we've just added. I mean, it's not really one keyword. It's kind of one keyword. It's one feature. But like, I've added this one big feature, but there's tons of other little fixes in the library and not necessarily like what the syntactic structure of my application looks like.

42:54 And so I kind of feel like, like if you're on modern Python, I'm going to use a term you use, right? If we're on modern Python, and you're, you know, 3.4 or 5 and above, I'm sure when you hit Python 3.9, it's going to look the same, it's going to feel the same, it's going to work the same.

43:09 Yeah.

43:09 Might be some extra things, but you could probably ignore it if you don't, if you don't need it. But then, you know, you should be able to be functional and not have to think too much about like, oh, okay, how do I like plug this thing into this thing? And then, oh, my thing is not compiling anymore because I don't have the old, I don't have the new version, even though I'm not using the new version features and all of that.

43:30 Yeah, it's interesting. And I think that, you know, we use a language as an example, but I think that influence happens across different many things, across like the web frameworks, across the database, across the tooling and so on. All right. A couple of thoughts from the audience here.

43:43 Oh, yeah.

43:43 A lot of people.

43:43 Mr. Hypermatic says, hello, looking sharp. See what I did there? It's loving the shirt. And then Christopher Tyler has a more actual question here. Are the contributors to .NET primarily people who work at Microsoft? Is that the same for C Sharp? Like, what's the open source story on that? So we know in Python, like, there's the core devs, and then there's the sort of everyone else layering, but that's not nearly as extreme as employee, not employee.

44:09 Yeah, I can't talk to the percentages in terms of like, what percentages is Microsoft and what percentage is not. But I can tell you that now that it is open source and it's on GitHub. I mean, there's a tremendous amount of folks that do not work in the company, that not only contribute fixes, but also submit proposals for new features and like all these types of things.

44:29 So I think if you go to, let me see if I can open it up. I think if you go to GitHub slash .NET, and I think if you go to .NET slash C Sharp, I'm not mistaken. No, it's not .C Sharp. It's a, there's a language proposal thing. I don't remember what it's called.

44:44 Runtime, maybe?

44:46 It might be in the runtime. There's a repo in here that you can essentially, you can essentially like submit proposals whenever there's a new version of C Sharp that's coming out. Or, you know, if you want to know, okay, well, I want to, maybe we should change how interfaces work or how do we add records or whatever it is.

45:03 Like there's, there's a repo in here that you can do that. I don't remember what it is at the time. I probably should.

45:07 But what I'm saying is that like, as a person that does not work in the company, you can have like that level of influence and you can have a whole discussion about, hey, this is why I think this is a great feature.

45:17 This is how I think it should look and behave. And this is how I think it would work with some of the existing features that are ready in the language today.

45:25 I love that because that means that now you don't work there. I don't work there. We all don't work there, but we can have like a very open and honest discussion in the public because again, it's on GitHub unless they delete it. But they don't, they don't do that.

45:37 They don't do that.

45:37 It's not like they own GitHub. Oh, wait a minute.

45:41 Uh-oh, uh-oh.

45:41 Well, you see what I'm saying, right? Like you can have that open discussion about like, okay, well, these are some of the things I think make a lot of sense.

45:49 That's really good. And it's certainly a big change that's happened over the last five years there.

45:54 I found it. It's .NET's has C Sharp Lang. So it's not just C Sharp. It's C Sharp L-A-N-G. Yeah. So if you go there, you should be able to, again, it's the language design repo.

46:05 Oh, yeah. The active C Sharp language feature proposals and meetings. And yeah. Interesting.

46:10 Yeah. And I mean, some of those meetings are, they're public on their online. I know Emo. Emo is one of the folks that work on C Sharp in the runtime. Like they do API reviews and all these types of things, live stream it. I don't know if you've ever said that in an API review.

46:24 It's not the most page churning thing to sit down in a lot of computers. But you could have. You are.

46:30 But if you wanted to, like if you're interested in that, if you're interested in language design and compilers and API surface design and those types of things, I think those are great things to do.

46:40 Because I honestly can't think of any other ecosystem that really does that.

46:44 From the perspective of like reviewing the actual API in the public, which I think is a great thing.

46:49 Yeah. One of the things that's interesting about in the public is I try to listen to all sorts of different podcasts and try to keep my finger on the pulse of sort of where technology companies and programming languages and stuff are going.

47:03 So I listen to some Apple podcasts, some Microsoft podcasts, and of course, Python podcasts.

47:08 One of the things I find interesting is when you hear the Apple podcast people talk, it's always about speculation and rumors.

47:17 And there was this leak and there's this thing.

47:19 And what will we get?

47:20 You hear the Microsoft people talk and like, oh, there's a hint of this code word, this project.

47:24 And I think this is happening.

47:26 If that's absent in the Python world, right?

47:29 There's none of this like sort of fortune telling surprise of what's going on.

47:35 I think that's also a big thing that people coming from either the .NET or the sort of Swift space over to Python is that we know really far in advance what's coming and what's not.

47:49 And the more of the fortune telling side happens to land on, well, of these thousand flowers that represent web frameworks, which one do you think is going to continue to gain popularity?

47:59 Right.

48:00 Yeah.

48:00 In that sense.

48:01 That's a pretty big difference to the ecosystem.

48:03 Yeah.

48:03 I think it kind of goes back to what we were talking about before, right?

48:05 In terms of culture, right?

48:07 Like the culture of Python has always been like an open project that we all kind of work on together versus, okay, here's a product from Apple or Microsoft.

48:15 And I'll date myself a little bit.

48:17 Like I remember when you used to have to wait until like magazines came out to like learn about like beta features that have like the little CD in the back.

48:26 Yeah.

48:27 Yeah.

48:27 You might go to a conference or I don't know, go, I don't know, Barnes and Noble or whatever.

48:30 And there'll be a CD.

48:31 Macworld or MSDN or any of these things.

48:34 Right.

48:34 Like there'll be CDs in the back of magazines.

48:36 And that's how a lot of developers back whenever used to be like, oh, okay, this is what's coming out.

48:43 Like, and you'll read about it, right?

48:44 That there wasn't like a YouTube, like YouTube wasn't a thing for like developer videos and, you know, live streaming, all these things that we do now where we can get more immediate feedback.

48:54 Like, you know, it was the magazine's going to go out.

48:57 But then think about it.

48:57 Like how long does it take to print the magazine, press the CD and put it out?

49:01 Like how many things have changed in the product?

49:04 Does that act?

49:05 Right.

49:05 And how far, far back is the editorial schedule versus the writing versus that's months.

49:10 Right.

49:11 It could be months, right?

49:12 So by the time you get that CD, what's actually in the product on that day might be like two months difference, right?

49:20 Like you could have changed all kinds of stuff.

49:22 But what I love, again, about like the culture of where Python has started, like the feedback mechanism is so much faster.

49:28 And it's been like that by default.

49:30 Yeah.

49:30 You know, we're talking about .NET and Microsoft, but like you said, it could be Swift, it could have been Java or whatever the case is.

49:36 Now as these things become open source, now they're understanding, okay, well, like let's shorten the feedback mechanism.

49:41 Let's get more immediate responses on things.

49:44 You know, let's allow folks to like download them and try them out.

49:47 Let's have students that are doing language design and programming language theory, like try our bits out and like work with us and talk about like, oh, okay, well, I learned this in class.

49:58 Now I'm seeing it over here.

49:58 I understand how this works.

50:00 Like let's kind of collaborate a little bit closely together.

50:02 Yeah, it's certainly is a different way of working on it.

50:06 You don't have to wait until the one thing has been released.

50:10 Yeah.

50:10 I was contacted by a guy who was interested in making some proposal around APIs and Python and said, here, I want to propose this PEP, this way of changing Python officially for a new API.

50:25 What do you think about this proposal?

50:27 Well, this is cool, but really, I think the best way to do it would be just make a package that accomplishes the same thing, show that there's traction around it.

50:36 And then you could talk about bringing it back in and sort of like grow it up through the community.

50:41 And if it shows enough value, then all of a sudden you should have this conversation about should it be officially a part of the thing, which is almost the reverse of what you're saying.

50:51 Yeah.

50:51 Again, the thing about projects and products, right?

50:54 Like when you have a product, I'm going to assume you probably have a PM and your PM is probably going to do user research.

51:00 And they're going to do it.

51:00 I bet your PM has a PM.

51:02 Your PM probably has a PM, right?

51:03 To manage all the other PMs.

51:04 Right.

51:05 But what I'm saying is like when you're a product, you have resources financially to be able to do user studies and talk to customers directly and set up meetings and gather analytics and like all of these really cool things, which is great that you could do that.

51:19 But when you're a free open source projects, like what, like your resources, your community, right?

51:25 So like you said, like sometimes you just have to kind of like build up that culture of, hey, well, hey, we're going to release a new version to do switch statements in Python, right?

51:35 Or pattern matching or whatever the case is.

51:37 Yeah, exactly.

51:37 Like let's make it a library first and evolve it into something a little bit more substantial.

51:42 And if people are like, yo, we love this, maybe now like that could become a feature.

51:47 But the downside of that being, again, we don't, you know, there's no money engine behind of it.

51:53 That might take a little while.

51:54 That might take like two or three or four versions before that actually happens.

51:58 Or it might never happen if no one cares enough.

52:03 Someone who's actually a contributor to the project doesn't really, you know, they don't care enough.

52:07 But somebody who's using it, they might really care.

52:11 But it's not going to get there because there's sort of a mismatch and capability of changing it.

52:15 You know, I think one of the big things that's changed recently for us over in Python is that we've had this thing called the developer in residence.

52:24 Which Microsoft, Google, I think also Facebook, which I call the meta.

52:29 I think those three groups, hopefully that's right and exhaustive, have contributed a bunch of money through sponsorships to actually fund one or currently one, but possibly more than one person whose job it is to just sort of work on Python around all the rough edges.

52:46 And that might sound like the language rough edges, but what I mean is like people are submitting PRs or feature requests and nobody has time to really review the PR.

52:55 Like sort of almost project management plus development to just kind of like be the glue that keeps the community working together.

53:02 And I think that that's actually making a big difference.

53:05 That brings it a little bit closer to these things.

53:07 There's somebody whose kind of job it is to bring these features in.

53:11 Yeah. When you think about, again, a project evolving into something really substantial, right?

53:18 Like, and I look at Python as an extremely substantial project.

53:21 At some point, like you're going to need support, right?

53:24 Because now there's like a lot of things that need to get reviewed or fixed or discussed and talked about.

53:30 And like, whose time is that?

53:32 Right? Like who's going to do that?

53:33 Right. But like now when the project is at the point where, well, my business needs this thing to run.

53:39 So you better figure it out kind of thing.

53:41 At that point, like that's why it's so important for like, you know, not even just major corporations, but all of us that use it to find a way to like contribute in whatever way that we can.

53:51 You know, obviously for bigger companies, like again, they could, you know, they could sign the check.

53:55 But for us, can we go ahead and have those discussions and talk about, well, hey, well, these are really useful features that it's useful because of this reason or because of these use cases.

54:04 Or these are scenarios that would help us be more productive, right?

54:09 And again, not just say I want stuff.

54:11 Well, let's have a practical conversation about like, how is it going to make everyone better?

54:16 Right?

54:16 Right.

54:17 There's a whole spectrum of that, right?

54:18 Like it could be just communicating with the project over issues and stuff to say, this is really important.

54:25 Here's our use case.

54:25 It could be, hey, I could actually make a PR on this and contribute a PR to a project you care about.

54:31 Or it could just be, I'm going to write a tutorial because this is really hard to get started with.

54:35 Right?

54:35 There's not, or even just documentation with examples.

54:38 Yeah.

54:38 And you bring up a great example of documentation, right?

54:41 Like I know this is such a cliche thing to say because we've been saying it for years.

54:44 But documentation is such, I don't want to say easy, but it's such a great way to get started in open source, in any open source project.

54:53 Because I'll tell you the folks that are writing the code probably don't have a lot of time to write documentation.

54:58 Yeah.

54:58 And they might not have gotten into the project because they love documentation.

55:01 They might have got in because they really wanted to write the code.

55:03 Right.

55:03 You know, when we think about projects, like just like how every language is good at specific things, people that work on projects are all good at very specific things.

55:13 Because I'm a good engineer doesn't mean I'm going to be a good manager.

55:17 And just because I'm a good engineer doesn't mean I'm going to be a good docs writer and vice versa.

55:22 You know what I mean?

55:23 I might be able to tell you how to do it.

55:25 But the way I communicate that to you, you might be like, yo, dude, I don't have a PhD.

55:30 I don't understand anything you just told me.

55:32 Right.

55:33 Versus like, okay, someone that could kind of sit in the middle and translate.

55:37 Not that we're translating languages, but like, you know, hey, how can I package this in a way?

55:41 How can I put this forward in a way that just makes it more digestible by whatever particular audience of folks that I'm trying to reach out to?

55:49 So again, if we're talking about students or folks in startups or big enterprise companies, like what are the things that are important to them?

55:55 And then how can I communicate that to those people?

55:56 Yeah.

55:57 But again, absolutely.

55:58 You know, when you're a big company, like you could pay for that.

56:00 Like you could pay people to do that.

56:01 Like when you're not.

56:02 You say it's now your job to do this thing and you better do it because you have a manager.

56:07 Yeah, exactly.

56:08 Exactly.

56:08 Exactly.

56:09 Yeah.

56:09 All right.

56:10 We're getting short on time here, Cecil.

56:12 But I do want to talk about one thing that I really admire about the .NET space.

56:17 And I think the reason I admire is I, among other reasons, is I think it really has a lot of relevance for Python people.

56:25 And that is the whole Blazor thing.

56:29 Oh, yeah.

56:30 It's Blazor.

56:31 Is it Blazor.net?

56:32 So one of the things that they did over at the .NET side is they came up with this idea of like a standard core.

56:43 And I've sort of taken a little, an inner essence of .NET that like this is the thing that we should have available everywhere.

56:50 And then there's a bunch of stuff that's irrelevant in certain situations.

56:54 Like, do you really need a UI GUI framework when you're on like a fridge?

57:00 Maybe do that.

57:00 Or, you know, like you're running just as a backend service on Linux.

57:04 You really need a UI framework for that, right?

57:06 And so out of that, to some degree, came Blazor, which is basically the runtime plus the language in the browser.

57:16 And we have that really, really close in things like Pyodide and the core developers have been building CPython really recently for WebAssembly, which is amazing.

57:25 Difference here is this framework has a front-end framework on top of it that is like Vue.js or React, but in C Sharp on the browser.

57:38 And do you want to just riff on that a little bit?

57:40 I think if we had something like this in Python, I mean, this is basically how do you not have to write JavaScript on the front-end and have something really cool in your language and your runtime.

57:51 Yeah.

57:52 Yeah.

57:52 So kind of like what Michael just said.

57:53 So Blazor is the equivalence of React or Vue or Angular, but it's .NET for .NET developers.

58:03 And the cool thing about it, so I guess just a little bit of a backstory.

58:06 So Steve Sanderson, I believe is how you say this last name.

58:09 Yeah.

58:10 So he did a talk at NDC, right?

58:12 One of the NDC conferences where he showed how you can compile the .NET's runtime, right?

58:19 The actual, you know, thing that runs in a virtual machine, right?

58:22 Kind of like what Java does.

58:23 The .NET runtime to actually execute a WebAssembly, right?

58:27 And most modern browsers have like, you know, WebAssembly enabled today.

58:32 So again, assuming that you update your browsers, put them on auto-update, like you shouldn't really have to do a lot to just get that kind of stuff to work.

58:39 And so now that means, okay, well, if I can ship the runtime into the browser, that means I can run the language in the browser, right?

58:46 Which is really cool.

58:47 And so what Blazor Canada is, if you're familiar with .NET and you know what Razor syntax is, like from MVC days.

58:56 It's like a Jinja for us.

58:58 Right.

58:58 It's like a templating language, right?

59:00 Like if you understand how that templating language functions, which is essentially C-sharp in code.

59:04 Just like you said, like Jinja is Python and code, right?

59:07 It's Python and HTML, right?

59:09 So once you understand how that world works, now you can take those existing skills that you have and now you could write components that run inside of the browser.

59:18 And they're 100% in the browser, right?

59:20 Because now the runtime, you've just shipped the runtime, kind of like you would like a JavaScript file, like jQuery or whatever the case is, or your web pack bundle the thing, right?

59:29 You build it and you send it to the browser.

59:31 Also now it kind of runs there.

59:33 So that means, and sometimes people don't believe this, but what that means is that you could turn off the internet, right?

59:39 And then your app is still functioning, right?

59:41 Because the functionality is living in the browser inside of Blazor, which I think is really cool.

59:45 I think this is really cool.

59:46 And I don't really care that much for this type of app, say as like in my website, although I see uses there, but Electron.

59:55 You know?

59:57 Right?

59:57 Like if you could get something really rich like this and then turn it into a proper way to ship rich applications that are either progressive web apps or Electron.js apps, then you get a whole new avenue of types of apps that you can write that you wouldn't otherwise be able to.

01:00:12 So one of the things that the .NET team promised that was going to come out this year, hopefully comes out by the time build happens in May, is .NET MAUI, right?

01:00:21 Like MAUI, M-A-U-I stands for multi, oh my gosh, Microsoft application UI.

01:00:26 Oh my gosh, I don't remember what it is.

01:00:27 But whatever it is.

01:00:28 User interface?

01:00:29 I don't know.

01:00:29 User interface thing.

01:00:30 But essentially, MAUI is a way that you could write applications that exist across a lot of different places.

01:00:36 So if you think about like macOS desktop, Windows desktop, Android, iOS, those types of things.

01:00:42 But I could have like the single code base.

01:00:44 Kind of like Xamarin Forms, but like Xamarin Forms, the new like VNX kind of thing.

01:00:49 I bring that up because one of the things that they promised that we could do in MAUI is have a Blazor view, which essentially is Blazor running in MAUI.

01:00:58 So that means that like if I write a thing in Blazor, like my Blazor components that run on the web and do the thing, that means that I should be able to have that code exported and like embedded inside of an app.

01:01:11 And now that app could run across all those other places as well.

01:01:14 Right?

01:01:15 Interesting.

01:01:16 Think about the right once run anywhere thing that we've been chasing for decades, right?

01:01:20 Like we can write the thing in Blazor if we wanted to.

01:01:23 And now it can run not only in the web, but it can run on mobile.

01:01:25 It can run on desktop.

01:01:26 Not just Windows desktop, but also macOS desktop.

01:01:29 Mobile even.

01:01:30 The dream of mobile.

01:01:31 Yeah.

01:01:31 iPhones, iPads, Samsung tablets, and like all those kinds of cool things.

01:01:36 Yeah.

01:01:37 Absolutely.

01:01:37 All right.

01:01:38 Well, I think we have to leave it there for our main topic, Cecil.

01:01:42 But I feel like we have so much more to talk about.

01:01:44 Like that was so, that won't buy so quickly.

01:01:46 Maybe we'll come back and do another follow up episode.

01:01:48 People have a bunch of questions or something.

01:01:50 Yeah.

01:01:50 If folks want to know part two, they should let us know.

01:01:52 Leave a comment on the show or whatever the case is.

01:01:55 Yeah.

01:01:55 Yeah.

01:01:55 Don't bug Michael on Twitter.

01:01:56 Mostly the best place to leave comments is on the YouTube live stream.

01:01:59 Okay.

01:02:00 I turned off the comments on the episode page because they were forcing a bunch of third

01:02:06 party tracking onto our users.

01:02:08 And I'm like, ah, I really don't want to have cookie pop-ups and all these things.

01:02:13 Yeah.

01:02:13 And I'll just, yes.

01:02:14 Anyway, no more comments on the episode page, but on the YouTube live stream.

01:02:18 Absolutely.

01:02:18 Before we get out of here though, if you're going to write some code, I guess at this

01:02:22 point, it almost doesn't matter the language of C# or Python.

01:02:25 What editor are you using?

01:02:26 I pull out VS Code by default only because, again, I like, I like to focus.

01:02:32 You know what I mean?

01:02:33 And then if there's one IDE that can support multiple languages, like that's what I'm going

01:02:37 to do.

01:02:37 So VS Code is where I'm going to go.

01:02:39 Cool.

01:02:39 Cool.

01:02:39 And I don't know if you have anything off the top of your head, any Python libraries

01:02:43 you want to recommend?

01:02:44 Have you come across any?

01:02:45 You know, I'll be honest with you.

01:02:46 I'm sure folks know about this already, so I'm not going to say anything different, but

01:02:49 I really want to learn about Scikit-learn.

01:02:53 You know, it's a machine learning.

01:02:56 Library, like I'm sure most of your listeners already know about, but I personally haven't

01:02:59 played around with it.

01:03:00 I personally haven't spent too much time at all in that machine learning space.

01:03:04 But I figured this day I want to try it.

01:03:06 Yeah.

01:03:06 I haven't either.

01:03:07 It seems so magical.

01:03:08 Like if you could crack it, you'd be able to build just amazing things, right?

01:03:11 Yeah.

01:03:12 Yeah.

01:03:12 Yeah.

01:03:12 Yeah.

01:03:12 So I've been playing around with just like doing data visualizations and stuff like that

01:03:16 with things like Seaborn or Matplotlib.

01:03:18 That's just me having data, wanting to draw like charts and graphs.

01:03:22 What I actually want to do is like analyze some of that data using like some of those

01:03:26 machine learning libraries.

01:03:26 And, you know, I figured learning a little bit of machine learning is not a bad idea, right?

01:03:30 And I think that's one of those places that Python really shines.

01:03:34 The ecosystem that it has within Keras, I think is what one of them is called.

01:03:39 And you think about PyTorch, you think about all the other really cool data analytics and

01:03:43 machine learning libraries.

01:03:44 For me, like it's just automatic.

01:03:47 Like I'm going to go to Python and I'm going to do that.

01:03:48 Yeah, absolutely.

01:03:49 All right.

01:03:49 Now close us out, you know, especially speaking to the .NET people who I may have dragged into

01:03:54 this episode, they're thinking of Python.

01:03:58 Maybe they'll try it out.

01:03:59 Maybe they won't.

01:04:00 What would you tell them coming from their C-sharp background?

01:04:02 If you look at one of those old, older Stack Overflow surveys, they'll always say like

01:04:07 Python is like the second language for a lot of C-sharp developers.

01:04:11 Because when you think about it, Python does a great job at allowing you to like execute

01:04:16 things very quickly, right?

01:04:18 And so for us, a .NET developer, if I need to analyze something, if I need to like, I don't

01:04:21 spin up a really quick web server and, you know, just do like some really quick things.

01:04:26 Prototype something.

01:04:27 Yeah.

01:04:27 Just put some data on the internet.

01:04:28 Yeah.

01:04:29 It's a great additional tool to have.

01:04:31 Now, it's more than just a tool.

01:04:33 But again, like if you're a .NET developer, that's your focus.

01:04:36 And you need something else to allow you to like move quickly, allow you to experiment,

01:04:40 allow you to kind of just like explore your world and kind of extend your tool belt a little

01:04:45 bit.

01:04:45 I think Python is a great option to do that with.

01:04:47 Right on.

01:04:47 Well, thanks for being here.

01:04:49 It's always fun to talk to you.

01:04:50 And it's been cool to sort of compare and contrast.

01:04:53 Sure.

01:04:53 Thanks for having me, man.

01:04:54 So I really appreciate it.

01:04:55 You bet.

01:04:55 Bye.

01:04:56 Bye.

01:04:56 This has been another episode of Talk Python to Me.

01:05:00 Thank you to our sponsors.

01:05:02 Be sure to check out what they're offering.

01:05:03 It really helps support the show.

01:05:05 Teams using Cast AI see an average of 50% or more savings on their Kubernetes clusters.

01:05:11 Your friendly cloud giant is making tons of money.

01:05:14 Don't send them more than you need to.

01:05:16 So why not scan your cluster to discover how much you could save?

01:05:20 Visit talkpython.fm/cast AI to get a free optimization report.

01:05:25 Want to level up your Python?

01:05:27 We have one of the largest catalogs of Python video courses over at Talk Python.

01:05:31 Our content ranges from true beginners to deeply advanced topics like memory and async.

01:05:36 And best of all, there's not a subscription in sight.

01:05:38 Check it out for yourself at training.talkpython.fm.

01:05:41 Be sure to subscribe to the show.

01:05:43 Open your favorite podcast app and search for Python.

01:05:46 We should be right at the top.

01:05:47 You can also find the iTunes feed at /itunes, the Google Play feed at /play,

01:05:53 and the direct RSS feed at /rss on talkpython.fm.

01:05:57 We're live streaming most of our recordings these days.

01:06:00 If you want to be part of the show and have your comments featured on the air,

01:06:04 be sure to subscribe to our YouTube channel at talkpython.fm/youtube.

01:06:08 This is your host, Michael Kennedy.

01:06:10 Thanks so much for listening.

01:06:11 I really appreciate it.

01:06:12 Now get out there and write some Python code.

01:06:14 I'll see you next time.

Back to show page
Talk Python's Mastodon Michael Kennedy's Mastodon