<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Ifeoluwa Adewunmi</title>
    <description>The latest articles on Forem by Ifeoluwa Adewunmi (@ife_adewunmi).</description>
    <link>https://forem.com/ife_adewunmi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F610738%2F9afd60e5-3b9e-44e7-b623-fb6a023ff26d.png</url>
      <title>Forem: Ifeoluwa Adewunmi</title>
      <link>https://forem.com/ife_adewunmi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/ife_adewunmi"/>
    <language>en</language>
    <item>
      <title>Why are Data Structures and Algorithms so Important?</title>
      <dc:creator>Ifeoluwa Adewunmi</dc:creator>
      <pubDate>Mon, 09 Jan 2023 15:31:48 +0000</pubDate>
      <link>https://forem.com/ife_adewunmi/why-are-data-structures-and-algorithms-so-important-5293</link>
      <guid>https://forem.com/ife_adewunmi/why-are-data-structures-and-algorithms-so-important-5293</guid>
      <description>&lt;p&gt;I often tell those I mentor that it is better you understand what you are doing than jump into doing what you are yet to understand – this would save you time, and resources, and make you more productive with less error-prone. As much that to learn how to code is not far-fetched on the internet but going about writing codes without a profound knowledge of data structures and algorithms will only present you as a monkey coder.&lt;/p&gt;

&lt;p&gt;As computer scientists, software engineers or web developers, beyond the hype on the internet and the juicy salary, the primary thing expected of us is to perform operations on data, and basically, we perform the following three steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Take some input&lt;/li&gt;
&lt;li&gt;Process the input data&lt;/li&gt;
&lt;li&gt;Give the input back as output.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The input can be in any form, for example, while searching for directions on google maps, you give the starting point and the destination as input to Google maps, while logging in to your social media account (like Twitter, Instagram, Facebook, etc) you are to provide your email and password as input and so on.&lt;br&gt;
Similarly, in the third step, the computer application gives us output in some form or the other.&lt;/p&gt;

&lt;p&gt;To make this process efficient, we need to optimise all three steps. As you can guess, the most we can optimise is the 2nd step, which is where we have Data structures and algorithms.&lt;br&gt;
Data structures refer to the way we organise information on our computers. With slight thinking, you can guess that the way we organise information can have a lot of impact on performance. &lt;/p&gt;

