<?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 DILACSHIKA SOORIYAKUMARAN on Medium]]></title>
        <description><![CDATA[Stories by DILACSHIKA SOORIYAKUMARAN on Medium]]></description>
        <link>https://medium.com/@dilacshikapooja?source=rss-e635c8f1bf9f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*B5Lpdtz6opXfuJ3ytoTmkA.jpeg</url>
            <title>Stories by DILACSHIKA SOORIYAKUMARAN on Medium</title>
            <link>https://medium.com/@dilacshikapooja?source=rss-e635c8f1bf9f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 15:44:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dilacshikapooja/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/@dilacshikapooja/purpose-of-use-client-in-next-js-f08b861dcc19?source=rss-e635c8f1bf9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f08b861dcc19</guid>
            <dc:creator><![CDATA[DILACSHIKA SOORIYAKUMARAN]]></dc:creator>
            <pubDate>Tue, 10 Mar 2026 07:03:10 GMT</pubDate>
            <atom:updated>2026-03-10T07:03:10.497Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*NqxXN4lgjwRzm4u8.jpg" /></figure><p>When building modern web applications with <strong>Next.js</strong>, you may often see the line:</p><p>“user client”</p><p>at the top of a file. If you are new to <strong>Next.js App Router</strong>, this line might look confusing. In this article, we will explore what “user client” means, why it is used, and when you should use it.</p><h4>What is “use client”?</h4><p>In <strong>Next.js</strong>, components are <strong>Server Components by default</strong>. This means they run on the server and send HTML to the browser.</p><p>However, some components need to run in the <strong>browser</strong> to support user interaction, such as clicking buttons, handling form inputs, or updating UI dynamically. To make a component run in the browser, you add the directive:</p><p>at the top of the file.</p><p>This tells Next.js that the component is a <strong>Client Component</strong>.</p><h3>Example of “use client”</h3><p>Here is a simple example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*oC2PeRd3kVmnlFmpmHjn2w.png" /></figure><p>In this example:</p><ul><li>The component uses the <strong>useState hook</strong></li><li>It updates the UI when a button is clicked</li><li>This interaction must happen in the <strong>browser</strong></li></ul><p>Because of this, “user client” is required.</p><h3>Why is “use client” important?</h3><p>The “user client” directive is required when your component needs features that only work in the browser.</p><h4>1. Using React Hooks</h4><p>Hooks like:</p><ul><li>useState</li><li>useEffect</li><li>useContext</li></ul><p>can only be used in <strong>Client Components</strong>.</p><p>Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*DMrY9sx7ZL26bMBDOxZFoA.png" /></figure><h4>2. Handling User Events</h4><p>User interactions such as:</p><ul><li>onclick</li><li>onChange</li><li>onSubmit</li></ul><p>require the component to run in the browser.</p><p>Example:</p><pre>&lt;button onClick={handleClick}&gt;Click Me&lt;/button&gt;</pre><h3>3. Accessing Browser APIs</h3><p>Browser features like:</p><ul><li>window</li><li>document</li><li>localStorage</li></ul><p>are not available on the server.</p><p>Example:</p><pre>&quot;use client&quot;</pre><pre>useEffect(() =&gt; {<br>  console.log(window.innerWidth)<br>}, [])</pre><h3>What happens without “use client”?</h3><p>If you try to use hooks or browser APIs in a Server Component, Next.js will throw an error like:</p><pre>Error: useState is not allowed in Server Components</pre><p>This happens because the component is being rendered on the <strong>server</strong>, where these features are not available.</p><h3>Server Components vs Client Components</h3><p>FeatureServer ComponentClient ComponentDefault in Next.jsYesNoRuns onServerBrowserReact HooksNot allowedAllowedEvent handlersNot allowedAllowedNeeds “user client”NoYes.</p><h3>When should you use “use client”?</h3><p>Use “user client” when your component needs:</p><ul><li>React hooks</li><li>Event handling</li><li>Browser APIs</li><li>Interactive UI</li></ul><p>Avoid using it unnecessarily because <strong>Server Components are faster and improve performance</strong>.</p><h3>Conclusion</h3><p>The &quot;use client&quot; directive in Next.js helps developers control <strong>where a component runs on the server or in the browser</strong>. It is essential for interactive components that rely on hooks, events, or browser APIs.</p><p>Understanding when to use &quot;use client&quot; will help you build <strong>faster, more efficient Next.js applications</strong> while taking full advantage of Server Components.</p><p>If you are learning Next.js, mastering the difference between <strong>Server Components and Client Components</strong> is an important step toward building scalable and modern web applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f08b861dcc19" 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/@dilacshikapooja/how-seo-helps-people-find-your-website-on-google-205288ab68da?source=rss-e635c8f1bf9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/205288ab68da</guid>
            <dc:creator><![CDATA[DILACSHIKA SOORIYAKUMARAN]]></dc:creator>
            <pubDate>Tue, 10 Mar 2026 04:41:00 GMT</pubDate>
            <atom:updated>2026-03-10T04:41:00.703Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/735/0*SaY8t4dALbo5_DSA.jpg" /></figure><p>In today’s digital world millions of websites compete for attention online. When someone searches for information, products, or services, they usually use a search engine like Google. But with so many websites available.how does Google decide which ones appear first in search results.</p><p>This is where SEO (Search Engine Optimization) becomes important. SEO is the process of improving a website so it appears higher in search engine results. When done correctly, SEO helps people easily find your website when they search online.</p><p>In this article, we will explore how SEO helps users discover your website and why it is essential for online success.</p><p><strong>What is SEO ?</strong></p><p><strong>Search Engine Optimization (SEO)</strong> is a digital marketing strategy used to improve a website’s visibility in search engine results. The main goal of SEO is to make a website easier for search engines like Google to understand and rank.</p><p>When someone searches for something such as:</p><ul><li>“best study guide app”</li><li>“how to learn programming”</li><li>“notes summarizer AI”</li></ul><p>Google scans billions of web pages and shows the most relevant results. Websites that are well optimized with SEO techniques have a higher chance of appearing on the <strong>first page of search results</strong>.</p><p><strong>Why SEO is Important for Websites</strong></p><p>SEO plays a major role in helping websites attract visitors. Without SEO, even a good website may remain hidden among millions of other pages.</p><p>Here are some key reasons why SEO is important.</p><h4>1. SEO Improves Website Visibility</h4><p>Most internet users do not go beyond the first page of search results. If your website ranks higher on Google, more people will see it.</p><p>For example, if your website appears in the top 5 search results, the chances of users clicking your link increase significantly.</p><p>Higher visibility means:</p><ul><li>More people discover your website</li><li>More visitors explore your content</li><li>Greater online presence for your brand</li></ul><h4>2. SEO Brings the Right Audience</h4><p>One of the biggest advantages of SEO is that it attracts users who are already searching for something related to your website.</p><p>This happens through <strong>keywords</strong>.</p><p>Keywords are the words or phrases people type into search engines. For example:</p><ul><li>“AI study guide app”</li><li>“online learning tools”</li><li>“summarize notes automatically”</li></ul><p>If your website content includes these keywords naturally, search engines like Google are more likely to show your website when users search for them.</p><p>This means your visitors are more likely to be interested in your content or services.</p><h4>3. SEO Increases Organic Traffic</h4><p>Traffic to a website can come from many sources such as advertisements, social media, or search engines.</p><p>SEO focuses on generating <strong>organic traffic</strong>, which means visitors find your website naturally through search results without paid advertising.</p><p>Organic traffic has several benefits:</p><ul><li>It is free.</li><li>It builds long-term visibility.</li><li>It attracts users actively searching for information.</li></ul><p>Over time, good SEO can continuously bring visitors to your website.</p><h4>4. SEO Builds Trust and Credibility</h4><p>Users often trust websites that appear at the top of search results. When your website ranks higher on Google, it creates the impression that your website is reliable and valuable.</p><p>Search engines also evaluate websites based on several quality factors such as:</p><ul><li>High-quality content</li><li>Mobile-friendly design</li><li>Fast loading speed</li><li>Secure connections (HTTPS)</li></ul><p>Websites that meet these standards are more likely to rank higher and gain user trust.</p><h4>5. SEO Improves User Experience</h4><p>SEO is not only about search engines — it is also about creating a better experience for visitors.</p><p>A well-optimized website usually includes:</p><ul><li>Clear navigation</li><li>Fast loading pages</li><li>Mobile-friendly layouts</li><li>Helpful and well-structured content</li></ul><p>When users can easily find what they are looking for, they are more likely to stay longer on your website and explore additional pages.</p><h4>6. SEO Supports Business and Brand Growth</h4><p>For businesses, bloggers, and developers, SEO is a powerful tool for growth.</p><p>When more people find your website through search engines, it can lead to:</p><ul><li>Increased brand awareness</li><li>More leads and customers</li><li>Higher website engagement</li><li>Long-term online success</li></ul><p>Even small websites or startups can compete with larger companies if they use effective SEO strategies.</p><h4>Basic SEO Practices for Beginners</h4><p>If you are starting a website or blog, here are some simple SEO practices to follow:</p><p><strong>1. Use relevant keywords</strong><br> Include keywords that people commonly search for.</p><p><strong>2. Create high-quality content</strong><br> Write useful and informative articles that solve users’ problems.</p><p><strong>3. Optimize page titles and headings</strong><br> Use clear titles and headings to help search engines understand your content.</p><p><strong>4. Improve website speed</strong><br> Fast-loading websites rank better and provide a better user experience.</p><p><strong>5. Make your website mobile-friendly</strong><br> Many users browse the internet using smartphones, so responsive design is essential.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=205288ab68da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrate backend with frontend using Axios]]></title>
            <link>https://medium.com/@dilacshikapooja/integrate-backend-with-frontend-using-axios-38a4ac3a710b?source=rss-e635c8f1bf9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/38a4ac3a710b</guid>
            <dc:creator><![CDATA[DILACSHIKA SOORIYAKUMARAN]]></dc:creator>
            <pubDate>Mon, 09 Mar 2026 04:42:20 GMT</pubDate>
            <atom:updated>2026-03-10T06:34:56.495Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/735/0*-WDhm_Yw7AraUJZs.jpg" /></figure><p>The frontend and backend typically operate as distinct services when creating contemporary web applications. While the backend handles data, authentication, and business logic, the frontend is responsible for the user interface. We use HTTP requests to link these two components. Axios is a widely used tool for this in JavaScript applications.</p><p>This post will examine how to use Axios to integrate a front-end application with a backend API.</p><h4>what is Axios</h4><p>Axios is a JavaScript library it used to make HTTP requests from the frontend to the Backend APl.</p><p>It helps you:</p><p>1.Send GET,POST,PUT,DELETE requests</p><p>2.Receive data from the sever</p><p>3. handle errors esaily</p><p>Axios works in :</p><ol><li>React</li><li>Vue</li><li>Angular</li><li>Node.js</li><li>Plain Java Script</li></ol><h4>Why developers prefer Axios</h4><ol><li>Simple and clean syntax</li><li>Automatic JSON data transformation</li><li>Error haandling</li><li>Request and response interc</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38a4ac3a710b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Netflix Decides What Movies to Recommend to You]]></title>
            <link>https://medium.com/@dilacshikapooja/how-netflix-decides-what-movies-to-recommend-to-you-88a3f49c09db?source=rss-e635c8f1bf9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/88a3f49c09db</guid>
            <dc:creator><![CDATA[DILACSHIKA SOORIYAKUMARAN]]></dc:creator>
            <pubDate>Tue, 24 Feb 2026 03:34:49 GMT</pubDate>
            <atom:updated>2026-02-24T03:34:49.026Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*NPA_HhrtgbXGSpLv.jpg" /></figure><p>In today’s digital world, streaming platforms have transformed the way people consume entertainment. One of the most successful platforms, Netflix, is well known not only for its wide collection of movies and television shows but also for its highly accurate recommendation system. Many users often wonder how Netflix seems to understand their tastes so well. The answer lies in advanced data analysis, machine learning, and user behaviour tracking.</p><p>One of the primary factors Netflix uses to recommend content is a user’s viewing history. Every time a person watches a movie or series, the system records important information, such as what was watched, how long it was watched, whether it was completed, and whether it was rewatched. If a user consistently watches romantic movies to the end but stops watching horror films halfway, Netflix learns that the user prefers romance over horror. Over time, this behavioural data helps the platform build a personalised profile for each viewer.</p><p>In addition to viewing history, Netflix also considers user feedback. When users give a thumbs up or thumbs down, or add content to their watchlist, they are directly influencing future recommendations. These actions serve as clear signals of preference. Positive interactions increase the likelihood of seeing similar content, while negative feedback reduces similar suggestions.</p><p>Another important method used by Netflix is collaborative filtering. This technique compares a user’s preferences with those of other users who share similar viewing patterns. For example, if many users who enjoy action films also watch a particular thriller, Netflix may recommend that thriller to someone who frequently watches action movies. In this way, recommendations are influenced not only by individual behaviour but also by patterns observed among millions of users worldwide.</p><p>Netflix also analyses the content itself. Each movie or series is categorised based on genre, actors, directors, themes, language, and other attributes. For instance, if a user frequently watches movies starring Leonardo DiCaprio, the system may recommend other films featuring him. By combining content analysis with user behaviour, Netflix improves the accuracy of its suggestions.</p><p>Furthermore, recommendations can vary depending on factors such as time, device, and geographical location. Content availability differs from country to country. For example, users in Sri Lanka may not see the same catalogue as users in the United States due to licensing agreements. Netflix also uses A/B testing to experiment with different thumbnails and layouts to determine which designs encourage more engagement.</p><p>To sum up, a mix of viewing history, user reviews, collaborative filtering, content analysis, and artificial intelligence powers Netflix’s recommendation system. Netflix offers a highly customised streaming experience by continuously learning from user interactions and extensive data patterns. This clever system contributes significantly to the company’s worldwide success in addition to increasing user satisfaction.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88a3f49c09db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Variable and Global Setup in CSS]]></title>
            <link>https://medium.com/@dilacshikapooja/variable-and-global-setup-in-css-8c3734899579?source=rss-e635c8f1bf9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c3734899579</guid>
            <dc:creator><![CDATA[DILACSHIKA SOORIYAKUMARAN]]></dc:creator>
            <pubDate>Sun, 04 Jan 2026 14:58:45 GMT</pubDate>
            <atom:updated>2026-01-04T14:58:45.200Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*le2WQVtdVOlsp25l.jpeg" /></figure><p>When building modern websites, maintaining consistent styles across multiple pages can get messy. Imagine updating a primary color used in 50 places manually — nightmare, right? That’s where <strong>CSS variables</strong> and <strong>global setups</strong> come in. They help you write cleaner, reusable, and scalable code.</p><p>Modern CSS has evolved far beyond simple styling. One of the most powerful features introduced in recent years is <strong>CSS Variables (Custom Properties)</strong>. When combined with a proper <strong>global setup</strong>, CSS becomes more maintainable, scalable, and reusable.</p><p>In this post, we’ll explore:</p><ul><li>What CSS variables are</li><li>How to define them globally</li><li>Best practices for global CSS setup</li><li>Real-world examples</li></ul><h3>What Are CSS Variables?</h3><p>CSS Variables, also called <strong>Custom Properties</strong>, allow you to store reusable values like colors, fonts, spacing, or sizes in one place and use them throughout your stylesheet.</p><h3>Why Use CSS Variables?</h3><p>Using variables provides several advantages:</p><p><strong>Consistency</strong> — Same colors and spacing everywhere</p><p><strong>Easy maintenance</strong> — Update once, reflect everywhere</p><p><strong>Theming support</strong> — Light/Dark mode becomes easier</p><p><strong>Cleaner code</strong> — Reduces repetition</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c3734899579" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why JavaScript Uses Asynchronous Programming]]></title>
            <link>https://medium.com/@dilacshikapooja/why-javascript-uses-asynchronous-programming-5c783ddbff22?source=rss-e635c8f1bf9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c783ddbff22</guid>
            <dc:creator><![CDATA[DILACSHIKA SOORIYAKUMARAN]]></dc:creator>
            <pubDate>Wed, 31 Dec 2025 04:26:51 GMT</pubDate>
            <atom:updated>2025-12-31T04:26:51.783Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*DXqgcPg5227wlcxB.jpg" /></figure><p>JavaScript is one of the most popular programming languages in the world, especially for web development. One important concept that every JavaScript developer must understand is <strong>asynchronous programming</strong>. But why does JavaScript use asynchronous behavior in the first place? Let’s explore this in a simple and practical way.</p><h3>1. JavaScript Is Single-Threaded</h3><p>JavaScript runs on a <strong>single thread</strong>, which means it can execute only <strong>one task at a time</strong>. If JavaScript had to wait for every task to finish before moving on, the application would become slow and unresponsive.</p><p>For example:</p><ul><li>Loading data from a server</li><li>Reading a large file</li><li>Waiting for a timer</li></ul><p>These tasks can take time. If JavaScript waited for them synchronously, the browser would freeze and the user wouldn’t be able to interact with the page.</p><h3>2. Asynchronous Programming Prevents Blocking</h3><p>Asynchronous programming allows JavaScript to <strong>start a task and move on</strong> without waiting for it to finish. When the task is completed, JavaScript handles the result later.</p><p>This non-blocking nature is what keeps applications fast and responsive.</p><p><strong>Example:</strong></p><ul><li>Start fetching data from an API</li><li>Continue running other code</li><li>Display the data when it is ready</li></ul><h3>3. Better User Experience</h3><p>Modern web applications rely heavily on user interaction. Without asynchronous behavior:</p><ul><li>Pages would freeze during loading</li><li>Buttons wouldn’t respond</li><li>Animations would stop</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c783ddbff22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Essential Things to Consider When Converting an HTML Template to React]]></title>
            <link>https://medium.com/@dilacshikapooja/essential-things-to-consider-when-converting-an-html-template-to-react-c1149ef24bdc?source=rss-e635c8f1bf9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1149ef24bdc</guid>
            <dc:creator><![CDATA[DILACSHIKA SOORIYAKUMARAN]]></dc:creator>
            <pubDate>Tue, 30 Dec 2025 04:32:47 GMT</pubDate>
            <atom:updated>2025-12-30T04:32:47.691Z</atom:updated>
            <content:encoded><![CDATA[<p>When moving from <strong>plain HTML templates</strong> to <strong>React</strong>, many beginners think it’s just copy-paste work. In reality, React follows a <strong>completely different approach</strong> based on components, state, and declarative UI.</p><p>In this post, I’ll walk you through the <strong>most important things to consider</strong> when converting an HTML template into a proper React application.</p><h3>1. Understand the Component-Based Architecture</h3><p>React applications are built using <strong>components</strong>, not full HTML pages.</p><p>Instead of one large HTML file, split the UI into <strong>small, reusable components</strong> such as:</p><ul><li>Header</li><li>Navbar</li><li>Card</li><li>Footer</li><li>Form</li></ul><p>This improves:</p><ul><li>Reusability</li><li>Readability</li><li>Maintainability</li></ul><h3>2. Convert HTML to JSX Syntax</h3><p>React uses <strong>JSX</strong>, which looks similar to HTML but follows JavaScript rules.</p><p>Key changes include:</p><ul><li>class → className</li><li>for → htmlFor</li><li>Self-closing tags must end properly (&lt;img /&gt;)</li></ul><p>JSX helps React understand UI and logic together in a clean way.</p><h3>3. Remove HTML Boilerplate Code</h3><p>React components <strong>do not need</strong>:</p><ul><li>&lt;html&gt;</li><li>&lt;head&gt;</li><li>&lt;body&gt;</li></ul><p>These are already handled by the main index.html.<br>Each component should only return JSX inside a function.</p><h3>4. Avoid Direct DOM Manipulation</h3><p>In HTML and JavaScript, we often use:</p><pre>document.getElementById()</pre><p>In React, this is discouraged.</p><p>Instead, React uses <strong>state</strong> to control UI changes. When state updates, the UI automatically re-renders. This makes applications more predictable and efficient.</p><h3>5. Handle Events the React Way</h3><p>Event handling in React uses <strong>camelCase syntax</strong> and functions.</p><p>— Examples:</p><ul><li>onClick</li><li>onChange</li><li>onSubmit</li></ul><p>Inline JavaScript inside HTML should be replaced with proper React event handlers.</p><h4>6. Convert Forms into Controlled Components</h4><p>In React, form inputs are usually <strong>controlled by state</strong>.</p><p>This means:</p><ul><li>Input value comes from state</li><li>Changes update state using event handlers</li></ul><p>Controlled components help with:</p><ul><li>Validation</li><li>Form submission</li></ul><p>Better data management</p><h3>7. Use Props for Reusability</h3><p>Props allow you to pass data from one component to another.</p><p>This helps:</p><ul><li>Reuse the same component with different data</li><li>Keep components flexible and clean</li></ul><p>Props make React components truly reusable.</p><h3>8. Manage Assets Properly</h3><p>Images, icons, and styles should be handled correctly:</p><ul><li>Import images inside components, or</li><li>Place static files inside the public folder</li></ul><p>Direct relative paths used in HTML may not work in React without adjustment.</p><h3>9. Use React Router Instead of Multiple HTML Pages</h3><p>Traditional HTML uses separate .html files for navigation.</p><p>React uses <strong>React Router</strong> to build a <strong>Single Page Application (SPA)</strong> where pages change without reloading the browser.</p><p>This provides a smoother user experience.</p><h3>10. Maintain a Clean Folder Structure</h3><p>A good project structure improves scalability and teamwork.</p><p>Common folders include:</p><ul><li>components</li><li>pages</li><li>assets</li></ul><p>Organized code is easier to debug and extend.</p><h4><strong>11. Use React Hooks</strong></h4><p>Modern React relies on <strong>hooks</strong> like:</p><ul><li>useState for state management</li><li>useEffect for side effects like API calls</li></ul><p>Hooks replace older class-based lifecycle methods and make code simpler.</p><h3>12. Avoid jQuery and Direct Bootstrap JavaScript</h3><p>React manages the DOM internally. Using jQuery can cause conflicts.</p><p>Instead:</p><ul><li>Use React-based UI libraries</li><li>Or utility-first CSS frameworks like Tailwind CSS</li></ul><h3>Conclusion</h3><p>Converting an HTML template into React is <strong>not just syntax conversion</strong>. It requires a shift in thinking:</p><ul><li>From pages to components</li><li>From DOM manipulation to state</li><li>From static UI to dynamic rendering</li></ul><p>By following these principles, you can build <strong>clean, scalable, and professional React applications</strong>.</p><h3>👩‍💻 About the Author</h3><p>A passionate learner exploring <strong>React, JavaScript, and Frontend Development</strong>, sharing simple explanations for beginners.</p><p>If you want, I can:</p><ul><li>Optimize this for <strong>SEO on Medium</strong></li><li>Add <strong>code snippets</strong></li><li>Rewrite it in <strong>simpler English or Tamil-English mix</strong></li></ul><p>Just say 😊v</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1149ef24bdc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Document Object Model (DOM)]]></title>
            <link>https://medium.com/@dilacshikapooja/document-object-model-dom-e2f008600771?source=rss-e635c8f1bf9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2f008600771</guid>
            <dc:creator><![CDATA[DILACSHIKA SOORIYAKUMARAN]]></dc:creator>
            <pubDate>Wed, 10 Dec 2025 15:02:42 GMT</pubDate>
            <atom:updated>2025-12-10T15:02:42.624Z</atom:updated>
            <content:encoded><![CDATA[<p>The <strong>Document Object Model</strong> (<strong>DOM)</strong>connects web pages to scripts or programming languages by represnting the structure of a document — such as the HTML representing a web page — in memory. Usually it refers to JavaScript, even though modeling HTML, SVG, or XML documents as objects are not part of the core JavaScript language.</p><p>The DOM represents a document with a logical tree. Each branch of the tree ends in a node, and each node contains objects. DOM methods allow programmatic access to the tree. With them, you can change the document’s structure,style, or content.</p><p>Nodes can also hahandlers attached to them. Once an event is triggered, the event handlers get executed.The Document Object Model (DOM) is a programming interface for web documents. It represents the page so that programs can change the document structure, style, and content. The DOM represents the document as nodes and objects; that way, programming languages can interact with the page.</p><p>A web page is a document that can be either displayed in the browser window or as the HTML source. In both cases, it is the same document but the Document Object Model (DOM) representation allows it to be manipulated. As an object-oriented representation of the web page, it can be modified with a scripting language such as JavaScript.</p><p>For example, the DOM specifies that the query Selecter All method in this code snippet must return a list of all the &lt;p&gt; elements in the document:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*AWIGI24nRrJlIJhRlaktuw.png" /></figure><p>All of the properties, methods, and events available for manipulating and creating web pages are organized into objects. For example, the document object that represents the document itself, any table objects that implement the HTML Table Element DOM interface for accessing HTML tables, and so forth, are all objects.</p><p>The DOM is built using multiple APIs that work together. The core DOM defines the entities describing any document and the objects within it. This is expanded upon as needed by other APIs that add new features and capabilities to the DOM. For example, the <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API">HTML DOM API</a> adds support for representing HTML documents to the core DOM, and the SVG API adds support for representing SVG documents.</p><h3>Element Selection</h3><p>Before any manipulation can occur, the desired element must be accurately located within the expansive DOM tree. The most essential methods for selection prioritize speed and specificity.</p><p>The most precise and quick method is document.getElementById, which leverages the unique id to return a single element object. For more versatile targeting, document.query Selector and document.query SelectorAll are indispensable. These methods accept standard CSS selectors, allowing developers to target elements based on classes, tags, attributes, and relationships. While query Selector returns only the <em>first</em> matching element,query SelectorAll returns a static Nodelist, enabling batch operations across multiple elements—a cornerstone of modern, efficient DOM scripting.</p><h3>2. The Core: Content and Structure Manipulation</h3><p>Once an element is selected, developers primarily focus on altering its appearance, content, or position.</p><h4>Content Modification</h4><p>The two most common properties for content management are element.innerHTML and element.innerHTML. The former allows retrieval or insertion of the complete HTML structure <em>within</em> an element, making it ideal for injecting complex, styled content. However, for security (to prevent Cross-Site Scripting, or XSS) and performance, setting the text using element.textCounder is preferred when dealing purely with string data.</p><h4>Attribute and Class Management</h4><p>To change an element’s functional properties or its visual styling hook, methods dealing with attributes and classes are key.</p><p>element.setAttribute(name,value) and element.getAttribute(name) provide programmatic control over standard attributes like src,href, or dataattributes. For styling, manipulating the class attribute is standard practice. The element.classlist API, specifically methods like .add,remove and .toggle, offers a clean, efficient way to switch between CSS styles, driving interactive state changes on the page.</p><h3>3. The Builder: Dynamic Element Creation</h3><p>Creating entirely new elements is fundamental to building dynamic user interfaces, such as adding items to a shopping cart or new rows to a data table. This process generally involves three steps: creation, configuration, and insertion.</p><ol><li><strong>Creation:</strong> document.createElement instantiates a new, unattached element node (e.g., a &lt;div&gt; or &lt;li&gt;).</li></ol><p><strong>2.Configuration:</strong> Attributes, content, and classes are added to the new element using the methods discussed above.</p><p><strong>3.Insertion:</strong> The new element is connected to the DOM tree using parent.appenchild to add it to the end of a list of children) or parentNode.insertbefore to place it at a specific position). Complementing these, parentNode.removechild is used to prune the tree, effectively deleting elements from the rendered page.</p><h3>4. The Interaction Point: Event Handling</h3><p>The DOM provides an event system that allows JavaScript to listen for and respond to user interactions (clicks, key presses, form submissions) or browser events (loading, resizing). The primary method for wiring this interaction is element.addEventListener ,listenerFunction. This non-destructive method allows multiple handlers to be attached to a single event on a single element. Paired with its counterpart, element.removeListener , this system provides robust, flexible control over application behavior, making elements reactive and interactive.</p><p>In conclusion, the DOM is the functional bridge between HTML structure and JavaScript logic. The essential methods — from querySelector for pinpointing elements, to .classlist.toggle for managing presentation, to create element for dynamic construction, and addEventListener for handling user input—form a complete ecosystem. Mastery of this essential toolkit empowers developers to create sophisticated, responsive, and truly dynamic web experiences, transcending the limits of static page design.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2f008600771" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is the technology behind face unlocking in smartphones?]]></title>
            <link>https://medium.com/@dilacshikapooja/what-is-the-technology-behind-face-unlocking-in-smartphones-afc599624d1f?source=rss-e635c8f1bf9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/afc599624d1f</guid>
            <dc:creator><![CDATA[DILACSHIKA SOORIYAKUMARAN]]></dc:creator>
            <pubDate>Thu, 04 Dec 2025 16:36:34 GMT</pubDate>
            <atom:updated>2025-12-04T16:36:34.872Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*IhGPeevjUR0B-rKt.jpg" /></figure><p>Modern smartphones’ face unlocking technology is a sophisticated biometric authentication system that combines cutting-edge hardware sensors with complex software algorithms, usually utilising machine learning (Deep Learning).</p><p>Face unlock technology comes in two primary varieties, 2D (Less Secure) and 3D (Highly Secure), each with significantly different security levels.</p><p>Extremely Secure 3D Face Unlock (like Apple Face ID)<br> This technique is the safest since it can differentiate between a photograph or mask and a real, live face. It relies on dedicated hardware to map the depth and contour of the user’s face.</p><h4>Key Hardware Components (TrueDepth Camera System)</h4><p><strong>1.Flood Illuminator</strong> :Shines an invisible <strong>infrared (IR) light</strong> onto the face. This ensures the system works perfectly in complete darkness or bright light, independent of visible light conditions.</p><p><strong>2.Dot Projector:</strong> Projects a grid of tens of thousands of invisible IR dots onto the user’s face. This grid pattern acts as a ruler, allowing the system to measure distances across the face.</p><p><strong>3.Infrared Camera:</strong> Reads the distortion of the projected dot pattern. By analyzing how the grid is warped across the user’s face, the camera captures a detailed <strong>3D depth map</strong> of the facial geometry.</p><h3>The Software Process:</h3><ol><li><strong>3D Depth Mapping:</strong> The depth map and IR image are captured.</li></ol><p><strong>2.Feature Extraction:</strong> A dedicated neural engine (a part of the processor) uses deep learning algorithms to analyze the 3D map, identifying unique facial landmarks (e.g., the distance between the eyes, the depth of the eye sockets, the shape of the jaw).</p><p><strong>3.Template Creation:</strong> These landmarks are converted into a unique <strong>mathematical representation</strong> (a “faceprint” or template). This encrypted data is stored only in a highly protected area of the phone’s chip called the <strong>Secure Enclave</strong>.</p><p><strong>4.Verification:</strong> When you try to unlock the phone, the system generates a new faceprint and compares it to the stored template. If they match within a high tolerance, the device unlocks.</p><p><strong>5.Liveness &amp; Attention Check:</strong> These systems often include “Attention Awareness”,which requires your eyes to be open and looking at the device to prevent involuntary unlocks or being unlocked while sleeping.</p><h3>2. Standard 2D Face Unlock (Less Secure)</h3><p>This simpler and cheaper method is used in many mid-range and budget smartphones.</p><h4>Key Hardware &amp; Software</h4><p><strong>Standard Front-Facing Camera:</strong> Captures a regular 2D image of the user face.</p><p><strong>Software Algorithm:</strong> Uses simple image processing and machine learning to analyze the flat image.</p><p><strong>The Process:</strong></p><ol><li>The camera captures a 2D image.</li></ol><p>2.The software identifies <strong>nodal points</strong> (e.g the corners of the eyes, the tip of the nose) and calculates the <strong>relative positions and distances</strong> between them.</p><p>3.This data is converted into a 2D mathematical template and stored.</p><p>4.At unlock a new 2D image is captured, a new template is generated, and if it matches the stored template, the device unlocks.</p><h4>Security Limitation:</h4><p>Since it only analyzes a flat image, this method is vulnerable to “spoofing” it can often be tricked by a high-resolution photo or video of the owner. This is why 3D systems are considered truly secure for payment and app authentication.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=afc599624d1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is CAPTCHA?]]></title>
            <link>https://medium.com/@dilacshikapooja/what-is-captcha-85323e560a1e?source=rss-e635c8f1bf9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/85323e560a1e</guid>
            <dc:creator><![CDATA[DILACSHIKA SOORIYAKUMARAN]]></dc:creator>
            <pubDate>Thu, 04 Dec 2025 16:05:33 GMT</pubDate>
            <atom:updated>2025-12-04T16:05:33.216Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*OcvGduFjztfLk4pz.jpg" /></figure><p>CAPTCHA stands for “Completely Automated Public Turing Test to tell Computers and Humans Apart.” It is a test or challenge designed to distinguish human users from bots by presenting simple tasks for humans that are difficult for automated systems to solve. CAPTCHAs are widely used across the internet to protect websites from bots that could engage in harmful activities, such as account creation, content spamming, or even hacking.</p><p>CAPTCHA was coined in 2000 by a group of researchers at Carnegie Mellon University, led by Luis von Ahn. At its core, CAPTCHA leverages the differences in cognitive abilities between humans and machines, making it difficult for a bot to bypass the challenge.</p><p>CAPTCHA remains an essential tool in the fight against bots and automated cyberattacks, helping secure websites and online services. However, as artificial intelligence continues to advance, the arms race between CAPTCHA developers and bot creators will likely persist.</p><p>While traditional CAPTCHA methods like text and image-based challenges are still in use, modern systems like reCAPTCHA and behavioral analysis have emerged as more sophisticated and user-friendly alternatives. Balancing security, user experience, and accessibility will be key as CAPTCHA technology continues to evolve.</p><h4>Why CAPTCHA Is Used?</h4><ul><li><strong>Preventing Automated Attacks:</strong> Bots are often used to carry out malicious activities like spamming, brute-force attacks, or overloading servers through Distributed Denial of Service (DDoS) attacks. CAPTCHA mitigates these threats by ensuring that only legitimate human users can interact with critical areas of a site.</li><li><strong>Improving Data Integrity:</strong> Whether in online polls, user registrations, or contact forms, CAPTCHA ensures the input is genuine and not automatically generated by scripts or bots. This leads to more reliable data.</li><li><strong>Blocking Unwanted Access:</strong> CAPTCHA prevents bots from overwhelming sensitive areas of a website (such as login pages or sections requiring personal data) or accessing restricted content.</li></ul><h3>How CAPTCHA Works</h3><p>The basic premise of CAPTCHA is to create a task that requires human cognitive ability while being difficult for machines to interpret or solve. These tasks usually involve visual or auditory components. CAPTCHAs are based on the following steps:</p><ol><li><strong>Challenge Generation:</strong> When a user visits a website, a CAPTCHA challenge is generated and presented. This challenge could be in the form of distorted text, a sequence of images, or a puzzle.</li><li><strong>Human Interaction:</strong> The user interacts with the CAPTCHA by solving the challenge. For example, they may need to identify particular objects in images, type distorted text, or complete a task like dragging a slider.</li><li><strong>Validation:</strong> Once the user submits their response, the system checks if the input matches the expected answer. If it does, the system deems the user human and grants access to the website or resource. If not, it may prompt the user to try again.</li><li><strong>Bot Prevention: </strong>A bot attempting to access the site typically fails the CAPTCHA challenge because most bots cannot perform the required cognitive tasks.</li></ol><h4>Types of CAPTCHA</h4><p>Over time, CAPTCHA systems have evolved to keep pace with AI and machine learning advancements. The early versions of CAPTCHA were mainly text-based, but as bots became more sophisticated, CAPTCHA systems evolved. Today, several CAPTCHAs are designed to thwart different types of bot attacks.</p><h4>Text-based CAPTCHA</h4><p>Text-based CAPTCHAs are the earliest and most widely recognized form. This approach displays a random sequence of letters and numbers in a distorted, noisy image. The user must decipher the distorted text and input it into a form.</p><ul><li><strong>How it works:</strong> The CAPTCHA distorts the text in ways that make it difficult for character-recognition algorithms to correctly identify the letters and numbers, but humans can still read them with relative ease.</li><li><strong>Limitations:</strong> With the advancement of <a href="https://aws.amazon.com/what-is/ocr/">optical character recognition (OCR)</a> software and machine learning algorithms, bots have become better at solving these CAPTCHA challenges and have developed more complex CAPTCHA types.</li></ul><h4>Image based CAPTCHA</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*frDwvWO3o2oCIba5.jpg" /></figure><p>imaage d based CAPTCHAs involve asking the user to identify images that contain specific objects, such as selecting all pictures that contain cars, street signs, or trees. This type of CAPTCHA is more intuitive for humans, as it leverages human visual perception.</p><ul><li><strong>How it works:</strong> A grid of images is presented, and the user must select images that match the given criteria. The complexity arises from the fact that bots struggle to accurately recognize objects in images due to the variability of images and objects in the real world.</li><li><strong>Examples:</strong> <a href="https://www.google.com/recaptcha/about/">Google’s reCAPTCHA</a> (more on this later) is a common example that uses image-based challenges.</li><li><strong>Limitations:</strong> As AI image recognition has improved, this type of CAPTCHA may also be susceptible to advanced bots capable of identifying objects.</li></ul><h4>Limitations and Challenges of CAPTCHA</h4><p>Despite its effectiveness, CAPTCHA has several limitations and challenges:</p><ol><li><strong>User Experience:</strong> <a href="https://www.anura.io/blog/captchas-hurt-user-experience-seamless-ad-fraud-detection">CAPTCHAs can frustrate users</a>, especially if they are too difficult or appear too frequently. This can lead to a poor user experience, particularly on mobile devices where small screens and touch controls make interacting with CAPTCHAs harder.</li><li><strong>Accessibility Issues:</strong> CAPTCHAs often present difficulties for users with disabilities, particularly visual impairments. While audio-based CAPTCHAs exist, they can also be hard to use due to background noise or poor audio quality.</li><li><strong>Advanced Bots:</strong> As mentioned earlier, advancements in machine learning and AI have enabled bots to solve many traditional CAPTCHA challenges. This means CAPTCHA systems must continuously evolve to remain effective.</li><li><strong>Privacy Concerns:</strong> Some CAPTCHA systems, particularly those that analyze user behavior, raise privacy concerns as they track and analyze user interactions. Users may be uncomfortable with the level of data collection involved in such systems.</li></ol><h4>Solving CAPTCHA</h4><p>There are many different ways to solve CAPTCHAs, and we won’t cover them all here. Some of the methods include:</p><ol><li><strong>Manual Input</strong>: The most straightforward method where a human solves the CAPTCHA by visually identifying characters, images, or patterns and manually entering the answer.</li><li><strong>CAPTCHA Solvers</strong>: These are automated services or APIs designed to solve CAPTCHAs. Users can send the CAPTCHA to the service, which returns the correct answer. Popular services include Bright Data, 2Captcha, Anti-Captcha, and DeathByCaptcha. Visit <a href="https://medium.com/@datajournal/best-captcha-solving-tools-b5af8e6e1e94">my list of the best CAPTCHA solvers</a> to find the perfect solution.</li><li><strong>OCR (Optical Character Recognition) Tools</strong>: Using OCR technology, these tools can analyze and recognize the text or characters presented in image-based CAPTCHAs and automatically enter the correct response.</li><li><strong>AI/ML Models</strong>: Machine learning models trained to recognize CAPTCHA patterns and solve them automatically. These models are often built to handle common CAPTCHA formats like reCAPTCHA or text-based CAPTCHAs.</li><li><strong>Browser Automation</strong>: Tools like Puppeteer or Selenium can be integrated with CAPTCHA-solving services to automate the process of identifying and solving CAPTCHAs during web scraping or data collection tasks.</li><li><strong>Human CAPTCHA Solving Services</strong>: Outsourcing CAPTCHA solving to human workers who solve the CAPTCHAs manually. These services are typically used for high-accuracy needs and are cost-effective for large volumes of CAPTCHAs.</li><li><strong>Bypassing with Cookies or Tokens</strong>: In some cases, it’s possible to bypass CAPTCHA requirements by using session cookies or obtaining tokens from legitimate users, thus avoiding solving the CAPTCHA altogether.</li><li><strong>reCAPTCHA v3 Bypass</strong>: reCAPTCHA v3 doesn’t display challenges but rates user behavior to detect bots. Solutions involve mimicking human-like behavior to get low risk scores and bypass the CAPTCHA without direct solving.</li><li><strong>Proxy Rotation and IP Management</strong>: Using <a href="https://medium.com/@datajournal/best-rotating-proxies-tested-303539da1e2a">rotating proxies</a> and managing IP addresses to avoid triggering CAPTCHAs in the first place, minimizing the need for CAPTCHA solving.</li><li><strong>Image Recognition Algorithms</strong>: For image-based CAPTCHAs (e.g., selecting traffic lights or buses), advanced image recognition algorithms can be trained to recognize objects in CAPTCHA images and select the correct ones.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85323e560a1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>