<?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"><channel><title><![CDATA[Bellsofaba]]></title><description><![CDATA[Bellsofaba]]></description><link>https://bellsofaba.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 10:52:30 GMT</lastBuildDate><atom:link href="https://bellsofaba.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Data Structures and Algorithms: The Codex of Computer Science]]></title><description><![CDATA[Why Data Structures and Algorithms are Essential to Programmers]]></description><link>https://bellsofaba.hashnode.dev/data-structures-and-algorithms-the-codex-of-computer-science</link><guid isPermaLink="true">https://bellsofaba.hashnode.dev/data-structures-and-algorithms-the-codex-of-computer-science</guid><category><![CDATA[data structures]]></category><category><![CDATA[algorithms]]></category><category><![CDATA[coding challenge]]></category><category><![CDATA[#codenewbies]]></category><category><![CDATA[codenewbie]]></category><dc:creator><![CDATA[Jack Aba]]></dc:creator><pubDate>Wed, 15 Nov 2023 00:07:24 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/iar-afB0QQw/upload/b452dfea00821900cd44d536879d653d.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Ever looked at a coding challenge and wondered what in the Elon Musk, Charles Babbage, and Alan Turing jargon is going on here?</p>
<p>Well, it turns out, you are not alone. A lot of developers, programmers, and software engineers dread the famous data structures and algorithms path of learning.</p>
<p>But what are they exactly? Is it possible for one to have a career in a coding-related job despite evading data structures and algorithms?</p>
<p>Short answer…</p>
<p>Yes.</p>
<div class="embed-wrapper"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a class="embed-card" href="https://media.giphy.com/media/fPRwBcYd71Lox1v7p2/giphy.gif?cid=790b7611itukusac2xk0xkm7d1g5o3t9d35yvf13y2kvszzi&amp;ep=v1_gifs_trending&amp;rid=giphy.gif&amp;ct=g">https://media.giphy.com/media/fPRwBcYd71Lox1v7p2/giphy.gif?cid=790b7611itukusac2xk0xkm7d1g5o3t9d35yvf13y2kvszzi&amp;ep=v1_gifs_trending&amp;rid=giphy.gif&amp;ct=g</a></div>
<p> </p>
<p>However…</p>
<p>Some limitations will catch up to you sooner or later.</p>
<p>They lurk, waiting, like the synonymousness of life with the grim reaper—an inevitability that is the fate of everyone who has ever lived—a slow and eventual demise.</p>
<div class="embed-wrapper"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a class="embed-card" href="https://media.giphy.com/media/h5NLPVn3rg0Rq/giphy.gif">https://media.giphy.com/media/h5NLPVn3rg0Rq/giphy.gif</a></div>
<p> </p>
<p>Feign ignorance; circle to Mars on its first expedition if you must. But as far as the standards of securing the crème de la crème of tech jobs are concerned (disclaimer: this is subjective), you need your dose of DSA.</p>
<p>But the oddity here is one you might not have seen coming; data structures and algorithms are not prerequisites for production-level code.</p>
<p>Yay! Once more.</p>
<p>Whew! Don’t scuttle off in victory just yet; let’s discuss the essentiality of DSA.</p>
<h2 id="heading-why-do-you-need-data-structures-and-algorithms">Why do you need Data Structures and Algorithms?</h2>
<p>So what is the point? Here are a few reasons you can get behind.</p>
<p><strong>The bedrock of software engineering</strong></p>
<p>That’s right. There are software engineers and those who purport to be software engineers. Kidding. I had an incredible coding instructor who used to say that if you wrote a line of code, you were a software engineer.</p>
<p>That’s it. No take-backs.</p>
<p>Gatekeepers can suck it.</p>
<div class="embed-wrapper"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a class="embed-card" href="https://media.giphy.com/media/J1djusiGZ4ek0/giphy.gif">https://media.giphy.com/media/J1djusiGZ4ek0/giphy.gif</a></div>
<p> </p>
<p>But we often deal with this nagging remnant of our former selves. The one that heightens feelings of low self-esteem and excavates the often neglected Donning-Krueger effect, or better yet, the imposter syndrome that is familiar to specialists of various fields.</p>
<p>One day, you feel confident enough to exclaim, "I just whipped up several lines of code and assembled this beauty of a specimen. I must be god."</p>
<div class="embed-wrapper"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a class="embed-card" href="https://media.giphy.com/media/g05Yv2djSv4fgkbDH6/giphy.gif">https://media.giphy.com/media/g05Yv2djSv4fgkbDH6/giphy.gif</a></div>
<p> </p>
<p>Another day you are stuck on a coding error, and no amount of consultation with the fairy god-father/mother nature of ChatGPT can get you unstuck. Not even its dinosaur predecessor, StackOverflow (kidding, please don't find me Neeson), can offer a solution. So the inertia of a reclusive, well-hidden secret reemerges to offer you a not-so-subtle reminder that you might just be a fraud.</p>
<div class="embed-wrapper"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a class="embed-card" href="https://media.giphy.com/media/3xz2BK4Xo850NXjq8M/giphy.gif">https://media.giphy.com/media/3xz2BK4Xo850NXjq8M/giphy.gif</a></div>
<p> </p>
<p>Kidding again.</p>
<p>Maybe you totally dumped Pomodoro, are acting on overdrive, and aren’t utilizing the presence of your coding duck to help you navigate your coding sessions.</p>
<p>Well, this veered off...</p>
<p>Really fast too, I might add.</p>
<p>Still…</p>
<p>Bring back your train of thought to what’s being discussed here...</p>
<p><em>Data structures and algorithms are fundamentals that act as the foundation for all things software engineering.</em></p>
<p><strong>Optimization</strong></p>
<p>The word "optimization" might come off as fancy, but it simply refers to making something better than it already is. It is the process by which the status quo is improved so that it morphs into something else and becomes more efficient and effective.</p>
<div class="embed-wrapper"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a class="embed-card" href="https://media.giphy.com/media/TcZSnGWDJe0GKztvnl/giphy.gif">https://media.giphy.com/media/TcZSnGWDJe0GKztvnl/giphy.gif</a></div>
<p> </p>
<p>That’s another reason you need data structures and algorithms. It assists in making you think optimally so that your code comes off better. It’s not something noticeable in the short run. It compounds and offers you rewards years into your coding career.</p>
<p><strong>Puzzle Master</strong></p>
<p>That’s a term that is waiting to be yours if you can carefully maintain a relationship with data structures and algorithms.</p>
<div class="embed-wrapper"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a class="embed-card" href="https://media.giphy.com/media/xTiTnBELA6Mb1TeeOc/giphy.gif">https://media.giphy.com/media/xTiTnBELA6Mb1TeeOc/giphy.gif</a></div>
<p> </p>
<p>Maybe not in a generalized sense for every puzzle or how you might envision it, but you can be sure to notice a surge in your problem-solving skills in the long run.</p>
<p>Crosswords and Sudoku games are in for a surprise.</p>
<p>There are countless other reasons that make knowledge of data structures and algorithms an incredible arsenal for your utility belt (Cough cough! Go Batman. Go wreck up some jokers), but the aforementioned reasons should suffice for now.</p>
<p>Anyway…</p>
<p>This is a collection of data structures and algorithm notes to help beginner-level programmers better grasp the concepts of coding challenges and problem-solving.</p>
<p>They are mostly my spin on all things data structures and algorithms from a beginner's standpoint, and I do not seek to offend any GPT-level coders out there. Whoever the shoe fits, wear it.</p>
<p>With that being said, I will leave you with data structures and algorithms until the next lesson on the most common types of data structures and algorithms - Linked list, Queue, Stack, Tree, Prime Factors, Matrices, and more.</p>
<h2 id="heading-what-are-data-structures">What are Data Structures?</h2>
<p>Right off the bat, you can put one and two together and put a spin on the name to come up with a non-complicated name for it; it is simply the structure of data. This structure of data is structured or organized by special identifiers that make them easily fetchable after they have been stored on a computer.</p>
<h2 id="heading-what-are-algorithms">What are Algorithms?</h2>
<p>These, if Richard Feynman were to articulate them plainly, are a set of instructions that offer us guides to solving problems.</p>
<h2 id="heading-when-these-powers-combine">When these powers combine...</h2>
<p>Together, they form indispensable components of what constitutes computer science.</p>
<p>There are no David Goggins or Tony Robbins 's-level motivational sermons I can offer you to kickstart your passion for wanting to learn them.</p>
<div class="embed-wrapper"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a class="embed-card" href="https://media.giphy.com/media/s5uNqj8AblvucpAOWD/giphy.gif">https://media.giphy.com/media/s5uNqj8AblvucpAOWD/giphy.gif</a></div>
<p> </p>
<p>All I can say is that you need them so that you can excel in this realm of things. Additionally, you should have an innate and intense desire to learn, which is synergistic for a healthy neural network. You can choose to evade them instead. But what good would that do to you if your intention is to become a well-rounded software developer or engineer?</p>
<p>See you in the next post for the types of data structures and algorithms. Spoiler alert: they are not a walk in the park. But hopefully, you knew that already, and nothing phases you. Because you are a go-getter.</p>
<p>You go get!</p>
<p>Live long and prosper.</p>
<div class="embed-wrapper"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a class="embed-card" href="https://media.giphy.com/media/IL4iTvQH0MjS/giphy.gif">https://media.giphy.com/media/IL4iTvQH0MjS/giphy.gif</a></div>
]]></content:encoded></item><item><title><![CDATA[Excavating Your Inner Problem-Solver: Embracing Coding Challenges]]></title><description><![CDATA[Coding challenges. Whew! They are the bane of most beginner software developers. Considering the difficulty, anxiety, and, to some extent, time constraints…]]></description><link>https://bellsofaba.hashnode.dev/excavating-your-inner-problem-solver-embracing-coding-challenges</link><guid isPermaLink="true">https://bellsofaba.hashnode.dev/excavating-your-inner-problem-solver-embracing-coding-challenges</guid><category><![CDATA[algorithms]]></category><category><![CDATA[data structures]]></category><category><![CDATA[coding challenge]]></category><category><![CDATA[coding]]></category><category><![CDATA[#codingNewbies]]></category><dc:creator><![CDATA[Jack Aba]]></dc:creator><pubDate>Tue, 14 Nov 2023 23:04:00 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1685690389250/eed20a1f-db85-4a0f-a00e-404183dca078.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-how-to-excel-at-coding-challenges-as-a-beginner">How To Excel at Coding Challenges as a Beginner</h2>
<hr />
<h2 id="heading-introduction">Introduction</h2>
<p>Coding challenges. Whew! They are the bane of most beginner software developers. Considering the difficulty, anxiety, and, to some extent, time constraints that coding challenges are known for, this is not further from the truth. While it remains burdensome to most developers, it is a love-hate relationship for others.</p>
<p>Depending on what side of the fence you belong to, it doesn’t change the fact that they are an essential component of what constitutes a well-rounded developer. If you are looking for a software developer job these days, odds are you already know how crucial it is that you become a well-rounded developer.</p>
<p>Becoming a well-rounded developer is my hope for you. It is a feat reserved for people who dare to be different. It offers a difference between the bounty veteran developers gain at the top and the scraps at the bottom.</p>
<p>Howdy coder! Brace yourself. Let’s journey to the top for the stamp of achievement. By embarking on this quest, you will create an awareness that will give you the boldness to traverse all the enchanting mysteries that shroud coding challenges. On this magical journey, you will unravel how algorithms beat it to a choreographed dance and how data structures churn out whispered secrets to offer you rewards.</p>
<p>The rewards…</p>
<p>The rewards are plenty, sandwiched in valleys of processes that serve as maps to various destinations—treasure troves hidden as solutions, waiting to be unraveled.</p>
<p><img src="https://media.giphy.com/media/lMg0qBGvh0Hu0AMLj4/giphy.gif" alt="Little Pirate In Booty " /></p>
<h2 id="heading-the-realm-of-hopelessness">The Realm of Hopelessness</h2>
<p>Admittedly, if you have recently ventured on your pilgrimage to coding challenges, they will, to a large extent, seem like behemoths—unscalable and intimidating. Another trait of theirs is the elusive and proud aura they exhibit. They intend to make fun of your cluelessness and desperately want to remain mischievous while leaving you bewildered. Huh!?</p>
<p><img src="https://media.giphy.com/media/l4JA1COQqiZB6/giphy.gif" alt="Cute Doggo" /></p>
<p>Luckily, you can shake off the feeling of hopelessness. The first thing you want to do is stay calm.</p>
<p><img src="https://media.giphy.com/media/1luXLMeNxsaNFMUuOe/giphy.gif" alt="Michael Scott From the Office Panicking" /></p>
<p>Don’t resort to head-scratching and give in to the resolve of cluelessness. Being clueless when starting is normal and a part of the learning process. Celebrate a bit. There’s joy in shared misery. Yey! This misery is not exclusive to you, so you will do yourself a favor by not latching onto it. Do your time and get out. Get out so that you can help others. This moment is your toe-dipping phase. Or your learning foundation. And like all learning, two options lay bare for your consideration.</p>
<h2 id="heading-your-options">Your Options</h2>
<p>The first choice is acceptance. You irrevocably accept what is to come. You embody a willingness to immerse yourself in a series of perplexing puzzles. I’m not going to lie to you. It will hurt. It will particularly hurt the brain. It is supposed to hurt. Compare this pain with the heart palpitations and muscle soreness you experience during exercise.</p>
<p>Admittedly, you and I know why the brain hurts and will hurt at this stage. No? Just me? Maybe you do. Well, it doesn’t hurt to reiterate, does it? When you are new to coding challenges, your brain will feel strange due to its lack of use in problems that lean towards complexity. It will remain that way for a while unless the genius in you is Einstein-level, which makes you the exception. The light at the end of the tunnel is that after the hurt comes clarity. Yes. It gets better.</p>
<p>It is either that or the second choice, nothingness—a void. It has one role, and that is to downplay and question what the aim of putting your brain through unimaginable confusion is. The former knows why a little discomfort is necessary for your interests—to unlock growth. The latter just wants to chill and confine your attempts at growing.</p>
<p>Chilling (or resting) is phenomenal. It is a condiment for growth. But overchill is overkill. To overcome this hurdle, you’d have to downplay chilling and put it on pause. Coding hours are synonymous with deep work. These hours are for focus. So, consider this your invitation to embrace sturdiness with your hand on your wand (cough, keyboards).</p>
<p>This invitation will herald a path that necessitates a headfirst dive in. Why? Because it is a captivating realm. There are no limits to the possibilities. You are allowed to employ all your artillery to arrive at a solution. In that regard, using both conventional and unconventional methods is equally important so that you can unravel your prowess at problem-solving.</p>
<p>Remember that you need to be focused and avoid distractions for the best results, which will come as a complete surprise to you in the early days. During the coming days, weeks, or even months that will follow, you will gain more clarity on the mechanisms of coding challenges.</p>
<p>That is how you unravel what is going on. We'll examine the strategies required for you to master coding challenges. In the meantime, why do you even need to bother to learn about coding challenges in the first place? You might have a myriad of valid reasons.</p>
<h2 id="heading-why-coding-challenges-are-important">Why Coding Challenges Are Important</h2>
<p>It is no secret that you will encounter so many challenges when you start having a go at coding. But despite the hurdles you will likely experience, there are many reasons why coding challenges are vital for you. A continuous trajectory of learning through coding challenges will provide you with a plethora of knowledge</p>
<p><img src="https://media.giphy.com/media/DgLsbUL7SG3kI/giphy.gif" alt="Meeseeks from Rick and Morty" /></p>
<p>Problem-solving skills can be honed and nurtured when solving or attempting to solve coding challenges. Critical thinking is a requirement for breaking down questions into chunks. To arrive at a solution, you should know how to articulate what the question asks of you.</p>
<p>By regularly solving coding challenges, you will witness an exponential upsurge in your understanding of questions that fall into the same category. If you don’t expose yourself to such problems daily, it becomes increasingly difficult to determine how to solve the challenges. Your consistency will get you closer to becoming a master at the craft.</p>
<h3 id="heading-algorithmic-thinking">Algorithmic Thinking</h3>
<p><img src="https://media.giphy.com/media/APqEbxBsVlkWSuFpth/giphy.gif" alt="Cute Little Girl Performing Mental Calculations" /></p>
<p>When you practice coding challenges daily, one of the incentives you gain is the ability to think algorithmically, logically, and systematically. Algorithmic thinking helps you develop the ability to think in terms of algorithms, which invariably helps with your understanding of the best way to approach various methods of data structures. That is how you can successfully pass coding challenges.</p>
<h3 id="heading-development-of-technical-skills">Development of Technical Skills</h3>
<p><img src="https://media.giphy.com/media/hHxTQkcjmHUTC/giphy.gif" alt="Tony Stark Working" /></p>
<p>Coding challenges are multifaceted in terms of what encompasses their makeup. There are different programming languages, frameworks, and concepts. The best approach to tackling them is to pinpoint an area that exalts your strengths and hammer them down until you can wield and shape them. You have to keep having a go at it until it becomes second nature. That is how technical skills become ingrained in your subconscious.</p>
<h3 id="heading-interview-preparation">Interview Preparation</h3>
<p><img src="https://media.giphy.com/media/yv1ggi3Cbase05a8iS/giphy.gif" alt="Looney Toons" /></p>
<p>Coding tasks during job interviews will initially seem daunting. Your best bet at mitigating this is to come prepared. Let me introduce you to the “7 Ps of Success” principle.</p>
<p><strong>P</strong>roper <strong>P</strong>lanning and Preparation <strong>P</strong>revent <strong>P</strong>iss <strong>P</strong>oor Performance</p>
<p>The <strong>7 Ps of Success</strong> emphasize the need to prepare for something you will inevitably face. This principle will ensure you are not hurled into a whirlwind of confusion and embarrassment when you need to face it. To adequately prepare for something, it all boils down to time allocation and preparation. It’s like not brushing or flossing your teeth and then dreading a visit to the dentist. A careful examination of the scenario will make you realize the disconnect. Get acquainted with the dentist as soon as possible so your teeth don’t fall out, or wait it out — an unpleasant scenario that will not be viable or pleasant for anyone in the long run.</p>
<p>A better thing to do is to deal with the unpleasantries from the get-go. Make it a part of your curriculum to practice coding challenges daily. That is the only way to boost your technical skills and confidence in interviews. But if you are a snake oil salesman and can talk your way out of a coding interview, all the best.</p>
<h3 id="heading-lifelong-learning">Lifelong Learning</h3>
<p><img src="https://media.giphy.com/media/88ItEmRSOqJnQXSlOe/giphy.gif" alt="Kungfu Panda" /></p>
<p>When you can reach the pinnacle of making coding challenges your own and not the other way around, rewards await you. There is a zenith of growth that becomes a part of your life. This growth becomes evident in the company you will keep (a league of extraordinary geeks), the remuneration packages you will attract, the curiosity your mind wanders for, the motivation that will become a part of your new makeup, and much more. These are equally important, and it’s up to you to use your discernment to prioritize what matters most to you.</p>
<h2 id="heading-how-to-understand-coding-challenges">How to Understand Coding Challenges</h2>
<p>Understanding coding challenges is another area that needs further elaboration. When you decide to solve coding challenges daily, you will find your consistency at odds with what is going on. What is behind a coding problem? What does it say? What does it want from you? To understand all these, a couple of things emanate to shine a light on the task.</p>
<h3 id="heading-foundations-mastery">Foundations Mastery</h3>
<p><img src="https://media.giphy.com/media/TmVHwsPAveJiM/giphy.gif" alt="Fast Crawling Baby" /></p>
<p>Without adequate knowledge of a programming language, it will be best for you to bookmark this post or add it to your reading list in the hopes that you will revisit it later. That’s because until you have done the needful —learn your fundamentals—you will not be able to grasp the concept of coding challenges.</p>
<p>However, I’d be remiss if I hastily chased you away after dedicating your time to reading this post. Instead, be happy to learn that there are quite a few coding challenges specifically curated to help beginners with foundational knowledge. You can refine your search on any coding challenge website by using the keywords: “foundation”, “tutorial”, or “beginner.”</p>
<p>When it comes to crafting mastery, tools are an indispensable part of your kit. The same is true for coding challenges. Programming fundamentals are the tools that are necessary for getting over any kind of coding challenge. When you step into the fantastic world of coding, your foundational knowledge has to be top-notch.</p>
<p>You must know the prerequisites that beginners need to know. To do so, you must first become acquainted with the mysticism of variables, loops, conditionals, functions, all data types, and the artful manipulation of data structures.</p>
<p>A firm mastery of the above concept will give you a general overview and be your compass.</p>
<h2 id="heading-where-to-find-free-code-learning-resources">Where to Find Free Code Learning Resources</h2>
<p>You can learn coding fundamentals from websites that offer free lessons. Some websites with free resources are listed below. <a target="_blank" href="https://www.freecodecamp.org/">FreeCodeCamp</a>,</p>
<p><a target="_blank" href="https://www.theodinproject.com/">The Odin Project</a></p>
<p>And if you are looking for a <strong>free boot camp</strong> where you will find a vibrant community of supportive developers, (that's right, it's absolutely free), check out a <a target="_blank" href="https://leonnoel.com/100devs/">100Devs</a>. With a <a target="_blank" href="https://leonnoel.com/100devs/">100Devs</a>, you go through 30 Weeks of learning to become proficient at Full-Stack Web Development at no cost.</p>
<p>Additionally, you can check out a couple of other paid resources that offer extra uniqueness.</p>
<p><a target="_blank" href="https://www.programmingexpert.io/">Programming Expert</a>,</p>
<p><a target="_blank" href="https://scrimba.com/">Scrimba</a></p>
<p>lastly, you can check out a <a target="_blank" href="https://code-squid.teachable.com/">Code-Squid</a>, a beloved project by a friend of mine with close to 4 decades of coding experience, Bob</p>
<p><strong>Important:</strong> Please note that the listed websites are all recommended for recommendation purposes only and are not affiliate links. You can explore more of their offerings if you are feeling generous. There's no harm in appreciating fellow developers who might become instrumental in your learning journey.</p>
<h3 id="heading-compartmentalizing-the-problem">Compartmentalizing the problem</h3>
<p><img src="https://media.giphy.com/media/MFmT0MyjKpZtBdUQwH/giphy.gif" alt="Rubix Cube Breaking Apart" /></p>
<p>Problem-solving requires determination and wit. In that regard, it is not in your best interest to hastily approach the problem. Remember, these are uncharted territories. The problem statement would involve acknowledging its tapestry. You will need to know what its components are. Is it a labyrinth, or is it pretending to be one? Pause and consider all the possibilities and constraints.</p>
<p>Afterward, you will enter a mental state that carefully flips the problem on its head to dissect it. It is your operating table. And you are the surgeon. You will need to go Sherlock Holmes on it without any reservations. You have to let it know you are a master at solving puzzles.</p>
<p>When you reduce the problem into chunks and pieces, you will realize that each piece holds a clue to the larger mystery. Properly weighing the inputs and the expected outputs will help you conclude that it is not the behemoth it purports to be.</p>
<p>To further elaborate on how to break down the question into chunks, I have selected a beginner friendly <a target="_blank" href="https://www.codewars.com/kata/5715eaedb436cf5606000381/javascript">8 kyu level kata</a> from <a target="_blank" href="https://www.codewars.com/">Codewars</a>. This kata sheds light on how to break down a problem using the <strong>PREP</strong> method. <strong>PREP</strong> is an acronym for <strong>P</strong>arameters, <strong>R</strong>esults, <strong>E</strong>xamples, and <strong>P</strong>seudocode.</p>
<p><strong>Question: Sum of positive</strong> <strong>Description:</strong> (Reworded for clarity) Imagine you have an <strong>array</strong> of <strong>numbers</strong>. You are required to <strong>return the sum of all of the positive ones</strong>.</p>
<p><strong>Example</strong> [1,-4,7,12] =&gt; 1 + 7 + 12 = 20</p>
<p><strong>Note:</strong> <strong>If</strong> there are <strong>no positive numbers</strong> to sum, the <strong>default</strong> should be <strong>0</strong>.</p>
<p><strong>Solution</strong></p>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">positiveSum</span>(<span class="hljs-params">arr</span>) </span>{

}
</code></pre>
<p><strong>Compartmentalizing the problem and determining the solution</strong></p>
<p>As previously mentioned, the <strong>PREP</strong> approach to solving coding challenges is what we will use to solve this problem.</p>
<p>The first thing we will tackle is parameters.</p>
<p><strong>Parameters</strong> This coding challenge has one parameter for us: arr. It is contained in the brackets <strong>( )</strong> after our function name, <strong>positiveSum</strong>. In this case, the function takes an array <strong>arr</strong> as its parameter. Even though the <strong>arr</strong> does not explicitly have numbers stored, it is assumed to contain a list of numbers similar to those provided in the example.</p>
<p><strong>Results</strong> The <strong>result</strong> is the <strong>intended outcome</strong> we hope to achieve from this coding problem. The result is what the function will return at the end of the coding challenge in this regard. The <strong>function</strong> must return the sum of all positive numbers in our array. Our example illustrates the predicted outcome. Also, remember that the result will be <strong>0</strong> if no positive values exist in the <strong>array</strong>.</p>
<p><strong>Examples</strong> Our example is straightforward. It offers insight into the expected output when there are a set of inputs. In our example array</p>
<pre><code class="lang-javascript">arr = [<span class="hljs-number">1</span>, <span class="hljs-number">-4</span>, <span class="hljs-number">7</span>, <span class="hljs-number">12</span>]
</code></pre>
<p>You’d notice three positive numbers, 1, 7, and 12, out of the four integers in the array. After going through the ‘array,’ we would pick out the positive numbers and ignore the negative number, -4. Afterward, we will add up the numbers:</p>
<pre><code class="lang-javascript"><span class="hljs-number">1</span> + <span class="hljs-number">7</span> + <span class="hljs-number">12</span> = <span class="hljs-number">20</span> <span class="hljs-comment">//Sum of positive numbers.</span>
</code></pre>
<p>Carefully analyzing examples is an effective way to get a hint of the desired outcome. When you can weigh the inputs and determine their output, the pattern to arrive at the answer becomes clear. Following this pattern will show you the intriguing mechanisms of how the coding challenge works.</p>
<p><strong>Pseudocode</strong> Our pseudocode is a working process or a layman's explanation of the processes involved. It tells us how to answer the question without literally writing the code. For our example, we will break it down into the following:</p>
<blockquote>
<p><strong>Initialize</strong> a variable and call it aggregate because this is where we will store our positive numbers. We need this because computers cannot mentally keep invisible numbers as we do in our heads. The initialized variable will be 0. <strong>Why have we initialized it to 0?</strong> We’ve done this for two main reasons. The first is that our outcome should be an integer. Secondly, 0 is a good starting point when we need to add positive elements(numbers) after going through the array. When we check our <strong>array</strong> and stumble across positive numbers, we <strong>add them to 0</strong>.</p>
<p>After initializing our variable and setting it to 0, we will need to <strong>check the entirety of our array</strong> to look for positive numbers. What helps us achieve this is a loop. Loops help us navigate the elements in an array. For our example, we will use a for loop. It will enable us to loop through the entire length of the <strong>array</strong> and check each element therein. <strong>A for loop has &gt; three sections.</strong> The <strong>first section is the initialization stage</strong>, the <strong>second is the condition stage</strong>, and the <strong>third part is the final statement</strong>.</p>
<p>Next, our for loop will enable us to <strong>confirm if a number or an element in the array, ( denoted by arr[i] ) is greater than 0.</strong></p>
<p><strong>If</strong> it is <strong>greater than 0</strong>, we will <strong>add it to our initialized variable</strong> which we have named <strong>aggregate</strong>. The <strong>+ operator</strong> will help us achieve this.</p>
<p>After iterating through all the elements in the array, we will <strong>combine all the positive elements</strong> we find in the aggregate variable.</p>
<p>Finally, we <strong>return the calculated aggregate</strong> of all the &gt; positive numbers.</p>
</blockquote>
<p>After everything is said and done, when these powers combine, we will form Captain... Oops, our function will look like it does below.</p>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">positiveSum</span>(<span class="hljs-params">arr</span>) </span>{
  <span class="hljs-keyword">let</span> aggregate = <span class="hljs-number">0</span>;  <span class="hljs-comment">// Initialize a variable called aggregate that will store the positive numbers in the array. This has been set to 0.</span>

  <span class="hljs-keyword">for</span> (<span class="hljs-keyword">let</span> i = <span class="hljs-number">0</span>; i &lt; arr.length; i++) {  <span class="hljs-comment">// Our for loop goes through each element in the array.</span>
    <span class="hljs-keyword">if</span> (arr[i] &gt; <span class="hljs-number">0</span>) {  <span class="hljs-comment">// We use an if statement to check if the current element is greater than 0.  (positive).</span>
      aggregate += arr[i];  <span class="hljs-comment">// If the element is positive, add it to the aggregate sum.</span>
    }
  }

  <span class="hljs-keyword">return</span> aggregate;  <span class="hljs-comment">// Return the final sum of positive numbers.</span>
}
</code></pre>
<p>####Here is another summary of our code and what we did to arrive at a solution.</p>
<blockquote>
<p><strong>let aggregate = 0;</strong> : We initialize a variable called aggregate. This helped in storing our positive integers. To start on a clean slate, we set it to 0.</p>
<p><strong>for (let i = 0; i &lt; arr.length; i++) {</strong> : This is a loop that iterates over the elements of the array. It starts with <strong>i</strong> as <strong>0</strong> and continues until <strong>i</strong> reaches the <strong>length</strong> of the <strong>array</strong>.</p>
<p><strong>if (arr[i] &gt; 0) {</strong> : Inside the loop, we check if the current element at index <strong>i</strong> is greater than <strong>0</strong>. If it is, it means the number is positive.</p>
<p><strong>aggregate += arr[i];</strong> : If the current number is positive, we add it to the <code>aggregate</code> sum by using the shorthand <code>+=</code> operator. This accumulates the positive numbers.</p>
<p><strong>return aggregate</strong> : Finally, after iterating through the entire array, we return the <em>aggregate</em>* sum as the result of the function.</p>
</blockquote>
<h3 id="heading-studying-and-researching">Studying and Researching</h3>
<p><img src="https://media.giphy.com/media/fC3ZmX9FDtAu4/giphy.gif" alt="Doggo Studying" /></p>
<p>If you don’t study, you will not familiarize yourself with crucial concepts. The only way to know what is out there is by looking. Algorithms are known to be tricky, but they will appear even more so if you haven’t the slightest idea of what you are looking at. Therefore, I urge you to embrace studying things that are important but seem mundane and let them become a part of you. Or, you could utilize more effective tools like <a target="_blank" href="https://apps.ankiweb.net/">Anki</a> to make studying worthwhile.</p>
<p>If you are familiar with the concepts of learning, you know that if it hurts, it only means you are experiencing growth in some way. If your learning starts becoming a little too comfortable, you know you have reached a plateau. You will need to push the boundaries to utilize more brain power. Consider exercise. When you are no longer experiencing any changes, you know it’s time to switch up your routine with something different.</p>
<p>Constantly iterating your study pattern and refining your approach by immersing yourself in blog posts, video tutorials, documentation, textbooks, and more is how you expand your knowledge base.</p>
<h3 id="heading-solving-incrementally">Solving Incrementally</h3>
<p><img src="https://media.giphy.com/media/dXr0rbo8j6Yhwivo8f/giphy.gif" alt="Bird Building" /></p>
<p>Let’s get back to the exercise analogy. I bet you can already tell I am a fitness person. There is a clever strategy for lifting heavy weights. Or for incorporating exercise into your workouts. It involves patience, time commitment, adequate nutrition, and more. But the most fundamental is what I have listed.</p>
<p>As a gym newbie, even when you unintentionally skip the gym for too long, if a bit of an ego boost makes you rush to the heavy-weight section where you use too much of your energy to pick weights your body is not ready for, you will find out the hard way why that was a horrible idea. The next couple of days will be awful for you.</p>
<p>You will experience what is known as delayed-onset muscle soreness, or DOMS. And if you choose to start with weights ideal for beginners, latching onto them for too long will cause your growth to plateau.</p>
<p>Now, with coding, you should employ the same tactics to maneuver your way to the top. Abiding by this strategy will help you conquer even the most formidable coding challenges. Start with simple problems and then ascend to harder ones.</p>
<p>Incrementally approaching coding problems is how you can make the biggest of them crumble before you. That is how to expand your intellect and solve different levels from several vantage points.</p>
<h3 id="heading-reviewing-solutions-submitted-by-others">Reviewing Solutions Submitted By Others</h3>
<p><img src="https://media.giphy.com/media/bezxCUK2D2TuBCJ7r5/giphy.gif" alt="Jim Carey Peeping" /></p>
<p>When you solve a coding challenge, your solution is considered part of your repertoire. It is a win for you. But to understand the other ways you could have approached the challenge, you should look at the solutions submitted by others. Don't worry, it's not cheating. Looking at what other developers submitted will help you uncover a myriad of possible approaches. These approaches will help you broaden your horizons and explore new paths. Tapping into the perspective and logic of others is a limitless way to improve your versatility.</p>
<h3 id="heading-communal-convergence">Communal Convergence</h3>
<p><img src="https://media.giphy.com/media/Fzb4nqyfrTA66u2HOD/giphy.gif" alt="Friends" /></p>
<p>As humans, we have been able to build cities and send rockets into space. The reason we have been able to achieve these feats isn’t attributable to our strengths. It is not because of our self-imposed position at the top of the food chain, either. It is due to our camaraderie and the ability to work collectively. Working together is how we can apply our wisdom to different specialties.</p>
<p>On your coding odyssey, surround yourself with a diverse community of like-minded individuals. There are several programming communities, seminars, standups, study groups, and more that you can join. These will expose you to interactions and insights that will clarify any hurdles.</p>
<h3 id="heading-reflection-and-iteration">Reflection and Iteration</h3>
<p><img src="https://media.giphy.com/media/Lntt6Vee77UeiLf4aD/giphy.gif" alt="Refactoring" /></p>
<p>To get better, you should harness your strength to reflect. Reflecting on the steps you used to arrive at the solution is one way to enhance your knowledge of the subject matter. With adequate reflection comes growth and improvement in areas you once thought unfathomable. Remember, your brain needs time to recuperate.</p>
<p>Introspection will assist you in identifying easy areas and those that weren't—areas that put up a fight. With this, you adjust your strategy and concentrate on subjects that make you feel short. There is no harm in refining your study methods according to your strengths and weaknesses. Remember, our weaknesses are part of what makes us human. We all have them.</p>
<h3 id="heading-persistence">Persistence</h3>
<p><img src="https://media.giphy.com/media/YsOQGFLy6l6aIqZ0ru/giphy.gif" alt="You are no quiter" /></p>
<p>Without persistence, we are nothing. Make patience and persistence your hallmarks of strength. Don’t let them go. Engrave them in the depths of your subconscious as a constant reminder that you need to get better. Understand that the path to unraveling coding challenges is not a sprint but a marathon that requires time and effort. Embrace the virtue of patience, for Rome wasn't coded in a day.</p>
<p>You automatically accept the challenges that come your way with unwavering resolve when you are persistent and do not waver in your pursuit of mastery. There will always be challenges along the way, but if you don't give up, it becomes a favor for yourself. Consider obstacles as catalysts that pique your curiosity rather than running away. Keep going despite the uncertainty and darkness by remembering that there is light at the end of the tunnel. You'll escape unscathed if you do that.</p>
<h2 id="heading-conclusion">Conclusion</h2>
<p><img src="https://media.giphy.com/media/nc20IGTi6pIDrHRfJ0/giphy.gif" alt="Waving bye" /></p>
<p>Make coding essential to your daily routine, like eating food. Through regular exposure and active learning, you will witness the gradual blossoming of your problem-solving skills. Each challenge conquered and each line of code written will deepen your understanding and illuminate the intricate workings of coding challenges.</p>
<p>So, my tenacious companion, embrace the journey ahead with patience, persistence, and unwavering consistency. With these virtues as your allies, the realms of coding challenges will unveil their secrets, and you will emerge as a master of the craft that traverses all the known paradigms.</p>
<p>Strive for what is feasible. Remember, you don’t have to be perfect. The best you can do is keep pushing the envelope and asking for help that you can use. If you keep doing that, sooner or later, you will move toward something that magnifies your coding prowess.</p>
<p><img src="https://media.giphy.com/media/IL4iTvQH0MjS/giphy.gif" alt="Spock" /></p>
<p>Go forth and prosper!</p>
]]></content:encoded></item><item><title><![CDATA[Bye Satan - The End of Self Sabotage]]></title><description><![CDATA[A Short Reflection on Procrastination]]></description><link>https://bellsofaba.hashnode.dev/bye-satan-the-end-of-self-sabotage</link><guid isPermaLink="true">https://bellsofaba.hashnode.dev/bye-satan-the-end-of-self-sabotage</guid><category><![CDATA[programmer]]></category><category><![CDATA[Programming Blogs]]></category><category><![CDATA[#codenewbies]]></category><dc:creator><![CDATA[Jack Aba]]></dc:creator><pubDate>Wed, 23 Feb 2022 11:17:50 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/unsplash/VBe9zj-JHBs/upload/v1645609599596/_FY0yaKrR.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3 id="heading-get-thee-behind-me-satan">“Get thee behind me, Satan."</h3>
<p>It's me. I am Satan. Satan is me.</p>
<p><strong>Not in the literal sense.</strong> So, please, sheath your bibles, torahs'; whatever artillery you have for religious warfare. They are not needed here. That's because I am not alluding to the all-encompassing manifestation of evil. I am not referring to him/her/them/it. Whatever adjective works for you, just try forgetting the first image that comes to mind each time the arch-nemesis dude’s name comes up in this post.</p>
<p>Although... I have now realized that asking you to forego the thought of said revered/hated angel of darkness is making all of these lean toward the direction of Schoedinger's cat thought experiment.</p>
<p>Do you want to forego the thought? Or do you not want to?</p>
<p>Let’s put a hold on that thought, shall we? Or should we?</p>
<p>What then is my similarity to the famously depicted pointy-nosed, pitchfork-wielding-twisty-horned goat-person and all that red glittery skin? (My skin obviously doesn't shine red.)</p>
<p>Well...</p>
<p>HERE IS YOUR ANSWER...</p>
<p>**Self-sabotage. **</p>
<blockquote>
<p>Self-sabotage - self-subversion. (Merriam-Webster)</p>
</blockquote>
<p>I have willingly and unwillingly self-sabotaged myself in more ways than I can count.</p>
<p>Is it prison? Theft? Drugs?</p>
<p>No.</p>
<p>There have never been any over-the-top self-sabotage travails in my gallery of wrongdoings that would add to my story of triumph. Sorry to disappoint.</p>
<p>“So… what is it?” You might ask.</p>
<p>Hold on to your horses. I promise I’ll get right to it.</p>
<p>In earnest, we all have self-sabotaging moments. You know yours, don’t you? Of course, you do. The first step to any recovery is admitting there is a problem. Use this blog post as my mysterious confirmation that I also have one. Or a few. Depends on who’s asking.</p>
<blockquote>
<p>Self-sabotage is the self-imposing hurdle that has had me relegated to the corners of self-limitation. The kind that pedestalizes procrastination.</p>
</blockquote>
<p>That's where ideas go to die. That's where the majority of people go to find comfort. And like most people, I have inadvertently spent a huge chunk of my 20s in that corner.</p>
<p>Things were easier back when all I had to do was show up to the dining table and there'd be food waiting for me. Kids don't have to worry much about where the food comes from. It's simple... I didn't ask to be born. Regardless, I do acknowledge and appreciate that certain sacrifices had to have happened for me to be here. And, I would eternally be grateful for them.</p>
<h3 id="heading-fast-forward-to-the-present">Fast Forward to the Present</h3>
<p>I am not a kid anymore. And reality beckons at every tick of the clock. Being an adult, what scares me the most is how fast time flies. The movement of time is constant. It only moves toward the future. And it doesn't care for my, your, or anybody else's self-indulgence and/or guilty pleasures.</p>
<blockquote>
<p>Time shows up without fail. It dawns on you, like a tax collector, to collect accountability expenses. As far as you have air in your lungs, you have some time in your hands to use or misuse as you deem fit.</p>
</blockquote>
<p>Would it be time well spent? Would it be maximally utilized in activities that would push you closer or further away from attaining your short-term/long-term goals? Would your name stand the test of time and echo impacting tales of glory on mount success or would it atrociously remain in the alleyways of mediocrity? Either way, time tells. It always does.</p>
<blockquote>
<p>When a person can't find a deep sense of meaning, they distract themselves with pleasure.</p>
<ul>
<li>Victor Frankl</li>
</ul>
</blockquote>
<p><strong>What has been my guilty pleasure(s)?</strong></p>
<h3 id="heading-the-big-reveal">The Big Reveal</h3>
<p>Spoiler alert! It is not what you think.</p>
<p>Here goes nothing.</p>
<p>The time I have spent postponing real-life challenges all went to excessively hopping from one university to another collecting certificates that I now consider unnecessary.</p>
<p>That’s CRAZY!</p>
<p>I know.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1645611225990/A2F8SPdtx.gif" alt="hahaha-spiceadams.gif" /></p>
<p>Admittedly, I have gained life-impacting takeaway lessons from those experiences. (Talk about turning weaknesses into strengths).</p>
<p>If it helps, you should know that I shamelessly have a habit of binging TV. That’s not healthy or in favor of productivity. In my defense, I was needlessly rewarding myself for so many years of studying.</p>
<h3 id="heading-my-other-toxic-habits">My other Toxic Habits</h3>
<p>What else do I shamelessly indulge in? Hmmm... Let's see...</p>
<p>I can go hungry for hours and be slightly unbothered about it. STILL NOT HEALTHY.</p>
<p>I know!</p>
<p>The last one is not being able to sleep at night or take a shower without exercising. I AM ADDICTED! Ahaha...</p>
<p>I know!</p>
<p>Happy?</p>
<p>Or not... Either way, you should know that I’m working towards a balance for all the above.</p>
<h3 id="heading-collecting-dust">Collecting Dust</h3>
<p>I do have a couple of certificates. But, honestly, the best they have offered me thus far is a false sense of hope, empty promises, and assurances that left me content with less — even though the empty kitchen drawers, fridge shelves that met my gaze, and my growling belly would all disagree. You know… that hand-to-mouth situation of always scouring for the next paycheck? Wriggling on the bed at 3:00 AM thinking about how the present moment is a culmination of all your actions from years ago? I am referring to that.</p>
<h3 id="heading-light-at-the-end-of-the-tunnel">Light At the End of the Tunnel</h3>
<p>I am doing a 180. I have commenced a journey for what would restore calm in my life; my transition into tech with the <a target="_blank" href="https://leonnoel.com/100devs/">#100devs</a> cohort of ‘22. So far, I would say it's awe-inspiring. The community is out of this world inclusive and welcoming in all the right ways. (More on this in the weeks that follow)</p>
<h3 id="heading-taking-back-control">Taking Back Control</h3>
<p>For the longest time, I have learned to not blame others for my misfortunes. This life is 100% my responsibility. I make the decisions that pertain to me. In that regard, I blame the version of myself I denote as Satan; the part of me I have effortlessly tried to exorcise to no avail.</p>
<p>Now, however, I can tell with conviction that I am on a pathway to self-fulfillment. My journey has begun. I have never been more certain of what I want to do moving forward. That’s why I decided to quit doing a Business Administration Ph.D. to focus on what matters. And I am looking forward to when I will stop blaming myself.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1645613506099/5-qShUvQZ.gif" alt="two-spiderman.gif" /></p>
<p>That's when it’d be safe to assume my REAL EDUCATION has gained some momentum.</p>
<h3 id="heading-identifying-whats-necessary">Identifying What's Necessary</h3>
<p>It doesn't matter if they are short-term or long-term identifiers. What matters is that they exist. And I have categorized mine via the following;</p>
<ul>
<li><p>Deciding what would fuel my passion for my pursuits.</p>
</li>
<li><p>Making a list of the people I would like to emulate, the books I would love to read, and the things I'd learn from them.</p>
</li>
<li><p>Making a list of the relevant soft and hard skills that would propel me in the right direction.</p>
</li>
<li><p>Making a list of all the beautiful places I'd like to go to for vacation.</p>
</li>
<li><p>Without fail, making a list of investment decisions I'd like to make in the near future.</p>
</li>
<li><p>Identifying the lives my choices would benefit or ruin; good or bad.</p>
</li>
</ul>
<h3 id="heading-cheers">Cheers!</h3>
<p>Here is to when I would celebrate crossing the above list items off of my to-do list in a few days. “Days? Oh, come on! Be practical Jack.”</p>
<p>Years... I meant years.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1645610579722/LrHt7ZXVD.gif" alt="leonardo-dicaprio-cheers.gif" /></p>
<p>Here's to freedom and incoming accomplishments.</p>
<p>Here's to living a sustainable life that is full of growth.</p>
<p>Here's to garnering up on the internalization of transferrable value and the accumulation of self-esteem. Not the kind of self-esteem that is boastful. But rather, the kind that is admirable.</p>
<p>If you have been stuck on a loop of anything that has the slightest resemblance to compulsive indecisiveness…</p>
<p>Know this…</p>
<p>You have got all the grit, qualities, and qualifications to change that situation. And you owe it to yourself to rightfully do just that.</p>
<blockquote>
<p>Stagnation only becomes your reality when you let it helm your destiny.</p>
</blockquote>
<h3 id="heading-go-forth-andamp-prosper">Go Forth &amp; Prosper</h3>
<p>In the midst of it all, remember to be kind to yourself and know that you’ve got this. All you need to do is show up daily and celebrate the small victories of your <strong>GENUINE EFFORTS</strong>. Journeys like these should be marathons. Not a race.</p>
<p>And if any of this were to go south, still hold your head up high knowing that you gave it a shot.</p>
<p>Trust your gut knowing that making attempts and constantly failing doesn’t impede the achievement of your goals. It only slows them down a notch. Hence, it should not matter as much.</p>
<p>What should matter...</p>
<p>Is that you keep moving forward. That’s a lot better than not trying at all.</p>
<p>So join me in saying…</p>
<p><strong>“Get thee behind me, SATAN!”</strong></p>
]]></content:encoded></item></channel></rss>