<?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 Daniel Along on Medium]]></title>
        <description><![CDATA[Stories by Daniel Along on Medium]]></description>
        <link>https://medium.com/@danielalonge?source=rss-1697c32fa913------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*YoFdnc_L9if2U2xt8UIL3A.jpeg</url>
            <title>Stories by Daniel Along on Medium</title>
            <link>https://medium.com/@danielalonge?source=rss-1697c32fa913------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 03:20:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@danielalonge/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[Give Your React App Wings to Fly With Custom Hooks]]></title>
            <link>https://medium.com/better-programming/give-your-react-app-wings-to-fly-with-custom-hooks-55e1b9648a34?source=rss-1697c32fa913------2</link>
            <guid isPermaLink="false">https://medium.com/p/55e1b9648a34</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[js]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Daniel Along]]></dc:creator>
            <pubDate>Wed, 29 Jul 2020 15:11:56 GMT</pubDate>
            <atom:updated>2020-08-03T17:53:56.775Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to write modern React</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6TwGvW85f20MMmIr" /><figcaption>Photo by <a href="https://unsplash.com/@flowforfrank?utm_source=medium&amp;utm_medium=referral">Ferenc Almasi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a>.</figcaption></figure><p>Do you remember when the trend in the React ecosystem was to separate concerns using a different component to hold the logic and another component to render the presentation?</p><p>If you do remember, it means you have been using React for a long time. If you have no idea what I am talking about, then I will say you haven’t missed out on much because React has kind of moved on and caught a new vibe: hooks.</p><p>Even before hooks were introduced in version 16.8, the React ecosystem had long gravitated towards the functional component approach. But with hooks, it has been a revolution. Most of the popular React libraries have had to either rewrite their code or include hook-compliant approaches to using them.</p><p>React hooks have been so inspiring that other frameworks such as Vue.js are beginning to take a page from the concept.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iUTaJG6VZWXpfVLO" /><figcaption>Photo by <a href="https://unsplash.com/@blizzard88?utm_source=medium&amp;utm_medium=referral">Grant Durr</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a>.</figcaption></figure><p>React components can become complex in a hurry, which can make it difficult to test or debug. Therefore, it would be nice to apply the Unix philosophy that promotes the idea of doing one thing well. We can detach all the logic from a component and create a custom React hook to hold it, which implies that we have separated the logic from the presentation. This makes code refactoring super easy. If you need to change what your app looks like, you can simply work on the presentation aspect. If your logic needs to be improved, you will not have to alter your presentation.</p><h3>Custom Hooks</h3><p>Custom hooks are easy to create because they look like regular functions that expose data and methods for the presentation component to consume. The bonus is that it makes it super easy for logic to be reused.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1a9baa625254f9f17e3dd8148e8ce336/href">https://medium.com/media/1a9baa625254f9f17e3dd8148e8ce336/href</a></iframe><p>You might say the example above is too simplistic, and I would not disagree with you. Consider a situation where you need to fetch data in JSON format from an API to use on various components of your app. It would make sense if you made a custom hook that you can easily reuse across your app. Check out the following example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3da3885b1cdefd558607d4c50c40f7cf/href">https://medium.com/media/3da3885b1cdefd558607d4c50c40f7cf/href</a></iframe><p>A lazy fetch option would look like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/25a0c66e295e8f36392e3216fbdef8d8/href">https://medium.com/media/25a0c66e295e8f36392e3216fbdef8d8/href</a></iframe><p>If you want to find out more about building your own custom hooks, check out <a href="https://reactjs.org/docs/hooks-custom.html">the official documentation</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55e1b9648a34" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/give-your-react-app-wings-to-fly-with-custom-hooks-55e1b9648a34">Give Your React App Wings to Fly With Custom Hooks</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The real bug Twitter needs to fix is humans]]></title>
            <link>https://medium.com/@danielalonge/the-real-bug-twitter-needs-to-fix-is-humans-79f2fa59aed2?source=rss-1697c32fa913------2</link>
            <guid isPermaLink="false">https://medium.com/p/79f2fa59aed2</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[twitter]]></category>
            <dc:creator><![CDATA[Daniel Along]]></dc:creator>
            <pubDate>Thu, 11 Jun 2020 04:41:56 GMT</pubDate>
            <atom:updated>2020-06-11T04:41:56.249Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2GmFu4dtU9D_itKb" /><figcaption>Photo by <a href="https://unsplash.com/@lukechesser?utm_source=medium&amp;utm_medium=referral">Luke Chesser</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>One of the most useful features on Twitter is how it tracks trends and aggregates trending topics for users to know what trends are and thereafter be able to checkout the trends and make their contribution.</p><p>However there is a big threat out there that is making Twitter trends unattractive; this is how people choose to engage with the trending hashtags or key words. A lot of irrelevant tweets are introduced by users that contain the trending topics along with other contents that are not in anyway reflective of what the topic represent. This they do in a bid to make their tweet visible to more users in order to drive engagements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Xs4zybDgqBehlRyE" /><figcaption>Photo by <a href="https://unsplash.com/@matiasmisael97?utm_source=medium&amp;utm_medium=referral">Matias Misael</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It may seem like it is not a bad idea for users to seize the opportunity to expose their tweets to other users and in turn get more likes, retweets and followers. But this is really making it difficult for those whose only interest is to follow the twitter trends and get a full grasp of why the hashtag or key word is trending by being able to engage with tweets that are relevant to what the trend is about.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hFGqX6oBDzoXlS9K" /><figcaption>Photo by <a href="https://unsplash.com/@mygallery?utm_source=medium&amp;utm_medium=referral">KS KYUNG</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Twitter user behaviour may vary from country to country as to how they engage with the trending topics; but it has become clear that abuse is rife and impacting negatively the overall experience of users.<br>It has been particularly frustrating for me and I am quite sure I am not the only user who things this human behaviour bug needs to be fixed.</p><h3>A solution</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gCPkbxv9FhVPy6Yy" /><figcaption>Photo by <a href="https://unsplash.com/@agkdesign?utm_source=medium&amp;utm_medium=referral">Alex Knight</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I propose that Twitter deploys Machine Learning and Artificial Intelligence on their platform to monitor trends, rank tweets according to its relevance to the trending topic, then sort the tweets to ensure that the most relevant appear at the top. This will go a long way to enhance the experience of users as they will not have to scroll through too many junk before finding the stuff they are interested in.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79f2fa59aed2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The truth about code challenges]]></title>
            <link>https://medium.com/@danielalonge/the-truth-about-code-challenges-c2df461062d4?source=rss-1697c32fa913------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2df461062d4</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[code-newbie]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Daniel Along]]></dc:creator>
            <pubDate>Thu, 30 Jan 2020 21:54:38 GMT</pubDate>
            <atom:updated>2020-01-30T21:54:38.753Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b79y9lQ_MV-XpzU_" /><figcaption>Photo by <a href="https://unsplash.com/@yomex4life?utm_source=medium&amp;utm_medium=referral">Yomex Owo</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>There comes a time in a programmer’s life that he/she will have to face the reality of code challenges. I am not in any way implying that we all have to take the challenge; I am only suggesting that it is most probable that taking the challenge will be required of us.</p><p>If you have a dream of someday working with any of the big enterprises such as Amazon, Google, Microsoft and Facebook,then you better start dreaming of passing your code challenges first because you will have to prove your mettle before you can be brought on board.</p><p>I will make an attempt to share some of the truths I have discovered about code challenges.</p><h3><strong>Proficiency is key</strong></h3><p>Picture a gigantic tree which has several branches and fruits hanging from them. Only in your wildest imagination will such a tree be floating in space. Trees require a ground to stand on and roots that go deep into the ground to offer the much needed support.</p><p>Proficiency in at least one programming language is the root you need to begin your journey. You need to be familiar with most of the methods as they will come in handy when you need to manipulate data. It’s not even about being a genius; imagine trying to creates methods of your own simply because you didn’t know that those are already implemented by your language of choice. It is not enough to know the methods exists, it is very essential that you have used them to solve problems hence you know exactly what to expect.</p><h3><strong>Algorithm and Data Structure is a must</strong></h3><p>This is where it gets complicated. I am seriously resisting the temptation to give a lecture on Algorithm and Data Structure but that will not be necessary because I don’t consider myself an authority in this field neither do I want to digress from the topic being discussed.</p><p>The foundation of programming is rooted in Algorithm which in simple terms refers to step by step instruction for solving problems. To a mathematician it could mean a formula and to a programmer it will be several procedures that a program implements to solve a problem. Trust me, I haven’t even scratched the surface; if you are interested you can do a search and find more answers.</p><p>According to wikipedia, <a href="https://en.wikipedia.org/wiki/Data_structure">Data Structure</a> is a data organization, management, and storage format that enables efficient access and modification.<br>Some examples includes: Arrays, Linked lists, Record, Objects etc.</p><p>It is required that you are familiar with these data structure and you should be able to implement it on your own. It is important that you learn about the Big O notation as well; the crux of the matter is that you are able to choose the right data model at all times as data structures have their pros and cons and will be more suitable in certain scenario than others.</p><h3><strong>You must get your hands dirty</strong></h3><p>Solving a code challenge is rooted in understanding the problem and having enough knowledge and skill required to provide a solution that takes care of all the edge cases.</p><p>There are several algorithm and data structure questions out there and the only way you can get in the groove is to expose yourself to them. Some are rooted in mathematics while some will be about manipulating data.</p><p>Thankfully, there are numerous platforms out there that allows you to take some test for free. Attempt as many as you possibly can and research to find solutions to the ones you are unable to solve. I can tell you from experience, the more challenges you solve, the better you get at it.</p><h3><strong>You will fail some</strong></h3><p>Now let us face reality. Only a few people want to fail, most people prefer to ace the test all the time. But in the real sense of the world, you will not be as impressive as you wish to be. This is the hard truth you will need to come to terms with. It is important to know some of the factors that could be responsible for an undesirable result.</p><p>These may include:</p><ul><li>Your proficiency level in the programming language of choice.</li><li>Your understanding of Algorithm and Data structure.</li><li>Lack of sufficient preparation.</li><li>Your inability to understand the problem.</li><li>Your inability to proffer a robust solution that efficiently takes care of all the edge cases.</li><li>Not enough time as speed and accuracy is needed.</li></ul><p>The list could go on and on, but the above kinds of summaries the possible reasons you are not reaching your goal. History does not keep records of those that gave up. It’s important that you identify the cause of your failure and work harder to be better positioned to overcome them.</p><p>In conclusion, I am of the opinion that code challenges are not entirely bad especially the ones that seek to solve real life problems as they are able to prepare you ahead of time for similar problems that you may encounter in the future.</p><p>You do not have to wait for that job interview to take the code challenge, you can do it to exercise your brain, you can also do it to improve your problem solving skills as well.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2df461062d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Framework is a must for better programming]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/swlh/framework-is-a-must-for-better-programming-fa7c1665582d?source=rss-1697c32fa913------2"><img src="https://cdn-images-1.medium.com/max/2600/1*UWSkLNFCfR5ht-3pzb8LZQ.jpeg" width="5760"></a></p><p class="medium-feed-snippet">Adopting a framework will enforce standards that will introduce systemic order and mitigate chaos while productivity will be off the charts</p><p class="medium-feed-link"><a href="https://medium.com/swlh/framework-is-a-must-for-better-programming-fa7c1665582d?source=rss-1697c32fa913------2">Continue reading on The Startup »</a></p></div>]]></description>
            <link>https://medium.com/swlh/framework-is-a-must-for-better-programming-fa7c1665582d?source=rss-1697c32fa913------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa7c1665582d</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Daniel Along]]></dc:creator>
            <pubDate>Thu, 26 Sep 2019 11:25:31 GMT</pubDate>
            <atom:updated>2019-09-26T15:49:59.088Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Baby Steps for a Beginner in the World of Programming]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/better-programming/the-baby-steps-a-beginner-requires-to-stay-alive-in-the-world-of-programming-1c8e576a6ad?source=rss-1697c32fa913------2"><img src="https://cdn-images-1.medium.com/max/2600/1*wjxksgFVha16RbjuA8KcIw.jpeg" width="2615"></a></p><p class="medium-feed-snippet">Sit before you crawl, crawl before you walk, and walk before you run</p><p class="medium-feed-link"><a href="https://medium.com/better-programming/the-baby-steps-a-beginner-requires-to-stay-alive-in-the-world-of-programming-1c8e576a6ad?source=rss-1697c32fa913------2">Continue reading on Better Programming »</a></p></div>]]></description>
            <link>https://medium.com/better-programming/the-baby-steps-a-beginner-requires-to-stay-alive-in-the-world-of-programming-1c8e576a6ad?source=rss-1697c32fa913------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c8e576a6ad</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Daniel Along]]></dc:creator>
            <pubDate>Tue, 27 Aug 2019 12:53:13 GMT</pubDate>
            <atom:updated>2019-08-28T00:39:00.542Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Steps to Proficiency in Any Programming Language]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/better-programming/steps-to-proficiency-in-any-programming-language-8931ed4fe766?source=rss-1697c32fa913------2"><img src="https://cdn-images-1.medium.com/max/1920/1*dGe9r8nx9WLCpFXsgMUXoA.jpeg" width="1920"></a></p><p class="medium-feed-snippet">Seven steps to proficiency, from being an active learner to solving real problems</p><p class="medium-feed-link"><a href="https://medium.com/better-programming/steps-to-proficiency-in-any-programming-language-8931ed4fe766?source=rss-1697c32fa913------2">Continue reading on Better Programming »</a></p></div>]]></description>
            <link>https://medium.com/better-programming/steps-to-proficiency-in-any-programming-language-8931ed4fe766?source=rss-1697c32fa913------2</link>
            <guid isPermaLink="false">https://medium.com/p/8931ed4fe766</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Daniel Along]]></dc:creator>
            <pubDate>Fri, 23 Aug 2019 21:42:41 GMT</pubDate>
            <atom:updated>2019-08-27T23:50:48.838Z</atom:updated>
        </item>
    </channel>
</rss>