<?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: Jouderian Nobre Junior</title>
    <description>The latest articles on DEV Community by Jouderian Nobre Junior (@jouderianjr).</description>
    <link>https://dev.to/jouderianjr</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%2F409838%2F952a4a84-fe29-4474-9f77-4d4ca3dceee9.png</url>
      <title>DEV Community: Jouderian Nobre Junior</title>
      <link>https://dev.to/jouderianjr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jouderianjr"/>
    <language>en</language>
    <item>
      <title>An elm-ui introduction</title>
      <dc:creator>Jouderian Nobre Junior</dc:creator>
      <pubDate>Fri, 19 Jun 2020 11:20:59 +0000</pubDate>
      <link>https://dev.to/jouderianjr/an-elm-ui-introduction-1oa3</link>
      <guid>https://dev.to/jouderianjr/an-elm-ui-introduction-1oa3</guid>
      <description>&lt;p&gt;Once upon a time, the brave developers were used to use HTML and CSS to build their cool websites. The same idea was brought to Elm, they created a package called &lt;a href="https://package.elm-lang.org/packages/elm/html/latest"&gt;elm/html&lt;/a&gt; and this package mimics the HTML into functions. Some comparison:&lt;/p&gt;

&lt;h4&gt;
  
  
  HTML
&lt;/h4&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"fancy-div"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Hello new world!&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h4&gt;
  
  
  Elm
&lt;/h4&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight elm"&gt;&lt;code&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="n"&gt;class&lt;/span&gt; &lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;fancy-div"&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Hello new world"&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;And it works right? I mean, you can build your UI in the same mindset as you were used to do, and you can still use the old and &lt;del&gt;friendly&lt;/del&gt; CSS to make it pretty.&lt;/p&gt;

&lt;p&gt;There is just one problem with this comfortable plan, it's called HTML + CSS 💩. HTML is not exactly meaningful and CSS can be a mess. Of course, you can improve this using good CSS conventions and naming, but you will still have some &lt;code&gt;div&lt;/code&gt;, &lt;code&gt;span&lt;/code&gt; and &lt;code&gt;p&lt;/code&gt; all over the place.&lt;/p&gt;

&lt;p&gt;Trying to avoid that problem a nice guy called &lt;a href="https://github.com/mdgriffith"&gt;Matthew Griffith&lt;/a&gt; created a new way to build UIs in Elm, and that package is called &lt;a href="https://github.com/mdgriffith/elm-ui/tree/1.1.7"&gt;elm-ui&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I could try to explain what that package does, but I will only quote the Github description :D.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What if you never had to write CSS again?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So, what I'm trying to say here is that we can do Elm and not use HTML + CSS 💃.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KkylqXH3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/r6f6z9vb23mkxlaiqwcg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KkylqXH3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/r6f6z9vb23mkxlaiqwcg.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Let's code
&lt;/h3&gt;

</description>
      <category>elm</category>
      <category>frontend</category>
    </item>
  </channel>
</rss>
