<?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: Kim John</title>
    <description>The latest articles on DEV Community by Kim John (@jkimquickdev).</description>
    <link>https://dev.to/jkimquickdev</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%2F150052%2F715d4b6b-9431-4c4d-aff3-c5b1a5cb790c.jpg</url>
      <title>DEV Community: Kim John</title>
      <link>https://dev.to/jkimquickdev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jkimquickdev"/>
    <language>en</language>
    <item>
      <title>Gulp vs Web-pack</title>
      <dc:creator>Kim John</dc:creator>
      <pubDate>Fri, 12 Apr 2019 15:59:53 +0000</pubDate>
      <link>https://dev.to/jkimquickdev/gulp-vs-web-pack-8bj</link>
      <guid>https://dev.to/jkimquickdev/gulp-vs-web-pack-8bj</guid>
      <description>&lt;p&gt;I'm starting new JavaScript/html based project. I'm very much comfortable with Gulp, since I worked on this a lot, so my gut says to go with this. But my colleagues are insisting on checking web-pack.&lt;/p&gt;

&lt;p&gt;I'm looking for an opinion from dev.to community.&lt;/p&gt;

&lt;p&gt;So, should I go with Gulp, or check on Web-pack, If I choose one on another, why? Let me know your thoughts.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="http://jsongrid.com/json-grid"&gt;Kim John&lt;/a&gt;&lt;br&gt;
&lt;a href="http://jsongrid.com/json-grid"&gt;Json Grid&lt;/a&gt; &lt;em&gt;&amp;lt;=Developed with love!&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>help</category>
      <category>discuss</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Bootstrap offers responsive design, then why column have these classes: col-sm-* and col-lg-*</title>
      <dc:creator>Kim John</dc:creator>
      <pubDate>Thu, 11 Apr 2019 16:27:22 +0000</pubDate>
      <link>https://dev.to/jkimquickdev/bootstrap-offers-responsive-design-then-why-column-have-these-classes-col-sm-and-col-lg-5002</link>
      <guid>https://dev.to/jkimquickdev/bootstrap-offers-responsive-design-then-why-column-have-these-classes-col-sm-and-col-lg-5002</guid>
      <description>&lt;p&gt;I always wondered while learning bootstrap that why the heck I have different versions of CSS classes while defining columns. &lt;/p&gt;

&lt;p&gt;I went through a bunch of bootstrap docs and couldn't understand.&lt;/p&gt;

&lt;h2&gt;
  
  
  Question became confusion
&lt;/h2&gt;

&lt;p&gt;The confusing aspect of this is the fact that BootStrap 3 is a mobile-first responsive system and fails to explain how this affects the col-xx-n hierarchy in that part of the Bootstrap documentation. This makes you wonder what happens on smaller devices if you choose a value for larger devices and makes you wonder if there is a need to specify multiple values. (You don't)&lt;/p&gt;

&lt;p&gt;If you think of the columns starting out horizontally, then you can choose when you want them to stack.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understand with Example
&lt;/h2&gt;

&lt;p&gt;For example, if you start with columns: A B C&lt;/p&gt;

&lt;p&gt;You decide when should they stack to be like this:&lt;/p&gt;

&lt;p&gt;A&lt;/p&gt;

&lt;p&gt;B&lt;/p&gt;

&lt;p&gt;C&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you choose col-lg, then the columns will stack when the width is &amp;lt; 1200px&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you choose col-md, then the columns will stack when the width is &amp;lt; 992px.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you choose col-sm, then the columns will stack when the width is &amp;lt; 768px.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you choose col-xs, then the columns will never stack.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  On the other hand, if you think of the columns starting out stacked, then you can choose at what point they become horizontal:
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;If you choose col-sm, then the columns will become horizontal when the width is &amp;gt;= 768px.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you choose col-md, then the columns will become horizontal when the width is &amp;gt;= 992px.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you choose col-lg, then the columns will become horizontal when the width is &amp;gt;= 1200px.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  References
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/19865158/what-is-the-difference-among-col-lg-col-md-and-col-sm-in-bootstrap"&gt;https://stackoverflow.com/questions/19865158/what-is-the-difference-among-col-lg-col-md-and-col-sm-in-bootstrap&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Like and Follow
&lt;/h2&gt;

&lt;p&gt;It really encourages to write more if someone likes your post, so be sure to like it if you enjoyed it!&lt;/p&gt;

&lt;p&gt;And Follow me to keep getting new exciting stuff like this!&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="http://jsongrid.com/json-grid"&gt;Kim John&lt;/a&gt;&lt;br&gt;
&lt;a href="http://jsongrid.com/json-grid"&gt;Json Grid&lt;/a&gt; &lt;em&gt;&amp;lt;=Developed with love!&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>webdev</category>
      <category>bootstrap</category>
      <category>showdev</category>
      <category>css</category>
    </item>
    <item>
      <title>Pug vs EJS?</title>
      <dc:creator>Kim John</dc:creator>
      <pubDate>Thu, 28 Mar 2019 17:41:37 +0000</pubDate>
      <link>https://dev.to/jkimquickdev/pug-vs-ejs-5epa</link>
      <guid>https://dev.to/jkimquickdev/pug-vs-ejs-5epa</guid>
      <description>&lt;p&gt;I have to decide whether to go with &lt;strong&gt;PUG or EJS&lt;/strong&gt; for a node web app. &lt;/p&gt;

&lt;p&gt;I highly appreciate if you can suggest one over another explaining why you think so.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Appreciate all help!&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>help</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Quick HTML template rendering without using Angular, React Or Vue</title>
      <dc:creator>Kim John</dc:creator>
      <pubDate>Thu, 28 Mar 2019 14:50:26 +0000</pubDate>
      <link>https://dev.to/jkimquickdev/quick-html-template-rendering-without-using-angular-react-or-vue-34g0</link>
      <guid>https://dev.to/jkimquickdev/quick-html-template-rendering-without-using-angular-react-or-vue-34g0</guid>
      <description>&lt;p&gt;The other day I was working on a website, where I had a simple HTML page with a bunch of data to be displayed in a list. The page was static, I received an excel file directly from a Client.&lt;/p&gt;

&lt;h2&gt;
  
  
  Just need to render the list
&lt;/h2&gt;

&lt;p&gt;Now, in reality, the Client needed me to put the list in a table on the webpage. This list is never going to be changed so why to bother.&lt;/p&gt;

&lt;p&gt;But being a developer, things are not easy. I mean, you can't just copy and paste every single line from the excel file to create HTML table line, they are 110 items. &lt;strong&gt;We are developers, we are lazy and we certainly can't do hard work, right! :)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So, I thought to be creative. First of all, I grabbed data from excel and convert into JSON.&lt;/p&gt;

