<?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 Suthakaran Thuvaragan on Medium]]></title>
        <description><![CDATA[Stories by Suthakaran Thuvaragan on Medium]]></description>
        <link>https://medium.com/@thuvaragan20030322tt?source=rss-bb766686ed6a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Gn-Weo-f7WMwO9wpaZbuhg.jpeg</url>
            <title>Stories by Suthakaran Thuvaragan on Medium</title>
            <link>https://medium.com/@thuvaragan20030322tt?source=rss-bb766686ed6a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 15:36:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thuvaragan20030322tt/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[How SEO Helps People Find Your Website on Google]]></title>
            <link>https://medium.com/@thuvaragan20030322tt/how-seo-helps-people-find-your-website-on-google-760d467f9bc7?source=rss-bb766686ed6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/760d467f9bc7</guid>
            <dc:creator><![CDATA[Suthakaran Thuvaragan]]></dc:creator>
            <pubDate>Tue, 10 Mar 2026 04:28:26 GMT</pubDate>
            <atom:updated>2026-03-10T04:28:26.643Z</atom:updated>
            <content:encoded><![CDATA[<h3>How SEO Helps People Find Your Website on Google</h3><p>SEO (Search Engine Optimization) is the process of improving your website so that it appears higher in search results on search engines like Google. When your website is optimized for SEO, it becomes easier for people to find your content when they search for information online.</p><p><strong>1. Improves Website Visibility</strong></p><p>Every day, millions of people search for information on Google. SEO helps your website appear in the search results when people search for related topics.<br>For example, if someone searches for “online art courses,” a website that is optimized with SEO is more likely to appear on the first page.</p><p><strong>2. Uses the Right Keywords</strong></p><p>SEO involves using the right keywords in your content. Keywords are the words or phrases people type into search engines.<br>If your website includes relevant keywords, search engines understand what your page is about and show it to users searching for those terms.</p><p><strong>3. Helps Search Engines Understand Your Website</strong></p><p>Search engines like Google use special programs called crawlers or bots to scan websites. SEO helps organize your website with clear titles, headings, and descriptions so these bots can understand your content easily.</p><p><strong>4. Increases Website Traffic</strong></p><p>When your website ranks higher in search results, more people will click on it. This increases the number of visitors to your website, which can help grow your business, blog, or online platform.</p><p><strong>5. Builds Trust and Credibility</strong></p><p>Websites that appear on the first page of Google are often considered more trustworthy by users. Good SEO practices-such as fast loading speed, quality content, and mobile-friendly design-help build this trust.</p><p><strong>6. Improves User Experience</strong></p><p>SEO also focuses on making your website easy to use. A well-structured site with fast loading pages and clear navigation helps visitors find what they need quickly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=760d467f9bc7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Frontend-Backend Integration Using Axios]]></title>
            <link>https://medium.com/@thuvaragan20030322tt/frontend-backend-integration-using-axios-9aa2c0f1eddd?source=rss-bb766686ed6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9aa2c0f1eddd</guid>
            <dc:creator><![CDATA[Suthakaran Thuvaragan]]></dc:creator>
            <pubDate>Tue, 10 Mar 2026 04:01:58 GMT</pubDate>
            <atom:updated>2026-03-10T04:01:58.209Z</atom:updated>
            <content:encoded><![CDATA[<p>Modern web applications depend on strong communication between the frontend and backend. The frontend handles the user interface, while the backend manages business logic, databases, and server operations. To connect these two layers effectively, developers often use tools like Axios.</p><p>This blog explains what Axios is, why it is used, and how to integrate a frontend application with a backend API using Axios.</p><p><strong>What is Axios?</strong></p><p>Axios is a popular JavaScript library used to send HTTP requests from the frontend to a backend server. It allows developers to easily communicate with APIs and retrieve or send data.</p><p>Axios supports several HTTP methods, including:</p><p>GET-Retrieve data from the server</p><p>POST-Send new data to the server</p><p>PUT/PATCH -Update existing data</p><p>DELETE-Remove data from the server</p><p>Axios works in both browsers and Node.js environments, making it a flexible choice for developers.</p><h3>Installing Axios</h3><p>Axios can be installed in a project using the Node Package Manager (npm).</p><p><strong>npm install axios</strong></p><p>After installation, Axios can be imported into your frontend JavaScript or React application.</p><p><strong>import axios from “axios”;</strong></p><h3>Example Backend API</h3><p>Below is a simple example of a backend API using Node.js and Express.</p><p><strong>const express = require(“express”);<br>const app = express();</strong></p><p><strong>app.use(express.json());</strong></p><p><strong>app.get(“/api/artworks”, (req, res) =&gt; {<br> res.json([<br> { id: 1, title: “Pencil Sketch” },<br> { id: 2, title: “Watercolor Painting” }<br> ]);<br>});</strong></p><p><strong>app.listen(5000, () =&gt; {<br> console.log(“Server running on port 5000”);<br>});</strong></p><p>This API provides a list of artworks when a request is sent to /api/artworks.</p><h3>Fetching Data with Axios</h3><p>The frontend can retrieve data from the backend using a GET request.</p><p><strong>axios.get(“</strong><a href="http://localhost:5000/api/artworks"><strong>http://localhost:5000/api/artworks</strong></a><strong>&quot;)<br> .then(response =&gt; {<br> console.log(response.data);<br> })<br> .catch(error =&gt; {<br> console.error(error);<br> });</strong></p><p>When this request is executed, Axios sends a request to the server and receives the artwork data as a response.</p><h3>Sending Data with Axios</h3><p>Axios can also send data to the backend using a POST request.</p><p><strong>axios.post(“</strong><a href="http://localhost:5000/api/artworks"><strong>http://localhost:5000/api/artworks</strong></a><strong>&quot;, {<br> title: “Portrait Drawing”<br>})<br>.then(response =&gt; {<br> console.log(response.data);<br>})<br>.catch(error =&gt; {<br> console.log(error);<br>});</strong></p><p>This allows users to submit new data from the frontend to the backend.</p><h4>Integration Flow</h4><p>The communication between frontend and backend follows this simple flow:</p><ol><li>The user interacts with the frontend interface.</li><li>The frontend sends a request using Axios.</li><li>The backend API processes the request.</li><li>The database performs required operations.</li><li>The backend sends a response.</li><li>The frontend updates the user interface.</li></ol><p>This process allows modern web applications to work dynamically and efficiently.</p><h4>Advantages of Using Axios</h4><p>Axios provides several advantages for frontend-backend integration:</p><ul><li>Simple and clean syntax</li><li>Promise-based asynchronous requests</li><li>Automatic JSON data transformation</li><li>Strong error handling</li><li>Works with modern JavaScript frameworks</li></ul><p>Because of these features, Axios has become one of the most widely used libraries for API communication in web development.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9aa2c0f1eddd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Netflix decide which movies are recommended to you]]></title>
            <link>https://medium.com/@thuvaragan20030322tt/how-netflix-decide-which-movies-are-recommended-to-you-4dfd3ad9ddd2?source=rss-bb766686ed6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4dfd3ad9ddd2</guid>
            <dc:creator><![CDATA[Suthakaran Thuvaragan]]></dc:creator>
            <pubDate>Fri, 16 Jan 2026 04:14:24 GMT</pubDate>
            <atom:updated>2026-01-16T04:14:24.430Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xzJaYJT6cmIN3MzAjhSmpA.png" /></figure><p>Have you ever opened Netflix and thought, <em>“Wow, how did they know I’d like this?”</em><br> That’s not magic it’s <strong>data, algorithms, and artificial intelligence</strong> working behind the scenes.</p><p>Netflix’s recommendation system is one of the smartest in the world, and it plays a huge role in keeping users engaged. In this post, let’s break down <strong>how Netflix decides which movies and shows to recommend to you</strong> in a simple and easy-to-understand way.</p><h4>Why Recommendations Matter to Netflix</h4><p>Netflix has <strong>thousands of movies and shows</strong>. Without recommendations, finding something to watch would feel overwhelming.</p><p>In fact:</p><p>More than <strong>80% of what people watch on Netflix comes from recommendations</strong></p><p>Good recommendations = users stay longer = less chance of canceling subscriptions</p><p>So Netflix invests heavily in personalization.</p><h4>Step 1: Understanding Your Viewing Behavior</h4><p>Netflix closely observes how you interact with the platform. For example:</p><ul><li>What you watch</li><li>What you search for</li><li>What you finish watching</li><li>What you stop halfway</li><li>What you rewatch</li><li>What you rate</li></ul><p>Every action helps Netflix understand <strong>your taste</strong>.</p><p>Even <em>not</em> clicking on something is useful data.</p><h4>Step 2: Creating Your “Taste Profile”</h4><p>Netflix doesn’t just think in terms of genres like <em>Action</em> or <em>Romance</em>.<br> Instead, it breaks content into <strong>thousands of micro-genres</strong>, such as:</p><ul><li>“Dark psychological thrillers with strong female leads”</li><li>“Feel-good romantic movies set in small towns”</li><li>“Fast-paced action movies with minimal dialogue”</li></ul><p>Based on your activity, Netflix builds a <strong>taste profile</strong> that represents what you enjoy.</p><h4>Step 3: Collaborative Filtering (People Like You)</h4><p>One powerful technique Netflix uses is <strong>collaborative filtering</strong>.</p><p>If you and another user watch similar movies<br> And that user enjoys a movie you haven’t seen yet</p><p>Netflix assumes <strong>you might like it too</strong>.</p><p>This is the same idea behind:<em>“Users who watched this also watched…”</em></p><h4>Step 4: Content-Based Filtering (What You Like)</h4><p>Netflix also looks at <strong>what kind of content you personally prefer</strong>, such as:</p><ul><li>Favorite actors or directors</li><li>Preferred language</li><li>Story themes</li><li>Pacing (slow vs fast)</li><li>Emotional tone</li></ul><p>If you often watch crime documentaries, Netflix will recommend <strong>similar-style crime content</strong>, even if it’s brand new.</p><h4>Step 5: Ranking the Recommendations</h4><p>Not every recommendation is equal.</p><p>Netflix ranks content based on:</p><ul><li>How likely you are to click</li><li>How likely you are to finish watching</li><li>How recently you watched similar content</li><li>Time of day (morning vs night)</li><li>Device (mobile vs TV)</li></ul><p>That’s why your homepage looks <strong>different every time</strong>.</p><h4>Step 6: Personalized Thumbnails</h4><p>Ever noticed different images for the same movie?</p><p>Netflix tests <strong>multiple thumbnails</strong> and shows you the one most likely to catch <em>your</em> attention.</p><p>For example:</p><ul><li>If you like romance : you see a romantic scene</li><li>If you like action : you see an explosion scene</li></ul><p>Same movie. Different image. Different user.</p><h4>Step 7: Continuous Learning</h4><p>Netflix’s algorithm <strong>never stops learning</strong>.</p><p>Every click, pause, skip, or finish:</p><ul><li>Improves future recommendations</li><li>Updates your taste profile</li><li>Makes suggestions more accurate over time</li></ul><p>This is a real-world example of <strong>machine learning in action</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4dfd3ad9ddd2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why React Uses Virtual DOM Instead of Direct DOM Manipulation]]></title>
            <link>https://medium.com/@thuvaragan20030322tt/why-react-uses-virtual-dom-instead-of-direct-dom-manipulation-d73977e1d35f?source=rss-bb766686ed6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d73977e1d35f</guid>
            <dc:creator><![CDATA[Suthakaran Thuvaragan]]></dc:creator>
            <pubDate>Tue, 30 Dec 2025 04:29:52 GMT</pubDate>
            <atom:updated>2025-12-30T04:29:52.594Z</atom:updated>
            <content:encoded><![CDATA[<p>When building modern web applications, performance and user experience are everything. React, one of the most popular JavaScript libraries, is known for its efficiency and a big reason behind that efficiency is the <strong>Virtual DOM (VDOM)</strong>. But why does React use a Virtual DOM instead of updating the browser’s real DOM directly?</p><p>Let’s break it down in a simple and beginner friendly way.</p><h4>What is the DOM and Why Direct Manipulation is Costly?</h4><p>The <strong>DOM (Document Object Model)</strong> represents the webpage structure. When you interact with a page click a button, type in an input, or when some data changes the DOM may need to update.</p><p>However, <strong>updating the real DOM is slow</strong> because:</p><ul><li>The browser has to recalculate styles.</li><li>It re-renders layouts and elements.</li><li>It may trigger expensive repainting operations.</li></ul><h4>Enter the Virtual DOM</h4><p>The <strong>Virtual DOM is a lightweight JavaScript object</strong> — a <em>virtual copy</em> of the real DOM. Instead of updating the real DOM immediately, React first updates the VDOM.</p><h4>How it works</h4><ol><li>React renders UI to <strong>Virtual DOM first</strong>.</li><li>It compares the new VDOM with the previous one (<strong>diffing algorithm</strong>).</li><li>It finds the minimal changes needed.</li><li>Only the required parts of the real DOM update (<strong>efficient patching</strong>).</li></ol><p>This process is fast because <strong>comparing objects in JavaScript is much cheaper than manipulating the actual DOM</strong>.</p><h4>Why React Prefers Virtual DOM Key Advantages</h4><h4><strong>Better Performance</strong></h4><p>React batches and minimizes DOM updates. Instead of redrawing everything, only changed components update.</p><h4>Faster UI Updates</h4><p>Virtual DOM allows smooth and responsive interactions, even in large apps.</p><h4>Declarative Programming</h4><p>Developers just describe <strong>what UI should look like</strong>, and React takes care of the <strong>how to update it efficiently</strong>.</p><h4>Component-Based Architecture</h4><p>Each component manages its own Virtual DOM representation, making apps scalable and maintainable.</p><h4>Consistent and Predictable Rendering</h4><p>Virtual DOM makes state-driven UI predictable fewer bugs, cleaner code.</p><h4>Real DOM</h4><ul><li>Direct representation of the UI in the browser</li><li>Slow to update when changes occur</li><li>Each update triggers reflow &amp; repaint</li><li>Entire DOM may re-render even for small changes</li><li>Manual DOM manipulation required using JavaScript</li><li>Not ideal for large, interactive applications</li></ul><h4>Virtual DOM (React)</h4><ul><li>A lightweight copy of the real DOM stored in memory</li><li>Updates happen virtually first, then minimal changes applied to real DOM</li><li>Faster &amp; more optimized rendering</li><li>Only the changed elements get updated (diffing algorithm)</li><li>React handles UI updates automatically</li><li>Best suited for complex and dynamic applications</li></ul><p><strong>Final Thoughts:</strong></p><p>React’s Virtual DOM is like a smart manager instead of sending workers for every tiny job, it first plans, compares, and then sends them to fix only what’s needed. This approach boosts performance, improves scalability, and makes development smoother and more enjoyable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d73977e1d35f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[07 Essential things to Consider When Converting an HTML Template into React]]></title>
            <link>https://medium.com/@thuvaragan20030322tt/07-essential-things-to-consider-when-converting-an-html-template-into-react-530a870adfac?source=rss-bb766686ed6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/530a870adfac</guid>
            <dc:creator><![CDATA[Suthakaran Thuvaragan]]></dc:creator>
            <pubDate>Sun, 21 Dec 2025 15:44:58 GMT</pubDate>
            <atom:updated>2025-12-21T15:44:58.082Z</atom:updated>
            <content:encoded><![CDATA[<p>Converting an HTML template into a React application isn’t just a copy-paste job. React has its own way of handling components, state, and rendering, so there are several important considerations to ensure the conversion is smooth, maintainable, and scalable.</p><p>Below is a structured guide to the 7 essential things you should consider.</p><h4>1.Convert HTML to JSX Properly</h4><p>React uses JSX, which looks similar to HTML but follows JavaScript rules.</p><p>Key differences to remember:</p><p>class → className</p><p>for → htmlFor</p><p>Self-closing tags are mandatory</p><p>(&lt;img&gt; → &lt;img /&gt;, &lt;input /&gt;)</p><p>Inline styles use JavaScript objects</p><p>Example:</p><p>&lt;div style={{ backgroundColor: ‘red’, fontSize: ‘16px’ }}&gt;</p><p>Hello</p><p>&lt;/div&gt;</p><p>Failing to follow JSX rules will result in compilation errors.</p><h4>2.Break the Template into Reusable Components</h4><p>React encourages a component-based architecture.</p><p>Instead of one large HTML file, split your template into logical components such as:</p><p>Navbar → &lt;Navbar /&gt;</p><p>Footer → &lt;Footer /&gt;</p><p>Cards, Modals, Buttons, etc.</p><p>Benefits:</p><p>Reusability</p><p>Cleaner code</p><p>Easier maintenance</p><h4>3.Handle Static Assets Correctly</h4><p>In React, images, fonts, and other assets should be handled properly.</p><p>You can:</p><p>Place assets in the public folder, or</p><p>Import them directly into components</p><p>Example:</p><p>import Logo from ‘./assets/logo.png’;</p><p>&lt;img src={Logo} alt=”Logo” /&gt;</p><p>Avoid using relative paths like you would in plain HTML.</p><h4>4.Avoid jQuery and Direct DOM Manipulation</h4><p>Many HTML templates rely on jQuery and script tags, but React does not work well with direct DOM manipulation.</p><p>Avoid:</p><p>document.querySelector</p><p>document.getElementById</p><p>jQuery plugins</p><p>Preferred solutions:</p><p>Use React alternatives (e.g., React Slick instead of a jQuery slider)</p><p>Use useEffect for small integrations when absolutely necessary</p><p>Let state control UI behavior instead of manual DOM updates</p><h4>5.Use React Router for Multi-Page Templates</h4><p>HTML templates often contain multiple pages like index.html, about.html, etc.</p><p>In React, navigation is handled using React Router.</p><p>Example:</p><p>import { BrowserRouter as Router, Routes, Route } from ‘react-router-dom’;</p><p>&lt;Router&gt;</p><p>&lt;Routes&gt;</p><p>&lt;Route path=”/” element={&lt;Home /&gt;} /&gt;</p><p>&lt;Route path=”/about” element={&lt;About /&gt;} /&gt;</p><p>&lt;/Routes&gt;</p><p>&lt;/Router&gt;</p><p>Each page becomes a React component, not a separate HTML file.</p><p>— -</p><h4>6.Manage State and Dynamic Data</h4><p>HTML templates are usually static.</p><p>React allows dynamic rendering using state and props.</p><p>Example:</p><p>const [name, setName] = useState(‘John’);</p><p>&lt;h1&gt;Hello, {name}&lt;/h1&gt;</p><p>Plan which parts of the UI should be dynamic, such as:</p><p>User information</p><p>Product lists</p><p>Form inputs</p><p>This helps you design better state management early.</p><h4>7.Handle CSS the Right Way</h4><p>React offers multiple options for styling:</p><p>Import normal CSS files:</p><p>import ‘./styles.css’;</p><p>Use CSS Modules for scoped styles:</p><p>styles.module.css</p><p>Use styled-components or other CSS-in-JS libraries for dynamic styling</p><p>Watch out for:</p><p>className conflicts</p><p>Overuse of inline styles</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=530a870adfac" 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/@thuvaragan20030322tt/why-js-uses-asynchronous-programming-even-though-its-single-threaded-813b75ea9ff3?source=rss-bb766686ed6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/813b75ea9ff3</guid>
            <dc:creator><![CDATA[Suthakaran Thuvaragan]]></dc:creator>
            <pubDate>Mon, 15 Dec 2025 04:39:01 GMT</pubDate>
            <atom:updated>2025-12-15T04:39:01.810Z</atom:updated>
            <content:encoded><![CDATA[<h4>Introduction</h4><p>Hook: Start with the common confusion: If JavaScript is single-threaded (meaning it can only execute one thing at a time), how can it handle complex operations like fetching data, animations, and user input without freezing the browser?</p><p>Define the terms:</p><p>Single-Threaded: Explain that JS has one Call Stack (where all synchronous execution happens). It’s the execution environment.</p><p>Asynchronous: Explain that this refers to operations that can run outside the normal, sequential flow and be handled later.</p><p>Thesis: The key lies not in the JavaScript engine itself (like V8), but in its runtime environment (the Browser or Node.js) and the clever mechanism it uses to delegate tasks.</p><h4>The Problem with Synchronous Code (The “Blocking” Issue)</h4><p>Analogy: Use a relatable analogy, like a fast-food counter.</p><p>Synchronous: The cashier (the single thread) must take, prepare, and deliver one customer’s full order before even looking at the next customer. If one customer orders a complex, long-cooking meal (a long-running operation), the line (the application) is frozen.</p><p>The Technical Reality: In JavaScript, a single, long-running function (like an infinite loop or a massive calculation) will block the Call Stack, making the entire application unresponsive. The user can’t click, scroll, or see updates.</p><h4>The Solution: The Asynchronous Runtime Environment (The Magic)</h4><p>This is the most critical section and where the diagram is essential.</p><p>The Players: Introduce the components that work alongside the Call Stack.</p><p>The Call Stack: Executes the current function. (JS engine territory)</p><p>Web APIs (or C++ APIs in Node): These are the external, multi-threaded parts of the browser/Node environment. They handle tasks like:</p><p>setTimeout()</p><p>fetch() (HTTP requests)</p><p>DOM events (click, scroll)</p><p>The Callback Queue (or Task Queue): Holds the functions (callbacks) that have finished their asynchronous task and are ready to be executed.</p><p>The Event Loop: The constant, tireless overseer.</p><h4>How the Event Loop Works (The Workflow)</h4><p>Explain the step-by-step process of an async operation:</p><p>A function (e.g., fetch(‘data.json’)) is pushed onto the Call Stack and immediately calls the asynchronous Web API.</p><p>The Call Stack marks the task as delegated and immediately pops the function off, moving on to the next synchronous code. The single thread remains unblocked.</p><p>The Web API (which is multi-threaded and runs outside of JS) handles the task (e.g., waiting for the network response).</p><p>Once the Web API finishes, the callback function (the .then() block or the code inside the setTimeout) is placed into the Callback Queue.</p><p>The Event Loop continuously checks two things: Is the Call Stack empty? and Is the Callback Queue non-empty?</p><p>When the Call Stack is empty (meaning all synchronous code has finished), the Event Loop takes the first item from the Callback Queue and pushes it onto the Call Stack for execution.</p><p>Conclusion of the Workflow: JavaScript is single-threaded, but the runtime environment is multi-threaded. JS delegates the heavy lifting to external threads and receives the result via a queue-based system.</p><h4>Evolution: From Callbacks to async/await</h4><p>A brief historical look at how JS handled async:</p><p>Callbacks: (e.g., setTimeout(function() {…})) -Leads to “Callback Hell” (nested, unreadable code).</p><p>Promises: A significant improvement; cleaner error handling (.then(), .catch()).</p><p>async/await: (Syntactic Sugar over Promises)- Makes asynchronous code look and behave like synchronous code, improving readability without sacrificing non-blocking behavior.</p><h4>Conclusion</h4><p><strong>Summary: </strong>Reiterate the main takeaway: JavaScript is only single-threaded in its execution model (the Call Stack). It achieves its non-blocking superpower by delegating time-consuming tasks to the surrounding runtime environment and using the Event Loop to queue up results for safe, non-blocking execution later.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=813b75ea9ff3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Essential DOM Methods in JS]]></title>
            <link>https://medium.com/@thuvaragan20030322tt/essential-dom-methods-in-js-d3fdae98544e?source=rss-bb766686ed6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3fdae98544e</guid>
            <dc:creator><![CDATA[Suthakaran Thuvaragan]]></dc:creator>
            <pubDate>Wed, 10 Dec 2025 16:51:36 GMT</pubDate>
            <atom:updated>2025-12-10T16:51:36.489Z</atom:updated>
            <content:encoded><![CDATA[<p>SELECTING ELEMENT</p><h4>1.document.getElementById()</h4><p>Select a single element by its ID</p><p>const title = document.getElementById(“#title”);</p><h4>2. document. getElementByClass()</h4><p>Select all elements with a given class.</p><p>const items = document.getElementsByClassName(“.item”);</p><h4>3.document.querySelector()</h4><p>Select the first matching CSS selector.</p><p>const btn = document.querySelector(“.btn”);</p><h4>4.document.querySelectorAll()</h4><p>Select all matching CSS selectors.</p><p>const links = document.querySelectorAll(“a”);</p><p>MANIPULATING CONTENT</p><h4>6.element.innerHTML()</h4><p>Change or get the HTML inside an element.</p><p>box.innerHTML = “&lt;p&gt;Hello!&lt;/p&gt;”;</p><h4>7.element.textContent()</h4><p>Change only the text, not HTML.</p><p>title.textContent = “New Title”;</p><p>STYLING &amp; ATTRIBUTES</p><h4>8.element.style()</h4><p>Change CSS styles directly.</p><p>box.style.backgroundColor = “blue”;</p><h4>9.element.setAttribute()</h4><p>Add or update an attribute.</p><p>img.setAttribute(“src”, “photo.jpg”);</p><h4>10. element.getAttribute()</h4><p>Read an attribute value.</p><p>const altText = img.getAttribute(“alt”);</p><p>WORKING WITH CLASSES</p><h4>11.element.classList.add()</h4><p>Add a new class.</p><p>box.classList.add(“active”);</p><h4>12.element.classList.remove()</h4><p>Remove an existing class.</p><p>box.classList.remove(“hidden”);</p><h4>13.element.classList.toggle()</h4><p>Toggle between add/remove.</p><p>box.classList.toggle(“dark-mode”);</p><p>EVENTS &amp; INTERACTIONS</p><h4>14.element.addEventListener()</h4><p>Attach event listeners like click, input, keydown, etc.</p><p>button.addEventListener(“click”, () =&gt; {</p><p>alert(“Button clicked!”);</p><p>});</p><p>CREATE/REMOVE ELEMENT</p><h4>15.document.createElement()</h4><p>Create a new HTML element.</p><p>const p = document.createElement(“p”);</p><p>p.textContent = “A new paragraph.”;</p><h4>16.element.append()</h4><p>Insert elements into the DOM.</p><p>content.append(p);</p><h4>17. element.remove()</h4><p>Remove an element from the page.</p><p>title.remove();</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3fdae98544e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Google translate works behind the scene]]></title>
            <link>https://medium.com/@thuvaragan20030322tt/how-google-translate-works-behind-the-scene-0cddd78d0e36?source=rss-bb766686ed6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/0cddd78d0e36</guid>
            <dc:creator><![CDATA[Suthakaran Thuvaragan]]></dc:creator>
            <pubDate>Mon, 08 Dec 2025 02:45:23 GMT</pubDate>
            <atom:updated>2025-12-08T02:45:23.959Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xd2NwPQyw3kYg95bWMmjKQ.jpeg" /></figure><h3>How Google Translate Works</h3><p>Every day, millions of people rely on <strong>Google Translate</strong> to understand foreign languages, chat with friends across borders, read websites, and travel more confidently. But what actually happens when you type a sentence and press the <strong>Translate</strong> button?</p><p>Behind that simple tap, a massive artificial intelligence system runs millions of calculations in moments.</p><h4>Text Input Processing</h4><p>When you enter text into Google Translate, the system begins by preparing your input for analysis.</p><p>First, it automatically <strong>detects the language</strong> you’re using. Then it:</p><ul><li>Splits the sentence into words and smaller word pieces</li><li>Cleans strange characters and unnecessary symbols</li><li>Normalizes punctuation and formatting</li></ul><p>This preparation stage is called <strong>preprocessing</strong>. It ensures the text is in the best possible form for the AI to understand accurately.</p><h4>Neural Machine Translation (NMT)</h4><p>Google Translate runs on a modern AI system called <strong>Neural Machine Translation (NMT)</strong>.</p><p>Unlike older translation tools that converted words one by one, NMT reads the <strong>entire sentence at once</strong>. This allows the system to:</p><ul><li>Understand full meanings instead of single word matches</li><li>Recognize word relationships</li><li>Preserve sentence structure</li></ul><p>Using powerful neural networks, the AI predicts a fluent translation that captures the intent of the original message.</p><h4>Understanding Context</h4><p>Understanding language is more than matching words. Google Translate’s AI analyzes deeper layers of meaning, including:</p><ul><li>Grammar structure</li><li>Tone and writing style</li><li>Nearest words and phrases</li><li>Sentence flow</li></ul><p>This context analysis helps the AI choose the <strong>correct meaning</strong> of words that have multiple definitions and ensures the final translation feels natural rather than robotic.</p><h4>Learning from Massive Data</h4><p>The intelligence of Google Translate comes from its training.</p><p>The AI has learned from <strong>billions of translated sentence pairs</strong> collected from sources like:</p><ul><li>Public websites</li><li>Books and literature</li><li>Articles and online publications</li></ul><p>Each translation example teaches the model how meanings transfer between languages. The greater the training data, the more accurate and fluent the translations become.</p><h4>Probability Selection &amp; Sentence Refinement</h4><p>When translating your text, the AI doesn’t create only one result-it predicts <strong>many possible translations at once</strong>.</p><p>From these options, the system:</p><ol><li>Calculates which translation has the <strong>highest probability of being correct</strong></li><li>Chooses that version</li><li>Adjusts grammar and word order</li><li>Refinishes sentence flow to sound smooth and natural</li></ol><p>This step ensures the final translation feels more human and less like machine output.</p><h4>Continuous Learning and Improvement</h4><p>Google Translate isn’t static-it constantly evolves.</p><p>Improvements happen through:</p><ul><li>New training data added regularly</li><li>User feedback from real-world translations</li><li>Upgraded machine learning models</li></ul><p>Each update enables the system to become more accurate, better at understanding context, and more capable of handling complex languages and expressions.</p><h4>Limitations of AI Translation</h4><p>Although extremely advanced, Google Translate is not perfect. AI still struggles with:</p><ul><li>Humor and jokes</li><li>Poetry and wordplay</li><li>Cultural expressions</li><li>Technical or medical terminology</li><li>Highly ambiguous sentences</li></ul><p>For important documents like legal papers or medical reports, human review is always recommended.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0cddd78d0e36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How captcha works?]]></title>
            <link>https://medium.com/@thuvaragan20030322tt/how-captcha-works-895efe4bec3a?source=rss-bb766686ed6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/895efe4bec3a</guid>
            <dc:creator><![CDATA[Suthakaran Thuvaragan]]></dc:creator>
            <pubDate>Thu, 04 Dec 2025 13:28:49 GMT</pubDate>
            <atom:updated>2025-12-04T13:28:49.779Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sBvASrPIv3_l1o6jzsm6nA.png" /></figure><h4>What is CAPTCHA?</h4><p>CAPTCHA stands for Completely Automated Public Turing test to tell Computers and Humans Apart.In simple terms, it’s a test designed to distinguish humans from automated bots.</p><p>Humans can usually solve the challenges quickly.</p><p>Bots (automated scripts) often fail because the tasks require visual, audio, or behavioral understanding that computers struggle with.</p><h4>Main Types of CAPTCHA</h4><p>There are two commonly used CAPTCHA systems</p><p>.Traditional CAPTCHA</p><p>.reCAPTCHA (behavior-based verification)</p><h4>Traditional CAPTCHA -How It Works</h4><p>This is the classic challenge-and-response method that directly asks users to complete a task.</p><h4>Step-by-step flow:</h4><ol><li>A user visits a website.</li></ol><p>2. The CAPTCHA shows a challenge, such as:</p><ul><li>Typing distorted letters or numbers</li><li>Selecting matching images (traffic lights, buses, bicycles, etc.)</li><li>Solving a basic math or logic puzzle</li></ul><p>3. The user submits the answer.</p><p>4. The CAPTCHA system checks the response:</p><ul><li>Correct → generates a <strong>verification token</strong> that confirms the user is human.</li><li>Wrong → user must try again.</li></ul><p>5. The website backend verifies this token:</p><ul><li>The site sends the token to the CAPTCHA server.</li><li>The CAPTCHA server replies with either <strong>valid</strong> or <strong>invalid</strong>.</li><li>The website then allows or blocks the action based on the result.</li></ul><h4>reCAPTCHA-How It Works</h4><p>Unlike traditional CAPTCHA, <strong>reCAPTCHA works silently in the background</strong> and relies more on <strong>behavior analysis</strong> than visible challenges.</p><h4>Step-by-step flow:</h4><ol><li>The user opens a website.</li></ol><p>2. reCAPTCHA monitors user behavior, including:</p><ul><li>Mouse movements</li><li>Time spent on the page</li><li>Scrolling and clicking patterns</li><li>Interaction flow</li></ul><p>3. Google’s system analyzes this data using AI.</p><p>4. A <strong>risk score</strong> is generated and sent to the website.</p><p>5. The website makes a decision:</p><ul><li><strong>Allow</strong> the action if the score indicates human behavior.</li><li><strong>Block or challenge</strong> the action if it seems suspicious.</li></ul><h4>How CAPTCHA Identifies Bots</h4><p><strong>Bot behavior</strong></p><ul><li>No mouse movement or perfectly straight cursor paths</li><li>No natural delays or random pauses</li><li>Use of <strong>headless browsers</strong> or automated scripts</li><li>Repeated actions from the same IP addresses</li></ul><p><strong>Human behavior</strong></p><ul><li>Natural, slightly random mouse movements</li><li>Uneven typing rhythms and pauses</li><li>Real device fingerprints and normal browsing patterns</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=895efe4bec3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Technology behind Face unlock on smart phones.]]></title>
            <link>https://medium.com/@thuvaragan20030322tt/the-technology-behind-face-unlock-on-smart-phones-7cb0eaf53207?source=rss-bb766686ed6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cb0eaf53207</guid>
            <dc:creator><![CDATA[Suthakaran Thuvaragan]]></dc:creator>
            <pubDate>Thu, 04 Dec 2025 13:11:11 GMT</pubDate>
            <atom:updated>2025-12-04T13:11:11.285Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rhk8EmEOWN7tENAbdj9nVA.jpeg" /></figure><h4><strong>What is face unlock?</strong></h4><p>Face unlock is a biometric authentication method that lets you unlock your smartphone or other devices using your face instead of a password, PIN, or fingerprint.</p><h4>Sensors and Cameras</h4><p><strong>Front camera:</strong> Captures your face image. Most phones have a normal front camera for this.</p><p><strong>Infrared (IR) camera: </strong>Works in low light or darkness by detecting heat patterns from your face.</p><p><strong>Dot projector: </strong>More than 30,000 IR dots put on face.</p><p><strong>3D sensors: </strong>iphone or some flagship android phones<strong> </strong>use structured light or Time-of-Flight (ToF) sensors. These measure the distance of each point on your face to create a 3D depth map, making it much harder to spoof.</p><h4>Facial Mapping</h4><p>The phone detects facial points: eyes, nose, mouth, cheekbones, jawline, and the distance between them.</p><p><strong>2D recognition:</strong> Only uses a flat image of your face. Faster but less secure can be tricked with a photo.</p><p><strong>3D recognition:</strong> Uses depth information, creating a 3D model of your face. Much more secure and reliable in different lighting or angles.</p><h4>Creating a Feature Vector</h4><p>After detecting all key points, the phone converts the face into a vector of numbers, called a feature vector.</p><p>Each number represents some aspect of the face-distance between eyes, nose width, curve of jawline, depth at cheek, etc.</p><p>This vector is unique for each person, even if faces look similar.</p><h4>Secure Storage of Facial Data</h4><p>When you use Face Unlock, your facial information is kept entirely on your device and is never sent to the internet or any external servers. Your phone stores this sensitive data inside a special secure hardware area that is built specifically to protect private information.</p><p><strong>Secure Enclave (iPhone &amp; iPad)</strong></p><p>The <strong>Secure Enclave</strong> is a highly secure component within Apple devices that works separately from the main operating system.</p><p>Face ID and fingerprint data are stored in encrypted format.</p><p>Neither apps nor the iOS system itself can access this data.</p><p>All matching and verification are handled inside the Secure Enclave.</p><p>Encryption keys never leave this protected area.</p><p>Think of the Secure Enclave as a locked digital safe inside your phone that isolates your biometric data from everything else.</p><p><strong>Trusted Execution Environment (Android)</strong></p><p>Android phones rely on the <strong>Trusted Execution Environment</strong> (TEE) to protect biometric data.</p><p>Key points:</p><p>TEE is a secure, separate space inside the processor.</p><p>It uses its own secure operating system that runs independently from Android.</p><p>Face recognition, fingerprint checks, and payment verification all operate inside the TEE.</p><p>Apps and the Android OS cannot see or access any data stored there.</p><p>The TEE is like having a mini security vault inside your phone’s processor, designed solely to safeguard confidential information.</p><h4>Liveness Detection</h4><p>Explains why face unlock is more secure than just a photo comparison.</p><p>Techniques include:</p><p>Infrared sensing to detect heat patterns.</p><p>Micro-movement detection, like blinking or slight head movement.</p><p>Depth sensing, ensuring a real 3D face is present.</p><h4>Normalization and Compression</h4><p>Feature vectors are often normalized so that lighting, angle, or minor facial expressions don’t affect recognition.</p><p>The vector may be compressed to save space while keeping uniqueness.</p><p>Result: The phone stores a compact numerical representation of your face, not the full image.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cb0eaf53207" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>