<?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: CornSnek</title>
    <description>The latest articles on DEV Community by CornSnek (@cornsnek).</description>
    <link>https://dev.to/cornsnek</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%2F1261248%2Fc26f5a86-802a-4c16-b417-8a2a3e8fcb27.jpeg</url>
      <title>DEV Community: CornSnek</title>
      <link>https://dev.to/cornsnek</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cornsnek"/>
    <language>en</language>
    <item>
      <title>Creating Recommendation Software Portfolio Project</title>
      <dc:creator>CornSnek</dc:creator>
      <pubDate>Fri, 19 Jan 2024 23:00:46 +0000</pubDate>
      <link>https://dev.to/cornsnek/creating-recommendation-software-portfolio-project-de8</link>
      <guid>https://dev.to/cornsnek/creating-recommendation-software-portfolio-project-de8</guid>
      <description>&lt;h1&gt;
  
  
  Recommended Language Project
&lt;/h1&gt;

&lt;p&gt;This project is to create a terminal program on python for &lt;a href="https://www.codecademy.com"&gt;https://www.codecademy.com&lt;/a&gt; as part of my &lt;code&gt;Portfolio Project: Creating Recommendation Software&lt;/code&gt; project. This project is about getting recommendations of languages based on the categories the user chose.&lt;/p&gt;

&lt;p&gt;To start the program, type in the shell &lt;code&gt;python script.py&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The project page: &lt;a href="https://github.com/CornSnek/computer_language_recommendation"&gt;https://github.com/CornSnek/computer_language_recommendation&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I have used the wikipedia page &lt;a href="https://en.wikipedia.org/wiki/List_of_programming_languages_by_type"&gt;https://en.wikipedia.org/wiki/List_of_programming_languages_by_type&lt;/a&gt; as data for my project. The data was parsed by reading each header file, creating an enum number from that header, and extracting the hyperlinks from each header. There were some trial-and-error to extract the language names correctly without Python throwing exceptions due to "Out of bounds" errors or logical errors.&lt;/p&gt;

&lt;p&gt;I have used 3 algorithms I have learned from Codecademy that are used to parse and output data. One algorithm was the binary search, which was used to get the category enum number from each language (A language can have more than one category, and the category enum numbers are sorted from lowest to highest). The second algorithm was the Knuth–Morris–Pratt algorithm (KMP algorithm). This was used to search each languages/categories if they match. The last algorithm were heaps and heapsort. Heapsort was used to order each language from the Wikipedia in alphabetical order. Out of the 3, Heap/heapsort was the trickiest to implement and unit test to get passing tests.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
