<?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 Jerry Huang on Medium]]></title>
        <description><![CDATA[Stories by Jerry Huang on Medium]]></description>
        <link>https://medium.com/@jhuang9240?source=rss-a7ad7c43b224------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Jerry Huang on Medium</title>
            <link>https://medium.com/@jhuang9240?source=rss-a7ad7c43b224------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:40:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jhuang9240/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[Job Search 101: Creating a Strategic Plan]]></title>
            <link>https://medium.com/@jhuang9240/job-search-101-creating-a-strategic-plan-d79f188c6ee?source=rss-a7ad7c43b224------2</link>
            <guid isPermaLink="false">https://medium.com/p/d79f188c6ee</guid>
            <category><![CDATA[codingbootcamp]]></category>
            <category><![CDATA[job-hunting]]></category>
            <category><![CDATA[flatiron-school]]></category>
            <category><![CDATA[advice]]></category>
            <category><![CDATA[jobs]]></category>
            <dc:creator><![CDATA[Jerry Huang]]></dc:creator>
            <pubDate>Wed, 08 Jul 2020 14:23:48 GMT</pubDate>
            <atom:updated>2020-07-08T14:23:48.233Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KzbL0qlfYXTxEUcCUojsHw.png" /><figcaption>My job searching strategic plan. The template I create can be found <a href="https://docs.google.com/presentation/d/1JMDyA9IQiHfpiQPh9o7pguhZiab9ORl0AVVuDh0SZxA/edit?usp=sharing">here</a></figcaption></figure><p>Before COVID, we were living in one of the greatest job markets in our generation. I graduated from the Flatiron School Software Engineering program almost three months ago and was planning on finding a job within a few weeks. No one could have predicted the economy would top almost 30% unemployment and that companies would slow or completely stop hiring. That is the current reality. So now what do we do? We plan!</p><h3><strong>Based on Corporate Strategic Planning</strong></h3><p>Strategic planning is the bread and butter of any corporate organization. Studies have shown that have a strategic plan improves organizational performance.</p><blockquote>Strategic planning has a positive, moderate, and significant impact on organizational performance in the private and public sectors, across international settings.</blockquote><blockquote>The findings suggest that strategic planning should be part of the standard managerial approaches in contemporary organizations and contradict many of the critiques of strategic planning.</blockquote><blockquote><a href="https://onlinelibrary.wiley.com/doi/full/10.1111/puar.13104">Source</a></blockquote><p>I have seven years of corporate experience in finance, accounting, logistics, operations, and strategy positions. Every year, we created strategic plans for almost every level of the organization. These consisted of a high-level vision, objectives, strategies, and actions. The company as a whole had a plan. Our organization pyramid had a plan. Our department had one. Even individual employees had a plan for their annual performance review.</p><p>My wonderful career coach, <a href="https://www.linkedin.com/in/maritzareveron/">Maritza Reveron</a>, suggested that I take the same approach for my job search. Utilize my corporate experience and draft my strategic plan for my job search.</p><p><strong>Think of a strategic plan as a lighthouse. a navigational aid to help guide you to where you need to go. The fog is thick and the future is uncertain. Having a strategic plan in place is creating a beacon to ensure you are at least moving in the right direction. Even if you are still unemployed in six months, you will have vastly improved your position.</strong></p><h3><strong>Step 1: Clarify Your Vision and Purpose</strong></h3><p><em>Clearly define what the purpose of this plan</em></p><p>What is the purpose of the plan? Try to be more specific if possible. “Getting a job” is valid. However, is there a specific industry? Is there anything you want from the company? A minimum salary?</p><p>Find a software engineering position in a company that I am passionate about within 6 months (for $XX,000).</p><h3>Step 2: Set Objectives</h3><p><em>What do I want to accomplish? Why am I doing it? How does it line up to my vision?</em></p><p>Create three to four things that you want to improve on. These should have a direct impact on helping you get employed. My four objectives that I think will have a direct impact on my employability. Define why these will improve your employability:</p><p>Create three to four objectives that you want to accomplish. These objectives should have a direct impact on your employability. Define why these will improve your employability:</p><ol><li><strong>Increase Connections:</strong> having more opportunities available</li><li><strong>Add New Skills:</strong> being more marketable having broader skill sets</li><li><strong>Improve on Algorithms:</strong> being prepared for technical interviews</li><li><strong>Create Projects:</strong> demonstrate my development and design skills to employers</li></ol><h3>Step 3: Create Strategies</h3><p><em>What am I going to do to hit my objectives?</em></p><p>Further, elaborate on your objectives. What are the specific things you want to accomplish?</p><ol><li><strong>Increase Connections:</strong> Will allow me to have more opportunities available</li><li><strong>Add New Skills:</strong> Will make me more marketable by having broader skill sets</li><li><strong>Improve on Algorithms:</strong> I will be prepared for technical interviews</li><li><strong>Create Projects:</strong> I will have a complete portfolio to demonstrate my abilities</li></ol><h3>Step 4: Create Measurable actions</h3><p><em>How and when am I going to do it</em></p><p>This is a section where you list out exactly how you aim to accomplish your objectives. Be as specific as you can. If you want to make more Connections. Set a quantifiable and measurable goal that you can hold yourself accountable for such as reaching out to eight people each week.</p><h3>Wrapping up</h3><p>I pull up my plan every Monday to make sure I am still on the right track. In this current job environment, it can be very discouraging. There are not that many opportunities. Recruiters are not responding. Just remind yourself that you are doing everything correctly and you are on the right path.</p><p>I have only recently implemented this strategy but it has helped me stay focused and have completed 50 LeetCode problems and 50% of a 30hr Udemy course in a few weeks. I have also been hammering away at my personal projects.</p><p>We are in this together. If you are in the job market, I encourage you to take my strategic planning as a guide and to craft your plan. My template can be found <a href="https://docs.google.com/presentation/d/1JMDyA9IQiHfpiQPh9o7pguhZiab9ORl0AVVuDh0SZxA/edit?usp=sharing">here</a>.</p><p>Would love to hear from you if you decide to make your own strategic plan. Please feel free to contact me!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d79f188c6ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linked Lists: Remove Nth Node From End of List]]></title>
            <link>https://medium.com/@jhuang9240/linked-lists-remove-nth-node-from-end-of-list-160e96f74953?source=rss-a7ad7c43b224------2</link>
            <guid isPermaLink="false">https://medium.com/p/160e96f74953</guid>
            <dc:creator><![CDATA[Jerry Huang]]></dc:creator>
            <pubDate>Sun, 05 Jul 2020 23:28:22 GMT</pubDate>
            <atom:updated>2020-07-05T23:28:22.406Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*0nTObdxH6DEXe9Gx.png" /></figure><p><a href="https://medium.com/@jhuang9240/linked-lists-finding-nth-node-from-end-of-list-15cc203abb6">Last week I wrote about how to use to find the Nth node from the end of a linked list</a>. This week, we will combine everything we learned from the past couple of weeks with fast and slow pointers to solve a medium LeetCode problem:</p><h4>LeetCode Problem #19. Remove Nth Node From End of List</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AzKaN-pl5pgGr16AMnH4iQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b4P41ZILhYLz4VKi.png" /></figure><h4>DummyHead</h4><p>We will take the same approach as find the Nth node except we need a dummyHead. The purpose of the dummy head to make it easier to pass base case scenarios. These include a linked list that is empty, has only one node, or removing the first node. The DummyHead will have a value of null but a next of the head.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UmLMa91QVXqHkM5y73Tzxg.png" /></figure><pre>//Creating a dummy <br>let dummy ={}<br>dummy.val = null<br>dummy.next = head</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MD7hVIDb_Lta9ah1YqIYrQ.png" /></figure><pre>let slow = dummy<br>let fast = dummy</pre><p>We will again move the FAST pointer by N nodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f5WjBbzM_gPXL34n7xKfmQ.png" /></figure><pre>while(n){<br>        fast = fast.next<br>        n--<br>    }</pre><p>Next, we will keep moving until FAST.next hits null. This is different than last week. Last week, we stopped AFTER FAST lands on null. This is because we want to stop right before SLOW hits the node we want to remove.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q7UfZWcmYid04Ggbxc9fEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vFjrlptFKcNzXiPppZJIzg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ElMMm6DbnI9HMevCVdvXw.png" /></figure><p>In this case, we want to remove node 4. We stopped it right before SLOW lands on our target node.</p><pre>while(fast.next){<br>        slow = slow.next<br>        fast = fast.next<br>    }</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LxrP8MyleFCqtAF_DdF5Xg.png" /></figure><p>We just have to rewire SLOW.next to bypass node 4 and point it to node 5.</p><pre>slow.next = slow.next.next</pre><pre>//slow.next is node &quot;4&quot;<br>//slow.next.next is node &quot;5&quot;</pre><p>We finish the problem by return dummyHead.next. This is the original head.</p><pre>return dummy.next</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/147ae93149a83225d22df27c2a0c5c86/href">https://medium.com/media/147ae93149a83225d22df27c2a0c5c86/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=160e96f74953" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linked Lists: Finding Nth Node From End of List]]></title>
            <link>https://medium.com/@jhuang9240/linked-lists-finding-nth-node-from-end-of-list-15cc203abb6?source=rss-a7ad7c43b224------2</link>
            <guid isPermaLink="false">https://medium.com/p/15cc203abb6</guid>
            <dc:creator><![CDATA[Jerry Huang]]></dc:creator>
            <pubDate>Fri, 26 Jun 2020 21:15:01 GMT</pubDate>
            <atom:updated>2020-06-26T21:15:01.833Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*0nTObdxH6DEXe9Gx.png" /></figure><p>Last week, I wrote about how to use a <a href="https://medium.com/@jhuang9240/linked-lists-slow-and-fast-8cfbecc2c7ea">slow and fast point to find the middle node of a linked list</a>. We can use the same approach to find N nodes from end.</p><p>For example, we have a linked list with nodes 1,2,3,4,5 and N =2. We would return the node with a value of 4 since it is 2 nodes away from the end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yQElUSUX9gbpkQL7sp0-uQ.png" /></figure><p><strong>Setting up pointers</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uMKRQpLtYzo13aS0T71wIA.png" /></figure><p>We will again start both pointers on the head. Instead of moving FAST move twice as fast. We will move fast one node at a time. However, we want to give FAST a head start. We will move FAST, N times before SLOW starts. Since N is 2, we will move FAST up two nodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m0q2Ld7jC6InxO9PVqQqig.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q5hHvHmcmugQGoIjZmHr0w.png" /></figure><p>Now we can move both pointers until FAST is NULL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xOFJknfPWJOvu4f8JLdUlQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c0M2N6ADCxV8SJ2a-SOUvg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B6DoTL8F19Env3f61bGzlA.png" /></figure><p>We can just return SLOW!</p><p>You can see that FAST and SLOW pointers work for a wide range of different problems.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dec9d9c9b74275ccaf4aecca912568d5/href">https://medium.com/media/dec9d9c9b74275ccaf4aecca912568d5/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15cc203abb6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linked Lists: Slow and Fast]]></title>
            <link>https://medium.com/@jhuang9240/linked-lists-slow-and-fast-8cfbecc2c7ea?source=rss-a7ad7c43b224------2</link>
            <guid isPermaLink="false">https://medium.com/p/8cfbecc2c7ea</guid>
            <category><![CDATA[linked-lists]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[leetcode]]></category>
            <dc:creator><![CDATA[Jerry Huang]]></dc:creator>
            <pubDate>Thu, 18 Jun 2020 20:05:55 GMT</pubDate>
            <atom:updated>2020-06-18T20:05:55.406Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*Edq4oXbT1WgykxKz.png" /></figure><p>95% of all singly linked list problems are solved with some type of pointers. In this example, we are going to use two pointers to find the mid point of a linked list.</p><p>A linked list is a data structure where a node (an object with a “value” and a “next” attribute that points to the next node).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*21SJvOG7oHeLL9wFjlT3Zg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PMrB_sjtNBlb5KKeisD8sQ.png" /></figure><h4>Pointers</h4><p>We will use two pointers. A pointer is just a variable that references a node. A pointer named “slow” will move at 1x speed and a pointer named “fast” will move at 2x speed. We will keep moving the pointer until the fast pointer moves to the very end.</p><p>We start both pointers on the very first node which is the head\</p><h4>Starting:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7k7UjB66u5Th10HtNLRrqg.png" /></figure><p>We will keep moving the pointers until the fast node hits null.</p><h4>First loop:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kUYvYDTxHwvlP-fQok3bvA.png" /></figure><h4>Second loop:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C6H8EE8yUAy_1eiCNQyk7Q.png" /></figure><p>We can stop at this point because out fast.next is equal to null. We can not advance the fast pointer anymore. Our slow pointer is sitting on the exact middle point.</p><p>We can just return the slow pointer as the answer. Voila!</p><h4>Solution in javascript:</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/78d894e08d192c41ad4446a5ebf98866/href">https://medium.com/media/78d894e08d192c41ad4446a5ebf98866/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8cfbecc2c7ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Algorithms: How to Solve Sorted Two Sum]]></title>
            <link>https://medium.com/@jhuang9240/algorithms-how-to-solve-sorted-two-sum-d6ce0f085605?source=rss-a7ad7c43b224------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6ce0f085605</guid>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[leetcode]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[two-sum]]></category>
            <dc:creator><![CDATA[Jerry Huang]]></dc:creator>
            <pubDate>Fri, 12 Jun 2020 16:37:36 GMT</pubDate>
            <atom:updated>2020-06-12T16:42:54.412Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*pVRDrrsMDUP-l7wm.png" /></figure><p>Sorted Two Sum is a slight twist on the basic Two Sum problem. After FizzBuzz, the original Two Sum is the quintessential beginners’ problem.</p><p>Two Sum goes as following:</p><blockquote>Giving an array of Integers, find the two numbers that add up to a target number.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rPJEPtjMMSz09IBkvRpMuQ.png" /></figure><p>Two Sum is probably where most programmers first see how solutions can be optimized. Most beginners will start by doing a brute force approach by finding everything single possible combination and see if it equals the target.</p><p>Beginners will quickly realize that the brute force works….but does not pass all the tests on Leetcode. It is not fast enough once the length of the array goes into the hundreds or even thousands.</p><p>The fastest solution is to create a hashtable(an object in javascript).</p><h4><strong>Sorted Two Sum</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rJxgEna9cKk2LKMuMZpNvw.png" /></figure><p>A presorted Two Sum problem is approached very differently. Although you can still use a hashtable, it is no longer the fastest solution. The word SORTED is probably one of the most important keywords in Algorithms. It completely changes the way you need to think about the problem. Anytime you see the SORTED, you should think of binary search or pointers(at least when dealing with arrays).</p><p>Here is how pointers works:</p><p>You create a “pointer” at the beginning and end of the array, which are essentially reference points. I call them left and right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EBpsQy7xbxHhw80xL_ZHWw.png" /></figure><p>They keep moving towards the middle until they cross each other. The logic is there are three things that can happen.</p><p>The value of left pointer + value of the right pointer can be:</p><ol><li>Equal the target (great! we are done)</li><li>Less than the target</li><li>Greater than the target</li></ol><p>If the combined values are less than the target, we need to move the pointer towards the center(left pointer to the right). This is because we know for sure the next number is greater than or equals to the current left pointer.</p><p>We can do the same if the combined value is greater than the target. We just move the right pointer towards the middle. In the above example, the target is 9. Our current combined value is 2 + 15, which is 17. Hence we move the right pointer towards the middle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*prT4aJx6RnsHsSbIt-9-kQ.png" /></figure><p>We now have a smaller value! We keep moving either left or right pointers until we either find the value or exit the loop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5VSo-tjc-7GQBWmr82c2ng.png" /></figure><p>2+7 equals our target!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/95090810db9a23dd8f221d0190176074/href">https://medium.com/media/95090810db9a23dd8f221d0190176074/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6ce0f085605" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Algorithm Shortcut: Gauss’ Formula (Leetcode #268 Missing Number)]]></title>
            <link>https://medium.com/@jhuang9240/algorithm-shortcut-gauss-formula-leetcode-268-missing-number-8acb63680c50?source=rss-a7ad7c43b224------2</link>
            <guid isPermaLink="false">https://medium.com/p/8acb63680c50</guid>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[leetcode]]></category>
            <category><![CDATA[missing-number]]></category>
            <dc:creator><![CDATA[Jerry Huang]]></dc:creator>
            <pubDate>Thu, 04 Jun 2020 17:16:20 GMT</pubDate>
            <atom:updated>2020-06-04T17:16:20.639Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/450/0*SCQKXMBm0OkoE-0L.png" /></figure><p>Anytime you need to quick sum all the numbers from 1 to n, you can quickly pull out Gauss’ Formula. It is so easy to remember that there is no reason that you shouldn’t know it. Especially since there are many algorithms that require you to add numbers from 1 to n.</p><h4>The equation is n * (n+1) / 2.</h4><p>For example if n = 100, all you need to do is multiply 100 by 101 and divide by 2.</p><blockquote><em>100 X 101 = 10,100</em></blockquote><blockquote><em>10100 / 2 = 5050</em></blockquote><blockquote><em>5050 is your answer!</em></blockquote><p><strong>if n = 6</strong></p><blockquote><em>6 X 7 = 42</em></blockquote><blockquote><em>42 / 2 = 21</em></blockquote><blockquote><em>21 is your answer</em></blockquote><h4>Now, when is this helpful:</h4><p>Leetcode# 268. Missing Number is one example</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pkg8DzHPvrAb9V5ZbKBuaw.png" /></figure><p>The brute force approach is to use two for loops to go through the entire array n times searching starting from the number 0 then 1,2,3…n.</p><p>There are multiple way to solve this problem:</p><ol><li>Loop through the array, checking starting from 0 to n which doesn&#39;t doesn’t exists( two For Loops)</li><li>Sort the array and then with loop through checking if each number is in sequence( such as if current element is +1 of next element)</li><li>Sort, then check if the current element is the same as index #. For example, 0 should be at index 0 if it is sorted. Example code is below:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*Dz_diyQ6uD0HHOI09LZFtQ.png" /><figcaption>Solution in Javascript</figcaption></figure><p>Instead of doing any of those options, there is a quick short cut with Gauss’ Formula. Simply calculate the total sum and start subtracting out the numbers until you are left with the missing number. No sorting is needed!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*hnMheWhQcn9oin-xkfePNA.png" /></figure><p>As you can see, using Gauss’ Formula boils the solution down to basically 3 lines of code.</p><p>Gauss’ Formula can be used in many different problem. Good simple formula to keep in your back pocket.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8acb63680c50" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transitioning from React to React Native: A Starter Guide]]></title>
            <link>https://medium.com/@jhuang9240/transitioning-from-react-to-react-native-a-starter-guide-17574940e983?source=rss-a7ad7c43b224------2</link>
            <guid isPermaLink="false">https://medium.com/p/17574940e983</guid>
            <dc:creator><![CDATA[Jerry Huang]]></dc:creator>
            <pubDate>Thu, 26 Mar 2020 17:16:15 GMT</pubDate>
            <atom:updated>2020-03-26T17:16:15.199Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*sNl8MvtNebRZewtt.png" /></figure><p>After gaining a firm understanding of React, it is a good time to expand on your knowledge to learn React Native. What exactly is React Native and what do you need to know to get a jump start to React Native. Here is a quick guide:</p><h3>What is React Native?</h3><p>React Native is taking the same architectural framework as React but instead of building web apps, React Native is used to build mobile apps for both iOS and Android. The major benefit of Native is not having to learn another language besides Javascript in order to build an app. iOS and Android app can also be build simultaneously without Objective-C, Swift (for iOS) or Java (for Android).</p><p>React Native is a hybrid system in which views are compiled to native code but all the “business” logic is remains in javascript and ran in a virtual machine in the back of your app. Though performance is not as good as apps written completely in native languages, it is faster than some platforms such as Ionic.</p><p>There are a few concepts that you need to be aware of as you transition to Native.</p><h3>No more HTML</h3><p>There is no more HTML! That means no more &lt;div&gt;, &lt;h1&gt;, &lt;body&gt; or any other html tags. Everything needs to be wrapped instead in prebuilt components imported from the React Native library. &lt;View&gt; can be used instead of &lt;div&gt; tags to organized your code. Text can no longer float in your JSX syntax. All text needs to be wrapped in &lt;Text&gt; instead of &lt;p&gt;. &lt;Button&gt; and &lt;Image&gt; are similar but have slightly different syntax. Those are enough to get you started. ScrollView, FlatList, and SectionList are components to be aware of and can be mastered to make your app more dynamic.</p><pre>&lt;View&gt;</pre><pre>   &lt;Text&gt;</pre><pre>      Hello World!</pre><pre>   &lt;/Text&gt;</pre><pre>&lt;/View&gt;</pre><h3>No more CSS</h3><p>Regardless if you love or hate CSS, it no longer exists in React Native. Though, styling is done in a language inspired by CSS. There is no CSS file, rather style is done with the StyleSheet component on each component you are creating. CSS animation no longer exists. You can learnReact Native’s Animated API for animations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Fvv5Rv2Y5JP-ta9HnZ6bA.png" /><figcaption>React Native styling is done on each component with a StyleSheet component</figcaption></figure><h3>No More Browser for Testing</h3><p>You will no longer be able to test your app in a browser. Which mean you longer have access to the web inspector. To test your app, you will need to have either a physical device or an emulator running on your computer.</p><h3>TL;DR</h3><p>React Native allows anyone with some experience with Javascript and React.Js to be able to quickly transition and build mobile apps. Though the architecture is similar, there are new concepts that you will need to learn as you move away from building web apps to mobile apps such as no longer using HTML and CSS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17574940e983" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Practicing with lots APIs makes you a better developer]]></title>
            <link>https://medium.com/@jhuang9240/practicing-with-lots-apis-makes-you-a-better-developer-b0fd8cc926a2?source=rss-a7ad7c43b224------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0fd8cc926a2</guid>
            <category><![CDATA[flatiron-school]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Jerry Huang]]></dc:creator>
            <pubDate>Tue, 10 Mar 2020 17:24:02 GMT</pubDate>
            <atom:updated>2020-03-10T17:24:02.072Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F9s-4X62ZqjTx2H3.jpg" /><figcaption>Using RapidAPI to find interesting APIs to incorporate in your projects</figcaption></figure><p>I am about nine week into my coding bootcamp at Flatiron school. I have built three major project so far. All of them have used some type of API (one for a TV show tracker, four for a travel social network app and three for a lunch picker app). Working with APIs was often very challenging but I realized that working with so many APIs have accelerated my growth as a developer. Here are three reason why I think it has made me a better developer.</p><h4>1. Makes Projects more Dynamic</h4><p>One of the most obvious reasons to use APIs is that makes your projects more dynamic and interesting. There are so many different APIs to use that you are guaranteed to find one that interest you. I often peruse Rapid API for inspiration to start building projects.</p><p>APIs also allows to add features that you otherwise would not be able to replicate. For example, I was able to incorporate Google Maps into my lunch by automatically displaying the address of the restaurant. This made the app much more dynamic and user friendly.</p><p>There is stigma that using APIs is taking shortcuts and that you are not really writing your own code. That is not true. If you are are building a car, you do not need to reinvent the wheel. You take components that others have built to build on top of it to make something even more functional. That is what software developing is all about, building on code other’s have build before you. However, this does not mean that you can just plop an API into your app and call it your own, you still need to integrate the code into your own.</p><h4>2. Working with Lots of Data</h4><p>Working through practice labs and mock projects does not expose you to many instances where you have to work with large data sets. Some APIs return very large data sets. The concept of scalability never crosses your mind when you only build small scale projects in a vacuum.</p><p>When creating my tv show tracker, we were pulling hundreds of shows at once in a JSON file. Each show listed every single episode of that show with all the information about that episode. Originally, I was parsing through the data by using a for-loop with another for-loop inside to handle the episodes. For those who know the CS concept of big O will instantly recognize this as exponential time complexity. Exponential time complexity is a big issue when you scale apps to large scale. My program would take a long time trying to parse all this data.</p><p>Theses are close to real life scenarios where you need to be mindful of large amounts of data and find solutions to either limit the amount of data being shown at once or writing better code to handle that data.</p><h4>3. Working with Other Peoples Code</h4><p>As a developer, you most likely will not be writing an application from the ground up. You will be working on team or working on existing project that are currently in production. This mean you will need to be able to understand other peoples code quickly and be able to build on top of existing code. Using API frequently gives you some exposure with using and adapting to other code that others wrote.</p><p>Working with APIs can be very challenging sometimes. One of the main reasons is that you did not write the code and that code does not necessarily fit nicely with your own code. You end up spending a-lot of time reading the documentation to figure how to even use the API. This forced you to learn code and concepts that you may not be comfortable with. For my lunch picker app, I wanted to ability to utilize the Google AutoComplete API to help user predict their location as they were typing. It called specifically for a callback method that you have to create to be used as one of the API endpoints. Google would take your function and return Javascript that would make your search bar dynamic. This was a concept that didn&#39;t even know was possible. You grow as a developer when you learn to code with new concepts.</p><p>Using API as a new developer definitely help accelerate your skills as a developer. Head over to Rapid API and pick something that interests you and just start practicing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0fd8cc926a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[As a New Developer, Should I Learn TypeScript?]]></title>
            <link>https://medium.com/@jhuang9240/as-a-new-developer-should-i-learn-typescript-5d9c8f9d969d?source=rss-a7ad7c43b224------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d9c8f9d969d</guid>
            <category><![CDATA[flatiron-school]]></category>
            <category><![CDATA[codingbootcamp]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Jerry Huang]]></dc:creator>
            <pubDate>Mon, 02 Mar 2020 02:52:36 GMT</pubDate>
            <atom:updated>2020-03-02T02:52:36.160Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7QwRdAxb9Q8wejjQJiFJsQ.png" /></figure><p>TypeScript is a major buzzword of 2020. There are numerous articles predicting it is next big language and it is continually showing up in job postings. Between 2018–19, GitHub saw a 161% increase in use of TS. In a Stack Overflow survey at the end of 2019, TypeScript was rated as one of the top three most loved languages (behind Python and Rust).</p><p>So what exactly is TS and why is it growing so fast? As a current Flatiron School student with only about two months of coding experience, is it worth confusing myself learning typescript? These are all the questions I asked myself as I dove into finding out more about TS.</p><h3>What exactly is TypeScript?</h3><p>TypeScript is a programming language developed by Microsoft in 2012 as a means of addressing some of the shortcomings of Javascript for the development of large-scale applications, specifically type annotations. However, the lack of development environments that supported TS hinger the adoption of TS during the early years. It was not until recently that TS has picked up in popularity.</p><p>TS is a superset of Javascript. This means that anything written in JavaScript works perfectly in TypeScript. However, TypeScript provides advanced autocompletion, navigation, and refactoring</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*isC06I1V8h3feSEBGtHBQA.png" /></figure><h3>Benefits of TypeScript</h3><h4>1. Learning curve is fairly low</h4><p>The largest benefit of TS is that because it is a superset of JS, there is a very short learning curve. Any JS code can be used in TS. This means you can start using TS without actually knowing any TS. This allows a beginner user to install TS and start using it with JS but slowly incorporate TS languages one piece at a time.</p><p>TS can be install with npm with the following code:</p><pre>npm install -g typescript </pre><p>Any Javascript file can be converted to TS by changing the extension to .ts then can be compiled back to .js files with the tsc &lt;filename&gt; command.</p><pre>tsc main.ts</pre><h4>2. Type syntax introduction</h4><p>Having only learned Ruby and Javascript in Flatiron School, I do not have much exposure to type annotations that is common among other languages such as Java, Python, C++, or Swift. This makes it more difficult to learn those type syntaxes. TypeScript is like a baby step that gives us the a way to slow ease into type annotations, making it easier to translate Ruby and JS concepts to those languages.</p><h4>3. Type and error checking</h4><p>Declaring type is optional in TS. Some of those types are below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*tjYPY34yF6sd5WSIP2wnng.png" /></figure><p>TS will also infer which type it is when you declare a variable without a specified type. The below example “count” is declared equal to 5. It is inferring “count” is an integer. When count is set equal to ‘a’, TS will highlight that the type is incorrect, allowing you to fix the error before your code even runs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*qnoBTCy_WNY0g2TrRZ5ZWg.png" /></figure><p>Type checking is a bit clunky when you first see it and does reduce the amount of time needed to debug if there are issues. Looking at the below JS code for a function. We know it requires three arguments but don’t know any details on what to pass in.</p><pre>function processPurchase(purchaser, po_number, details){ }</pre><p>The below TS code is longer but clearly shows what type each argument needs to be in order to run properly. It takes the guess work out of the code.</p><pre>function processPurchase(purchaser: string, po_number: int, details: Array&lt;string&gt;){ }</pre><h4>4. Gateway into Angular</h4><p>Angular is entirely based on TS. Though you might be comfortable developing your project with React or Vue.js, you never know what your future team or project could be using. Knowing TS now allows you to quickly learn Angular in the future.</p><h3>Summary</h3><p>It takes very little to get set up onto TypeScript. As new developer, there is no absolutely no reason to at-least get your feet wet with TS. You can slowing integrate and add TS features into your projects little by little. Especially with how popular TS is becoming, its something to get familiar with now so you don’t have to dive in head first if you ever get caught in a situation where you need full comprehension of TS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d9c8f9d969d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ruby on Rails: Plural vs Singular Cheatsheet]]></title>
            <link>https://medium.com/@jhuang9240/ruby-on-rails-plural-vs-singular-cheatsheet-d4b3a2fba573?source=rss-a7ad7c43b224------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4b3a2fba573</guid>
            <category><![CDATA[flatiron-school]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Jerry Huang]]></dc:creator>
            <pubDate>Mon, 10 Feb 2020 14:12:00 GMT</pubDate>
            <atom:updated>2020-02-10T14:12:00.699Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R3hzUVclJ1PYeAiZa3JWpg.jpeg" /></figure><p>Ruby on Rail is widely known as a framework that can get your web app from 0–60 in a matter of hours. Rails gives developers so many tools and boilermaker templates that developers can solely focus on their writing code rather than configuring their application. All of this comes with a cost:</p><blockquote><strong>Convention over Configuration.</strong></blockquote><blockquote><strong>Convention over Configuration.</strong></blockquote><blockquote><strong>Convention over Configuration.</strong></blockquote><p>This was a phrase that was repeated over and over as I learned Rails. To take advantage of all the tools that rails offered, one must follow all the rails convention method of naming.</p><p>In general, models are always singular, while databases are almost always plural. Then there are grey areas such as using generators when pluralization is required for some but not other generators.</p><p>There were some quick references on the internet but I found myself keeping a spreadsheet on my computer of all the rules for quick reference. Even though I have since memorized most of the rules, it was always best-practice to double-check the rules before creating a generator or proceeding to write code. Undoubtedly, you will experience some instances where your entire application is erroring out because you missed an “s”.</p><h4>Here is my Cheatsheet for pluralization:</h4><p>I used <strong>Taco Cats</strong> as my model. Note that these naming conventions are for the model Taco Cats only. You do not HAVE TO follow these rules but it allows Rails to automate some configurations such as using implicit rendering.</p><p>With a multiple word model, we can layout snake case vs camelcase as well.</p><p>A lot of <strong>many to many model</strong> do not have tangible joiner models. Most of the time you can just simply combine the name of the two models for the joiner. An example would be <strong>Recipes</strong> have many <strong>Ingredients</strong>.<strong> </strong>While<strong> Ingredients</strong> are in many <strong>Recipes</strong>. There is no clear joiner model so most people will use <strong>RecipeIngredients</strong>. This is completely fine but caused more complexity in Rails as some files/names are CamelCase (<strong>RecipeIngredients</strong>) while others are snake_case (<strong>Recipe_Ingredients</strong>).</p><h3><strong>Generators</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AiWjqWpKv4sZw5L5ZYXQhA.png" /></figure><h3>Declarations</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AjWXgYhg9DktUCSiTp4aoA.png" /></figure><h3>File &amp; Directory Names</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I9n41gYuLu3Be8eme3Dr3Q.png" /><figcaption>All file names are snakecase. Only the model files are singular</figcaption></figure><h3>Routes</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*veTj3G5C76RUohglXvOUiA.png" /><figcaption>*All the controller routes are plural because the controller itself is plural. However, some of the prefixes are singular if you want to use the “_path” shortcuts</figcaption></figure><p>These aren’t all the instances of the model naming in a rails app. But it should be enough to get started. Happy coding.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4b3a2fba573" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>