<?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 Harisaqeel  on Medium]]></title>
        <description><![CDATA[Stories by Harisaqeel  on Medium]]></description>
        <link>https://medium.com/@harisaqeel.2001?source=rss-fda625d7018f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*GDiDkpC83HO2-Y25q6EKLg.jpeg</url>
            <title>Stories by Harisaqeel  on Medium</title>
            <link>https://medium.com/@harisaqeel.2001?source=rss-fda625d7018f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 13:31:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@harisaqeel.2001/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[Coding Dynamics]]></title>
            <link>https://medium.com/@harisaqeel.2001/coding-dynamics-bae79e0ce9ae?source=rss-fda625d7018f------2</link>
            <guid isPermaLink="false">https://medium.com/p/bae79e0ce9ae</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[difficulty]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Harisaqeel ]]></dc:creator>
            <pubDate>Tue, 25 Jul 2023 12:58:09 GMT</pubDate>
            <atom:updated>2023-07-25T12:58:09.561Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lmJTuCNphbrNher4uuZb5A.jpeg" /></figure><p>Coding is so difficult to learn because there aren’t a ton of straight forward answers for how to build things.</p><p>The best advice for choosing between one way of doing it or the other has always been this: “it depends”</p><p>And it’s true. Any way you choose to do something will have a list of pros and a list of tradeoffs associated with it.</p><p>This is why I avoid getting into arguments over which way of doing things is better!</p><p>The reality is if the language allows both ways of doing it, and one of the ways has not been deprecated, then even the path that you think is the worst decision has some value to SOMEONE in some SITUATION.</p><p>So my advice is this: Put on your critical thinking hat, avoid assuming that this way is always the best to do it, and choose the way that is the best path forward for your project and skill level. There are always going to be tradeoffs</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bae79e0ce9ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain Certification helped grow my earnings]]></title>
            <link>https://coinsbench.com/blockchain-certification-helped-grow-my-earnings-1b9cd740d3b8?source=rss-fda625d7018f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b9cd740d3b8</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[blockchain-certified]]></category>
            <category><![CDATA[blockchain-development]]></category>
            <category><![CDATA[blockchain-certification]]></category>
            <category><![CDATA[earnings]]></category>
            <dc:creator><![CDATA[Harisaqeel ]]></dc:creator>
            <pubDate>Tue, 31 Jan 2023 04:36:01 GMT</pubDate>
            <atom:updated>2023-02-03T16:13:00.309Z</atom:updated>
            <content:encoded><![CDATA[<h4>Right Blockchain certifications can <strong>help you get double or even triple the salary of a software engineer</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*hVEGKNb3q0oncj3tf7xgow.png" /></figure><p>Coming straight to the point!</p><p>There are many certifications that are being provided by different providers like the blockchain council, etc.</p><p>I can share my experience!</p><p>Last year, on LinkedIn, I saw someone posting that they cleared a certification provided by the blockchain training alliance. I initially thought it was a low-level certification that is being provided by many different platforms and it was super easy to clear them.</p><p>After some research, I found that I was wrong, BTA (Blockchain Training Alliance) provides different certifications among which one can choose according to his own interest and levels.</p><p>I opted to prepare for <strong>Certified Blockchain Business Foundations (CBBF) </strong>certification. I will make a separate article on how I prepared for the certifications. However, it took me almost some days more than a month to get completely prepared to attempt that.</p><p>The exam was neither very complex, neither it was a piece of cake.</p><p>One thing, I noticed was that since all questions were MCQs based so every option was very similar to other available choices. Someone attending without deep concepts might consider more than one option correct which obviously can not be possible.</p><p>Coming back to my story, <strong>I cleared the certification with more than 80%</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*uSwno8lWRIa5fFjyq8j7bw.png" /></figure><p>Everyone can download this certificate on the below link <br><em>https://www.btacertified.com/dlink/8711524d19ed633b2dd5bde9f5eb1e5cc8adb508cf4653ec77a5e18645278bf7/certdisplayhash</em></p><h4>How has It helped in growing my earnings?</h4><p>My old readers who follow me know that I am working as a freelance developer on various platforms. I added these certification pictures along with credentials on those platforms as well as on LinkedIn and applied for various blockchain-related jobs. I noticed that as soon as my clients know that I am already a certified developer, the whole session of interviews and screening process becomes very easy and enjoyable.</p><p>They trust that if somebody is certified then he must have the due experience required for this task.</p><p>I forgot to mention that the certification cost me almost 50,000 PKR (equivalent to 200$) but here is the fun part, I was able to buy the exam voucher at <strong>half of the price </strong>because, at the time when I was buying it, there was some offer going on.</p><p>Frankly speaking, I myself forgot that particular offer but maybe it might be a black Friday offer. Anyway, you can look and search on google or wait for another offer as well.</p><p>I managed to close two big orders and successfully completed them. Through these orders, I was not only able to regain the invested money (exam money) but also gained some extra money.</p><p>If you are also looking for suggestions, mention them in the comments. I will reach all of the people in the comments. Follow me here “<a href="https://medium.com/@harisaqeel.2001">https://medium.com/@harisaqeel.2001</a>”. I will keep sharing more on this topic.</p><p>Thanks</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b9cd740d3b8" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/blockchain-certification-helped-grow-my-earnings-1b9cd740d3b8">Blockchain Certification helped grow my earnings</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Consistency is key to success but how to become consistent?]]></title>
            <link>https://medium.com/@harisaqeel.2001/consistency-is-key-to-success-but-how-to-become-consistent-46e520e991e3?source=rss-fda625d7018f------2</link>
            <guid isPermaLink="false">https://medium.com/p/46e520e991e3</guid>
            <category><![CDATA[2-day-rule]]></category>
            <category><![CDATA[consistency]]></category>
            <category><![CDATA[consistency-challenge]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[success]]></category>
            <dc:creator><![CDATA[Harisaqeel ]]></dc:creator>
            <pubDate>Sun, 29 Jan 2023 13:35:18 GMT</pubDate>
            <atom:updated>2023-01-30T10:10:10.517Z</atom:updated>
            <content:encoded><![CDATA[<h4>Consistency <strong>requires a long-term commitment from you and involves sustained effort in doing actions repeatedly until you achieve your goals</strong>.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*PxFgIW_dkTnLnPZ8NoRiNA.jpeg" /><figcaption>Growth — Consistency — Two-day Rule</figcaption></figure><p>John Maxwell says, <strong>“Small disciplines repeated with consistency every day lead to great achievements gained slowly over time.”</strong></p><p>Success is usually not instant, it is a journey. One step at a time!</p><p>So, choose a routine or habits that you can maintain, and then build on them.</p><p>Developing great habits can bring numerous benefits to our lives, but my favorite among them is this: it forms the foundation of who we become in the future. However, forming new habits can be a real challenge, despite our best intentions.</p><p>Our minds are incredibly powerful, with the ability to plan, strategize, and think ahead. But when it comes to putting those plans into action, that’s where we often fall short.</p><p>The truth is, we’re imperfect, flawed, and not always as disciplined as we aspire to be. We have grand plans, but our execution often lacks the desired outcome. The reason for this is simple — life rarely goes as planned. Despite our intention to start lifting weights, eating healthier, or reading more books, life has a funny way of getting in the way.</p><p>Maybe you were eager to start your new workout program, but your car battery died. Or that healthy meal plan you had been tracking on your phone, suddenly lost its appeal when hot enchiladas were placed in front of you.</p><p>Building great habits is essential to our success, requiring discipline, willpower, and focus. But let’s be honest, we’re all human, and we don’t always have these three superpowers at our fingertips, especially on our busiest days.</p><h3>What is the point of having good habits?</h3><blockquote>Waking up to the inspiring posts of former Navy Seals Jocko Willink and David Goggins on Instagram is always a treat for the soul. They set a high bar for discipline, growth, and habit-building as they start their mornings with a workout at 430 am and complete 20-mile runs in the scorching heat of the desert. Their content not only motivates but also showcases their unwavering commitment to self-improvement.</blockquote><p>However, not everyone has to follow in their footsteps to achieve growth in their lives. There’s no need to embrace an extreme military-style discipline that could lead to unhappiness. What we all strive for is progress, small improvements, and growth that we can see over time.</p><p>To experience growth, we must embrace self-discipline and step out of our comfort zones. But, we don’t have to be perfect to do so. Perfectionism only creates procrastination, and we want to avoid that. Instead of striving for perfection, let’s focus on following a set of rules that can lead to a noticeable improvement in our lives.</p><h3>How The 2-Day Rule Works:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*RtErU3FeVm8DyriuL-J2WA.png" /></figure><p>I first read about the 2-Day Rule recently and I thought it was a good way of maintaining consistency. Consistency is everything — but it comes in many shapes and sizes.</p><p>Follow the Two-Day Rule: Never skip twice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*iuTvmbSxm6a8g0TnJK4onA.png" /></figure><p>It’s simple: With whatever habit you’re trying to build, never allow yourself to skip more than one day in a row. Your Two Day Rule calendar may look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*N0Qrw1QlaM3aCiW_exMH2g.png" /><figcaption>Consistency is key to success (2-day rule)</figcaption></figure><p>The “never skip twice” concept is a favorite of <a href="https://twitter.com/JamesClear">JamesClear</a>. Quoting a study in the European Journal of Social Psychology: “<strong>Missing one opportunity to perform the behavior did not materially affect the habit formation process.</strong>” Skipping one won’t hurt — just don’t skip another.</p><h3>How I Apply the Two-Day Rule to My Own Life:</h3><p>I am a freelancer and a Final Year Software Engineering student. I often in the morning either look for new projects or work on existing projects for my old clients. I often find myself so consumed with daily tasks that I neglect my own personal growth and development. The temptation of financial rewards and completing tasks can easily override the motivation for learning. But I knew I couldn’t let that continue, so I made a decision to prioritize my learning and never miss a day. Whenever I feel losing my motivation, I thought that it was okay for me to leave for a day but at the same time, I thought that why not do the learning today and make a holiday tomorrow? This has tremendously helped me and I am now making progress daily.</p><p>In <strong>conclusion</strong>, the two-day rule has been a game-changer for me as a freelancer and student. It has allowed me to prioritize my personal growth while still meeting my daily tasks and responsibilities. I highly recommend this method to others who want to achieve consistency in their personal development while balancing their daily tasks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46e520e991e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smart Contract (ERC-20)]]></title>
            <link>https://coinsbench.com/smart-contract-erc-20-9a9252c104c9?source=rss-fda625d7018f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a9252c104c9</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[erc20]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[erc20-token]]></category>
            <dc:creator><![CDATA[Harisaqeel ]]></dc:creator>
            <pubDate>Sat, 28 Jan 2023 09:46:45 GMT</pubDate>
            <atom:updated>2023-02-03T16:08:48.335Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P4can8Omk8H3gf2c" /></figure><p>Before diving deep into ERC20 tokens, we need to understand some basic terms we will use throughout our article.</p><p><strong>Tokens</strong>: TOKENS are digital assets defined by a project or smart contract and built on a specific blockchain.</p><p>There are mainly two types of tokens described explicitly in the blockchain</p><ol><li><strong>Fungible</strong> <strong>Tokens</strong>: Anyone token is exactly equal to any other token; no tokens have special rights or behavior associated with them</li><li><strong>Non-Fungible Tokens: </strong>Anyone token is not exactly equal to any other token; tokens may have special rights or behavior associated with them</li></ol><p><strong>OpenZeppelin</strong> is an open-source framework <strong>to build secure smart contracts</strong>. OpenZeppelin provides a complete suite of security products and audit services to build, manage, and inspect all aspects of software development and operations for decentralized applications.</p><h3>ERC20</h3><p>An ERC20 token contract deals with fungible tokens. Since all tokens have similar worth and value therefore they are useful in things like currency exchange, voting rights, and staking.</p><p>The ERC-20 standard has been acknowledged as the most important on Ethereum since 2015. In order to deploy tokens in all smart contracts on the Ethereum blockchain, ERC-20 has emerged as the de facto technical standard. It offers a set of guidelines that all tokens built on Ethereum must adhere to. Blockchain-based assets with value that can be transmitted and received are known as ERC-20 tokens. The main distinction is that ERC-20 tokens are created on the Ethereum network rather than on their own blockchain.</p><h3>Constructing an ERC20 Token Contract</h3><p>Since OpenZeppelin is a standard for constructing an ERC20 token, therefore we need to follow the interface of ERC20 provided to us by OpenZeppelin.</p><p>According to the standards, to construct an ERC20 Token, we need to have certain functions, events, and variables in our smart contract to be called as ERC20.</p><p>An ERC20 token smart contract should consist following attributes</p><ol><li>Six Functions</li><li>Two Events</li><li>Three Optional Metadata Functions</li><li>Name Of Token</li><li>Symbol Of Token</li><li>Decimal Places</li></ol><p>Whenever we have to build a new ERC20 token from scratch, you should have a look at this <a href="https://docs.openzeppelin.com/contracts/4.x/api/token/erc20#IERC20">documentation</a> of OpenZeppelin.</p><p>Now, is the right time to start jumping into the code with this basic knowledge. Assume we have a token, so we need to identify it that’s why we need to give a name and symbol to our token.</p><p>Let’s assume our token will have a name of “LEARN-TOKEN-ERC20” having a symbol of “LTE”. Now, how to define that in the code. Let’s see,</p><pre><br>// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.7; <br><br>contract ERC20 { <br><br>  string public name; <br>  string public symbol; <br>  uint public totalSupply; <br><br>  constructor() { <br><br>      name = &quot;LEARN-TOKEN-ERC20&quot;; <br>      symbol = &quot;LTE&quot;;<br>      totalSupply = 10000 <br>  } <br><br>}</pre><p>In the above code, pragma specifies the solidity version which we are using. After that, we added two string variables name and symbol, and we assign them our token name and symbol in the constructor. Constructor in solidity will run only at the time of the contract deployment. So, we are assigning the name and symbol to the token at the time of deployment. We can further make it dynamic by accepting the token name and symbol in the parameter as well.</p><pre>// SPDX-License-Identifier: GPL-3.0 <br><br>pragma solidity ^0.8.7; <br>contract ERC20 { <br>  string public name; <br>  string public symbol; <br>  uint public totalSupply; <br>  constructor(string memory _name, string memory _symbol, uint _totalSupply) {<br>     name = _name; <br>     symbol = _symbol; <br>     totalSupply = _totalSupply; <br>  } <br>}</pre><p>Here, we will now provide the name and symbol of our token at the time of deployment.</p><p>Now, as we have discussed that we have to implement six(6) functions. Now, why do we need these functions, and what is the functionality of each of them? Let’s discuss them one by one.</p><ol><li><strong>Total Supply</strong>: Returns the number of tokens in existence. The owner of the contract who will deploy the contract will initially define some total supply value which indicates the number of tokens that will be generated when this smart contract will be deployed. Do we need to explicitly make a function named as totalSupply? <strong>No</strong>, because when you declare a public variable, it automatically generates a public function with the same name. Since the purpose of the totalSupply function is to return the number of tokens, that exactly is the same as what the totalSupply variable will return to us.</li><li><strong>Balance Of: </strong>balanceOf will accept an account address and will return the balance of that account to us in uint256. In order to keep a record of how much balance each account has, we maintain a mapping that stores the balance of the account against every address.</li></ol><pre>// This mapping named as allowed stores the balance against its address mapping(address =&gt; uint256) balance;<br>// To get the balance of a particular account, we will make a balanceOf Function <br><br>function balanceOf(address account) public override view returns(uint256){ <br>    return balance[account]; <br>}</pre><p>3. <strong>Transfer: </strong>Moves amount tokens from the caller’s account to the receiver’s account. It receives the amount and address of the receiver. It will subtract the tokens mentioned in the amount parameter from the msg.sender(caller’s) account and will add that number of tokens to the receiver’s account.</p><pre>// This Transfer event will be declared in the global scope. <br>event Transfer(address indexed from, address indexed to, uint256 value); <br><br>function transfer(address recepient, uint256 amountOfTokens) public returns(bool) { <br>    require(amountOfTokens &lt;= balance[msg.sender]); <br>    balance[msg.sender] = balance[msg.sender] - amountOfTokens; <br>    balance[recepient] = balance[recepient] + amountOfTokens; <br>    // emitting the above event so that we can get some logs <br>    emit Transfer(msg.sender, recepient, amountOfTokens); <br>    return true; <br>}</pre><p>It checks whether the caller’s balance is more than the amount which he wants to send to the recipient and then proceeds with other steps.</p><p>4. <strong>Allowance: </strong>Returns the remaining number of tokens that the spender will be allowed to spend on behalf of the owner through <a href="https://docs.openzeppelin.com/contracts/4.x/api/token/erc20#IERC20-transferFrom-address-address-uint256-">transferFrom</a>. This is zero by default. This value changes when <a href="https://docs.openzeppelin.com/contracts/4.x/api/token/erc20#IERC20-approve-address-uint256-">approve</a> or <a href="https://docs.openzeppelin.com/contracts/4.x/api/token/erc20#IERC20-transferFrom-address-address-uint256-">transferFrom</a> are called. The allowed mapping is a nested mapping, which first stores the balance or amount of tokens that the spender can spend on the behalf of the owner. The tokens which the spender will spend will not be his own rather they are of the owner and just he (spender) has the ability to spend.</p><pre>mapping(address =&gt; mapping(address =&gt; uint256)) allowed; <br><br>function allowance(address owner, address spender) public view returns(uint256) { <br>  return allowed[owner][spender]; <br>}</pre><p>5. <strong>Approve: </strong>Sets amount as the allowance of spender over the caller’s tokens. Returns a boolean value indicating whether the operation succeeded. Emits an <a href="https://docs.openzeppelin.com/contracts/4.x/api/token/erc20#IERC20-Approval-address-address-uint256-">Approval</a> event.</p><pre>function approve(address spender, uint256 amountOfTokens) public returns(bool){ <br>  allowed[msg.sender][spender] = amountOfTokens; <br>  emit Approval(msg.sender, spender, amountOfTokens); <br>  return true; <br>}</pre><p>6. <strong>Transfer From</strong>: Moves amount tokens from owner to recipient using the allowance mechanism. the amount is then deducted from the caller’s allowance. Returns a boolean value indicating whether the operation succeeded.</p><pre>function transferFrom(address owner, address recepient, uint256 amountOfTokens) public returns(bool) { <br>  require(amountOfTokens &lt;= balance[owner]); <br>  require(amountOfTokens &lt;= allowed[owner][msg.sender]); <br>  balance[owner] = balance[owner] - amountOfTokens; <br>  allowed[owner][msg.sender] = allowed[owner][msg.sender] - amountOfTokens; <br>  balance[recepient] = balance[recepient] + amountOfTokens; <br>  emit Transfer(owner, recepient, amountOfTokens); <br>  return true; <br>}</pre><h3>CONCLUSION:</h3><p>This ERC20 contract is combined and present in this <a href="https://github.com/haris-aqeel/ERC20-FIRST-/blob/main/contracts/erc20first.sol">GitHub repo</a>. Hope you enjoyed this article. For more interesting upcoming projects, have a look at my <a href="https://github.com/haris-aqeel">G</a>itHub profile. If you enjoyed this article, do follow and like and make sure to let me know, how I can improve this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a9252c104c9" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/smart-contract-erc-20-9a9252c104c9">Smart Contract (ERC-20)</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React → useState vs useReducer]]></title>
            <link>https://medium.com/@harisaqeel.2001/react-usestate-vs-usereducer-8830ee11f83f?source=rss-fda625d7018f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8830ee11f83f</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[usereducer-vs-usestate]]></category>
            <category><![CDATA[usestate]]></category>
            <category><![CDATA[usereducer]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Harisaqeel ]]></dc:creator>
            <pubDate>Fri, 27 Jan 2023 13:29:26 GMT</pubDate>
            <atom:updated>2023-01-27T13:29:26.005Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*VW1DSbhPtGpctEYAAjqYDg.png" /></figure><p>You have a component that takes an input and returns some data or information. Now imagine another component that needs this data from your first component so it can do something else. If you don’t hook these two together, there’s no way for them to communicate with each other because they don’t know about each other yet!</p><p>Hooks make this possible by allowing us to write reusable components without having to worry about how our code will be used in future projects or libraries — like where should I put my hook? Do I need more than one hook? Should I use one instead of two (or three)? These questions only come up when we’re writing our own component libraries from scratch without hooks already installed into them.</p><blockquote>Here’s a fun React tip: `useReducer` is a better than`useState`, and it’s easier to adopt than you may think.</blockquote><p>Group related values together and spread them in the reducer. Then, updating is just:</p><pre>updateThing({ prop: newValue })</pre><p>And there’s even more benefits to `useReducer`…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/0*ixLGesOeSClmH_UJ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/0*EOxyKvyjz9Y2Qb44" /></figure><p>When you centralize related data into a reducer, you can ensure data integrity no matter where the updates happen.</p><p>This is harder to do with `useState` since you have to defensively program *everywhere* the setState calls are made; it’s less reliable and easy to miss.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/0*XSzrUbFLc5b820sx" /></figure><p>But the *real* reason to incrementally adopt `useReducer` is that refactoring to use explicit events becomes easier.</p><p>Events are a great abstraction for understanding &amp; organizing app logic better, especially as the logic gets more complex.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/0*hWsgpY8JGFEbj_qS" /></figure><p>For the TypeScript lovers, I believe this is all you need:</p><pre>(data: Data, partialData: Partial&lt;Data&gt;): Data =&gt; {…}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/0*tpNoZlXW7Vo3GgCx" /></figure><p>Resources which I take help, to write this article involves various internet resources.</p><h3>Conclusion:</h3><p>useReducer is a hook that allows you to manage state in a React application by providing a reducer function and an initial state. It is similar to useState, which is another hook that also allows you to manage state in a React application.</p><p>There are a few advantages to using useReducer over useState:</p><ol><li>useReducer can handle complex state updates: useReducer is more powerful than useState because it allows you to express complex state updates that may involve multiple sub-values within the state. This can be particularly useful when you need to perform updates that depend on the current state or when you need to perform multiple independent updates to the state.</li><li>useReducer can be easier to test: Because useReducer separates the logic for updating the state from the component itself, it can be easier to test the reducer function separately from the component. This can make it easier to write unit tests for your application.</li><li>useReducer can improve performance: In some cases, using useReducer can improve the performance of your application because it allows React to optimize the re-rendering of components that depend on the state. This is because useReducer uses a more efficient algorithm for determining when to re-render a component than useState.</li></ol><p>Overall, useReducer is a good choice when you need to manage complex state updates or when you want to improve the performance of your application. However, it is generally easier to use useState for simple state updates, and many developers find it sufficient for their needs.</p><p>Thank you for reading this tech blog! We hope you found it informative and helpful. We would love to hear your thoughts on the topic. What did you think of this article? Did you learn something new? Do you have any questions or suggestions for future content? Let us know in the comments below!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8830ee11f83f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking the Potential of Blockchain]]></title>
            <link>https://coinsbench.com/unlocking-the-potential-of-blockchain-how-its-changing-the-game-for-businesses-and-consumers-f66d8e9cd319?source=rss-fda625d7018f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f66d8e9cd319</guid>
            <category><![CDATA[blockchain-development]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <dc:creator><![CDATA[Harisaqeel ]]></dc:creator>
            <pubDate>Fri, 27 Jan 2023 12:52:16 GMT</pubDate>
            <atom:updated>2023-02-01T13:28:33.953Z</atom:updated>
            <content:encoded><![CDATA[<p>How it’s Changing the Game for Businesses and Consumers?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CDGFB_3z-V1I_oErnsNZbg.jpeg" /><figcaption>Blockchain</figcaption></figure><h3>Introduction:</h3><p>The world is moving to blockchain. But what is it? And why should you care about it? In this article, we’ll explore the basics of blockchain technology and how it can help your business or personal life in ways that you might not expect.</p><h3>What is blockchain?</h3><p><strong>What is blockchain?</strong></p><p>Blockchain is a type of distributed ledger, which means it’s a secure, tamper-resistant database that can be used to record transactions. It’s an open, distributed ledger that can record transactions between two parties efficiently and in a verifiable and permanent way.</p><p><strong>How does it work?</strong></p><p>The concept behind blockchain is similar to how email works: everyone has their own copy of the same information so they can see exactly what’s going on at any given time (and this also means no one has access to others’ data). However, instead of being sent through servers like traditional email servers do (which allows them access), blockchains are decentralized — meaning they’re run by users themselves rather than companies or governments or anyone else who might want control over them!</p><h3>Why should I care about blockchain?</h3><p>You’ve probably heard of blockchain, but do you know what it is? Blockchain is a decentralized digital ledger that records transactions and distributes them across a network. It was invented by Satoshi Nakamoto in 2008 as an alternative to trusted third-party companies like banks or governments. The aim of blockchain is to create a more efficient system for sharing and recording data about assets like money and property that can be used by anyone on the network without requiring authorization from any third parties. In other words: if your friend wants to send you some cash through Venmo (a popular payment app), instead of having them write down their number on paper — which could easily get lost — they instead enter it into their phone using Venmo’s app; this way they don’t have to trust anyone else with their sensitive information!</p><h3>Why do people use blockchain?</h3><p>Blockchain is a decentralized and distributed ledger that records transactions across many computers. The blockchain database is shared by all the nodes participating in this network, meaning that no one person or institution controls it.</p><p>Blockchain was originally created for financial transactions, but it can be used for any kind of transaction: from buying an item on Amazon, to paying your bills online (like Venmo), to even voting for politicians!</p><p>Blockchain technology is the backbone of the cryptocurrency and decentralized economy. It’s a way to make transactions without any third party services or banks getting involved, so it allows for greater privacy and security for users.</p><h3>How do I use blockchain technology?</h3><p>Blockchain is a new technology that is changing the way we do business. It’s also changing the game for consumers, who now have access to more transparency and security than ever before.</p><p>Blockchain is a digital ledger that records transactions and the transfer of assets between parties without any central authority or middleman (like banks). Instead, blockchain relies on peer-to-peer networks where everyone shares information with each other directly; this creates an environment in which you can trust each other because there’s no central point of failure — and therefore no downtime or downtime whatsoever!</p><p>The beauty of this system lies in its <strong>decentralized nature</strong>: instead of relying on one entity like PayPal or Venmo (which both require users to submit personal information before receiving payments), blockchain allows users to send money directly from their own bank accounts without having any transaction fees attached by third parties like Wells Fargo Bank…</p><blockquote><strong>“Blockchain is a powerful new tool that can help you accomplish your goals, but it takes some patience and research”</strong></blockquote><p>Blockchain is a powerful new tool that can help you accomplish your goals, but it takes some patience and research.</p><p>You need to do some research before jumping into blockchain, because this technology has a lot of moving parts and it takes time to learn how best to use it. But once you have your head around the basics, blockchain can be an essential part of your business operations in ways that could change everything from customer acquisition strategies through customer retention rates:</p><p>Blockchain can help you retain customers. If a customer has a bad experience with your business, it’s easy for them to switch over to another provider. They won’t have any reservations about going somewhere else if they feel like they aren’t getting the same level of service or care as they were getting before. By using blockchain technology, you can make sure that your customers get the best possible experience in all aspects of their interactions with your company.</p><h3>Conclusion</h3><p>In conclusion, I hope that you’ve found this article helpful, and if you have any more questions about how to use blockchain technology in your business or personal life, please feel free to reach out!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f66d8e9cd319" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/unlocking-the-potential-of-blockchain-how-its-changing-the-game-for-businesses-and-consumers-f66d8e9cd319">Unlocking the Potential of Blockchain</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Top 10 Health Benefits of Yoga: How It Can Improve Your Life]]></title>
            <link>https://medium.com/@harisaqeel.2001/the-top-10-health-benefits-of-yoga-how-it-can-improve-your-life-2f96c72ca859?source=rss-fda625d7018f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f96c72ca859</guid>
            <category><![CDATA[stress-and-anxiety]]></category>
            <category><![CDATA[health-benefits]]></category>
            <category><![CDATA[focus]]></category>
            <category><![CDATA[energy]]></category>
            <category><![CDATA[yoga]]></category>
            <dc:creator><![CDATA[Harisaqeel ]]></dc:creator>
            <pubDate>Fri, 27 Jan 2023 12:14:36 GMT</pubDate>
            <atom:updated>2023-01-27T12:14:36.681Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*dl7vKne6HOrq9ZfW6LGVIA.jpeg" /></figure><p>Yoga has been practiced for thousands of years and has been known to offer a wide range of health benefits. From reducing stress and anxiety to improving flexibility and strength, there are countless reasons to start practicing yoga today. In this article, we’ll explore yoga’s top 10 health benefits and how it can improve your life.</p><ol><li><strong>Reduces Stress and Anxiety</strong>: Yoga is known to be an effective way to reduce stress and anxiety. The practice of yoga involves deep breathing and meditation techniques that can help to calm the mind and reduce feelings of tension and worry.</li><li><strong>Increases Energy and Stamina</strong>: Yoga is known to increase energy and stamina. The practice of yoga involves deep breathing and meditation techniques that can help to increase oxygen flow to the body, which can lead to increased energy and stamina.</li><li><strong>Improves Balance and Coordination</strong>: Yoga is known to improve balance and coordination. The practice of yoga involves a wide range of poses that can help to improve balance and coordination.</li><li><strong>Improves Immune System</strong>: Yoga is known to improve the immune system. The practice of yoga involves deep breathing and meditation techniques that can help to improve the immune system.</li><li><strong>Improves Digestion</strong>: Yoga is known to improve digestion. The practice of yoga involves deep breathing and meditation techniques that can help to improve digestion.</li><li><strong>Improves Sleep Quality</strong>: Yoga is known to improve sleep quality. The practice of yoga involves deep breathing and meditation techniques that can help to improve sleep quality.</li><li><strong>Improves Mental Clarity and Focus</strong>: Yoga is known to improve mental clarity and focus. The practice of yoga involves deep breathing and meditation techniques that can help to improve mental clarity and focus.</li><li><strong>Improves Flexibility and Strength</strong>: Yoga is a great way to improve flexibility and strength. The practice of yoga involves a wide range of poses that can help to stretch and tone the muscles, which can lead to improved flexibility and strength.</li><li><strong>Improves Respiratory Function</strong>: Yoga is known to improve respiratory function. The practice of yoga involves deep breathing and meditation techniques that can help to improve respiratory function.</li><li><strong>Improves Cardiovascular Health</strong>: Yoga is known to improve cardiovascular health. The practice of yoga involves deep breathing and meditation techniques that can help to improve cardiovascular health.</li></ol><p>In conclusion, yoga is a practice that offers a wide range of health benefits. From reducing stress and anxiety to improving flexibility and strength, there are countless reasons to start practicing yoga today. Remember to start slow and with a beginner class or tutorial and always consult with a doctor or physical therapist before starting any new exercise routine.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f96c72ca859" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>