&lt;h2&gt;
  
  
  Big Question: what to use, React, Angular, Vue Or Plain JavaScript
&lt;/h2&gt;

&lt;p&gt;Now, how do I use this JSON to render actually! Oh, I'm React developer, it's not very difficult. Let's start building component. Oh, that is cumbersome. I need the entire infrastructure to create and support a component like Web Pack, Babel, etc. &lt;/p&gt;

&lt;p&gt;I needed some simple way to render the JSON data. Should I write my code in core JavaScirpt? Well, I can but then It's too much work, which of course I don't want to do it.&lt;/p&gt;

&lt;p&gt;I thought to discuss with my colleagues, all pointed to me React, Angular or Vue which I didn't want to use. &lt;/p&gt;

&lt;p&gt;So, finally, I started researching on my own. I stumbled upon this amazing library, named: &lt;a href="https://github.com/janl/mustache.js/" rel="noopener noreferrer"&gt;mustache.js&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finally, I settled down on &lt;strong&gt;Mustache.js&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Now, how do I use this library, I thought to create a sample HTML page.&lt;/p&gt;

&lt;p&gt;I started with hooking library on the top:&lt;/p&gt;

&lt;h3&gt;
  
  
  Library from CDN:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"https://cdnjs.cloudflare.com/ajax/libs/mustache.js/3.0.1/mustache.min.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  HTML:
&lt;/h3&gt;



&lt;div class="highlight js-code-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;id=&lt;/span&gt;&lt;span class="s"&gt;'sample'&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;h4&amp;gt;&lt;/span&gt;Welcome to {{state}}!&lt;span class="nt"&gt;&amp;lt;/h4&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;From, {{country}}.&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;{{content}}&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;
            {{#cities}}
            &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt;{{city}} &lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;{{/cities}}

        &lt;span class="nt"&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  JavaScript
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;template&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;sample&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;innerHTML&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;newHtml&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;Mustache&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;render&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;template&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="na"&gt;state&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Texas&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="na"&gt;country&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;United States&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="na"&gt;cities&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[{&lt;/span&gt;
                &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="na"&gt;city&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Houston&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
            &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="na"&gt;city&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Dallas&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
            &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="na"&gt;city&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Austin&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
            &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="na"&gt;city&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;San Antonio&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
            &lt;span class="p"&gt;}]&lt;/span&gt;

        &lt;span class="p"&gt;});&lt;/span&gt;
        &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;sample&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;innerHTML&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;newHtml&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Notice the simplicity of mustache.js
&lt;/h3&gt;

&lt;p&gt;What I did is that just prepared my HTML template, referenced the template in my JavaScript, and hooked the JSON using Mustache's object, that's it!&lt;/p&gt;

&lt;h3&gt;
  
  
  Voila! I saw, what I was looking for!
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.ibb.co%2FVqF4vH5%2Fimage.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.ibb.co%2FVqF4vH5%2Fimage.png" title="Mustache" alt="Mustache"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Sometimes, you just want something simple to solve your problem. You are not in a mood to create a masterpiece out of everything. My problem was similar. I just needed a simple way to render my content, I achieved it!&lt;/p&gt;

&lt;h3&gt;
  
  
  Finally, A small story of me!
&lt;/h3&gt;

&lt;p&gt;Hi there, I’m Kim and I'm a passionate JavaScript developer.&lt;/p&gt;

&lt;p&gt;In recent times, I had to work on large JSON data. Inspecting this kind of complex JSON data was a nightmare using regular viewers and my collogues shared the same feeling.&lt;/p&gt;

&lt;p&gt;So, we decided one day to write a tool that makes inspecting and editing JSON easy.&lt;/p&gt;

&lt;p&gt;We loved to visualize JSON in Table format, which is of course very easy on your eyes. So the first step was to convert JSON into Table, we achieved that. Then we connected every single table cell to actual JSON. &lt;/p&gt;

&lt;p&gt;Finally, we thought that every developer should have access to this amazing tool. We named it &lt;strong&gt;JsonGrid&lt;/strong&gt;. Visit &lt;a href="https://jsongrid.com" rel="noopener noreferrer"&gt;JsonGrid.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Let me know what you think about it!&lt;/p&gt;

&lt;h3&gt;
  
  
  Like and Follow
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;It really encourages to write more if someone likes your post, so be sure to like it if you enjoyed it!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;And Follow me to keep getting new exciting stuff like this!&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>angular</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
