<?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 Kapishan on Medium]]></title>
        <description><![CDATA[Stories by Kapishan on Medium]]></description>
        <link>https://medium.com/@kapishany28?source=rss-3eabd8289f23------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QoE39j9gKilO3XYk1Q69XA.jpeg</url>
            <title>Stories by Kapishan on Medium</title>
            <link>https://medium.com/@kapishany28?source=rss-3eabd8289f23------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 15:25:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kapishany28/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/@kapishany28/purpose-of-use-client-in-next-js-fa659bee0c1d?source=rss-3eabd8289f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa659bee0c1d</guid>
            <dc:creator><![CDATA[Kapishan]]></dc:creator>
            <pubDate>Wed, 11 Mar 2026 05:57:29 GMT</pubDate>
            <atom:updated>2026-03-11T05:57:29.938Z</atom:updated>
            <content:encoded><![CDATA[<p>When working with Next.js, developers often see the line &quot;use client&quot; at the top of some components. This small line plays an important role in how a component runs in a Next.js application.</p><p>Understanding Server and Client Components</p><p>In modern Next.js (especially with the App Router), components are Server Components by default. This means they run on the server instead of the browser. Server Components help improve performance, reduce JavaScript sent to the browser, and make data fetching easier.</p><p>However, some features in a web application must run in the browser. For example:</p><p>Handling button clicks<br>Using React hooks like useState or useEffect<br>Accessing browser APIs such as localStorage or window<br>Creating interactive UI elements</p><p>These features require the component to run on the client side.</p><p>What is a “use client”?</p><p>The &quot;use client&quot; directive tells Next.js that a component should run on the client side (browser) instead of the server.</p><p>When this line is added at the top of a file, the component becomes a client component.</p><p>Example:</p><p>javascript</p><pre>&quot;use client&quot;;<br>import { useState } from &quot;react&quot;;<br>export default function Counter() {<br> const [count, setCount] = useState(0);<br>return (<br> &lt;div&gt;<br> &lt;p&gt;Count: {count}&lt;/p&gt;<br> &lt;button onClick={() =&gt; setCount(count + 1)}&gt;Increase&lt;/button&gt;<br> &lt;/div&gt;<br> );<br>}</pre><p>In this example, the component uses useState and a button click event. Since these features require browser interaction, the ”use client” directive is necessary.</p><p>When to Use “use client”</p><p>You should use ”use client” when your component needs:</p><p>React hooks (useState, useEffect)<br>Event handlers like onClick<br>Browser APIs (localStorage, navigator, window)<br>Interactive UI behavior</p><p>If these features are not required, it is better to keep the component as a server component for better performance.</p><p>Why It Matters</p><p>Using Server Components by default helps reduce the amount of JavaScript sent to the browser. This makes the application faster and more efficient. The “use client” directive should only be used when client-side functionality is required.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa659bee0c1d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How SEO Helps People Find Your Website on Google]]></title>
            <link>https://medium.com/@kapishany28/how-seo-helps-people-find-your-website-on-google-56dcfc1bc393?source=rss-3eabd8289f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/56dcfc1bc393</guid>
            <dc:creator><![CDATA[Kapishan]]></dc:creator>
            <pubDate>Tue, 10 Mar 2026 03:58:08 GMT</pubDate>
            <atom:updated>2026-03-10T03:58:08.660Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*YCQaVmgejw8uhTjICqKRhA.jpeg" /></figure><p>SEO (Search Engine Optimization) is the practice of improving a website so that it appears in search results when people look for information online. Search engines like Google help users discover websites by showing pages that are most relevant to their search queries. SEO helps your website become one of those visible results.</p><p>When a user searches for something, Google analyzes thousands of webpages and decides which pages should appear first. Websites that are well optimized are more likely to rank higher in the search results. Since most users click on the first few results they see, appearing higher in the search page significantly increases the chances of people visiting your website.</p><p>Search engines find and understand websites through a process that includes crawling, indexing, and ranking. Crawling happens when automated programs called bots scan websites and read their content. After that, indexing stores the page information in a large database so it can be retrieved later. Finally, ranking determines which pages are the most useful and relevant when someone performs a search.</p><p>SEO focuses on improving several important aspects of a website. These include using clear and relevant keywords, creating helpful and high-quality content, making sure the website loads quickly, and ensuring it works well on mobile devices. When these elements are optimized, search engines can better understand the purpose of the website and recommend it to users.</p><p>The main goal of SEO is to increase organic traffic. Organic traffic refers to visitors who arrive at your website naturally through search results rather than paid advertisements. Over time, consistent SEO efforts can improve a website’s visibility, attract more visitors, and build a long-term online presence.</p><p>In simple terms, SEO connects people who are searching for information with the websites that provide it. By optimizing a website properly, it becomes easier for search engines to understand its content and show it to the right audience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56dcfc1bc393" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Backend Frontend Integration Using Axios]]></title>
            <link>https://medium.com/@kapishany28/backend-frontend-integration-using-axios-d98d941b991b?source=rss-3eabd8289f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/d98d941b991b</guid>
            <dc:creator><![CDATA[Kapishan]]></dc:creator>
            <pubDate>Mon, 09 Mar 2026 04:31:33 GMT</pubDate>
            <atom:updated>2026-03-09T04:31:33.649Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bVuHj_3bPCLNmcratJkcEQ.png" /></figure><p>In modern web applications, the frontend and backend work as separate systems. The frontend handles the user interface, while the backend processes data and communicates with the database. To make these two parts communicate, developers use HTTP requests.</p><p>One of the most popular tools for this integration is Axios.</p><p>Axios is a JavaScript library that allows the frontend to send requests to backend APIs and receive responses easily.</p><p><strong>How the Integration Works</strong></p><ol><li>A user interacts with the frontend.</li><li>The frontend sends a request to the backend using Axios.</li><li>The backend processes the request.</li><li>The backend returns a JSON response.</li><li>The frontend updates the UI based on the response.</li></ol><p>Axios simplifies communication between the frontend and backend. By sending HTTP requests and handling responses efficiently, it helps developers build scalable and maintainable full-stack applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d98d941b991b" 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/@kapishany28/why-react-uses-virtual-dom-instead-of-direct-dom-manipulation-ded7794e2bd7?source=rss-3eabd8289f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/ded7794e2bd7</guid>
            <dc:creator><![CDATA[Kapishan]]></dc:creator>
            <pubDate>Tue, 30 Dec 2025 04:25:13 GMT</pubDate>
            <atom:updated>2025-12-30T04:25:13.276Z</atom:updated>
            <content:encoded><![CDATA[<p>When we build modern web applications, speed and user experience matter a lot. Updating the real DOM directly is slow and can reduce performance. React avoids this problem by using a virtual DOM. The Virtual DOM is a lightweight copy of the Real DOM that React updates first. Then React changes only the necessary parts in the real DOM. This makes applications faster, smoother, and more efficient.</p><h3>What Is the Real DOM?</h3><p>The <strong>DOM (Document Object Model)</strong> is a tree structure created by the browser for an HTML page.<br> When we update something in the DOM (like changing text, color, or layout), the browser needs to:</p><ul><li>Recalculate styles</li><li>Rebuild layout</li><li>Repaint the UI</li></ul><p>These operations are slow<strong> </strong>and<strong> </strong>expensive, especially when updates happen frequently.</p><h3>Problem With Direct DOM Manipulation</h3><p>In traditional JavaScript or jQuery, we directly update the DOM.<br> If an application has many UI updates, direct DOM manipulation can cause:</p><ul><li>Poor performance</li><li>Slow rendering</li><li>UI flickering</li><li>Complex and hard-to-maintain code</li></ul><p>Each small change triggers a full browser reflow or repaint.</p><h3>What Is the Virtual DOM?</h3><p>The Virtual<strong> </strong>DOM is a lightweight JavaScript object that is a copy of the Real DOM.<br> React keeps this virtual DOM in memory and uses it to track changes efficiently.</p><p>Instead of updating the Real DOM directly, React:</p><ol><li>Updates the Virtual DOM</li><li>Compares the new Virtual DOM with the previous one (Diffing)</li><li>Finds only the changed parts</li><li>Updates only those changes in the Real DOM (Reconciliation)</li></ol><h3>Why Virtual DOM Is Faster</h3><p>Updating JavaScript objects is much faster than updating the browser DOM.<br> React minimizes DOM operations by batching updates and applying only necessary changes.</p><p>This makes React applications:</p><ul><li>Faster</li><li>More efficient</li><li>Smoother for users</li></ul><h3>Better Developer Experience</h3><p>Using the Virtual DOM also improves developer productivity:</p><ul><li>Declarative UI</li><li>No need to manually track DOM changes</li><li>Cleaner and more predictable code</li><li>Easier debugging and maintenance</li></ul><p>Developers focus on what the UI should look like, not on how to update the DOM.</p><h3>How Does the Virtual DOM Work?</h3><h4>Rendering the Initial UI</h4><p>When a React component is rendered for the first time, React creates a virtual DOM tree that mirrors the actual DOM structure. This tree consists of React<strong> </strong>elements, which are lightweight JavaScript objects describing the UI.</p><h4>State or Prop Change</h4><p>Whenever a component’s state or props change, React creates a new virtual DOM tree reflecting these changes.</p><h4>Diffing Algorithm</h4><p>React then compares the new Virtual DOM tree with the previous one using a process called diffing. This step identifies the exact changes that need to be made to the actual DOM.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ded7794e2bd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why React Recommends Function Components Over Class Components]]></title>
            <link>https://medium.com/@kapishany28/why-react-recommends-function-components-over-class-components-f82e5c78fa56?source=rss-3eabd8289f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/f82e5c78fa56</guid>
            <dc:creator><![CDATA[Kapishan]]></dc:creator>
            <pubDate>Sun, 28 Dec 2025 16:44:39 GMT</pubDate>
            <atom:updated>2025-12-28T16:44:39.965Z</atom:updated>
            <content:encoded><![CDATA[<p>React now recommends Function Components instead of Class Components for building modern applications. This shift happened mainly after the introduction of Hooks.</p><p>1. Hooks Work Only with Function Components</p><p>Hooks like useState, useEffect, and useContext allow developers to manage state and lifecycle features in a simple way.</p><p>These hooks do not work in class components, which makes function components the future of React development.</p><p>2. Simpler and Cleaner Code</p><p>Function components require less code and are easier to read and maintain compared to class components.</p><p>There is no need for constructors, binding, or the this keyword.</p><p>3. No this Keyword Confusion</p><p>Class components rely heavily on this, which often confuses beginners.</p><p>Function components use plain JavaScript functions, making them easier to learn and understand.</p><p>4. Better Logic Reuse with Custom Hooks</p><p>Function components allow logic reuse through custom hooks, replacing complex patterns like HOCs and render props.</p><p>5. Future of React</p><p>React has not removed class components, but all new features and improvements focus on function components.</p><p>The official React documentation recommends using function components for all new projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f82e5c78fa56" 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/@kapishany28/07-essential-things-to-consider-when-converting-an-html-template-into-react-24395f0938b6?source=rss-3eabd8289f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/24395f0938b6</guid>
            <dc:creator><![CDATA[Kapishan]]></dc:creator>
            <pubDate>Fri, 19 Dec 2025 03:52:57 GMT</pubDate>
            <atom:updated>2025-12-19T03:52:57.453Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>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 essential considerations to ensure the conversion is smooth, maintainable, and functional. Here’s a structured guide to the 7 essential things to consider:</strong></p><h3>1. Convert HTML to JSX Properly</h3><p>. class—className</p><p>. for- htmlFor</p><p>. self-closing tag must (e.g., &lt;img&gt; → &lt;img/&gt;)</p><pre>&lt;div style={{ backgroundColor: &#39;red&#39;, fontSize: &#39;16px&#39; }}&gt;Hello&lt;/div&gt;</pre><h3>2. Break the Template into Reusable Components</h3><p>React encourages component-based architecture.</p><p>Identify sections of your HTML that can become separate components:</p><p>.Navbar → &lt;Navbar/&gt;</p><p>.Footer → &lt;Footer/&gt;</p><h3>3. Handle Static Assets Correctly</h3><p>Images, fonts, and other assets should be placed in the public folder or imported into your components:</p><pre>import Logo from &#39;./assets/logo.png&#39;;<br>&lt;img src={Logo} alt=&quot;Logo&quot; /&gt;</pre><ul><li>HTML templates often have &lt;script&gt; tags for jQuery or plugins.</li><li>React does <strong>not</strong> work well with direct DOM manipulation (like jQuery).</li><li>Solutions:</li><li>Find React alternatives (e.g., React Slick for sliders instead of a jQuery slider)</li><li>Use useEffect to integrate small scripts when necessary</li><li>Avoid direct DOM manipulation with document.querySelector where possible</li></ul><h3>5. Routing for Multi-Page Templates</h3><ul><li>HTML templates often have multiple pages.</li><li>React uses <strong>React Router</strong> for navigation instead of separate HTML files:</li><li>import { BrowserRouter as Router, Routes, Route } from &#39;react-router-dom&#39;; &lt;Router&gt; &lt;Routes&gt; &lt;Route path=&quot;/&quot; element={&lt;Home /&gt;} /&gt; &lt;Route path=&quot;/about&quot; element={&lt;About /&gt;} /&gt; &lt;/Routes&gt; &lt;/Router&gt;</li><li>Each page becomes a React component.</li></ul><h3>6. State and Dynamic Data</h3><ul><li>HTML templates are usually static.</li><li>React allows <strong>dynamic rendering using state and props</strong>:</li><li>Example:</li><li>const [name, setName] = useState(&#39;John&#39;); &lt;h1&gt;Hello, {name}&lt;/h1&gt;</li><li>Consider which parts of the template will be dynamic (e.g., user info, product lists) and plan state management.</li></ul><h3>7. CSS Handling</h3><ul><li>Options for CSS in React:</li><li>Keep .css files as is and import them into components:</li><li>import &#39;./styles.css&#39;;</li><li>Use <strong>CSS Modules</strong> for scoped styles: styles.module.css</li><li>Use <strong>styled-components</strong> or other CSS-in-JS solutions for advanced dynamic styling</li><li>Watch for inline styles and className conflicts.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24395f0938b6" 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/@kapishany28/why-js-uses-asynchronous-programming-even-though-its-single-threaded-1024dd60dd1d?source=rss-3eabd8289f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/1024dd60dd1d</guid>
            <dc:creator><![CDATA[Kapishan]]></dc:creator>
            <pubDate>Mon, 15 Dec 2025 04:27:32 GMT</pubDate>
            <atom:updated>2025-12-15T04:27:32.265Z</atom:updated>
            <content:encoded><![CDATA[<p>JavaScript is a single-threaded language, which means it can do only one task at a time. Imagine a child who has only one hand. That child can either write or eat, but not both at the same time. If JavaScript waits for a long task (like downloading data from the internet), it would stop everything else. The screen would freeze, and buttons would not work. To avoid this problem, JavaScript uses asynchronous programming. This allows JavaScript to start a long task, move it to the background, and continue doing other small tasks. When the long task is finished, JavaScript comes back and handles the result. This makes web pages fast, smooth, and responsive.</p><h3>Example_01:</h3><p>Synchronous</p><pre>console.log(&quot;Start&quot;);<br><br>let data = getDataFromServer(); // takes 5 seconds<br><br>console.log(&quot;End&quot;);</pre><p><strong>What happens?</strong></p><p>JavaScript waits 5 minutes.</p><p>The page feels slow.</p><h3>Example_02:</h3><p>Asynchronous</p><pre>console.log(&quot;Start&quot;);<br><br>setTimeout(() =&gt; {<br>  console.log(&quot;Data received&quot;);<br>}, 5000);<br><br>console.log(&quot;End&quot;);</pre><p><strong>What happens?</strong></p><p>JavaScript does not wait.</p><p>It continues other works</p><h3>Example_03:</h3><p>Mom puts rice on the stove (takes 10 minutes).<br> Instead of standing and waiting, Mom:</p><ul><li>Cuts vegetables</li><li>Washes dishes</li></ul><p>When the rice is ready, the cooker whistles <br> This whistle is like a callback in JavaScript.</p><p><strong>JavaScript is single-threaded but uses asynchronous programming so that long tasks do not block the user interface.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1024dd60dd1d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Essential DOM Methods in JavaScript]]></title>
            <link>https://medium.com/@kapishany28/essential-dom-methods-in-javascript-bf738f54b9b8?source=rss-3eabd8289f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf738f54b9b8</guid>
            <dc:creator><![CDATA[Kapishan]]></dc:creator>
            <pubDate>Mon, 08 Dec 2025 17:26:41 GMT</pubDate>
            <atom:updated>2025-12-08T17:26:41.565Z</atom:updated>
            <content:encoded><![CDATA[<h3>SELECTING ELEMENTS</h3><h3>1.document.getElementById()</h3><p><strong>Select a single element by its ID</strong></p><pre>const title = document.getElementById(&quot;#title&quot;);</pre><p>2. document. getElementByClass()</p><p><strong>Select all elements with a given class.</strong></p><pre>const items = document.getElementsByClassName(&quot;.item&quot;);</pre><h3>3.document.querySelector()</h3><p><strong>Select the first matching CSS selector.</strong></p><pre>const btn = document.querySelector(&quot;.btn&quot;);</pre><h3>4.document.querySelectorAll()</h3><p><strong>Select all matching CSS selectors.</strong></p><pre>const links = document.querySelectorAll(&quot;a&quot;);</pre><h3>MANIPULATING CONTENT</h3><h3>6.element.innerHTML()</h3><p><strong>Change or get the HTML inside an element.</strong></p><pre>box.innerHTML = &quot;&lt;p&gt;Hello!&lt;/p&gt;&quot;;</pre><h3>7.element.textContent()</h3><p><strong>Change only the text, not HTML.</strong></p><pre>title.textContent = &quot;New Title&quot;;</pre><h3>STYLING &amp; ATTRIBUTES</h3><h3>8.element.style()</h3><p><strong>Change CSS styles directly.</strong></p><pre>box.style.backgroundColor = &quot;blue&quot;;</pre><h3>9.element.setAttribute()</h3><p><strong>Add or update an attribute.</strong></p><pre>img.setAttribute(&quot;src&quot;, &quot;photo.jpg&quot;);</pre><h3>10. element.getAttribute()</h3><p><strong>Read an attribute value.</strong></p><pre>const altText = img.getAttribute(&quot;alt&quot;);</pre><h3>WORKING WITH CLASSES</h3><h3>11.element.classList.add()</h3><p><strong>Add a new class.</strong></p><pre>box.classList.add(&quot;active&quot;);</pre><h3>12.element.classList.remove()</h3><p><strong>Remove an existing class.</strong></p><pre>box.classList.remove(&quot;hidden&quot;);</pre><h3>13.element.classList.toggle()</h3><p><strong>Toggle between add/remove.</strong></p><pre>box.classList.toggle(&quot;dark-mode&quot;);</pre><h3>EVENTS &amp; INTERACTIONS</h3><h3>14.element.addEventListener()</h3><p><strong>Attach event listeners like click, input, keydown, etc.</strong></p><pre>button.addEventListener(&quot;click&quot;, () =&gt; {<br>  alert(&quot;Button clicked!&quot;);<br>});</pre><h3>CREATE/REMOVE ELEMENT</h3><h3>15.document.createElement()</h3><p><strong>Create a new HTML element.</strong></p><pre>const p = document.createElement(&quot;p&quot;);<br>p.textContent = &quot;A new paragraph.&quot;;</pre><h3>16.element.append()</h3><p><strong>Insert elements into the DOM.</strong></p><pre>content.append(p);</pre><h3>17. element.remove()</h3><p><strong>Remove an element from the page.</strong></p><pre>title.remove();</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf738f54b9b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Google Translate Works Behind the Scene]]></title>
            <link>https://medium.com/@kapishany28/how-google-translate-works-behind-the-scene-fa0f5f87cf16?source=rss-3eabd8289f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa0f5f87cf16</guid>
            <dc:creator><![CDATA[Kapishan]]></dc:creator>
            <pubDate>Thu, 04 Dec 2025 14:14:07 GMT</pubDate>
            <atom:updated>2025-12-04T14:14:07.664Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*4e6Kl4G_425c94RZQVKbhg.png" /><figcaption>Google Translate</figcaption></figure><h3>1. Text Input Processing</h3><p>When you type or paste text, Google first breaks the sentence into words and phrases. It automatically detects the language and cleans the text so the AI model can understand it better. This preparation step is called preprocessing.</p><h3>2. Neural Machine Translation (NMT)</h3><p>Google Translate uses a powerful AI system called Neural Machine Translation. This system reads the entire sentence at once, understands the meaning, and then produces a translation. It doesn’t translate word by word but uses deep learning to understand the full context.</p><h3>3. Context Understanding</h3><p>The AI checks grammar, tone, nearby words, and style to make the translation accurate and natural.</p><h3><strong>4. Massive Training Data</strong></h3><p><strong>The translation model is trained using billions of examples from:</strong></p><p><strong>.Website</strong></p><p><strong>.Books</strong></p><p><strong>. Article</strong></p><p><strong>The more data it learns from, the better and smarter it becomes.</strong></p><h3>5. Probability and Correction</h3><p>The AI chooses the translation with the highest probability of being correct. Then it fixes grammar and sentence flow to sound natural.</p><h3>6. Continuous Learning</h3><p>Google Translate improves over time using user feedback, new data, and better AI models.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa0f5f87cf16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Technology Behind Face Unlock on Smartphones]]></title>
            <link>https://medium.com/@kapishany28/the-technology-behind-face-unlock-on-smartphones-39f54654fb8f?source=rss-3eabd8289f23------2</link>
            <guid isPermaLink="false">https://medium.com/p/39f54654fb8f</guid>
            <dc:creator><![CDATA[Kapishan]]></dc:creator>
            <pubDate>Thu, 04 Dec 2025 06:24:55 GMT</pubDate>
            <atom:updated>2025-12-04T06:24:55.521Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/309/1*pWiaABt90Dkl1boAiPISPw.jpeg" /><figcaption>Face Unlock</figcaption></figure><p>Smartphones use <strong>AI + sensors + camera data</strong> to recognize your face and unlock the device safe.</p><h3><strong>1. Face Capture:</strong></h3><p>The moment you lift your phone or press the power button:</p><ul><li>The <strong>front camera,</strong> or <strong>infrared (IR) camera,</strong> turns on.</li><li>It takes a quick photo or scans your face.</li></ul><h3><strong>2. Create a Face Map:</strong></h3><p>The phone converts your face into a special type of data called a face map.</p><p>Example:</p><ul><li>Distance between your eyes</li><li>Shape of your nose</li><li>Jawline structure</li><li>Face contour</li><li>Depth (3D) structure</li></ul><h3><strong>3. Secure Storage:</strong></h3><p>Your face data is stored inside the device, not on the internet.</p><p>Phones store it in a special secure chip:</p><ul><li><strong>Secure Enclave (Apple)</strong></li></ul><p>The Secure Enclave is a special, highly protected part inside the iPhone’s processor. It stores your Face ID and fingerprint data in encrypted form. Neither iOS nor any apps can read or access this information. It works like a hidden security vault inside the phone, keeping your biometric data safe.</p><ul><li><strong>Trusted Execution Environment (Android)</strong></li></ul><p>The TEE is a secure area inside the processor of Android phones. It runs separately from the main Android system and stores sensitive data like face unlock info, fingerprint details, and payment keys. Regular apps and the Android OS cannot access this area. It acts like a small, secure operating system inside the phone, protecting your biometric data.</p><h3><strong>4. Face Matching:</strong></h3><p>When you try to unlock:</p><ul><li>The phone captures your face again.</li><li>It generates a new face map.</li><li>It compares the new map with the previously saved one.</li></ul><p>If the two match, unlock.</p><p>The matching is done using AI<strong> </strong>algorithms, such as</p><ul><li>Neural networks</li><li>Pattern recognition</li><li>Depth analysis (3D unlock)</li></ul><h3><strong>5. Liveness Detection:</strong></h3><p>Phones use liveness detection:</p><ul><li>Check blinking</li><li>Check infrared heat</li><li>Check 3D depth</li><li>Check small muscle movements</li><li>Check reflection in eyes</li></ul><h3>Types of Face Unlock Technology</h3><p><strong>1.2D Face Unlock:</strong></p><p>. Medium Security</p><p><strong>2.3D Face Unlock:</strong></p><p>. Very High Security</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39f54654fb8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>