<?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: Andrew Cook</title>
    <description>The latest articles on DEV Community by Andrew Cook (@andrewhcook).</description>
    <link>https://dev.to/andrewhcook</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%2F1118495%2F613ef525-71e0-4aae-9a66-046cc89d23b4.png</url>
      <title>DEV Community: Andrew Cook</title>
      <link>https://dev.to/andrewhcook</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/andrewhcook"/>
    <language>en</language>
    <item>
      <title>Demolition Permit Visualizer</title>
      <dc:creator>Andrew Cook</dc:creator>
      <pubDate>Mon, 21 Aug 2023 15:26:50 +0000</pubDate>
      <link>https://dev.to/andrewhcook/demolition-permit-visualizer-4fja</link>
      <guid>https://dev.to/andrewhcook/demolition-permit-visualizer-4fja</guid>
      <description>&lt;p&gt;Over the weekend I made this web application with ruby on rails and Sinatra: &lt;a href="https://chicago-demolition-permit-records-parser.onrender.com/"&gt;https://chicago-demolition-permit-records-parser.onrender.com/&lt;/a&gt; .&lt;/p&gt;

&lt;p&gt;It was inspired by a project detailed in this blog post: &lt;a href="https://mascontext.com/observations/after-demolition"&gt;https://mascontext.com/observations/after-demolition&lt;/a&gt; . &lt;/p&gt;

&lt;p&gt;It aims to make parsing and visualizing Chicago demolition permit records easy.&lt;/p&gt;

&lt;p&gt;The main challenge was getting the google maps api to render an image with multiple markers. Constructing a valid URL was more complicated than I expected.&lt;/p&gt;

&lt;p&gt;Unfortunately, I realized too late that the api did not provide dated entries so searching by date would require collecting the permit number and searching through a response to another api to match the permit number and then collecting the date information from that api. I assumed the permit information was not exactly chronological and thus, for my purposes, an unordered collection. This would result in, in my estimation, an O(n2) time complexity where n is equal to the number of permits that need to be dated. On top of this poor time complexity the execution time is made slower by being composed of asynchronous calls to an API. (If you see a flaw in this logic, please comment, and let me know how to make this work!)&lt;/p&gt;

&lt;p&gt;Despite this downturn, I would consider this app functional and a successful endeavor in ruby!&lt;/p&gt;

</description>
      <category>ruby</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Server in Axum</title>
      <dc:creator>Andrew Cook</dc:creator>
      <pubDate>Fri, 21 Jul 2023 02:37:24 +0000</pubDate>
      <link>https://dev.to/andrewhcook/server-in-axum-5glm</link>
      <guid>https://dev.to/andrewhcook/server-in-axum-5glm</guid>
      <description>&lt;p&gt;I spent some time over the last 3 days working on a server for a web application I dreamed up some time ago.&lt;/p&gt;

&lt;p&gt;I am primarily using the Axum and SQLx crates to implement this project, but I am also relying on the reqwest and serde crates to populate the database and serialize/deserialize JSON respectively.&lt;/p&gt;

&lt;p&gt;All of these crates work remarkably well out of the box and all of the issues I ran into were syntactic in nature.&lt;/p&gt;

&lt;p&gt;I have written several GET, POST and DELETE routes which will be helpful when I build out the frontend with async methods. (I had started on the frontend some weeks ago. It is written in Yew which is a React-like crate for Rust, and it currently just displays some custom structs in the browser -- with no CSS involved.)&lt;/p&gt;

&lt;p&gt;The next step on the backend is to implement User Authorization and a way to issue user tokens. &lt;/p&gt;

&lt;p&gt;Any tips on anything I have covered or on the development lifecycle in general would be much appreciated.&lt;/p&gt;

&lt;p&gt;Andrew&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>rust</category>
      <category>axum</category>
    </item>
    <item>
      <title>Ruby Gym Sprint</title>
      <dc:creator>Andrew Cook</dc:creator>
      <pubDate>Sun, 16 Jul 2023 22:28:12 +0000</pubDate>
      <link>https://dev.to/andrewhcook/ruby-gym-sprint-3n2e</link>
      <guid>https://dev.to/andrewhcook/ruby-gym-sprint-3n2e</guid>
      <description>&lt;p&gt;Today I completed about 10 assigned Ruby exercises on Canvas. I managed to complete this sprint in &amp;lt; 1.5 hours.&lt;/p&gt;

&lt;p&gt;Some classics included "Two Fer", "Raindrops" and "Leap Year".&lt;/p&gt;

&lt;p&gt;I had already completed the majority of these exercises (in the Ruby Track) on exercism but I decided to write my solutions from scratch on Canvas.&lt;/p&gt;

&lt;p&gt;In the next few days I will delve into http requests, continue practicing on exercism, and work on some projects in other languages.&lt;/p&gt;

</description>
      <category>learning</category>
      <category>ruby</category>
    </item>
    <item>
      <title>Forays in Ruby</title>
      <dc:creator>Andrew Cook</dc:creator>
      <pubDate>Sat, 15 Jul 2023 01:24:53 +0000</pubDate>
      <link>https://dev.to/andrewhcook/forays-in-ruby-41p</link>
      <guid>https://dev.to/andrewhcook/forays-in-ruby-41p</guid>
      <description>&lt;p&gt;Today I worked on several Ruby modules. I worked through these modules relatively quickly, as I have been preparing with exercism. Here's a link to my public facing profile on that site: &lt;a href="https://exercism.org/profiles/MetaWorldComputing"&gt;https://exercism.org/profiles/MetaWorldComputing&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;So far, I like Ruby's clean syntax and the speed with which it allows me to write functional code. However, it does have a reputation of incurring performance costs, so I will continue my endeavors learning Rust web frameworks.&lt;/p&gt;

&lt;p&gt;That's all for now,&lt;/p&gt;

&lt;p&gt;Andrew&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>ruby</category>
    </item>
    <item>
      <title>Hello internet</title>
      <dc:creator>Andrew Cook</dc:creator>
      <pubDate>Wed, 12 Jul 2023 19:06:50 +0000</pubDate>
      <link>https://dev.to/andrewhcook/hello-internet-54e7</link>
      <guid>https://dev.to/andrewhcook/hello-internet-54e7</guid>
      <description>&lt;p&gt;Will be posting frequently in the coming weeks.&lt;/p&gt;

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