<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ricardo Raphael Joson on Medium]]></title>
        <description><![CDATA[Stories by Ricardo Raphael Joson on Medium]]></description>
        <link>https://medium.com/@rrjoson?source=rss-f4d37bf2c84c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jlPXe3bzu1j3uLAFpjX-7w.jpeg</url>
            <title>Stories by Ricardo Raphael Joson on Medium</title>
            <link>https://medium.com/@rrjoson?source=rss-f4d37bf2c84c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 21:34:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rrjoson/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Understanding Hoisting in Javascript — through GIFs]]></title>
            <link>https://medium.com/@rrjoson/understanding-hoisting-in-javascript-through-gifs-1769d83f9814?source=rss-f4d37bf2c84c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1769d83f9814</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Ricardo Raphael Joson]]></dc:creator>
            <pubDate>Sat, 18 Nov 2017 15:35:18 GMT</pubDate>
            <atom:updated>2017-11-18T15:55:07.923Z</atom:updated>
            <content:encoded><![CDATA[<p>Are you confused how hoisting works in JavaScript? It confuses everyone in the beginning, so don’t worry about it. I’ll help you understand how hoisting works in JavaScript through short bit-sized GIFs.</p><p>So, let’s start with this example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7d1ZwxaQPqKALjtZ2rFcSw.gif" /></figure><p>Now, let’s see if we can break the intitializefunction by defining the colorvariable first before declaring it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qhos8S9Qxxspz3q5_-OnZg.gif" /></figure><p>As you can see, the function still works. Why is that?</p><p>This is because of a behavior called <strong>hoisting. </strong>This is is when a variable declaration is lifted to the top of it’s scope.</p><p>Here’s another GIF to help you understand what that means:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jsjwq98Uh-X2l46gBnoZmA.gif" /></figure><p>Just take note that the color variable declaration stays exactly where we typed it. What does happen is that the variable declaration is put in to memory first during the compile phase. Just remember that regardless where you put your variable declaration in your code, it will always be hoisted to the top of its scope.</p><p>The code used in this post can <a href="https://codepen.io/rrjoson/pen/oopBoO">be found here</a>.</p><p>Let’s wrap up.</p><h3>Wrapping up</h3><p>So that’s just how hoisting variables work in JavaScript. If you want to learn more about hoisting, here are some links to help you with that:</p><ol><li><a href="http://lucybain.com/blog/2014/hoisting/">JS: Explain “hoisting”</a></li><li><a href="https://www.youtube.com/watch?v=C1PZh_ea-7I">Hoisting — Beau teaches JavaScript</a></li></ol><p>If you have any questions, just hit me up in the comments below.</p><p><em>(Oh, by the way, if you liked this post, I’d appreciate it if you could share it. 🤗)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1769d83f9814" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn how to create a 2 column layout with Flexbox — through GIFs]]></title>
            <link>https://medium.com/@rrjoson/learn-how-to-create-a-2-column-layout-with-flexbox-through-gifs-2ff2f26200c?source=rss-f4d37bf2c84c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ff2f26200c</guid>
            <category><![CDATA[flexbox]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Ricardo Raphael Joson]]></dc:creator>
            <pubDate>Mon, 13 Nov 2017 15:35:42 GMT</pubDate>
            <atom:updated>2017-11-13T15:40:25.215Z</atom:updated>
            <content:encoded><![CDATA[<p>This is part of a collection of front end tips to help you improve your CSS skills through bite-sized GIFs.</p><h4>Step 1: Make the body a flex container</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oZqdefq0QhLskABbt1zA2g.gif" /><figcaption>display: flex;</figcaption></figure><h4>Step 2: Make the body fill up the user’s viewport height</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HS9xa_5ZQHpjAg8CdX7G2A.gif" /><figcaption>min-width: 100vh;</figcaption></figure><h4>Step 3: Specify the width of the sidebar</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8FUF-g7-np-7bUy6YQLGdQ.gif" /><figcaption>width: 100px;</figcaption></figure><h4>Step 4: Make the main element fill up the available space</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mj4cl9oyhiG_PuBBxbUWtQ.gif" /><figcaption>flex: 1 0 0;</figcaption></figure><p>The code used in this post can <a href="https://codepen.io/rrjoson/pen/yPXeOe">be found here</a>.</p><p><strong><em>If you found this post helpful, please feel free to hit the clap button below.</em></strong></p><p><em>(Oh, by the way, if you liked this post, I’d appreciate it if you could share it. 🤗)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ff2f26200c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn how to create a sticky footer using Flexbox — through GIFs]]></title>
            <link>https://medium.com/@rrjoson/learn-how-to-create-a-sticky-footer-using-flexbox-through-gifs-e099c64013f8?source=rss-f4d37bf2c84c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e099c64013f8</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[flexbox]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Ricardo Raphael Joson]]></dc:creator>
            <pubDate>Sun, 12 Nov 2017 10:55:56 GMT</pubDate>
            <atom:updated>2017-11-13T15:32:04.399Z</atom:updated>
            <content:encoded><![CDATA[<p>Are you having a hard time implementing a footer that sticks to the bottom of the page regardless of the amount of content on the page? Don’t worry. In this post, I’ll show you how to just do that using Flexbox through short digestible GIFs.</p><h4>Step 1: Make the body a flex container</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pexy7k5PVY73Pzq2oXyC8g.gif" /><figcaption>display: flex;</figcaption></figure><h4>Step 2: Change the default flex direction from row to column</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jGvRxqFfg0fLm1R9uaVc3A.gif" /><figcaption>flex-direction: column;</figcaption></figure><h4>Step 3: Make the minimum height of the body element take 100% of the viewport height.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZbeRlwXZNXTWsL4q7DApNg.gif" /><figcaption>min-width: 100vh;</figcaption></figure><h4>Step 4: Grow the main element to fill the entire available space</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dioc5OTpP69zbyAY3PvQuA.gif" /><figcaption>flex: 1 0 0;</figcaption></figure><p>The code used in this post can <a href="https://codepen.io/rrjoson/pen/LOyxGb">be found here</a>.</p><p><strong><em>This is part of a collection of front end tips to help take your CSS skills to the next level using GIFs. If you found this post helpful, please feel free to hit the clap button below.</em></strong></p><p><em>(Oh, by the way, if you liked this post, I’d appreciate it if you could share it. 🤗)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e099c64013f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn how to center an element easily with Flexbox — through GIFs]]></title>
            <link>https://medium.com/@rrjoson/learn-how-to-center-an-element-painlessly-with-flexbox-using-gifs-a36845fc8591?source=rss-f4d37bf2c84c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a36845fc8591</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[flexbox]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[responsive-design]]></category>
            <dc:creator><![CDATA[Ricardo Raphael Joson]]></dc:creator>
            <pubDate>Sat, 11 Nov 2017 15:41:21 GMT</pubDate>
            <atom:updated>2017-11-13T15:40:14.299Z</atom:updated>
            <content:encoded><![CDATA[<p>This is part of a collection of front end tips to help take your CSS skills to the next level using GIFs.</p><h4><strong>Step 1: Make the parent element a flex container</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*elFQDFFYXvDifJOz2Tal0g.gif" /><figcaption>display: flex;</figcaption></figure><h4><strong>Step 2: Center the flex item vertically</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vLdDVaLwxPNkz-1eadAZRg.gif" /><figcaption>align-items: center;</figcaption></figure><h4><strong>Step 3: Center the flex item horizontally</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7mfEMF3zEQ5BmX48Xv0W1w.gif" /><figcaption>justify-content: center;</figcaption></figure><p>The code used in this post can <a href="https://codepen.io/rrjoson/pen/QOvMjb">be found here</a>.</p><p><strong><em>Please feel free to hit the clap button below if you found this helpful.</em></strong></p><p><em>(Oh, by the way, if you liked this post, I’d appreciate it if you could share it. 🤗)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a36845fc8591" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Today I learned: Mocha or Jest?]]></title>
            <link>https://medium.com/@rrjoson/today-i-learned-mocha-or-jest-91457362c989?source=rss-f4d37bf2c84c------2</link>
            <guid isPermaLink="false">https://medium.com/p/91457362c989</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-testing]]></category>
            <dc:creator><![CDATA[Ricardo Raphael Joson]]></dc:creator>
            <pubDate>Sun, 02 Jul 2017 12:21:58 GMT</pubDate>
            <atom:updated>2017-07-02T12:21:58.470Z</atom:updated>
            <content:encoded><![CDATA[<p>So one day your team made a significant change in your codebase and you don’t really know which parts of your code broke, so you did manual testing and fixed bugs as you go. But your team realized this is really tedious and shouldn’t happen again. Now your team decided to start writing unit tests to improve the stability of your app. You start researching online about testing frameworks to use for your react components and been thinking if you should use Mocha or Jest. Here are just a few of the strengths and weaknesses of Mocha and Jest to help you decide:</p><p><strong>Mocha</strong><br>- More widely used compared to Jest<br>- A less opinionated solution compared to Jest<br>- Requires more configuration to get it running</p><p><strong>Jest<br></strong>- Less widely used compared to Mocha <br>- Comes with an assertion library and mocking support<br>- Works out of the box with little configuration</p><p><strong>So, which testing framework should you use?</strong></p><p>It really depends on your goals. For me, I chose mocha since there are a lot more resources available online compared to Jest which makes it easier and faster for me to learn.</p><p><strong>Further reading:</strong></p><p><a href="https://spin.atomicobject.com/2017/05/02/react-testing-jest-vs-mocha/">https://spin.atomicobject.com/2017/05/02/react-testing-jest-vs-mocha/</a><br><a href="https://semaphoreci.com/community/tutorials/testing-react-components-with-enzyme-and-mocha">https://semaphoreci.com/community/tutorials/testing-react-components-with-enzyme-and-mocha</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91457362c989" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>