<?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 Thivi on Medium]]></title>
        <description><![CDATA[Stories by Thivi on Medium]]></description>
        <link>https://medium.com/@angelthivi9?source=rss-39069fdafeb5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*9fb3Bm6uxPJeZ1xO</url>
            <title>Stories by Thivi on Medium</title>
            <link>https://medium.com/@angelthivi9?source=rss-39069fdafeb5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 15:46:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@angelthivi9/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[Purpose of “use client” in Next.JS]]></title>
            <link>https://medium.com/@angelthivi9/purpose-of-use-client-in-next-js-93fab2e23360?source=rss-39069fdafeb5------2</link>
            <guid isPermaLink="false">https://medium.com/p/93fab2e23360</guid>
            <dc:creator><![CDATA[Thivi]]></dc:creator>
            <pubDate>Wed, 11 Mar 2026 04:32:27 GMT</pubDate>
            <atom:updated>2026-03-11T04:32:27.135Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*fSblJ2kzVW60CHA2cnbHGw.png" /></figure><p>Next.js is a popular React framework used for building modern web applications. It provides many powerful features such as server-side rendering, static site generation, and improved performance optimization. With the introduction of the <strong>App Router in Next.js 13 and later</strong>, the framework introduced a new concept called <strong>Server Components and Client Components</strong>. By default, all components in the App Router are treated as <strong>Server Components</strong>, which means they run on the server instead of the user’s browser. This design helps improve performance by reducing the amount of JavaScript that needs to be sent to the client. However, some parts of an application require direct interaction with the user or access to browser features. To enable these capabilities, Next.js provides a special directive called &quot;use client&quot;.</p><p>The &quot;use client&quot; directive is placed at the <strong>top of a component file</strong> to tell Next.js that the component should be rendered on the <strong>client side</strong>, meaning it runs in the user&#39;s browser instead of on the server. When a component is marked with &quot;use client&quot;, it becomes a <strong>Client Component</strong>, allowing it to use features that are only available in the browser environment. This includes handling user interactions such as clicking buttons, typing in forms, and dynamically updating the interface based on user actions. Without this directive, the component will remain a Server Component and will not be able to use certain interactive features.</p><p>One of the main reasons developers use &quot;use client&quot; is to enable <strong>React hooks</strong>. Hooks such as useState, useEffect, and useContext allow developers to manage state and handle lifecycle events inside components. These hooks require the component to run in the browser because they depend on client-side rendering and dynamic updates. If a developer tries to use these hooks inside a Server Component without adding &quot;use client&quot;, Next.js will show an error because hooks cannot run on the server in that context.</p><p>Another important purpose of &quot;use client&quot; is to handle <strong>user interactions and events</strong>. Modern web applications often require interactive elements like buttons, dropdown menus, input fields, and form submissions. These interactions rely on event handlers such as onClick, onChange, and onSubmit. Since these events occur in the browser when a user interacts with the page, the component must run on the client side. By marking the component with &quot;use client&quot;, developers ensure that these event handlers work correctly and provide a responsive user experience.</p><p>In addition, &quot;use client&quot; allows components to access <strong>browser APIs</strong> that are not available on the server. For example, APIs like window, document, localStorage, and navigator can only be used in the browser environment. These APIs are commonly used for tasks such as storing user data locally, detecting device information, or manipulating elements on the page. Since Server Components run on the server, they cannot access these browser-specific objects. Therefore, when a component needs to interact with these APIs, it must be converted into a Client Component using the &quot;use client&quot; directive.</p><p>Despite its usefulness, developers should <strong>not overuse </strong><strong>&quot;use client&quot;</strong>. One of the main benefits of Next.js Server Components is that they improve performance by reducing the amount of JavaScript that is sent to the browser. Server Components can fetch data directly from databases or APIs on the server and send only the necessary HTML to the client. This makes the application faster and more efficient. If too many components are marked as Client Components, the application may lose some of these performance benefits because more JavaScript will need to be downloaded and executed in the browser.</p><p>Therefore, developers should carefully decide <strong>when to use </strong><strong>&quot;use client&quot; and when to keep components as Server Components</strong>. Components that only display static content or fetch data from a server can remain as Server Components. On the other hand, components that require interactivity, state management, or access to browser features should be marked with &quot;use client&quot;. This balanced approach allows developers to build applications that are both interactive and highly optimized.</p><p>In conclusion, the &quot;use client&quot; directive plays a crucial role in Next.js applications that use the App Router architecture. It allows developers to clearly define which components should run on the client side and which should remain on the server. By enabling React hooks, handling user interactions, and allowing access to browser APIs, &quot;use client&quot; makes it possible to build dynamic and interactive user interfaces. At the same time, using Server Components for non-interactive parts of the application helps maintain better performance and efficiency. Understanding how and when to use &quot;use client&quot; is an important skill for developers working with modern Next.js applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93fab2e23360" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How SEO Helps to People Find Your Website on Google]]></title>
            <link>https://medium.com/@angelthivi9/how-seo-helps-to-people-find-your-website-on-google-8958ca9b62d7?source=rss-39069fdafeb5------2</link>
            <guid isPermaLink="false">https://medium.com/p/8958ca9b62d7</guid>
            <dc:creator><![CDATA[Thivi]]></dc:creator>
            <pubDate>Tue, 10 Mar 2026 03:59:12 GMT</pubDate>
            <atom:updated>2026-03-10T03:59:12.949Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*JkYKt9zid_C0UHrFQ_zwAA.avif" /></figure><h3>How SEO Helps People Find Your Website on Google</h3><p>In today’s digital world, having a website is only the first step. The real challenge is making sure people can actually find it. That’s where <strong>Search Engine Optimization (SEO)</strong> comes in. SEO is the practice of optimizing your site so that search engines like Google can understand your content, index it properly, and rank it higher in search results. The better your SEO, the more visible your website becomes to potential visitors.</p><h3>🔍 How Google Finds Your Website</h3><p>Google uses a three-step process to connect users with websites:</p><ol><li><strong>Crawling</strong> — Automated bots discover webpages by following links.</li><li><strong>Indexing</strong> — Google analyzes the content, structure, and metadata of each page.</li><li><strong>Ranking</strong> — When someone searches, Google matches their query with indexed pages and ranks them based on relevance, quality, and authority.</li></ol><p>Without SEO, your site may exist online but remain invisible to most users.</p><h3>🚀 Why SEO Matters</h3><ul><li><strong>Visibility:</strong> Most users click on results from the first page of Google. Ranking higher means more people see your site.</li><li><strong>Traffic:</strong> SEO drives <em>organic traffic</em> — visitors who find you naturally, without paid ads.</li><li><strong>Credibility:</strong> Appearing in top results builds trust and authority in your niche.</li><li><strong>Cost-effective:</strong> Unlike ads, SEO provides long-term benefits once your site is optimized.</li></ul><h3>🛠️ Key SEO Practices</h3><p>To help Google connect your site with the right audience, focus on:</p><ul><li><strong>Keyword Optimization:</strong> Use relevant search terms in titles, headings, and content.</li><li><strong>Quality Content:</strong> Provide valuable, original information that answers user queries.</li><li><strong>Technical SEO:</strong> Ensure fast loading speeds, mobile-friendly design, and secure HTTPS.</li><li><strong>Backlinks:</strong> Earn links from reputable sites to boost authority.</li><li><strong>User Experience:</strong> Easy navigation and clear structure help both users and search engines.</li></ul><h3>⚠️ Challenges to Keep in Mind</h3><p>SEO is not instant — it takes time for changes to reflect in rankings. Google also updates its algorithms regularly, meaning strategies must evolve. And with millions of websites competing for attention, consistency and patience are key.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8958ca9b62d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrate backend with frontend using Axios]]></title>
            <link>https://medium.com/@angelthivi9/integrate-backend-with-frontend-using-axios-ead00fecc8c6?source=rss-39069fdafeb5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ead00fecc8c6</guid>
            <dc:creator><![CDATA[Thivi]]></dc:creator>
            <pubDate>Mon, 09 Mar 2026 04:31:44 GMT</pubDate>
            <atom:updated>2026-03-09T04:31:44.707Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ptTcd1Iyl0tYK2aSiKBq3w.png" /></figure><p>Modern web applications thrive on seamless communication between the frontend and backend. Whether you’re building a productivity tool, a wellness app, or an e-commerce platform, the ability to exchange data quickly and reliably is essential. <strong>Axios</strong>, a promise-based HTTP client, has become a favorite among developers because it simplifies this integration with clean syntax, built-in error handling, and advanced features like interceptors.</p><h3>Why Choose Axios?</h3><p>While browsers provide the native fetch API, Axios offers several advantages:</p><ul><li>Automatic JSON data transformation.</li><li>Cleaner, more concise syntax.</li><li>Support for request and response interceptors.</li><li>Easy configuration for base URLs and headers.</li></ul><p>These features make Axios a developer-friendly choice for connecting your frontend to your backend.</p><h3>Setting Up the Backend</h3><p>Let’s start with a simple backend using Node.js and Express:</p><p>javascript</p><pre>const express = require(&#39;express&#39;);<br>const app = express();</pre><pre>app.get(&#39;/users&#39;, (req, res) =&gt; {<br>  res.json([<br>    { id: 1, name: &#39;sathi&#39; },<br>    { id: 2, name: &#39;Alex&#39; }<br>  ]);<br>});</pre><pre>app.listen(5000, () =&gt; console.log(&#39;Server running on port 5000&#39;));</pre><p>This backend exposes a /users endpoint that returns JSON data.</p><h3>Connecting the Frontend</h3><p>On the frontend, Axios makes fetching this data straightforward. Here’s an example in React:</p><p>javascript</p><pre>import { useEffect, useState } from &#39;react&#39;;<br>import axios from &#39;axios&#39;;</pre><pre>function UserList() {<br>  const [users, setUsers] = useState([]);</pre><pre>  useEffect(() =&gt; {<br>    axios.get(&#39;http://localhost:5000/users&#39;)<br>      .then(res =&gt; setUsers(res.data))<br>      .catch(err =&gt; console.error(err));<br>  }, []);</pre><pre>  return (<br>    &lt;ul&gt;<br>      {users.map(user =&gt; &lt;li key={user.id}&gt;{user.name}&lt;/li&gt;)}<br>    &lt;/ul&gt;<br>  );<br>}</pre><p>With just a few lines, Axios retrieves data from the backend and updates the UI.</p><h3>Going Beyond Basics</h3><p>Axios isn’t limited to simple GET requests. It shines when handling more complex scenarios:</p><ul><li><strong>Interceptors</strong> for attaching authentication tokens</li></ul><p>javascript</p><pre>axios.interceptors.request.use(config =&gt; {<br>  config.headers.Authorization = `Bearer ${localStorage.getItem(&#39;token&#39;)}`;<br>  return config;<br>});</pre><ul><li><strong>Global configuration</strong> with axios.create() to define base URLs and headers once</li><li><strong>Error handling</strong> with structured response objects for better debugging.</li></ul><h3>Common Pitfalls</h3><p>Integration can sometimes be tricky. Developers often face:</p><ul><li><strong>CORS issues</strong> when the frontend and backend run on different domains.</li><li>Hardcoding API URLs instead of using environment variables.</li><li>Overcomplicating request logic instead of leveraging async/await for cleaner code.</li></ul><h3>Conclusion</h3><p>Backend and frontend integration is the backbone of any web application, and Axios makes this process intuitive and efficient. By combining a simple API with advanced features, it empowers developers to build scalable, maintainable apps without drowning in boilerplate. Whether you’re fetching user data, handling authentication, or managing complex request flows, Axios is a tool worth mastering.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ead00fecc8c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Algorithm shapes social media feeds]]></title>
            <link>https://medium.com/@angelthivi9/how-algorithm-shapes-social-media-feeds-c9ebbd96ee31?source=rss-39069fdafeb5------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9ebbd96ee31</guid>
            <dc:creator><![CDATA[Thivi]]></dc:creator>
            <pubDate>Wed, 31 Dec 2025 09:58:03 GMT</pubDate>
            <atom:updated>2025-12-31T09:58:03.275Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*l4BCoNvxC3q5Q4ivyygebQ.jpeg" /></figure><p>In 2025, social media algorithms function as the sophisticated digital architects of our daily realities, moving far beyond the simple chronological feeds of the past to become hyper-personalized “prediction engines.” At its core, an algorithm is a complex set of mathematical rules and machine learning models designed to process massive amounts of data to determine exactly which content appears on a user’s screen. The primary objective of these systems remains the maximization of user retention and engagement, as time spent on a platform directly translates to advertising revenue. To achieve this, algorithms analyze thousands of individual data points — including who you follow, the types of posts you like, the comments you write, and even your “dwell time,” which is the exact number of seconds you linger on a specific image or video before scrolling past. By 2025, these systems have become so precise that they can often predict a user’s shifting interests or mood before the user is even consciously aware of them.</p><p>The shaping of a feed begins with a process called “candidate generation,” where the system pulls thousands of potential posts from across the network. From there, the algorithm applies various “ranking signals” to narrow down the selection. The most critical signal is often the relationship between the creator and the viewer; platforms prioritize content from accounts you interact with frequently to ensure you see updates from close friends or favorite influencers. Another vital factor is the format of the content. In the current 2025 landscape, short-form video content is heavily prioritized across almost every major platform, including Instagram, TikTok, and YouTube, because video typically yields higher completion rates and emotional engagement than static images or text. Furthermore, algorithms look for “engagement velocity” — the speed at which a post gathers likes and shares — to identify trending topics that might appeal to a broader audience. This creates a feedback loop where popular content becomes even more visible, often at the expense of niche or chronological updates.</p><p>However, the power of algorithms to curate our digital lives comes with significant societal and psychological consequences. By constantly serving users content that aligns with their established preferences, algorithms inadvertently create “filter bubbles” or “echo chambers.” In these digital silos, users are rarely exposed to dissenting viewpoints or diverse perspectives, which has contributed to increased political polarization and the erosion of shared objective truths. Moreover, the algorithmic preference for high-engagement content often favors sensationalism, outrage, and emotionally charged misinformation, as these categories are most effective at triggering a response. On an individual level, the “addiction loop” created by these systems — utilizing features like infinite scroll and intermittent dopamine rewards — can lead to decreased attention spans and heightened anxiety. In 2025, we are also seeing the rise of “algorithmic fatigue,” where users feel overwhelmed by the constant stream of hyper-targeted ads and AI-generated content. As a result, the current year has seen a push for greater “algorithmic transparency,” with new regulations and platform tools allowing users to see why specific posts are being recommended and, in some cases, providing the option to reset their recommendation engines entirely to reclaim control over their digital consumption. Ultimately, while algorithms provide a necessary filter for the overwhelming volume of global data, they also function as a powerful lens that can distort our perception of the world if not navigated with conscious awareness.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9ebbd96ee31" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How 5G is Changing the Way of Using Internet]]></title>
            <link>https://medium.com/@angelthivi9/how-5g-is-changing-the-way-of-using-internet-b35b9b345840?source=rss-39069fdafeb5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b35b9b345840</guid>
            <dc:creator><![CDATA[Thivi]]></dc:creator>
            <pubDate>Wed, 31 Dec 2025 09:46:41 GMT</pubDate>
            <atom:updated>2025-12-31T09:46:41.655Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7w4vi2rXIHpV8v5d9KpkhA.jpeg" /></figure><p>In 2025, 5G has transcended its initial role as a mere speed upgrade for smartphones to become the foundational utility of a hyper-connected global society. By delivering near-zero latency (down to 1 millisecond) and peak speeds up to 100 times faster than 4G, it has fundamentally redefined how data is processed, moving it from distant centralized clouds to the “edge” of the network. This shift allows for instantaneous interactions, making the concept of “loading time” virtually obsolete for everything from 8K video streaming to real-time AI-driven personal assistants.</p><p>One of the most significant shifts in internet usage is the emergence of <strong>Massive IoT (Internet of Things)</strong>. In 2025, 5G supports up to one million connected devices per square kilometer, enabling “smart” ecosystems where sensors in homes, factories, and cities communicate continuously without degrading network performance. This density powers smart cities that manage traffic and energy grids autonomously in real-time. Furthermore, 5G is bridging the digital divide through <strong>Fixed Wireless Access (FWA)</strong>, providing high-speed broadband to rural and underserved areas where laying traditional fiber-optic cables was once economically impractical.</p><p>In the professional and industrial spheres, 5G is driving <strong>Industry 4.0</strong> through specialized features like <strong>Network Slicing</strong>. This allows providers to carve out dedicated, ultra-reliable virtual “lanes” for critical tasks, such as remote robotic surgery, autonomous vehicle coordination, and advanced manufacturing automation, ensuring these operations are never disrupted by general consumer traffic. By 2025, an estimated 75% of enterprise data is processed locally via edge computing, reducing the heavy reliance on traditional data centers and enhancing operational agility.</p><p>Consumer experiences have also shifted toward total immersion. 5G’s high bandwidth has made <strong>Extended Reality (XR)</strong> — which encompasses Augmented Reality (AR) and Virtual Reality (VR) — accessible without bulky specialized hardware. This enables interactive 3D learning environments, virtual shopping “try-ons,” and cloud gaming that feels as responsive as local console play. As 5G reaches over 4 billion people globally by the end of 2025, it has matured from a luxury technology into the primary engine of a new, seamless digital reality.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b35b9b345840" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why React Uses the Virtual DOM Instead of Direct DOM Manipulation]]></title>
            <link>https://medium.com/@angelthivi9/why-react-uses-the-virtual-dom-instead-of-direct-dom-manipulation-014c00be7c59?source=rss-39069fdafeb5------2</link>
            <guid isPermaLink="false">https://medium.com/p/014c00be7c59</guid>
            <dc:creator><![CDATA[Thivi]]></dc:creator>
            <pubDate>Tue, 30 Dec 2025 04:20:59 GMT</pubDate>
            <atom:updated>2025-12-30T04:20:59.614Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*VUYwEHg3q5-YcBfa_Ft7kg.webp" /></figure><p>Modern web applications are expected to be fast, responsive, and capable of handling frequent user interactions. React achieves this efficiency by using a concept called the <strong>Virtual DOM</strong> rather than directly manipulating the browser’s DOM. This design choice plays a major role in React’s performance and popularity.</p><h3>Understanding the Real DOM</h3><p>The <strong>Document Object Model (DOM)</strong> is a tree-like structure that represents the HTML elements of a web page. Whenever the DOM is updated — such as changing text, styles, or elements — the browser must recalculate the layout, repaint the screen, and sometimes reflow the entire page. These operations are expensive and can significantly slow down applications that update frequently, especially complex single-page applications.</p><p>Direct DOM manipulation requires developers to manually control how and when the DOM changes. While this works for small applications, it becomes inefficient and error-prone as the application grows.</p><h3>What Is the Virtual DOM?</h3><p>The <strong>Virtual DOM</strong> is a lightweight, in-memory representation of the real DOM. React keeps this virtual copy and uses it to track changes in the UI. When the application’s state or props change, React does not immediately update the real DOM. Instead, it updates the Virtual DOM first, which is much faster because it exists only in memory.</p><p>This approach allows React to perform calculations and comparisons efficiently before touching the real DOM.</p><h3>Efficient Updates with Diffing</h3><p>One of the biggest advantages of the Virtual DOM is React’s <strong>diffing algorithm</strong>. When changes occur, React compares the new Virtual DOM with the previous version to determine what has changed. This process identifies the minimum number of updates required to synchronize the real DOM with the new state.</p><p>Instead of re-rendering the entire page, React updates only the specific elements that have changed. This selective update process drastically reduces unnecessary DOM operations and improves performance.</p><h3>Batching DOM Updates</h3><p>React also improves performance through <strong>batching</strong>. In direct DOM manipulation, multiple changes can trigger multiple reflows and repaints. React groups several changes together in the Virtual DOM and applies them to the real DOM in a single update cycle. This minimizes browser workload and ensures smoother UI updates, especially in applications with frequent interactions like forms, dashboards, or live data displays.</p><h3>Better Developer Experience</h3><p>Using the Virtual DOM allows React to support a <strong>declarative programming model</strong>. Developers describe what the UI should look like based on the application state, rather than manually controlling how the DOM should change. React takes care of updating the UI efficiently.</p><p>This results in cleaner, more predictable code and reduces bugs caused by manual DOM handling. It also makes applications easier to maintain and scale over time.</p><h3>Cross-Platform Benefits</h3><p>Another important advantage of the Virtual DOM is <strong>platform independence</strong>. Since React abstracts direct DOM access, the same principles can be applied to other platforms. For example, React Native uses similar concepts to update native mobile components instead of browser elements. This flexibility would be difficult to achieve with direct DOM manipulation.</p><h3>Conclusion</h3><p>React uses the Virtual DOM instead of direct DOM manipulation to achieve <strong>better performance, efficient updates, cleaner code, and scalability</strong>. By minimizing expensive DOM operations, intelligently updating only what is necessary, and offering a declarative development approach, React enables developers to build fast and responsive user interfaces. This architectural decision is a key reason why React is widely used in modern web development.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=014c00be7c59" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why React now recommends function components instead of class components]]></title>
            <link>https://medium.com/@angelthivi9/why-react-now-recommends-function-components-instead-of-class-components-b0261f3af31d?source=rss-39069fdafeb5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0261f3af31d</guid>
            <dc:creator><![CDATA[Thivi]]></dc:creator>
            <pubDate>Sun, 28 Dec 2025 16:14:37 GMT</pubDate>
            <atom:updated>2025-12-28T16:14:37.722Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Ri21U4XejAUkNgjMOhi7g.png" /></figure><p>In 2025, the preference for function components over class components in React is driven by a fundamental shift in how the library manages logic, performance, and developer experience.</p><p>1. Unified Logic with Hooks</p><p>Previously, class components forced developers to split related logic across multiple life cycle methods (e.g., setting up a listener in compartmentalization and cleaning it up in componentWillUnmount).</p><ul><li><strong>Encapsulation:</strong> Hooks like use Effect allow you to keep related logic in a single function, making it easier to follow and less prone to bugs.</li><li><strong>Custom Hooks:</strong> Functional components allow you to extract stateful logic into <strong>custom hooks</strong>. This enables easy sharing of complex behaviors across multiple components without the “wrapper hell” associated with legacy patterns like Higher-Order Components.</li></ul><p>2. Elimination of the this Keyword</p><p>The this keyword in JavaScript is notoriously confusing because its value changes depending on how a function is called.</p><ul><li><strong>Reduced Complexity:</strong> In class components, developers frequently had to manually bind event handlers in the constructor or use arrow function properties to avoid errors.</li><li><strong>Predictability:</strong> Function components avoid this entirely, leading to more predictable code and fewer runtime binding errors.</li></ul><p>3. Performance and Tooling</p><p>Function components are lighter and more compatible with modern optimization tools.</p><ul><li><strong>Lower Overhead:</strong> Function components do not require creating a class instance, which reduces memory consumption.</li><li><strong>Better Magnification:</strong> Classes are difficult for compilers to minify effectively. Function components follow a structure that allows tools to shrink code more aggressively, leading to smaller bundle sizes.</li><li><strong>Compiler Optimization:</strong> React’s upcoming performance features, such as the <strong>React Forget</strong> compiler, are designed specifically to optimize functional code.</li></ul><p>4. Future-Proofing</p><p>The React team has explicitly stated that function components are the future of the library.</p><ul><li><strong>New Features:</strong> Modern features like <strong>Concurrent Rendering</strong>, <strong>Server Components</strong>, and advanced state transitions are built primarily for the functional paradigm.</li><li><strong>Ecosystem Adoption:</strong> Most popular third-party libraries (e.g., React Router, Tan Stack Query) have shifted their primary APIs to be hook-based.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*y6c5wv0fMDCiQVI8nsU3gg.png" /></figure><p>While class components remain supported for legacy projects and specific use cases like <strong>Error Boundaries</strong>, function components with hooks are the recommended choice for all new development in 2025.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0261f3af31d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How 5G is Changing the Way We Use the Internet]]></title>
            <link>https://medium.com/@angelthivi9/how-5g-is-changing-the-way-we-use-the-internet-958162751ed6?source=rss-39069fdafeb5------2</link>
            <guid isPermaLink="false">https://medium.com/p/958162751ed6</guid>
            <dc:creator><![CDATA[Thivi]]></dc:creator>
            <pubDate>Mon, 15 Dec 2025 04:33:21 GMT</pubDate>
            <atom:updated>2025-12-15T04:33:21.203Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7w4vi2rXIHpV8v5d9KpkhA.jpeg" /></figure><p>5G is not merely a faster version of 4G; it is a foundational shift that changes the inherent “completion requirements” of virtually all online tasks, driving the evolution of internet usage toward instantaneous, pervasive, and highly reliable connectivity.</p><p>The first major shift is the demand for <strong>ultra-low latency</strong>, shrinking typical network delays from tens of milliseconds down to one or two. This technological requirement is essential for unlocking critical, real-time applications that were impossible to manage safely over 4G networks. In telemedicine, for instance, a surgeon performing remote, robotic surgery requires instantaneous tactile feedback and control — any delay could be fatal. Similarly, the safety of autonomous vehicles relies entirely on sub-millisecond communication between cars and smart infrastructure to prevent accidents in real-time. For everyday users, this means the “lag” that once plagued competitive online gaming, AR experiences, and VR interactions vanishes, making these immersive digital worlds feel truly real and responsive.</p><p>The second change addresses <strong>massive capacity and bandwidth</strong>. The need to connect millions of sensors, devices, and machines in dense areas (smart cities, industrial campuses, smart homes) demands a network that can handle previously unimaginable device density without congestion. 5G excels here, providing a dedicated highway for the Internet of Things (IoT) ecosystem. For consumers, this translates into guaranteed bandwidth for multiple 4K/8K video streams simultaneously, instantaneous file downloads, and robust performance even in crowded public spaces. The days of buffering are rapidly coming to an end.</p><p>Finally, 5G redefines the need for <strong>guaranteed reliability and Quality of Service (QoS)</strong> through technologies like network slicing. This capability ensures that critical applications — from emergency services communication to smart grid management — receive a dedicated, highly secure, and reliable virtual slice of the network that operates without interruption.</p><p>In essence, 5G raises the baseline requirement for all internet interactions. The new expectation is not just speed, but instant gratification, robust connectivity everywhere, and seamless integration of digital and physical worlds in real-time applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=958162751ed6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why JS Uses Asynchronous Programming even though it’s Single Threaded.]]></title>
            <link>https://medium.com/@angelthivi9/why-js-uses-asynchronous-programming-even-though-its-single-threaded-13d45e53bb15?source=rss-39069fdafeb5------2</link>
            <guid isPermaLink="false">https://medium.com/p/13d45e53bb15</guid>
            <dc:creator><![CDATA[Thivi]]></dc:creator>
            <pubDate>Mon, 15 Dec 2025 04:29:10 GMT</pubDate>
            <atom:updated>2025-12-15T04:29:10.903Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N4k0-o8jeVGVRyZ4wlYm1A.png" /></figure><p>It might seem strange to pair “single-threaded” with “asynchronous.” If you only have one worker thread, how can you possibly do more than one thing at once? The answer lies not in parallelism, but in managing the <em>wait time</em> inherent in modern computing, particularly for Input/Output (I/O) bound operations like network requests, database calls, or file system access. This combination of a single thread and an asynchronous model is the engine that powers highly efficient, non-blocking systems like Node.js and the modern web browser environment. The core reason these environments use asynchronous programming is to maximize responsiveness and efficiency during periods of latency, essentially turning “idle time” into “productive time.”</p><p>In a traditional, synchronous, single-threaded programming model, when your code hits a line that requires an external resource — say, fetching a user profile from an API — the execution stops. The single thread sits completely idle, spinning its wheels (metaphorically) while it waits for the network packet to travel across the internet, hit the server, get processed, and return a response. This latency might only be hundreds of milliseconds, but in the world of computer processing, that’s an eternity. If this happens in a user interface, the UI freezes; if it happens on a server, that server can only handle one user request at a time, leading to massive scalability issues.</p><p>Asynchronous programming solves this paralysis through delegation and a central mechanism called the <strong>event loop</strong>. When an application initiates an async operation (using async/await syntax, promises, or callbacks), the main thread essentially hands the task off to a background system, often the operating system&#39;s kernel or a web browser API. The crucial part is that the main thread does <em>not</em> wait. It immediately picks up the next task in the queue, continuing to execute application logic, handle user input, or process other requests.</p><p>This model is incredibly efficient. Instead of dedicating an entire thread (which consumes significant memory and incurs overhead during context switching) to every single open network connection, a single thread can manage thousands of concurrent connections. The application remains highly responsive because the main execution context is rarely, if ever, blocked.</p><p>Think of it like a highly efficient restaurant manager (the single thread) who takes orders. Instead of standing by the kitchen door waiting for the first dish to be cooked before taking the second order (synchronous), the manager takes customer orders sequentially, hands them to the kitchen staff (the background system APIs), and immediately moves to the next table to take another order. The kitchen staff shouts “Order 42 is ready!” (an event), and the manager quickly handles the delivery when they are free. The manager is never idle, and the restaurant serves a continuous stream of customers efficiently.</p><p>The event loop is the key conductor here. It continuously monitors the main program’s execution stack and a queue of completed asynchronous events (like “the database response is back”). When the main stack is empty, the event loop pushes the next waiting event’s callback onto the stack to be processed. This creates a highly effective form of <em>concurrency</em> — the ability to manage many tasks seemingly at the same time — even without true <em>parallelism</em> (simultaneous execution on multiple CPU cores).</p><p>In summary, single-threaded asynchronous programming is a design pattern focused purely on optimization. It allows applications to achieve high throughput and maintain responsiveness by ensuring the valuable CPU time of that single thread is never wasted waiting for slow, external I/O operations to complete. It is a powerful paradigm that prioritizes doing useful computation over expensive waiting.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13d45e53bb15" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Essential DOM Methods in JavaScript]]></title>
            <link>https://medium.com/@angelthivi9/essential-dom-methods-in-javascript-730852544e18?source=rss-39069fdafeb5------2</link>
            <guid isPermaLink="false">https://medium.com/p/730852544e18</guid>
            <dc:creator><![CDATA[Thivi]]></dc:creator>
            <pubDate>Tue, 09 Dec 2025 03:53:25 GMT</pubDate>
            <atom:updated>2025-12-09T03:53:25.750Z</atom:updated>
            <content:encoded><![CDATA[<p>JavaScript becomes truly powerful when it can interact with a web page, and this happens through the Document Object Model, commonly known as the DOM. The DOM is like a live map of your web-page, turning every HTML element — such as headings, paragraphs, buttons, and images — into objects that JavaScript can access and control. To work with these objects effectively, JavaScript provides several essential DOM methods. These methods allow developers to select elements, modify them, add new content, respond to user actions, and create fully interactive websites. Understanding these core methods is one of the most important steps for beginners who want to build real-world web applications.</p><p>The first category of essential DOM methods focuses on <strong>selecting elements</strong>. Before doing anything — editing content, changing styles, or adding events — you must be able to find elements on the page. Commonly used methods include getElementById(), which selects a single element by its unique ID, and getElementsByClassName() or getElementsByTagName(), which return collections of matching elements. Modern JavaScript also uses querySelector() and querySelectorAll(), which allow you to select elements using CSS-style selectors. These methods give developers powerful control and flexibility, making it easier to target exactly the element they want to work with.</p><p>Once an element is selected, developers often need to <strong>create, modify, or remove elements</strong>. The method createElement() allows you to generate a new HTML element using JavaScript. After creating an element, you can place it on the page using methods like appendChild(), append(), or prepend(). These are especially useful when dynamically adding new items to a list, generating notifications, or updating content in real time. Similarly, the remove() and removeChild() methods are used to delete elements from the page, keeping the DOM clean and responsive to user actions.</p><p>Another key area for beginners is <strong>editing content and attributes</strong>. The DOM provides simple properties like innerHTML, innerText, and textContent to change what an element displays. While innerHTML lets you insert actual HTML markup, textContent is safer for plain text updates. Attributes—such as src for images, href for links, or id for elements—can be accessed and changed with methods like getAttribute() and setAttribute(). These are useful for tasks such as changing an image when a user clicks a button or updating a link dynamically.</p><p>Visual styling is another important part of web interactivity. Developers can modify the appearance of elements through the style property or by using the classList methods. For example, classList.add(), classList.remove(), and classList.toggle() help manage CSS classes efficiently. These methods allow JavaScript to control animations, themes, and other visual changes without rewriting large amounts of CSS.</p><p>Finally, the DOM enables websites to respond to user actions through <strong>event handling</strong>. The addEventListener() method listens for actions such as clicks, keypresses, scrolling, and mouse movements. When an event occurs, JavaScript can run a function to update the page, validate a form, show a popup message, or trigger any interactive behavior. Event handling is what transforms a static site into a dynamic and engaging user experience.</p><p>In summary, essential DOM methods form the foundation of front-end development. They allow you to select elements, modify content, change styles, manage attributes, create new elements, and respond to user interactions. For beginners, mastering these methods is the key to unlocking JavaScript’s full power and building websites that feel alive, interactive, and user-friendly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=730852544e18" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>