&lt;p&gt;Take, for example, a library. Suppose, you want to have a book on Data Structure and/or Algorithm from a public library, to do that you have to first go to the computer science section, and then search the Data Structure and Algorithm (DSA) section. If these books are not organised in this manner and just distributed randomly then it will be a cumbersome process to find a book on Data Structure and Algorithm.&lt;br&gt;
This is the way a librarian organises his books (Data) into a particular form (&lt;a href="https://dev.to/ife_adewunmi/what-is-data-structure-data-structure-explained-for-absolute-beginners-1jcf"&gt;Data Structure&lt;/a&gt;) to efficiently perform a task like finding a book on What is Data Structure and/or What is Algorithm (&lt;a href="https://dev.to/ife_adewunmi/what-is-an-algorithm-explaining-algorithms-for-absolute-beginners-a1e"&gt;Algorithm&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;In this manner, we computer scientist process and look for the best way to organise the data we have, so it can be better processed based on the input provided.&lt;/p&gt;

&lt;p&gt;I hope this is helpful! You can read my previous guides on &lt;a href="https://dev.to/ife_adewunmi/what-is-data-structure-data-structure-explained-for-absolute-beginners-1jcf"&gt;Data Structure&lt;/a&gt; and &lt;a href="https://dev.to/ife_adewunmi/what-is-an-algorithm-explaining-algorithms-for-absolute-beginners-a1e"&gt;Algorithm&lt;/a&gt; (DSA)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;React With This Guide&lt;/strong&gt;&lt;br&gt;
If you find this guide educative, kindly give this guide a like and leave your opinion in the comments below, share the guide with your community/social media by adding the article's URL to the feed.&lt;/p&gt;

&lt;p&gt;By sharing this article, other tech enthusiasts and your passionate community can also benefit from my insight and knowledge.&lt;/p&gt;

&lt;p&gt;See you in the next one! Cheers✨&lt;/p&gt;

</description>
    </item>
    <item>
      <title>What Is Data Structure (Data Structure explained for absolute beginners)</title>
      <dc:creator>Ifeoluwa Adewunmi</dc:creator>
      <pubDate>Tue, 06 Dec 2022 21:00:56 +0000</pubDate>
      <link>https://forem.com/ife_adewunmi/what-is-data-structure-data-structure-explained-for-absolute-beginners-1jcf</link>
      <guid>https://forem.com/ife_adewunmi/what-is-data-structure-data-structure-explained-for-absolute-beginners-1jcf</guid>
      <description>&lt;p&gt;The first time I heard the word Data structure, I thought I would need special abilities to comprehend it, but I was wrong because just like &lt;a href="https://ife-adewunmi.hashnode.dev/what-is-an-algorithm-algorithm-explained-for-absolute-beginners" rel="noopener noreferrer"&gt;Algorithms&lt;/a&gt; exist in real life beyond programming, so do they.&lt;/p&gt;

&lt;p&gt;Hello friends, I am Ifeoluwa Adewunmi, and in this guide, I will discuss the term Data structure by explaining the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Data structure in Real World&lt;/li&gt;
&lt;li&gt;Data structure in Computer Science&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  WHAT IS DATA STRUCTURE IN REAL-WORLD
&lt;/h4&gt;

&lt;p&gt;A data structure is a way of arranging or organising items so that operations involving these items can be done fast and efficiently. These operations could be in the form of storing and retrieving items.&lt;/p&gt;

&lt;p&gt;For example, let me share how my friend KIKI solved a homemade problem using a data structure. KIKI, apart from being a baker, also loves to attend parties (OWAMBE) because of her job as an event planner.&lt;/p&gt;

&lt;p&gt;However, KIKI’s love for parties makes her buy more dresses (ASO-EBI), and this leads to a homemade problem; her wardrobe increased massively with different kinds of expensive dresses (ASO-EBI) and picking an outfit for a specific event becomes daunting, and this makes KIKI get to events behind schedule.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How was this solved using a Data Structure?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;KIKI thought of two approaches to solve the scattered arrangements of dresses in her wardrobe, which are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Arrangement of her dresses by colours (organising dresses with the same colour in the same section) in the wardrobe.&lt;/li&gt;
&lt;li&gt;Arrangement of her dresses by fabric type (organising dresses with the same fabric quality, style and manufacturer in the same section) in the wardrobe&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After soliloquising for a few minutes, she decided to go with the first approach because the events she attends only request guests to appear in a dress code (colour) and do not impose the fabric type or design they must put on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In the KIKI’s Wardrobe example:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The data structure would be the neat arrangements of dresses in the wardrobe by colours, &lt;/li&gt;
&lt;li&gt;The items it contains are the expensive party wears (ASO-EBI)&lt;/li&gt;
&lt;li&gt;The operation would be selecting an outfit for a specific event from her wardrobe.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  WHAT IS DATA STRUCTURE IN COMPUTER SCIENCE
&lt;/h4&gt;

&lt;p&gt;In computer science, software and written programmes rely on data in one way or the other, and we don’t want these data to be scattered all across the memory as KIKI’s dress was scattered in her wardrobe but neatly arranged in the memory for easy accessibility. How do we archive this neat arrangement of data in the computer memory? Here is where DATA STRUCTURE comes in.&lt;/p&gt;

&lt;p&gt;A Data Structure is a way data are neatly represented in the computer memory so it can be used efficiently. By efficiently, I mean that computer operations are performed using as few resources in terms of execution time and memory. Data structures are the implementation of abstract data types in a concrete and physical setting. They do this by using &lt;a href="https://ife-adewunmi.hashnode.dev/what-is-an-algorithm-algorithm-explained-for-absolute-beginners" rel="noopener noreferrer"&gt;algorithms&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;There are several kinds of data structures such as; &lt;strong&gt;Array, Linked List, Stack, Queue, Hash Table, Tree, Graph&lt;/strong&gt; etc. However, the scope of this guide wouldn’t explain any types of Data Structures, but subsequently, I will explain them one after the other. So, kindly hit the follow button to get notified when I release a guide in the future. &lt;/p&gt;

&lt;h4&gt;
  
  
  React With This Guide
&lt;/h4&gt;

&lt;p&gt;If you find this guide educative, kindly give this guide a like and share your opinion in the comments below, share my guide with your community/social media by adding the article's URL to the feed.&lt;/p&gt;

&lt;p&gt;By adding my article, I can share my insights and knowledge with other tech enthusiasts and contribute to your passionate community.&lt;/p&gt;

&lt;p&gt;See you in the next one! Cheers✨&lt;/p&gt;

</description>
      <category>learning</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>What Is An Algorithm (Algorithm explained for absolute beginners)</title>
      <dc:creator>Ifeoluwa Adewunmi</dc:creator>
      <pubDate>Sun, 06 Nov 2022 10:13:07 +0000</pubDate>
      <link>https://forem.com/ife_adewunmi/what-is-an-algorithm-explaining-algorithms-for-absolute-beginners-a1e</link>
      <guid>https://forem.com/ife_adewunmi/what-is-an-algorithm-explaining-algorithms-for-absolute-beginners-a1e</guid>
      <description>&lt;p&gt;You may have heard the word algorithm, whether from your techie friends, on YouTube or anywhere else but it sounds so ambiguous for you to grasp. In this guide, I will explain to you what an algorithm is in the &lt;strong&gt;Real World&lt;/strong&gt;, &lt;strong&gt;Mathematics&lt;/strong&gt;, and &lt;strong&gt;Computer Science&lt;/strong&gt; World. Without further ado, let’s dive into it.&lt;/p&gt;

&lt;p&gt;This guide attempts to demystify an algorithm by explaining the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Algorithm in Real World&lt;/li&gt;
&lt;li&gt;Algorithm in Mathematics&lt;/li&gt;
&lt;li&gt;Algorithm in Computer Science&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;WHAT IS AN ALGORITHM IN THE REAL WORLD&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Algorithms are everywhere and present in our daily activities. Although they have a more significant presence in math and computer science, they exist in other places, too.&lt;/p&gt;

&lt;p&gt;For instance, on a faithful Sunday afternoon, I asked my friend KIKI a 5-star baker and a tutor, to teach me how to bake a chocolate cake. She disagreed initially, but after teasing her with sweet words, she picked up a book and a pen to list out the ingredients needed and the procedures to use the listed ingredients efficiently so that I wouldn’t end up baking a burnt offering instead of a chocolate cake. This list and steps written by KIKI can also be said to be a recipe.&lt;/p&gt;

&lt;p&gt;A recipe is like an algorithm in that it’s some steps (written on a box or included in a book) that achieve a specific task. In the scenario I was making earlier, the specific task is to bake a chocolate cake. To achieve that, I need to follow the steps written (algorithm) by my friend KIKI. Do you get a general idea already?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WHAT IS AN ALGORITHM IN MATHEMATICS&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An algorithm in mathematics is a procedure or a description of a set of steps used to solve a mathematical computation. Algorithms are used in many STEM fields, but the most common example is a step-by-step procedure used in long divisions.&lt;/p&gt;

&lt;p&gt;The process of solving a mathematical problem such as, “What is 73 divided by 3” could be achieved by doing the following algorithm:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How many times does 3 go into 7?&lt;/li&gt;
&lt;li&gt;The answer is 2&lt;/li&gt;
&lt;li&gt;How many are left over? 1&lt;/li&gt;
&lt;li&gt;Put the 1(ten) in front of the 3.&lt;/li&gt;
&lt;li&gt;How many times does 3 go into 13?&lt;/li&gt;
&lt;li&gt;The answer is 4, with a remainder of one.&lt;/li&gt;
&lt;li&gt;And of course, the answer is 24 with a remainder of 1&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An algorithm in math is not that different from an algorithm in computer science or app development. Both have the same definition, description, and significance.&lt;/p&gt;

&lt;p&gt;Wait, before explaining what an algorithm in computer science is to you, could you, give this article a like and kindly hit the follow button, please?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WHAT IS AN ALGORITHM IN COMPUTER SCIENCE&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In Computer Science, an algorithm is when you tell your computer what to do and also give it precise instructions on how to do it. &lt;/p&gt;

&lt;p&gt;Let us illustrate a search example similar to what you do on google search:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You type in keywords&lt;/li&gt;
&lt;li&gt;Clicks the search button in expectation of results.&lt;/li&gt;
&lt;li&gt;The computer takes in your search request.&lt;/li&gt;
&lt;li&gt;Uses a search algorithm implemented to process the given keywords against the database or data warehouse&lt;/li&gt;
&lt;li&gt;Then returns information on your searched keywords.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In computer science, there are various types of search algorithms available and the way they are used decides the performance and efficiency of the data available.&lt;/p&gt;

&lt;p&gt;Explaining types of search algorithms is beyond the scope of this guide, however, you can read my guide on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Google Search Algorithm&lt;/li&gt;
&lt;li&gt;Types of Search Algorithms&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Having read through my explanation of an Algorithm above, you will find out that &lt;strong&gt;Algorithm is having more precise and descriptive instructions for achieving any given task&lt;/strong&gt;. I believe that you now have a clearer understanding of what an algorithm is. Please, do not forget to like, comment and share. Thank you for reading through, see you in the next one.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>computerscience</category>
      <category>algorithms</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How To Solve Laravel 8 API Response that is returning welcome page instead of JSON</title>
      <dc:creator>Ifeoluwa Adewunmi</dc:creator>
      <pubDate>Sat, 10 Apr 2021 15:06:58 +0000</pubDate>
      <link>https://forem.com/ife_adewunmi/how-to-solve-laravel-8-api-response-that-is-returning-welcome-page-instead-of-json-3d3m</link>
      <guid>https://forem.com/ife_adewunmi/how-to-solve-laravel-8-api-response-that-is-returning-welcome-page-instead-of-json-3d3m</guid>
      <description>&lt;p&gt;I created a dribble clone using Laravel 8 and Nuxt.js. Since I won't be using the web route so I decided to create a global JsonRequestMiddleware that accepts headers as application/json.  This write-up aims to show you how I implemented that step by step. Happy reading&lt;br&gt;
Step 1: create a new middleware&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan make:middleware JsonRequestMiddleware

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step 2: Copy this code and place it inside the JsonRequestMiddleware at the handle method before 'return $next($request);'&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$request-&amp;gt;headers-&amp;gt;set("Accept", "application/json");

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Your end result should look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public function handle(Request $request, Closure $next)
{
    $request-&amp;gt;headers-&amp;gt;set("Accept", "application/json");
    return $next($request);
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step 3: Go to App\Http\Kernel.php file and add the code below at global HTTP middleware stack.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;protected $middleware = [
    \App\Http\Middleware\JsonRequestMiddleware::class,
    // Other Middleware::class comes after...
];

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step 4: clear the application config cache and dump-autoload&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan config:cache or composer dump-autoload

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;you can share with me if you have got a better way of achieving this. I hope this is helpful. Thanks.&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>api</category>
    </item>
  </channel>
</rss>
