<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Lance</title>
    <description>The latest articles on DEV Community by Lance (@lancerharris).</description>
    <link>https://dev.to/lancerharris</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1229726%2F43c050bf-6ee2-4b1c-ac1a-8c0da50bf01f.png</url>
      <title>DEV Community: Lance</title>
      <link>https://dev.to/lancerharris</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lancerharris"/>
    <language>en</language>
    <item>
      <title>Basic Python Movie Recommender</title>
      <dc:creator>Lance</dc:creator>
      <pubDate>Thu, 01 Feb 2024 02:40:18 +0000</pubDate>
      <link>https://dev.to/lancerharris/basic-python-movie-recommender-kah</link>
      <guid>https://dev.to/lancerharris/basic-python-movie-recommender-kah</guid>
      <description>&lt;p&gt;Basic Python Terminal Movie Recommender&lt;/p&gt;

&lt;p&gt;Here I've created a simplistic terminal recommender program.&lt;br&gt;
Repo: &lt;a href="https://github.com/lancerharris/basic-movie-recommender"&gt;https://github.com/lancerharris/basic-movie-recommender&lt;/a&gt; &lt;br&gt;
This program uses a hardcoded dataset of a few studio A24 movies for the user to choose from. &lt;/p&gt;

&lt;p&gt;The user is asked for a category of movie they'd like to find. The two levels of categories are genre and the mood of the film. Once the user picks from these predefined genres and moods, a list of movies will be presented for them.&lt;/p&gt;

&lt;p&gt;I used this program as an opportunity to practice a tree data structure with some Node based functionality for the tree. The recommender functions operate on the Nodes.&lt;/p&gt;

&lt;p&gt;The program could be expanded to pull from an API to get more accurate and up to data movie information.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Weather-Care app: Self-care advice for the day</title>
      <dc:creator>Lance</dc:creator>
      <pubDate>Sat, 09 Dec 2023 15:35:19 +0000</pubDate>
      <link>https://dev.to/lancerharris/weather-care-app-self-care-advice-for-the-day-3ci3</link>
      <guid>https://dev.to/lancerharris/weather-care-app-self-care-advice-for-the-day-3ci3</guid>
      <description>&lt;p&gt;This article is a small showcase/explanation of a beginner python project. I hope this can give others ideas for projects of their own, or allow others to take this idea and run with it further.&lt;/p&gt;

&lt;p&gt;Weather-Care is a terminal app that takes in the day's weather in a given location to give hair and skin care advice. With that information you can plan your self-care for the day accordingly.&lt;/p&gt;

&lt;p&gt;This was made as part of a self-driven project for the Codecademy computer science track. I used the python I learned there along with help from chatGPT to finish the project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TGYKfJN7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w98ch714tvchk751trbj.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TGYKfJN7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w98ch714tvchk751trbj.gif" alt="GIF of app in action" width="782" height="454"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Python code
&lt;/h2&gt;

&lt;p&gt;I wanted to apply my OOP knowledge so I split the app into three classes, UserInterface, Weather, and BeautyAdvice.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;UserInterface handles displaying the app in the terminal, taking in user input, using Weather and BeautyAdvice to get results, and displaying the results.&lt;/li&gt;
&lt;li&gt;The Weather class handles getting weather data from an API from OpenWeather. I'm pulling weather data for the current day.&lt;/li&gt;
&lt;li&gt;The BeautyAdvice class is in charge of taking weather data and comparing it to a JSON file of self-care conditions. When a condition is met it is returned as advice to the user. chatGPT was used to get the hair and skin care advice for different weather conditions.
The code also uses the python-dotenv package and a .env file to hide away my API key so that it isn't exposed in the repo.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Possible Improvements
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Move the app to a web interface&lt;/li&gt;
&lt;li&gt;Somehow use another API to return self-care advice rather than relying on a hardcoded JSON file&lt;/li&gt;
&lt;li&gt;Add personal profiles to get self-care advice better tailored to individuals&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;The app is a project that was intended as a learning experience and thus isn't fully featured and break-proof. But it does serve as a starting point for something that I think would be pretty cool and useful.&lt;br&gt;
If you want to try the app you can sign up for the OpenWeatherMap One Call API 3.0 to get an API key that you can drop into a .env file at the root of the app.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/lancerharris/Weather-Care"&gt;Weather-Care GitHub Repository&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
