<?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 Silas Adegoke on Medium]]></title>
        <description><![CDATA[Stories by Silas Adegoke on Medium]]></description>
        <link>https://medium.com/@silasadegoke331?source=rss-794837de2822------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*CInRFDEMcvdD0ITf</url>
            <title>Stories by Silas Adegoke on Medium</title>
            <link>https://medium.com/@silasadegoke331?source=rss-794837de2822------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 17:36:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@silasadegoke331/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[SWR: A Game-Changer for API Integration in React and Next.js]]></title>
            <link>https://medium.com/@silasadegoke331/swr-a-game-changer-for-api-integration-in-react-and-next-js-e1d9217224ab?source=rss-794837de2822------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1d9217224ab</guid>
            <dc:creator><![CDATA[Silas Adegoke]]></dc:creator>
            <pubDate>Tue, 17 Dec 2024 08:05:54 GMT</pubDate>
            <atom:updated>2024-12-17T08:24:01.960Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*1Z2UeCvnDDD2yAJ2UgvSjw.png" /></figure><p>Tired of the complexities of traditional API integration methods like Axios and Fetch? Enter SWR, a refreshing approach that promises to streamline your data fetching and caching strategies, especially in large-scale React and Next.js applications.</p><h3><strong>What is SWR?</strong></h3><p>SWR, which stands for “Stale-While-Revalidate,” is a data fetching library that uses a straightforward but effective caching technique. When a component mounts, it automatically retrieves and caches the data. The cached data is used in subsequent renderings, giving the user a quick experience.</p><p><strong>The Benefits of SWR</strong></p><ul><li><strong>Automatic Revalidation:</strong> SWR intelligently revalidates stale data in the background, ensuring your users always see the latest information.</li><li><strong>Optimistic Updates:</strong> Make changes to data immediately and let SWR handle the background synchronization with the server.</li><li><strong>Focused Data Fetching:</strong> SWR’s declarative API makes it easy to fetch data precisely when needed, reducing unnecessary network requests.</li><li><strong>Built-in Caching:</strong> Leverage SWR’s efficient caching mechanisms to minimize API calls and improve performance.</li><li><strong>Easy Integration with React Query:</strong> Seamlessly integrate SWR with React Query for a comprehensive state management solution.</li></ul><h4><strong>How SWR Impacts Large-Scale Applications</strong></h4><p>In large-scale applications, SWR shines by:</p><ul><li><strong>Enhancing Performance:</strong> SWR greatly improves application performance by cutting down on API calls and streamlining data retrieval.</li><li><strong>Improving User Experience:</strong> Slicker interactions and quicker load times keep users interested and content.</li><li><strong>Simplifying Data administration:</strong> SWR’s automatic revalidation and simple API simplify data administration.</li><li><strong>Facilitating Offline-First Experiences:</strong> To provide offline capabilities, SWR can be used in conjunction with strategies such as service workers.</li></ul><h4>Example: SWR in an E-Commerce Application</h4><p>Imagine an e-commerce site that requires frequent updates to product availability, pricing, and reviews. SWR ensures the data remains up-to-date by:</p><ul><li>Fetching product details only when necessary.</li><li>Caching responses to reduce server load.</li><li>Allowing users to modify reviews or add items to their cart with optimistic updates.</li></ul><h4><strong>Mutation and Validation with SWR</strong></h4><p>SWR offers robust tools for handling mutations and validation:</p><p><strong>Mutations</strong></p><p>Mutations in SWR enable developers to update server-side data efficiently. For instance:</p><ul><li>When a user updates their profile, SWR allows the changes to appear instantly on the front end while synchronizing with the backend in the background.</li><li>This approach reduces latency and ensures the UI reflects user actions without delay.</li></ul><p><strong>Validation</strong></p><p>SWR provides hooks for implementing validation rules, ensuring that fetched data adheres to predefined standards. This feature minimizes errors and prevents corrupt or invalid data from propagating across your application.</p><h4><strong>A Minor Drawback</strong></h4><p>While SWR is a powerful tool, it’s essential to consider its potential drawback: the complexity of managing complex data dependencies. In some scenarios, a more explicit approach might be necessary. For example:</p><ul><li>Applications with tightly coupled data relationships might require custom logic to manage dependencies effectively.</li><li>In such cases, explicit data-fetching strategies or supplementary libraries may complement SWR to handle edge cases.</li></ul><p>SWR is a compelling choice for modern React and Next.js applications. Its simplicity, performance benefits, and robust features make it a valuable asset in your developer toolkit. By leveraging SWR, you can:</p><ul><li>Streamline API integrations.</li><li>Deliver a superior user experience.</li><li>Build scalable, performant applications with ease.</li></ul><p>If you haven’t already, give SWR a try in your next project. Its efficiency and ease of use might just revolutionize how you handle data in your applications! Whether you’re building a real-time dashboard or a feature-rich e-commerce platform, SWR is ready to handle the challenge.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1d9217224ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[API Integration with Frontend: A Powerful Duo Powered by Axios]]></title>
            <link>https://medium.com/our-internship-journey/api-integration-with-frontend-a-powerful-duo-powered-by-axios-8499af7a94d9?source=rss-794837de2822------2</link>
            <guid isPermaLink="false">https://medium.com/p/8499af7a94d9</guid>
            <dc:creator><![CDATA[Silas Adegoke]]></dc:creator>
            <pubDate>Fri, 21 Jun 2024 13:53:41 GMT</pubDate>
            <atom:updated>2024-06-21T13:53:41.948Z</atom:updated>
            <content:encoded><![CDATA[<p>In the changing world of web development, seamless communication between frontend interfaces and backend APIs is critical. This article discusses how to achieve this harmony with Axios, a popular and adaptable HTTP client framework for JavaScript. We’ll go over installation, basic request methods (GET, POST, PUT, and DELETE), error handling, and recommended practices to help you develop effective API integration approaches.</p><h3><strong>Unveiling Axios: A Streamlined Approach to HTTP Requests</strong></h3><p>Axios simplifies the process of making HTTP requests from your frontend application to backend APIs. It offers a cleaner syntax, promise-based handling, and built-in support for common functionalities compared to the native Fetch API.</p><p><strong>Installation:</strong></p><p>To integrate Axios into your project, leverage a package manager like npm or yarn:</p><pre>npm install axios</pre><p>This command downloads the Axios library and adds it to your project’s dependencies.</p><h3><strong>Conquering the Four Pillars of HTTP Requests: GET, POST, PUT, and DELETE</strong></h3><p>Axios provides intuitive methods for each type of HTTP request, empowering you to interact with your APIs effectively:</p><p><strong>1. Fetching Data with GET Requests:</strong></p><p>Use the axios.get() method to retrieve data from an API endpoint. Here&#39;s an example that fetches a list of users from a <a href="https://api.example.com/users">https://api.example.com/users</a> endpoint:</p><pre>import axios from &#39;axios&#39;;<br><br>async function getUsers() {<br>  try {<br>    const response = await axios.get(&#39;https://api.example.com/users&#39;);<br>    const users = response.data; // Access the fetched user data<br>    console.log(users);<br>  } catch (error) {<br>    console.error(error); // Handle potential errors<br>  }<br>}<br><br>getUsers();</pre><p><strong>Explanation:</strong></p><ol><li>We import axiox from the installed library.</li><li>The getUsers function is defined as async to handle asynchronous requests.</li><li>axios.get takes the API endpoint URL as an argument.</li><li>We use await to wait for the response from the API.</li><li>We access the fetched data using response.data.</li><li>The try…catch block handles potential errors during the request.</li></ol><p><strong>2. Creating Data with POST Requests:</strong></p><p>Employ axios.post() to create new resources on the server. Let&#39;s consider a scenario where you want to add a new user:</p><pre>async function addUser(userData) {<br>  try {<br>    const response = await axios.post(&#39;https://api.example.com/users&#39;, userData);<br>    console.log(response.data); // The newly created user information might be returned<br>  } catch (error) {<br>    console.error(error);<br>  }<br>}<br><br>const newUser = { name: &#39;John Doe&#39;, email: &#39;john.doe@example.com&#39; };<br>addUser(newUser);</pre><p><strong>Breakdown:</strong></p><ol><li>The addUser function accepts userData as an object containing user information.</li><li>axios.post takes the endpoint URL and the data to be sent as arguments.</li><li>The response may hold the newly created user’s details, accessible from response.data.</li></ol><p><strong>3. Updating Data with PUT Requests:</strong></p><p>Utilize axios.put() to modify existing resources:</p><pre>async function updateUser(userId, updatedData) {<br>  try {<br>    const response = await axios.put(`https://api.example.com/users/${userId}`, updatedData);<br>    console.log(response.data); // The updated user information might be returned<br>  } catch (error) {<br>    console.error(error);<br>  }<br>}<br><br>const updatedUser = { email: &#39;john.doe@updated.com&#39; };<br>updateUser(1, updatedUser); // Update user with ID 1</pre><p><strong>Points to Note:</strong></p><ol><li>The endpoint URL is constructed dynamically using string interpolation to include the user ID.</li><li>The updatedData object holds the changes to be applied.</li></ol><p><strong>4. Deleting Data with DELETE Requests:</strong></p><p>Invoke axios.delete() to remove resources:</p><pre>async function deleteUser(userId) {<br>  try {<br>    const response = await axios.delete(`https://api.example.com/users/${userId}`);<br>    console.log(response.data); // Might indicate successful deletion (e.g., status code 204)<br>  } catch (error) {<br>    console.error(error);<br>  }<br>}<br><br>deleteUser(2);</pre><h3>Conclusion: A Flourishing Frontend-API Partnership</h3><p>By efficiently integrating APIs with your frontend with Axios, you open up a world of possibilities. You can dynamically get, create, update, and delete data, resulting in interactive and data-driven user interfaces. Remember to follow best practices such as error handling, data management, and security considerations. Axios allows you to streamline this process, making API integration simple. As you progress, look into features like interceptors, cancellation tokens, and advanced settings to customize Axios to your exact needs. With this expertise, you’ll be well-equipped to create rich and engaging online applications that effortlessly use the power of APIs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8499af7a94d9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/our-internship-journey/api-integration-with-frontend-a-powerful-duo-powered-by-axios-8499af7a94d9">API Integration with Frontend: A Powerful Duo Powered by Axios</a> was originally published in <a href="https://medium.com/our-internship-journey">Our Internship Journey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Taming the Web Design Jungle: A Field Guide to CSS Frameworks]]></title>
            <link>https://medium.com/our-internship-journey/taming-the-web-design-jungle-a-field-guide-to-css-frameworks-3988dd6d66f3?source=rss-794837de2822------2</link>
            <guid isPermaLink="false">https://medium.com/p/3988dd6d66f3</guid>
            <dc:creator><![CDATA[Silas Adegoke]]></dc:creator>
            <pubDate>Thu, 13 Jun 2024 23:03:33 GMT</pubDate>
            <atom:updated>2024-06-13T23:03:33.259Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VG1YQOI73XHAODRh" /><figcaption>Photo by <a href="https://unsplash.com/@miracleday?utm_source=medium&amp;utm_medium=referral">Elena Mozhvilo</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Have you ever felt lost in the wilderness of web design? Cascading Style Sheets (CSS) can be an effective tool, but creating a website from scratch can feel like navigating a tangled jungle. Fear not, intrepid developer! CSS frameworks are here to assist you cut through the undergrowth and emerge victorious with a beautiful website.</p><h4><strong>What are CSS Frameworks?</strong></h4><p>Consider a toolbox filled with pre-made components such as buttons, forms, and navigation bars — everything you need to build a website. This is essentially what a CSS framework is. These libraries include pre-written CSS code to style popular web elements, saving you hours of generating code from scratch. Consider skipping the Legos and plunging right into pre-assembled architectural wonders!</p><h4><strong>Why Use a Framework?</strong></h4><p>Building a website without a framework is similar to starting a fire with sticks: it’s doable, but why fight when you can use a lighter? Here are a few reasons why CSS frameworks are great:</p><p><strong>Speed Up Your Safari</strong>: Frameworks serve as a basis, allowing you to focus on customizing the appearance and feel of your website rather than becoming bogged down in the details of CSS.</p><p><strong>Consistency is essential</strong>: Frameworks ensure a uniform design language throughout your website. No more visitors experiencing whiplash from abrupt style changes!</p><p><strong>Responsive by Nature:</strong> Many frameworks are designed with responsiveness in mind, which means your website will adjust easily to different screen sizes, ranging from desktops to smartphones. Your website will appear great regardless of how your visitors choose to navigate it.</p><p><strong>Join The Tribe</strong>: Popular frameworks have significant communities and vast online resources. Need assistance solving a hard piece of code? There’s surely a nice developer out there who has had a similar difficulty and can offer advice.</p><p><strong>But Wait, There’s More!</strong></p><p>Not all frameworks are created equal. Here’s a quick rundown of some popular options to help you choose the right one for your next project:</p><p><strong>Bootstrap:</strong> The granddaddy of frameworks, is well-known for its ease of use and huge component library. Consider it the Swiss Army Knife of web development.</p><p><strong>Tailwind CSS:</strong> This utility-first framework takes a more granular approach, providing you complete control over how your website appears. Consider it a Lego kit that allows you to create everything you can think of, brick by brick.</p><p><strong>Foundation:</strong> A mature framework known for its flexibility and accessibility features. Perfect for building sites that cater to everyone.</p><p><strong>The Final Frontier</strong></p><p>Selecting a CSS framework is a personal decision. Explore many possibilities, experiment, and select the one that best fits your development style and project requirements. With a framework at your disposal, you’ll be well on your way to creating stunning, user-friendly websites that will leave a lasting impression on your visitors. So, grab your preferred framework and go coding!</p><p><strong>Now it’s your turn!</strong></p><p>Leave a comment and talk about your favorite CSS framework and why. Have you had any positive or negative encounters with frameworks during your web development journey? Share your opinions and help create a vibrant web warrior community!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3988dd6d66f3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/our-internship-journey/taming-the-web-design-jungle-a-field-guide-to-css-frameworks-3988dd6d66f3">Taming the Web Design Jungle: A Field Guide to CSS Frameworks</a> was originally published in <a href="https://medium.com/our-internship-journey">Our Internship Journey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Pixels to Perfection: Why Choose Front-End Development]]></title>
            <link>https://medium.com/our-internship-journey/from-pixels-to-perfection-why-choose-front-end-development-f0d45c1ae770?source=rss-794837de2822------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0d45c1ae770</guid>
            <dc:creator><![CDATA[Silas Adegoke]]></dc:creator>
            <pubDate>Fri, 07 Jun 2024 19:44:56 GMT</pubDate>
            <atom:updated>2024-06-07T19:44:56.686Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine you’re browsing on your phone. Suddenly, a webpage draws your attention. The colors are bold, the layout is simple, and the buttons almost beg to be clicked. You find yourself completely engrossed, flipping through sites and interacting with features with enjoyment. This, my friend, is the magic of front-end programming.</p><p>Now compare it to the inner workings of a website. You wouldn’t be scrolling over lines of code, but rather the intricate machinery that drives that visually appealing interface. That is the scope of back-end development.</p><p>Both sides are required for a website to function properly, but front-end development appeals to individuals who want to see their vision come to life right away. Let’s look at why you would prefer this creative and user-centric path over the back-end alternative.</p><h3><strong>The Art of the Interface: Where Creativity Meets Code</strong></h3><p>Front-end development is more than simply developing code; it’s about creating a user experience. You are the artist who transforms a designer’s concept into an interactive reality. You can customize the colors, typefaces, and how objects move and respond. It’s a dynamic interaction of creativity and technical competence, where you push the limits of what’s possible with web browsers.</p><h3><strong>See Your Work Come Alive: Instantaneous Gratification</strong></h3><p>Unlike back-end development, where the user may never see the complicated code you build, front-end development allows for a speedy turnaround. You may code a feature and watch it emerge on the screen in minutes. The rapid feedback loop is quite satisfying. Every line you type, every design decision you make, results in a physical change on the user’s screen. It’s a never-ending cycle of adjusting, testing, and refining, all leading to a website that feels cohesive and beautiful as a whole.</p><h3><strong>The Mastermind of User Experience: Putting Users First</strong></h3><p>Front-end development is more than simply aesthetics; it also involves understanding how people interact with websites. You become an expert in user experience (UX), creating interfaces that are not just beautiful but also intuitive and user-friendly. Every button placement and animation you utilize is a purposeful choice designed to make the user’s trip as seamless and delightful as possible. In this capacity, you are the user’s champion, always looking for ways to improve their online experience.</p><h3><strong>The Ever-Evolving Landscape: A World of Opportunity</strong></h3><p>The field of front-end development is dynamic and ever-changing. New technologies and frameworks are continually emerging, pushing the limits of what is possible. As a front-end developer, you’ll constantly have opportunities to learn and grow, keeping your skills polished and current. This ongoing growth means that there are no dull moments, and the opportunities for creative expression are genuinely limitless.</p><h3><strong>The Final Brushstroke: A Rewarding Career Path</strong></h3><p>Front-end development is a sector ripe with opportunities. Businesses are increasingly recognizing the value of having a strong digital presence, thus skilled front-end engineers are in high demand. Whether you choose to work for a huge corporation or go freelance, a career in front-end development has the potential for a profitable and exciting future.</p><p>So, if you thrive on creativity, appreciate the rush of rapid gratification, and want to make a good difference in the user experience, front-end programming could be the right career for you. In this profession, you get to be both an artist and an architect, as well as a user champion. Welcome to the realm of pixels and beauty!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0d45c1ae770" width="1" height="1" alt=""><hr><p><a href="https://medium.com/our-internship-journey/from-pixels-to-perfection-why-choose-front-end-development-f0d45c1ae770">From Pixels to Perfection: Why Choose Front-End Development</a> was originally published in <a href="https://medium.com/our-internship-journey">Our Internship Journey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Streamlining Development with Git and GitHub: Basic Essential Techniques and Tips]]></title>
            <link>https://medium.com/our-internship-journey/streamlining-development-with-git-and-github-basic-essential-techniques-and-tips-e08105250be8?source=rss-794837de2822------2</link>
            <guid isPermaLink="false">https://medium.com/p/e08105250be8</guid>
            <dc:creator><![CDATA[Silas Adegoke]]></dc:creator>
            <pubDate>Thu, 30 May 2024 15:32:54 GMT</pubDate>
            <atom:updated>2024-05-30T15:32:54.724Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cgouF2mh0xfkVAP1" /><figcaption>Photo by <a href="https://unsplash.com/@afgprogrammer?utm_source=medium&amp;utm_medium=referral">Mohammad Rahmani</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Git is a free and open-source version control system that has transformed the way developers work together on projects. Version control is an important technique for programmers because it allows them to track changes to documents, computer programs, huge websites, and other collections of data. Git enables developers to track changes over time, communicate seamlessly with others, and manage their projects more efficiently. GitHub, a prominent website for hosting Git repositories, extends the experience by offering an online platform for project organization, showcasing work to potential employers, and facilitating teamwork.</p><h3><strong>Key Git Commands</strong></h3><p>Understanding the fundamental Git commands is crucial for leveraging its full potential:</p><p><strong>Clone</strong>: This command is used to bring a repository hosted on a platform like GitHub into a folder on your local machine. The syntax is:</p><pre>git clone &quot;repo url&quot;</pre><p><strong>Add</strong>: To track your files and changes in Git, use the git add command. To track changes in all files, type the following command in your terminal:</p><pre>git add .</pre><p>To track changes in a particular file type:</p><pre>git add &quot;filename&quot;</pre><p><strong>Commit</strong>: The git commit command saves your files in Git, creating a snapshot of your current project state.</p><pre>git commit -m &quot;changed&quot;</pre><p><strong>Push</strong>: To upload your Git commits to a remote repository, such as GitHub, use the git push command.</p><pre>git push origin main</pre><p><strong>Pull</strong>: The git pull command is used to download changes from the remote repository to your local machine, effectively the opposite of push</p><pre>git pull origin main</pre><p><strong>Status</strong>: The git status command shows all files that have been updated, created, or deleted but have not yet been saved in a commit.</p><pre>git status</pre><p><em>Note that the commands should be typed in the terminal.</em></p><h3><strong>Git Branching</strong></h3><p>Branching is a powerful feature in Git that allows developers to work on different features or fixes independently of the main codebase. Typically, new repositories start on the master branch. As development progresses, multiple branches can be created, each representing different lines of development. Changes made to a new branch do not affect the master branch, which is useful for developing new features or fixing bugs without introducing errors into the stable codebase.</p><p><strong>Creating and Viewing Branches</strong>: To see all branches in a repository, use the git branch command. An asterisk indicates the currently active branch</p><pre>git branch</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*h5AA37VBPuecuqPQ3z2U-g.png" /><figcaption>Image Showing an active branch</figcaption></figure><p><strong>Switching Branches</strong>:</p><p>To switch to an existing branch:</p><pre>git checkout &lt;name_of_branch_&gt;</pre><p>To create and switch to a new branch:</p><pre>git checkout -b &lt;name-of-branch&gt;</pre><p><strong>Comparing Branches</strong>: The git diff command compares the code in the original branch to the new branch, highlighting the changes made.</p><pre>git diff</pre><p><strong>Pushing Changes to a branch in the remote repo</strong>: After making changes, push changes to the branch you created</p><pre>git push -u origin &lt;branch-name&gt;</pre><p><strong>Pull Requests</strong>: To merge changes from one branch into another, create a pull request. This involves going to the GitHub repository, clicking “Compare &amp; pull request”, reviewing the changes, and clicking “Merge” to confirm the merge.</p><p><strong>Deleting Branches</strong>: Branches are normally deleted after they have been merged, to delete a branch, use git branch -d name-of-branch.</p><pre>git branch -d &lt;branch-name&gt;</pre><h3><strong>Handling Merge Conflicts</strong></h3><p>Branch merging is an essential component of Git-based collaborative development. However, the procedure is not always simple, especially when several people are working on the same files. Merge conflicts happen when Git discovers discrepancies between branches that it can’t automatically resolve. This often occurs when two or more branches modify the same file.</p><p><strong>What Causes Merge Conflicts?</strong></p><p>Merge conflicts can arise due to several reasons:</p><ol><li><strong>Simultaneous Changes</strong>: When different contributors make changes to the same lines of code in different branches.</li><li><strong>Deletions</strong>: When one branch removes a file or code segment that another branch has modified..</li><li><strong>Complex Merges</strong>: When incorporating big amounts of changes that effect several files in diverse ways.</li></ol><p><strong>Identifying Merge Conflicts. </strong><br>When you try to merge branches and encounter a conflict, Git will notify you of the issue and flag the conflicting files. You’ll receive a notification stating which files have conflicts, and those files’ conflict markers will look like this:</p><pre>&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD<br>Current change (your branch)<br>=======<br>Incoming change (branch you&#39;re merging)<br>&gt;&gt;&gt;&gt;&gt;&gt;&gt; branch-name</pre><h4>Resolving Merge Conflicts</h4><p>Resolving merge conflicts requires manual intervention. Here’s a step-by-step guide:</p><ol><li><strong>Open the Conflicted Files</strong>: Open the files with merge conflicts in your text editor or integrated development environment (IDE). Conflict marks will appear to indicate the areas that are in conflict.</li><li><strong>Understand the Changes</strong>: Carefully review both sets of changes. The section between <strong>&lt;&lt;&lt;&lt;&lt; Head</strong> and ==== represents the changes in your current branch. The section between ===== and <strong>&gt;&gt;&gt;&gt;&gt;&gt; Branch name</strong> represents the changes from the branch you&#39;re merging.</li><li><strong>Edit the Files</strong>: Decide which changes to maintain, then update the file to resolve the issue. You can choose one side’s revisions, mix changes from both sides, or completely replace the contentious area.</li><li><strong>Remove Conflict Markers</strong>: After making your changes, remove the conflict markers (&lt;&lt;&lt;&lt;&lt;, =====, and &gt;&gt;&gt;&gt;&gt;).</li><li><strong>Add the Resolved Files:</strong> Once you have resolved the conflicts and saved your changes, use git add to mark the conflicted files as resolved.</li></ol><pre>git add &lt;filename&gt;</pre><p>6. <strong>Commit the Merge:</strong> After resolving all conflicts and staging the resolved files, complete the merge by committing the changes.</p><pre>git commit -m &quot;Conflct Resolved&quot;</pre><p>Git also provides commands to undo changes:</p><p><strong>Resetting Files</strong>: To reset specific files, use git reset filename.</p><pre>git reset &lt;file&gt;</pre><p><strong>Undoing Commits</strong>: To undo the last commit, use git reset HEAD~1.</p><p><strong>Undoing Commits by its ID: </strong>To undo a particular commit, find its ID using git log, then use git reset commit-id.</p><pre>git log</pre><pre>git reset &lt;commit-id&gt;<br>Example: git reset a1b2c3d4</pre><p><strong>Reverting Changes</strong>: To discard all changes from a certain point, use git reset — hard commit-id.</p><pre>git reset --hard &lt;commit-id&gt;</pre><h3><strong>Forking Repositories</strong></h3><p>Forking is a feature that allows you to create a complete copy of a repository under your GitHub account. This is useful for making changes without affecting the original repository.</p><p>To fork navigate to the repository on GitHub and click the “Fork” button and “create a new fork”.</p><p><em>In a nutshell</em> Git and GitHub have revolutionized the landscape of software development, making it easier for engineers to collaborate, manage projects, and keep track of changes. By knowing the fundamental commands and ideas, you can fully utilize these powerful tools to improve your workflow and productivity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e08105250be8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/our-internship-journey/streamlining-development-with-git-and-github-basic-essential-techniques-and-tips-e08105250be8">Streamlining Development with Git and GitHub: Basic Essential Techniques and Tips</a> was originally published in <a href="https://medium.com/our-internship-journey">Our Internship Journey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering State Management: A Deep Dive into Redux with React.js]]></title>
            <link>https://medium.com/our-internship-journey/mastering-state-management-a-deep-dive-into-redux-with-react-js-b7c43f190b93?source=rss-794837de2822------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7c43f190b93</guid>
            <dc:creator><![CDATA[Silas Adegoke]]></dc:creator>
            <pubDate>Fri, 24 May 2024 06:13:15 GMT</pubDate>
            <atom:updated>2024-05-24T06:13:15.575Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/187/1*dbeRW8136AwADcxJZYvREw.png" /></figure><p>Redux is a predictable state container for javaScript applications. It is used to manage state throughout the whole application especially when a data in a child component is needed in the parent component, it can be used instead of (useContext + useReducer) and useState. It was created to solve the issue of a state in a child componenet not being available in the parent component or in a sibling. Redux is not tied to React and can be used with Angular, Vue and Vanila javaScript. If you don’t know what state means, it means the internal data that a component can maintain and update over time, Redux creates and helps in managing a global state where the state is availabe throughout the whole application</p><p><strong><em>Redux is used </em></strong><em>when the app state is updated fequently over time, the logic to update a state gets too comolex to track, the app has a large and complex sized codebase and is worked on by so many people</em></p><p>React-Redux was created to provide a seemless integration between ReactJs and Redux, it simplifies the connection of React components to the Redux store.</p><h3><strong>Installation</strong></h3><p>To install redux and react-redux in your react component, type the line below in your terminal:</p><pre>npm i redux react-redux</pre><p><strong>In general there are 5 parts of a Redux:</strong></p><ol><li>The state: The state is an object that contains the data you want to manage for example, let’s say you are building a rock-paper-scissors game, your state can be</li></ol><pre>initialState= {<br>  type_ofGame: &quot;Rock&quot;<br>}</pre><p>2. The Action: This describes what happened or what need to happen. It is a function that returns an object based on how you want to update the state. An example will still be on the rock-paper-scissors-game; an action for playing a rock can be defined as:</p><pre>type ActionType={<br>    type: string<br>}<br>export function play_rock(): ActionType{<br>    return{<br>        type:&quot;ROCK&quot;<br>    }<br>}</pre><p>3. The Reducer: This is a function that updates the initial state based on the action that is performed. It is what ties the store and action together. Still on the rock-paper-scissors; a reducer can be defined as:</p><pre>export function GameReducer(state=initialState, action:{type:string}){<br>    switch(action.type){<br>        case ROCK:return{<br>            ...state,<br>            type: ROCK,<br>            image: //image path<br>        }<br>        case PAPER:return{<br>            ...state,<br>            type: PAPER,<br>            image: //image path<br>        }<br>        case SCISSORS:return{<br>            ...state,<br>            type: SCISSORS,<br>           image: //image path<br>        }<br>        default: return state<br>    }<br>}</pre><p>4. The Store: This holds the state of the application</p><pre>export const store=createStore(GameReducers)</pre><p>5. The Provider: The Provider component is wrapped around the root component of the React application. It receives the Redux store as a prop and makes it available to all descendant components.</p><pre><br>      &lt;Provider store={store}&gt;<br>        &lt;App/&gt;<br>      &lt;/Provider&gt;</pre><p>To see how Redux was applied to a game of rock-paper-scissors check out</p><p><a href="https://github.com/silasade/Rock-Paper_Scissors-TypeScript-and-Redux">GitHub - silasade/Rock-Paper_Scissors-TypeScript-and-Redux</a></p><p>or to view the live website click the link below:</p><p><a href="https://rock-paper-scissors-type-script-and-redux.vercel.app/">Rock Paper Scissors</a></p><p><strong><em>In conclusion, developing strong and scalable applications becomes possible with an understanding of Redux state management in React.js. Redux offers a predictable state container that makes managing data across the application easier, particularly in situations when state needs to be changed or shared between many components.</em></strong></p><p>Developers may efficiently organize and maintain the state logic of their applications by comprehending Redux’s essential elements, which include the state, actions, reducers, store, and provider. Redux is an invaluable tool for creating sophisticated applications quickly because of its capacity to centralize state management and provide smooth integration with React through React-Redux</p><p>Redux provides a solid solution for reliably and effectively keeping application state, whether it’s handling complex game logic like rock-paper-scissors or managing the state of large-scale systems.</p><p><strong><em>Redux gives developers the ability to design dynamic and responsive user interfaces while keeping a clean and organized codebase, enabling them to take on the issues of state management head-on. So go ahead and explore Redux’s features to take your React.js applications to the next level of scalability and performance.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7c43f190b93" width="1" height="1" alt=""><hr><p><a href="https://medium.com/our-internship-journey/mastering-state-management-a-deep-dive-into-redux-with-react-js-b7c43f190b93">Mastering State Management: A Deep Dive into Redux with React.js</a> was originally published in <a href="https://medium.com/our-internship-journey">Our Internship Journey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring the realm of TypeScript]]></title>
            <link>https://medium.com/our-internship-journey/exploring-the-realm-of-typescript-e3fb2bd84805?source=rss-794837de2822------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3fb2bd84805</guid>
            <dc:creator><![CDATA[Silas Adegoke]]></dc:creator>
            <pubDate>Fri, 17 May 2024 10:45:57 GMT</pubDate>
            <atom:updated>2024-05-17T10:45:57.128Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wCnvInAh8dgayWV-anA_tA.jpeg" /></figure><p>Microsoft created TypeScript, a high-level programming language that is free and open-source and gives JavaScript a more robust type system. It works with front-end frameworks like React, Veu, and Angular. Node.js and TypeScript can also be utilized to create a backend. This illustrates the flexibility of the type system in TypeScript. TypeScript incorporates type checking into JavaScript code by design. This enables you to identify mistakes throughout the development process that would not otherwise be seen until the code is run.Here are a few typical situations where TypeScript raises JavaScript errors.</p><ol><li><strong>Type Mismatches: </strong>Any value can be assigned to a variable in JavaScript. On the other hand, TypeScript lets you specify the expected type (number, text, object, etc.). Whereas JavaScript would just accept the assignment and might cause unexpected behavior later, TypeScript would produce an error during compilation if a value of the incorrect type was assigned.</li></ol><pre>let name: string = &quot;John&quot;; // Correct <br>name = 30; // TypeScript Error: Type &#39;number&#39; is not assignable to type &#39;string&#39;Missing Variable Declarations: Variables can be used in JavaScript even before they are declared. Variables in TypeScript must have their types defined before they may be used. In addition to ensuring clarity regarding the intended use of variables, this helps prevent errors.</pre><p>2. <strong>Missing Variable Declarations:</strong> Variables can be used in JavaScript even before they are declared. Variables in TypeScript must have their types defined before they may be used. In addition to ensuring clarity regarding the intended use of variables, this helps prevent errors.</p><pre>let age = 25; // Works in JavaScript<br>console.log(age);<br><br>// This would cause a TypeScript error:<br>// let age: number; // Declaration<br>// console.log(age); // Use before declaration</pre><p><strong>3. Function Parameter and Return Type Mismatches: </strong>Functions in JavaScript are capable of accepting any number and kind of parameters and returning any value. You can specify the expected types for function parameters and return values in TypeScript. This makes the code easier to read and maintain, and TypeScript will identify any inconsistencies as errors.</p><pre>function greet(name: string): string { // Define parameter and return type<br>  return &quot;Hello, &quot; + name;<br>}<br><br>// This would cause a TypeScript error:<br>greet(30); // Argument type mismatch<br><br>// This would also cause an error:<br>function add(a: number, b: number) {<br>  return a + &quot; (wrong)&quot;; // Return type mismatch<br>}</pre><p>4. <strong>Property Access on Incompatible Types:</strong> Any object in JavaScript can have its attributes accessed, even if it doesn’t actually have them. When attempting to access a property, TypeScript determines whether the object type contains it. It will throw an error if it doesn’t.</p><pre>let user: { name: string } = { name: &quot;Alice&quot; };<br>console.log(user.name); // Correct<br><br>// This would cause a TypeScript error:<br>console.log(user.age); // &#39;age&#39; property doesn&#39;t exist on user type<br><br></pre><p><strong>Some of the Disadvantages of TypeScript includes:</strong></p><ol><li>When working with complex scenarios, TypeScript can be exceedingly tough, especially for novice developers.</li><li>More lines of code are needed.</li><li>To operate well using TypeScript, developers must possess knowledge of the language. Since TypeScript is a superset of JavaScript, JavaScript developers frequently find it easier to grasp TypeScript more quickly.</li></ol><p>Most developers prefer working with typeScript because of its static typing and ability to decrease errors that may be created by users or in the production environment , even though it may have some drawbacks. JavaScript is frequently used by clients to cut costs and time.</p><p><strong>Advantages of TypeScript includes:</strong></p><ol><li>Enhances Cooperation because type annotations increase readability and shorten the time needed for code review, making the code easier to grasp.</li><li>TypeScript’s ability to specify and enforce types, which avoids common errors, makes it especially useful for large-scale applications.</li><li>It lessens type conflicts, which lowers the quantity of bugs in the production environment.</li><li>It also facilitates documentation, which helps developers comprehend and manage the system.</li><li>It also adds predictability to an application because all variables and functions operate exactly as defined; for instance, a string variable can only hold strings, and a function that returns numbers can only return numbers, and so on.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3fb2bd84805" width="1" height="1" alt=""><hr><p><a href="https://medium.com/our-internship-journey/exploring-the-realm-of-typescript-e3fb2bd84805">Exploring the realm of TypeScript</a> was originally published in <a href="https://medium.com/our-internship-journey">Our Internship Journey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>