<?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 Is-haq Adnan on Medium]]></title>
        <description><![CDATA[Stories by Is-haq Adnan on Medium]]></description>
        <link>https://medium.com/@olarmmi?source=rss-b9a8a8edf62e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*UdjTXrXzSYPWJPIS.jpg</url>
            <title>Stories by Is-haq Adnan on Medium</title>
            <link>https://medium.com/@olarmmi?source=rss-b9a8a8edf62e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 23:42:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@olarmmi/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[“Understand Redux as a beginner” — A Practical Guide for Beginners]]></title>
            <link>https://medium.com/@olarmmi/understand-redux-as-a-beginner-a-practical-guide-for-beginners-a852d8123cfb?source=rss-b9a8a8edf62e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a852d8123cfb</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[state-management]]></category>
            <dc:creator><![CDATA[Is-haq Adnan]]></dc:creator>
            <pubDate>Fri, 25 Nov 2022 02:07:30 GMT</pubDate>
            <atom:updated>2022-11-25T02:07:30.487Z</atom:updated>
            <content:encoded><![CDATA[<h3>“Understand Redux as a beginner” — A Practical Guide for Beginners</h3><p>Redux is a popular state management library that is used with React to manage the data in an application. With so much popularity, it can be overwhelming for beginners to get started with Redux as a beginner. Redux not only has great documentation but also has a lot of resources online that you can follow to learn it. But if you are just starting out with your React app and want to implement Redux, the first step is understanding how it works and when you should use it. Redux basically works like this: You have a big object called store which has all the properties related to your entire application’s state in it. Whenever something changes, we call Actions which have functions attached to them. Those actions are triggered and take the new values that we provide after an update as parameters, along with old values from before the update. These functions are called Reducers, because they reduce or concat new values with old values and return new properties with updated state (a process referred to as memoization).</p><h3>How does Redux work?</h3><p>Redux works with a big object called Store, which holds all the properties related to your entire application’s state. Whenever something changes, we call Actions which have functions attached to them. Those actions are triggered and take the new values that we provide after an update as parameters, along with old values from before the update. These functions are called Reducers, because they reduce or concat new values with old values and return new properties with updated state (a process referred to as memoization). The Store is where all the state is stored, and the Action Creators are responsible for taking the new values and triggering the store to update (along with old values). You can think of the Store as a big box with all the data related to your application’s state, and the Action Creators are triggers that open the box and add new data to it, or remove old data from it.</p><h3>Should you use Redux for your React app?</h3><p>Redux is a library that is used in building React apps. So, if you are building a React application, then you need to decide if you need to use Redux or not. Here are a few reasons why you might want to use Redux with your React app: If your React app has more than one route — e.g., you have an admin section, a login section, and a product page, If your React app has more than one page, or If your React app contains a lot of data that needs to be accessed across different routes. And here are a few reasons why you might not want to use Redux with your React app: If your React app has one page that doesn’t need to change data on different routes, or If your React app has only one route, or If your application has a small amount of data that doesn’t need to be accessed across different routes.</p><h3>Actions in Redux</h3><p>Actions are functions that are triggered whenever something changes in the application which returns new values with updated state (a process referred to as memoization). When you trigger an action, it can either return a new object with updated values or return nothing at all. When returning a new object with updated values, the old values are replaced with the new values of the object in the store. When returning nothing, the store will take the new values that you provide and add them to the existing object in the Store. You can think of actions in Redux as triggers that open the box and add new data to it, or remove old data from it. The store is where all the state is stored, and the action creators are responsible for taking the new values and triggering the store to update (along with old values).</p><h3>Reducers in Redux</h3><p>The reducer function takes the old values along with the new values as parameters and returns the new state as a single object. This reducer function is called every time a value in the state changes which gets added to the store. You can think of reducers in Redux as a function that takes the old state and the new state as parameters and returns a new state as a single object. Whenever a value in the state changes, the store triggers this function again and the function adds the new value to the new state. The reducer function can also be written as a function that takes the previous state and the new state as parameters, and returns a new state as a single object. Whenever a value in the state changes, the store triggers this function again and the function adds the new value to the new state.</p><h3>Store in Redux</h3><p>The store is where all the state is stored, and the action creators are responsible for taking the new values and triggering the store to update (along with old values). You can think of the Store as a big box with all the data related to your application’s state, and the Action Creators are triggers that open the box and add new data to it, or remove old data from it. The store has a function that lets you add constants to it, and you can add new properties to it like an object with key-value pairs in it. You can add different values to the store, and store them in one object that can be accessed across different routes.</p><h3>Wrapping up</h3><p>Redux is a popular library that is used with React to manage the data in an application. With so much popularity, it can be overwhelming for beginners to get started with Redux as a beginner. The first step is understanding how it works and when you should use it. Redux basically works like this: You have a big object called store which has all the properties related to your entire application’s state in it. Whenever something changes, we call Actions that have functions attached to them. Those actions are triggered and take the new values that we provide after an update as parameters, along with old values from before the update. These functions are called Reducers because they reduce or concat new values with old values and return new properties with the updated state (a process referred to as memoization).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a852d8123cfb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[8 Tips to Master JavaScript: From Debugging to Scalability]]></title>
            <link>https://medium.com/@olarmmi/8-tips-to-master-javascript-from-debugging-to-scalability-f4f1e2eda5e0?source=rss-b9a8a8edf62e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4f1e2eda5e0</guid>
            <category><![CDATA[javascript-newbie]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[scalability]]></category>
            <category><![CDATA[debugging-javascript]]></category>
            <category><![CDATA[newprogrammer]]></category>
            <dc:creator><![CDATA[Is-haq Adnan]]></dc:creator>
            <pubDate>Thu, 17 Nov 2022 23:12:48 GMT</pubDate>
            <atom:updated>2022-11-17T23:12:48.417Z</atom:updated>
            <content:encoded><![CDATA[<p>JavaScript is arguably one of the most widely used programming languages, if not the most. It powers an increasing number of websites and applications, making it a key skill for software developers. Because with JavaScript you can create interactive websites, build responsive user interfaces or add simple animations to your projects. This visual and logical language can be used not just for browser-based applications but also for server-side applications and mobile apps. There are numerous online tools for learning JavaScript, including free video courses and books. But mastering this programming language may feel like a difficult task. As a novice in software engineering or programming, this article will give you detailed information on how to become a JavaScript Ninja. You’ll discover ways to debug code faster, understand scope better, and scale your programs more effectively.</p><h3>Learn the Basics of JavaScript</h3><p>The first thing you should do to prepare yourself to learn JavaScript is to learn the basics of the language. This means understanding key concepts like syntax, variables, functions, and loops. You should also know the difference between pure JavaScript and jQuery. Once you have the basics down, you can start to focus on intermediate and advanced concepts. We recommend that you check out online guides like W3Schools or MDN to learn the basics of JavaScript. You can also read an introductory book on the subject if you prefer that format. You can also find online courses. Many universities now offer online JavaScript courses. And there are plenty of independent sites that offer JavaScript tutorials as well.</p><h3>Practice Writing Code</h3><p>After you’ve mastered and grasped the fundamentals of JavaScript, you should practice writing code. This will help you gain experience, and become more familiar with the language and its syntax. You can do this by writing code in a programming editor or IDE (we’ll come back to this in a moment). Or you can try one of the many online tools that allow you to code JavaScript in the browser. There are plenty of online code editors or sandbox-like tools that allow you to code JavaScript. Try codepen.io or JS Fiddle. These allow you to write code, and then share that code with others as well as get feedback on it. Typically an extraordinary way to hone composing code and get constructive criticism on your abilities</p><h3>Use a Debugging Tool</h3><p>Debugging is a very important part of programming. It’s the process of finding and removing the source of errors from your code. This will help you write code that is more stable and secure. There are many debugging tools for JavaScript. You can use either source-level debugging or execution-level debugging. Source-level debugging tools allow you to see the exact code that your computer is running. This helps you to find issues like syntax errors. A debugger can also be used to pause your code while it is running. This allows you to examine and modify the program’s state while it is executing.</p><h3>Understand Scope</h3><p>The visibility of variables and functions is referred to as scope. Local variables can only be accessed within the function in which they are defined. Global variables, on the other hand, can be accessed from anywhere in your application. Global variables can be useful if you want to share information between multiple functions without having to pass that data through functions. But they can also lead to issues if you don’t control them properly. This is because two different functions could accidentally overwrite each other’s data. You can avoid issues with global variables by using namespaces. This allows you to group your variables and functions together. If you want to access the data in your namespace from another function, you can pass it as an argument. This can help you avoid naming conflicts.</p><h3>Understand Events and Responses</h3><p>JavaScript is an event-driven language. This means that when you trigger an event, a function is called in response. There are many types of events that you can use in your JavaScript code. Events can be triggered by user interaction, browser interaction, or system interaction. They can also be triggered manually by the programmer. Keyboard events, for example, can be used to create a keyboard shortcut. There are also many ways to respond to events in JavaScript. You can use if/else statements, switch statements, or try/catch blocks. Event handlers can also be used to respond to events.. An event handler is a function that’s called when a certain event occurs. You can use event handlers to trigger other functions when an event occurs.</p><h3>Don’t Rely on ID’s for CSS Layering</h3><p>ID selectors, when used with CSS, can be useful for layering on top of other elements. But, unlike classes, you can only use a single ID per page. This can make your code difficult to scale if your page gets larger. Instead, use classes for CSS layering. This allows you to use multiple classes on a single page. It’s also a better practice since you can use the same class for multiple elements.</p><h3>Think About Scalability When Writing Code</h3><p>Scalability refers to a system’s ability to grow and change over time. JavaScript code can become difficult to scale as a project grows. This is because JavaScript code can be written in different parts of the page. If you want to add new functionality, you may have to change all those parts of the page that contain your code. This can be difficult and time-consuming. You can avoid these issues by centralizing your JavaScript code. This means writing your code in a single location. You can then use JavaScript frameworks and libraries to call that code from different parts of your page. This will make your code easier to manage and change over time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4f1e2eda5e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>