Podcast Lookup

45 - Computer Vision and Data Science with Python

The Python Show

  • June 20, 2024
  • 43 min
Episode page
About this episodeIn this episode, we welcome Kyle Stratis from Real Python to the show to chat with us about computer vision and Python. We chatted about…

In this episode, we welcome Kyle Stratis from Real Python to the show to chat with us about computer vision and Python.

We chatted about several different topics including:

* Writing about Python on Real Python

* Data science

* Artificial intelligence

* Python packaging

* and much more!

Links

* https://www.gradio.app/

* https://docs.aws.amazon.com/cdk/v2/guide/work-with-cdk-python.html 

* https://pynamodb.readthedocs.io/en/stable/ 

* https://kylestratis.com



Get full access to The Python Show at www.pythonshow.com/subscribe

Transcript

From the publisher

This transcript comes from the podcast’s own feed, shown as the publisher wrote it.

45 - Computer Vision and Data Science with Python

00:00—
  1. Speaker 4

    Welcome to a brand new episode.

  2. Speaker 1

    Mike Driscoll, The Python Show.

  3. Speaker 4

    Hello and welcome to The Python Show. I'm your host, Mike Driscoll. And today I am honored to have my friend Kyle Stratus from RealPython join the show. Welcome to the show, Kyle.

  4. Speaker 2

    Hey, thanks for having me.

  5. Speaker 4

    That's good to have you. I believe Kyle is a senior in machine learning. I'm going to get this wrong. Is it a scientist or is it an engineer?

  6. Speaker 2

    An engineer. I'm a failed scientist, actually. I dropped out of a PhD program in neuroscience to code more.

  7. Speaker 4

    Well, I think people who work with machine learning are still a scientist of some sort.

  8. Speaker 2

    Oh, yeah, definitely, especially when you're heavy on the research side. I've been kind of dipping my toes in that side of things lately.

  9. Speaker 4

    Well, that kind of gets us right into my first question is like, how did you get into machine learning or even being a data science type person? I mean, just kind of expound on that.

  10. Speaker 2

    Yeah, it's funny. I kind of fell into it through a lot of happenstance and luck and just kind of following what seemed interesting to me at the time. So I first got into programming, I think, like a lot of people when I was pretty young. I was probably 11 or so. It was a rainy day in a Florida summer. Can't go outside because it's too hot, rainy, humid, sticky, gross. So I was looking up prank phone calls online. Not even Google, so probably like AltaVista or something like that. And I found the Phone Losers of America, which was, among other things, they had prank calls, but they also had kind of old-school hacking, phone-freaking text files, things like that. And as an 11-year-old, you're like, ooh, this is fascinating. And I joined the forums and kind of got introduced to every sort of geeky thing I've been into since through those forums. So Ham Radio... like kind of the entire canon of sci-fi, of course, phones, computer systems, things like that. And along with that was programming. And I really enjoyed it. I really fell in love with it. I loved making my dad's laptop beat with some C program that I wrote at all hours and just drove him nuts. I would do mischievous things, infinite loops on the basic terminals in my middle school's computer lab, things like that. And then I went to college, studied electrical engineering. Didn't work well for me. Tried to get into computer science, and they were like, oh, it's too late. It's too popular of a program. So I was interested in brain-machine interfaces as well. So I went into neuroscience. And as I said in the intro, went to grad school. And in my lab, we were doing a lot of programming. My other lab mate had an MS in electrical engineering. So we did a lot of Arduino programming, all of our data analysis. We were coding, and I really fell back in love with it. Nice. Yeah, so I was like, I kind of rediscovered it, really enjoyed it. And I was like, you know, academic job prospects are really bad. So I'm going to kind of get out of this. And so I found I just kind of scraped and clawed my way to my first job, which is a kind of desktop enterprise application developer. And then I moved to Tallahassee, Florida at the time. There were a ton of jobs there. And after about a year and a half, I moved on to work at homes.com as a data engineer. And I was like, I remember walking into the meeting room to have my interview. They had their ETL pipeline all mapped out on a whiteboard. this is what I like to do. I was always obsessed with kind of pipelines, road systems, sewer systems. I played a lot of SimCity growing up. So that really kind of tickled my brain just the right way. And I was there for two and a half years. And then I got recruited to a startup in Boston called Patients Like Me. And most of my family's here, I'm originally from Boston. So I moved up here with my wife, January 2018. And just kind of dove into, it was a data engineering position at that time, especially. A lot of data engineers were working on what's now more commonly referred to as machine learning engineering where you're working like on an r&d team with people doing research level stuff you're productionizing it um you're putting it on the cloud you're building tools and infrastructure for them and so i was doing that um ended being a startup that lasted about excuse me a year and a half and uh So I went on to, after there was some layoffs that I dodged, and I went on to Effectiva, where I had this research infrastructure engineer role, which was just pretty much the same thing, just a heavy focus on building that research tooling and infrastructure, streamlining a lot of our processes. One of the things I was most proud of was our evaluation platform. I took our whole model evaluation process down from like, I think it took like a week of manual researcher work. down to a four-hour process. You can just run in the background, not worry about it, not lose any of your local machine resources. It's great. I loved it. It took a long time, but I linked up with someone a year later after I was laid off from there. They were like, oh, yeah, we still use this, and we love it. It's great. And that was one of the best compliments I think I could receive. Um, and so, but I just, this team, this research team was not, was computer vision and I got kind of deeper into that world. And then when I was recruited to work at visit, uh, where I've been for the last four years, um, it was getting even closer to that when I joined the visit, I think it was the second full-time engineer and higher. Uh, we were, I think eight or nine of us total. Now we're over 50, um, growing a lot. And, um, I got the opportunity to, you know, being that small, I got to kind of touch a lot of systems, build a lot from scratch and get really acquainted with our research workflows. Um, so that I could one build tooling for the research group and also, um, you know, I had to learn more about computer vision and what we were doing in order to really build for this group. And because we're a small team that I get pulled in on more kind of research tasks, building some models and, you know, reaching back, dusting off the cobwebs of my stats knowledge from grad school and all that. So it's, it's just been, you know, a lot of locking in somewhat targeting, but we, you know, I kind of went with the flow of things, went with, this seems interesting. I personally like doing this. Can I do it more? Or I had this opportunity to do it more or go a little bit deeper. I'm taking it, I'm going to do it. And that's what kind of led me into this.

  11. Speaker 4

    That's a cool journey. You know, I hear a lot of people talk about being a data engineer and some people say you only work with premade models and there's only like a handful of people that create their own algorithms. Do you find that to be true or do you actually spend a lot of time creating your own like algorithms and whatnot?

  12. Speaker 2

    Yeah. So we, we do a bit of both really. So a lot of like, we'll take, you know, premade models that let's say architecture, I think architecture is probably more accurate. And then we can, apply our data to it and use it in kind of a novel way to determine the things that we're interested in to figure out what we're interested in. So it's definitely a, the research side is definitely more applied than it is theoretical. A lot of that theoretical stuff I think happens at, you know, in university programs and larger, you know, the Googles and things like that. But at the same time, I think when you're in a tech startup that's doing something We call it visual analytics for brands, e-commerce. Basically, our customers upload their imagery to our platform and we can show them what we think a customer of whatever demographic they're interested in, how they might engage with that. And so we're bringing together a few different technologies and kind of the endpoints of research that have been done elsewhere while bringing in kind of our own novel way of using it and looking at it. So yeah, we're not making, you know, the new GBT or Lama, but we're, or even, you know, let's say a fish in that or anything like that. But we're using a lot of these technologies in a way that is novel and is exciting. And at least for me, what, is great for me because it doesn't require as deep of a math knowledge as some of my colleagues have. So it's a nice sweet spot for my background.

  13. Speaker 4

    Yeah, that makes sense. Cool. So what do you use for your Python packages and modules in your personal time or even at your job?

  14. Speaker 2

    Yeah, so I do a lot of work with the AWS cloud. So for the last three and a half years, I've been a very heavy user of Amazon's cloud development kit, which is kind of like library framework, all of that kind of wrapped together. And what I like about that is it allows me to kind of manage our infrastructure. I'm responsible for not only the code that I write, but where it gets deployed and how it gets used and things like that. And building those interaction points and CDK just makes that super easy to do. You can do Python or any other language you're comfortable with. It's declarative and it's just so much easier than using the console or even some of the more vendor agnostic frameworks that are out there.

  15. Speaker 4

    Nice.

  16. Speaker 2

    Yeah, I like that a lot. And in line with that, I also use Pynamo a lot, which is a Python wrapper for DynamoDB. We use Dynamo a ton. It's a great, really quick database to use for various things. And so I started using PynamoDB a few years ago as well. And it's just so much easier and less painful to write queries and kind of set up things. I hesitate to say it's an ORM, but to set up kind of objects that represent your items that are in the tables and things like that. So I love that project. It's been just a joy. It's one of those few that's like a joy to use. And then poetry is like, very much have a big need of organization to keep all my thoughts and projects and everything straight. Otherwise, it just becomes a big mess. And poetry has been really good for me for keeping my project organized and using kind of the same organization scheme throughout every single project. Because otherwise, I'd just come up with a new one every project because I'd forget what I did last time. And I really enjoy it. you're using that and it's just like, like the other two, it's just been such a major help and kind of force multiplier in my work.

  17. Speaker 4

    Yeah. That's cool. I think we just started using DynamoDB where I work, so I'm going to have to go check out, uh, Pinamo and see if it's makes things easier. Yeah.

  18. Speaker 2

    I highly recommend it. And, um, I've discovered a lot of different little hacks and things I've needed to use to, um, get the idiosyncrasies we have with our setup working well with Dynamo. So if we need a hand on it, let me know.

  19. Speaker 4

    I'm happy to help there. You mentioned Amazon. I can't remember what you called it. CDK. Yeah. Is that related to Boto or is that something different?

  20. Speaker 2

    So it's different. It handles all the infrastructure. So if you want to set up a new Lambda function, you can use CDK to declare the Lambda function itself and all of its... all the properties that you want to declare, whatever code it will run on that Lambda, what will trigger it, all that you can declare with CDK.

  21. Speaker 4

    Okay.

  22. Speaker 2

    Yeah, and it just kind of converts your Python into a Terraform script, which then it uses to actually deploy that infrastructure for your account. So, yeah, you can use it with Bodo 3. Some of the functions that Bodo provides, you... don't need um with so because you can you can set up like triggers from on the infrastructure side with cdk so you don't need to like manually always listen for event triggers and things like that like you might use with voto3 um but we still use it um very widely to do things like manually pull s3 files or whatever i think voto3 is still that even with cdk it's still definitely that utility knife that um it comes very much in handy oh good

  23. Speaker 4

    I'm glad to learn more about that kind of stuff, because I'm always looking for more tools that will make my life easier.

  24. Speaker 2

    Yeah, definitely.

  25. Speaker 4

    So I mentioned earlier that you have contributed to RealPython. How did you end up doing that, and are you still doing that?

  26. Speaker 2

    Yeah. So back in 2018, probably two weeks after I moved to Boston, maybe three, Dan had bought RealPython, or he somehow got it and put, he put out a call cause I was already subscribed to his newsletter, uh, for writers. And so I basically, since I started as a software engineer, I'd been, uh, writing small time blog posts. I take very copious notes on what I do because to me, every project is kind of an opportunity to learn something new. And, um, I will forget that something new if I don't write it down somewhere. Uh, so writing has been a very, very important part of, uh, my process from day one. And, um, So I was like, you know what, let me throw my hat in the ring and provide a few writing samples. And he liked it a few emails later and I was on the team and, um, yeah, I really enjoyed it. It was a great experience. And I hate to say that I don't contribute anymore. I haven't contributed recently just because I have a toddler. Now I have, um, you know, a lot of side projects and. I've signed consulting gigs and things like that, that there just isn't the time to do it as much anymore. But I do kind of stay in touch on the Slack and I reference real Python. That's kind of my preferred. If I have a question about anything Python, that's still kind of my preferred first landing zone. And so, yeah, I would happily contribute in the future if time ever comes. opened up, but right now, life is very hectic. But yeah, I definitely have enjoyed contributing to it, and the team has always been absolutely wonderful. They've done a great job assembling some really great people there.

  27. Speaker 4

    Yeah, I learned a lot from the different editors, including, I believe, you were sometimes technically reviewing my code. So it was just good to have that kind of feedback.

  28. Speaker 2

    Yeah, I will say my writing has improved so much more writing for real Python than any other thing I've ever done. Just all that constant feedback, that multi-stage editing process, it never feels fun at the moment to have your work really critiqued and you have to work really hard on it, but then you're like, well, this is actually a really good point and I need to kind of pull this into my regular writing practice whatever it is feedback's always been delivered really well and it's like i said nothing to but improve my own writing

  29. Speaker 4

    yeah i agree the process was sometimes a slog but it was worth it at the end

  30. Speaker 2

    definitely

  31. Speaker 4

    So now we'll go ahead and pivot back to machine learning. Maybe you could tell us some practical uses that you've seen for machine learning besides like chat bots, which seems to be the popular thing right now.

  32. Speaker 2

    Sure. Yeah. There's so many and it's sometimes it's so much in like the background of everyday things that we use. It's easy to forget. Credit card fraud prevention is largely machine learning, spam detection. That's one of the, usually one of the early examples of, different tutorials we'll give on things like binary classification. Is it spam or is it not? And then me being kind of more in the computer vision world, some interesting things there are like defect detection for manufacturing, being able to pick out anomalies and x-rays of whatever's being manufactured, counting items, something as simple as that as, you know, say an astronomer wants to know how many stars are in this patch of the sky or something. That's a great use for machine learning, where in the past that would be great use for like three or four grad students. So it makes everyone's lives a little easier. And a big one that's sometimes controversial is facial recognition. My most recent RealPython article actually is about building your own face recognition program with Python. And so those are just a few of the things. Any sort of audio recognition is done with machine learning. So Siri, Amazon Alexa, any sort of speech to text, that's all machine learning, too. It's a whole other subdiscipline dealing with phonetics and audio in general, but also how spoken language works and how we transcribe that to writing. So yeah, it's very much everywhere, even though certain segments get more hype than others at different times. And right now, the large language models and the generative AI is getting all that hype. In a couple of years, it'll probably be something else. And those other sub-disciplines will kind of keep on chugging along. We'll start taking chat GPT and all that stuff for granted. Just like we kind of do these other things that are now ubiquitous.

  33. Speaker 4

    Well, thanks for providing those examples because, you know, you get inundated when you go looking stuff up and it's like always the same like three things.

  34. Speaker 2

    Yeah, exactly.

  35. Speaker 4

    I'm like, well, this doesn't sound that interesting to me now because who needs another chatbot? Who needs another application that can determine red, blue, and yellow or, you know,

  36. Speaker 2

    Right, exactly.

  37. Speaker 4

    It's like really basic stuff. I'm like, this is kind of boring.

  38. Speaker 2

    Yeah, and some of it is, like, say, item counting. That is kind of basic. But within that, there's a ton of challenges and a ton of cool applications. I was recently working on a project to leverage that and some other counting samples of uh like malaria parasites in blood blood samples because right now you need a pathologist to do that they're in short supply and any sort of assistance we can do to get people uh to be able to be screened more efficiently especially in places where they don't have any pathologists is something that could you know save a lot of lives so there are things that maybe presented in the best way as like, hey, this is an example because they try to make it so simple that the example is not enticing. It's like the problem with math textbooks too, right? How am I going to use this? What does this actually apply to? These aren't real problems. It's too simplified or abstract that it's really easy to kind of miss the ways that some of these basic things could be applied. And I say basic you know, 10, 15, 20 years ago, this would have been, you know, pure magic. It's just, it's best. So, um, kind of a part of society now, and especially as technologists, like we see it so much that it's, and it's been made to, it's been made so easy to do that, um, We have all these pre-made packages, all this great tooling around now, especially in Python. It makes it really easy to miss some really neat applications that are either happening or could happen if we weren't stuck to a lot of these really simplified examples that exist in tutorials and things like that. So maybe I should write one for a really cool application one day.

  39. Speaker 4

    Yeah, you're making my own creative juices flow. It would be really cool to just write, even if you're just doing the really simple things, write a paragraph. This is how this simple thing you're going to learn is used in the real world.

  40. Speaker 2

    Right, exactly. And often the technique's the same. You're just applying it to different data. And maybe what I like about doing some of this applied research adjacent or applied research work is that you get to learn about new domains or domains that you knew maybe a little bit about, but not a whole lot. I've been in and around health tech and health sciences and things like that for a lot of my life. But I've never done anything with histology or pathology or anything like that. So being able to learn more about that, how that works, what's happening kind of in the field for people, and also the tooling that's used. So different microscope zooms have different features and different things that you have to kind of watch out for when dealing with these images and how that intersects with the technology you're using is really fascinating.

  41. Speaker 4

    That is really cool. A little over a year ago, I was interviewing with a, I can't remember what they're called right now. And it was a medical company that uses Python. And they had created a way for it to look at x-rays and MRIs, stuff like that. And it could help determine certain types of diagnoses. It was really cool. Go ahead.

  42. Speaker 2

    I was going to say, it's fantastic because those are really good instances of things that were kind of rapidly adopted. And they are a great example of something that I've been very adamant about in what I work on and what kind of things I'm interested in. And I think what a lot of the industry that isn't very loud on Twitter, like a lot of these influencers and things like that. But what a lot of the investors are really aiming for with machine learning in general is to augment, not replace. Because these are probabilistic machines, right? We can't get always accurate, like even blood tests and COVID tests, any sort of biological tests. It's kind of the same way. There's this trade-off of, in machine learning, we call it precision and recall. But basically the kind of errors you're able to kind of put up with. And so, because we have these probabilistic machines that work really well, they're never really going to replace, they never should replace people, let's say. They shouldn't fully replace a doctor or a radiologist or someone who has domain experience in context and things like that in understanding an MRI readout but what they can do is help find things that even in our eyesight we couldn't see they could find a small anomaly that a doctor would miss and they can assist that doctor in finding finding this and then interpreting because the interpretation is really the hard part and so I think having these these machines as assistive machines rather than you know oh we're going to replace all this labor or whatever with these machines we're Maybe hopefully steering the industry towards building things that actually make people who are working their lives easier, their customers lives easier, or the patient's lives easier. And that improves outcomes. Whether you're in health or anything else, I think as a technologist, we all kind of want to improve outcomes. And I think that is the ideal way that machine learning can do that.

  43. Speaker 4

    That's cool. I'm excited about learning more about that kind of stuff. And some of the, I don't know, you guys are hearing about your AI overlord or they're going to take over and whatever. And I'm like, I don't, I don't really believe that, but I could see them being really helpful in this, that, and the other thing. And I'd like to know more about that than some of the LLM Lama stuff.

  44. Speaker 2

    Yeah. I mean, even those have really interesting uses. I just think the way they're being marketed by people, a lot of whom are not really in the industry or not, you know, the technologists working on this type of stuff is a lot of times irresponsible. And I think it's also generating a lot of backlash against the technology that I don't think replace a lot of people but people you know certain people will try to replace their workers with it I don't think they'll do a great job at it but you know that backlash is going to end up harming the kind of positive strides that we're all trying to make as an industry. And I think as individual psychologists as well. And that, so it's, it's a, it's an interesting thing that happens and it's, I mean, I think it's also just amplified by social media because, you know, hot takes get the engagement. That's what people want. So.

  45. Speaker 4

    Yeah, exactly. Yeah. So a related question, now that you've explained some good uses for machine learning, what are your favorite data science Python packages that you think are the most useful?

  46. Speaker 2

    For me, because I work very heavily with the data directly and infrastructure and things like that, the data manipulation libraries are kind of big thing for me. So I, I like pandas. Um, it's been, I know a lot of people are really into pollers and we've used it in a few projects as well. Um, does similar things to pandas, um, but a lot faster cause I think it's built on a rust backend.

  47. Speaker 3

    Um,

  48. Speaker 2

    But I also understand that there's a new version of pandas maybe out already or coming out soon that's rebuilt on a Rust backend as well that should speed it up and have kind of speed parity soon with pullers. But when I was starting out working with some of these packages, it was just pandas. And so that's what's familiar. And I like the functional interface a lot. Because there's something about functional programming that also just tickles my brain in the right way. And so Pandas was kind of my entry point to that paradigm. And I've played with Elixir and stuff over the years, which I really enjoy. Just never have the time or use for getting too deep into it, unfortunately. But yeah, Pandas is like the biggest one for me. I use OpenCV a lot because I do a lot of computer vision work and computer vision adjacent work. And as I'm doing more kind of experimental workflows, things where I'm kind of doing one-offs or I need to have a really good display. I've been very heavily using Jupyter Notebooks, which is kind of the standard data science fair. Probably not the most interesting answer. But because I kind of work in the middle, I kind of stride the lines between engineering and with data science and research sort of stuff, I have most of my exposure to kind of the most obvious packages.

  49. Speaker 4

    I am curious, though, since you do engineering and data science, how do you find Jupyter notebooks helpful in that regard? Because a lot of people say they're not testable, stuff like that. You can't put them in your CICD, so to speak.

  50. Speaker 2

    Yeah, so they're useful for exploratory data analysis. So if I'm trying to understand the data or if I'm building really simple models that are... I really just need to see the outputs and see how they work and understand them. It's a lot easier to rerun a cell and redo an analysis very quickly. And then once it's ready for primetime and it's something that we need repeatability for, That gets translated into a Python script or a full-on program or whatever it is. That's what we can put into a CICD pipeline or that we can put onto Git kind of reliably. But for exploratory data analysis, there isn't much... you know, sharing and repeatability going on. There is an inflection point where you're like, okay, this will be better as just a regular script. But until you get there, it works great.

  51. Speaker 4

    That makes sense. Yeah, I really like using Jupyter Notebook for doing presentations and things like that because it's easy to run the code in the browser and show people the input and the output. And I really like that it can do visualizations too, like matplotlib and pandas. And I think it even works with certain kinds of imaging libraries, like Pillow. It'll display it directly in the browser.

  52. Speaker 2

    Yeah, I use Pillow very heavily with it.

  53. Speaker 4

    Cool.

  54. Speaker 2

    But also, actually, pretty much over the weekend, I built a graphical user interface for the first time in years. And so I was very worried about how long it would take me, because I was thinking of having to use Tkinter and some of these other Python ones that are just really, really difficult. And I ended up using a finding Gradio, which I really liked. And so it's a Python data science sort of library, but it's specifically for building UIs around machine learning models and machine learning projects. And it took me maybe not including reading the docs for however long. 30 minutes or so. It took me maybe another 30, 45 minutes to build a UI for a model that I built to present as a demo. And so That's another one. I didn't think about it until just now. But also because I built it over, I used it over the weekend for the first time. But I was able to build this really nice UI that was in the browser and just interfaces with my Python code kind of as it is. And so, yeah, I want to give that project a shout out as well.

  55. Speaker 4

    Yeah, I'm definitely going to link to that. That sounds really interesting. And I went to their website while you were telling me about it, and it looks interesting.

  56. Speaker 2

    Yeah, I was surprised at how easy it was to use. And you can drill down if you want to really tinker with the UI a lot. I don't want to. I haven't had enough experiences doing that back in the early days of my career.

  57. Speaker 4

    Yeah, getting the UI just right can be an all-day affair. Oh, yeah. Let's see. So we're going to skip that kind of segue and jump right into my next question. Have you found AI helpful in your machine learning adventures?

  58. Speaker 2

    In some very targeted ways. So when GPT-3, I think, was first released, I did um, admin of code with it. And then my own solutions doing nothing but providing the question to it, getting the answers. And it worked up surprisingly well for the first couple. And then as it, as the problems got a little more involved, um, it started failing in very kind of silly ways. I found it really amusing and was like, okay, yeah, this is, this as it is like probably can't work. And then, um, later on, I, you know, GitHub copilot came out and then, um, I also discovered, uh, source graphs, Cody, uh, which I actually use, um, in my, uh, code editor now. I, um, and I like it a lot. So source graph, um, I think they originally built basically a tool that builds a kind of knowledge base of your code. So like kind of graph representation of your code and it allows you to have a more powerful kind of search functionality. But then they also built Kodi on top of some of these large language models, and they use a few different ones. They have their own kind of props that they set up. And what it enables is like autocomplete on steroids. You can have like whole blocks filled out, and it works really well because what they do is something called retrieval augmenters. generation or RAG. And so they inject the context of your code into those prompts. And so you can do things like it'll maintain patterns that you can use elsewhere in the code. Um, and they also have a chat with your code feature. So you can ask the code in air quotes, uh, questions and like, how did I pull this file from S3? Um, And it will provide you examples of in your code how you did it. As I said before, I have that problem with organizational organizational skills where I'll have a different pattern for every project. I do that in my code too. Like if I'm not careful, I have a big project and I think I did something in the past, but I don't know where to look for it. I'll just like, I'll just rewrite it, you know, whatever way makes sense to me in this instance. And then I have, you know, all these code, you know, kind of blocks of code doing mostly the same thing, but in slightly different ways, which is great for, you know, the cognitive load of the project and things like that. So you can ask it like, Hey, how did, how did I do this? And it will tell you and it will show you where in the code you did it in the past. And so it's kind of a, also gives you a better kind of conversational search. And by using that context of your actual code, it does seem to reduce the hallucinations and bad code and things like that. But even with the autocomplete, there may be, you know, a little thing that's slightly off, like a, there's an extra quote or something like that. That's really easy to fix. And, you know, isn't fixing it. Isn't a big time sink compared to whatever you saved and it auto completing a code block for you.

  59. Speaker 4

    I really liked that idea of being able to ask it. Where did I do this before? Cause I, I do that more often than you think you think you would.

  60. Speaker 2

    Oh yeah, for sure. Like it's, I'll forget what I did over the weekend. Like completely what I did. I'm a very avid note taker because of that. And, um, being able to, um, you know, ask the code directly. Hey, how did I do this before? Did I do this before? How do I handle this error? Um, you know, being able to do that is really useful. And, um, something I'm trying to make sure I, um, make more use of because I also have a thing where I have my workflow. I've been doing it for so long. It's kind of muscle memory and I can't remember to add some new feature or new thing into my workflow so easily. So I've like forced myself to use it until it becomes a habit as well.

  61. Speaker 4

    Yeah, I think that would be especially useful to new people coming into a project. I got a lot of legacy code. You could ask, hey, how does this bring up this particular web page or this part of the GUI? How does any of this... What happens when I push this button? If it could tell you stuff like that, that'd be amazing.

  62. Speaker 2

    Exactly. And it also can write unit tests for you, which is a saving grace for me because I'm terrible at it. I don't love writing tests. which, like, I do a lot of Greenfield work, so that's okay, but once it's no longer Greenfield, it's no longer okay. So it's really helpful for that. And, you know, one of the things that these large language models really excel at is summarizing things. So asking, hey, what does this block of code do? What does this function do? What does this whole project do? And where does it do it? That's such a better way to onboard, you know, new developers and things like that.

  63. Speaker 4

    Cool. I haven't used GPT for that very much. I've used it for other just silly ideas of mine. But I'm definitely going to try out some of those tips, especially since we have our own internal one that supposedly works with our code base.

  64. Speaker 2

    Oh, nice.

  65. Speaker 4

    Or at least maybe not directly with our code base, but it knows what our products are, so it can be a little bit better you know, answering questions.

  66. Speaker 3

    Yeah, for sure.

  67. Speaker 4

    Anyway, well, I think I have one more question for you and that is what kind of non-technical hobbies do you enjoy?

  68. Speaker 2

    On the very rare occasions that I have free time, I really, I've been, I enjoy lifting weights. I've been lifting since I was 14 15 years old my dad was a bodybuilder and gym owner Jay Cutler who won Mr. Olympia four times is like an old family friend so I kind of grew up in that like despite not being a very athletic person generally I always loved being in the gym working out lifting and so try to do that and depending on what I'm doing as far as like a goal, a short term goal is, you know, four to six times a week. I also take Greek classes. My family is from Greece. I was just recently living in Athens for two months with my wife and my daughter. I took it in university, and then when I moved back up to Boston shortly after my grandfather died, And my grandmother started losing, she suffered from dementia. So she started losing her English facilities. So I started taking these classes so I could communicate with her. And she passed away a few years ago, and I just kept up with it. I really like learning languages. I always have. In high school, I was learning a couple different languages at once, which I don't recommend doing. It was very difficult. But so I think that kind of dovetails with programming, learning different languages.

  69. Speaker 3

    that.

  70. Speaker 2

    So that's something I enjoy doing. I take classes. I of the reason i spent so much time in greece was just to have more opportunity to practice um and also you know living in greece is very nice if you can do it i highly recommend it um and then i love i love music i'm a very big uh heavy metal fan and austin has a very great local heavy metal scene so when i can i go to shows pretty often a lot of my friends are in bands And a lot of them have a pretty decent amount of success for like kind of underground sub genres and stuff. So I like to be able to go out to show, support them. You know, when you can go see three, four bands for 15 bucks, it's a nice way to spend a night and, you know, meet people, especially me being in my thirties and coming back to Boston, my family's about an hour West. So I don't have a lot of, avenues to meet people. And so that's how I've made a ton of friends since moving here. And so, yeah, those are like the main things I do, but I'd say 90% of my free time is filled with being a dad. So, which is, yeah. a great thing enough, you know, on its own, but I don't know if I would call it a hobby as much as a hobby makes it sound a little more optional than it is. Um, but yeah, I have a, my daughter's two and a half and so seeing her learn language and being able to express herself and her personality,

  71. Speaker 3

    um,

  72. Speaker 2

    come into itself as has been its own joy. That's kind of beyond anything else.

  73. Speaker 4

    Yeah. Being a dad is a lot of fun.

  74. Speaker 2

    It really is. A lot of work, a lot of sleepless nights, but a lot of fun at the same time.

  75. Speaker 4

    Yeah. There's pain and joy all at once. Exactly. It's good. All right. Well, it's been a pleasure chatting with you for our show today.

  76. Speaker 2

    And thank you for having me. It was a lot of fun.

  77. Speaker 4

    Yeah. Thank you so much. And as usual, I will include plenty of links for about Kyle and the different topics we chatted about in the show notes. So check those out as well. And don't miss the next episode.

  78. Speaker 1

    Mike Driscoll, The Python Show.