<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Web-Programmer on neildaemond&#39;s hacker blog</title>
    <link>https://808.ninja/web-programmer/</link>
    <description>Recent content in Web-Programmer on neildaemond&#39;s hacker blog</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 12 Oct 2018 22:19:58 +0800</lastBuildDate>
    <atom:link href="https://808.ninja/web-programmer/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Elm (0.18) Architecture: A Flow Diagram</title>
      <link>https://808.ninja/web-programmer/elm-architecture-flow-diagram/</link>
      <pubDate>Fri, 12 Oct 2018 22:19:58 +0800</pubDate>
      <guid>https://808.ninja/web-programmer/elm-architecture-flow-diagram/</guid>
      <description>&lt;p&gt;Taking &lt;a href=&#34;https://808.ninja/web-programmer/elm-architecture-overview-understanding-an-elm-program/&#34;&gt;my previous post on Elm Architecture&lt;/a&gt; under consideration, I&amp;rsquo;ve generated the following diagram:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://raw.githubusercontent.com/neildaemond/my-blog-diagrams/master/elm/Elm-Architecture-Overview.png&#34;&gt;&lt;img src=&#34;https://raw.githubusercontent.com/neildaemond/my-blog-diagrams/master/elm/Elm-Architecture-Overview.png&#34; alt=&#34;Elm Architecture Diagram&#34;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Let me explain further&amp;hellip;&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Elm (0.18) Architecture: A Brief Overview</title>
      <link>https://808.ninja/web-programmer/elm-architecture-overview-understanding-an-elm-program/</link>
      <pubDate>Sat, 15 Sep 2018 00:53:49 +0800</pubDate>
      <guid>https://808.ninja/web-programmer/elm-architecture-overview-understanding-an-elm-program/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://guide.elm-lang.org/architecture/&#34;&gt;The elm architecture&lt;/a&gt; is explained in the Elm guide, but I&amp;rsquo;m going to try and break it down in a way in which I understand it so that hopefully anyone reading here can benefit from another perspective.&lt;/p&gt;&#xA;&lt;p&gt;The guide tells us that an Elm application has the architectural pattern of &lt;strong&gt;Model-Update-View&lt;/strong&gt; but, what does this mean? I see it like this:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Create a hexadecimal colour based on a string with Elm</title>
      <link>https://808.ninja/web-programmer/create-a-hexadecimal-colour-based-on-a-string-with-elm/</link>
      <pubDate>Wed, 22 Aug 2018 22:27:24 +0800</pubDate>
      <guid>https://808.ninja/web-programmer/create-a-hexadecimal-colour-based-on-a-string-with-elm/</guid>
      <description>&lt;p&gt;I had an html table of categorised items, and I wanted to give each category its own colour automatically. So I thought I&amp;rsquo;d hash the category ID String into an HTML Hexadecimal colour. A search will find &lt;a href=&#34;https://stackoverflow.com/questions/3426404/create-a-hexadecimal-colour-based-on-a-string-with-javascript&#34;&gt;this stack overflow post&lt;/a&gt;, but I was using elm and thought it would be a fun task to translate this function into a functional style. Here&amp;rsquo;s how that went:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Elm (0.18): A Refreshing Functional Programming Language For The Front End</title>
      <link>https://808.ninja/web-programmer/elm-functional-programming-for-the-front-end/</link>
      <pubDate>Sun, 05 Aug 2018 21:31:08 +0800</pubDate>
      <guid>https://808.ninja/web-programmer/elm-functional-programming-for-the-front-end/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve really been enjoying my recent experience with the front end (functional) programming language called &lt;a href=&#34;http://elm-lang.org/&#34;&gt;Elm&lt;/a&gt; for the following reasons:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;The &lt;a href=&#34;https://guide.elm-lang.org/architecture/&#34;&gt;Elm Architecture&lt;/a&gt; is great for single page apps (SPAs) as the rendered view will update automatically depending on the data model which gets manipulated when events are triggered.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Immutable variables and Strong typing produces reliable and readable code, although slightly trickier to write (at first).&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;The compiler is extremely smart and helpful (and a bit strict), often telling you exactly what went wrong and where to find it. Compiled Elm apps have slogan of &amp;ldquo;No Runtime Errors&amp;rdquo; since the Strict Typing allows the compiler to ensure there will not be any.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;It is compiled into javascript and easy to embed into any existing page/project.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Here is my guide to getting started (with vim as my IDE):&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
