<?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 Sumit sinha on Medium]]></title>
        <description><![CDATA[Stories by Sumit sinha on Medium]]></description>
        <link>https://medium.com/@sumit07sinha?source=rss-12da6fd3e17c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xBoZuj7OFNECkRipE58IlQ.jpeg</url>
            <title>Stories by Sumit sinha on Medium</title>
            <link>https://medium.com/@sumit07sinha?source=rss-12da6fd3e17c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:35:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sumit07sinha/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[FrontEnd System Design Interview Guide]]></title>
            <link>https://medium.com/@sumit07sinha/frontend-system-design-interview-guide-a5bcd3d837f7?source=rss-12da6fd3e17c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5bcd3d837f7</guid>
            <category><![CDATA[frontend-interviews]]></category>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Sumit sinha]]></dc:creator>
            <pubDate>Fri, 04 Oct 2024 12:54:08 GMT</pubDate>
            <atom:updated>2024-10-04T12:54:08.052Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ojkf3Rg5BSv8z8coSjM2tg.png" /><figcaption>FrontEnd System Design</figcaption></figure><p>System design interviews are open-ended and involve designing software solutions for vague problems, requiring collaboration with the interviewer to devise an appropriate system architecture. <br>Unlike coding or quiz questions, there are no definite right answers, and the process mirrors technical design documentation in real-world engineering projects. Let’s talk about <strong>RADIO </strong>framework.</p><p>The <strong>RADIO</strong> framework offers a structured approach to front-end system design interviews, helping you navigate the process effectively. A well-organized response can significantly improve your chances of success, and the <strong>RADIO</strong> method provides a clear path to follow.</p><p>In front-end system design interviews, you’re typically asked to design a “product”. Using the RADIO framework, you can break down your solution into five key areas:</p><p><strong>Requirements Exploration </strong>: <br>Begin by fully understanding the problem. Ask clarifying questions to determine the scope, ensuring you grasp both functional and non-functional requirements.</p><p>Divide the requirements into <strong>functional</strong> and <strong>non-functional.<br>Functional requirements</strong> are the essential features a product needs to function correctly, focusing on enabling users to complete core tasks.</p><p><strong>For example,</strong> if you were asked to design a platform like <strong>Medium</strong>, key functional requirements would include the Sign-up/Login flow, Roles &amp; Permissions/User Profiles, a rich text editor for writing, trending &amp; popular Articles page, interaction section(includes comments, claps etc.), a navigation bar, and a search bar.</p><p><strong>Non-functional requirements</strong>, on the other hand, enhance the product&#39;s quality but are not critical for its basic usability. These include factors like performance (page load speed, interaction responsiveness), scalability (handling large amounts of data), SEO and user experience. While non-functional requirements improve the product, it can still operate without them.</p><p><strong>Architecture/High-Level Design</strong>: <br>Identify and outline the key components of the product, establishing how they interact and relate to each other at a system level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C3PvM0bvf2d3Iucpq9Lvfg.png" /><figcaption>Medium Architecture Flow</figcaption></figure><p><strong>Data Model</strong>: <br>Define the key data entities, their attributes, and which components they belong to, ensuring clarity on how data flows through the system.</p><ol><li><strong>Data to be persisted</strong>: This includes user input, such as data entered in form fields, which eventually needs to be sent to the server and stored in a database.</li><li><strong>Ephemeral data</strong>: Temporary information, like form validation status, the current tab, or whether a section is expanded, which doesn’t need to be saved and can be discarded when the browser is closed.</li></ol><p>When identifying data fields, it’s important to specify whether each is server-originated or client-only.</p><p><strong>Interface Definition (API)</strong>: <br>Specify the APIs between components, detailing their functionality, parameters, and expected responses. This step is critical for defining how different parts of the product will communicate.</p><p><strong>Optimizations and Deep Dive</strong>: <br>Discuss opportunities for optimization and explore areas of the design that require extra focus, such as performance improvements, security considerations, or scalability.</p><p>By following this framework, you can systematically address the important aspects of front-end system design and provide a well-rounded solution in your interviews.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5bcd3d837f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Frontend: 5 Game-Changing Tools to Revolutionize Your Development Workflow!]]></title>
            <link>https://medium.com/@sumit07sinha/frontend-5-game-changing-tools-to-revolutionize-your-development-workflow-dd45b3dcbf9b?source=rss-12da6fd3e17c------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd45b3dcbf9b</guid>
            <category><![CDATA[front-end-developer]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Sumit sinha]]></dc:creator>
            <pubDate>Sun, 21 Apr 2024 14:02:53 GMT</pubDate>
            <atom:updated>2024-04-21T14:07:08.048Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><a href="https://bundlephobia.com/">Bundlephobia </a>:-<br>BundlePhobia is an indispensable resource for frontend developers seeking to gauge the impact of adding npm packages to their projects. With its intuitive interface, BundlePhobia empowers developers to assess the size of npm packages and understand their potential impact on bundle size. By querying package sizes, developers can make informed decisions about which dependencies to include, optimizing performance and load times. Additionally, BundlePhobia provides insights into tree-shaking support within packages, offering guidance on further reducing import costs by eliminating unused code. With BundlePhobia integrated into the development workflow, frontend developers can efficiently manage dependencies and create leaner, more efficient applications.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f9Ix-H7cfIgqS3HPYdZDpg.png" /><figcaption>Husky Minified and Gzipped Bundle Size</figcaption></figure><blockquote><a href="https://caniuse.com/">Caniuse</a>:- <br>Caniuse is an invaluable tool for web developers seeking to ensure cross-browser compatibility for their projects. With its user-friendly interface, Caniuse presents a clear and concise chart that highlights the compatibility of various web technologies with specific browsers. This allows developers to make informed decisions during the design and development phases, ensuring that chosen technologies are supported across the targeted browser landscape. By referencing Caniuse, developers can identify potential compatibility issues early in the process and implement appropriate fallbacks or polyfills to ensure a seamless user experience. Ultimately, Caniuse empowers developers to create websites and applications that perform optimally across a wide range of browsers, enhancing usability and accessibility for all users.</blockquote><figure><img alt="WebP supported browsers" src="https://cdn-images-1.medium.com/max/1024/1*jK8qHWOupY8RPxry9hCWxg.png" /><figcaption>WebP Image Support on browsers</figcaption></figure><blockquote><a href="https://pagespeed.web.dev/">PageSpeed Insights</a> :-<br>PageSpeed Insights is a vital tool for frontend developers, providing actionable insights into website performance and optimization opportunities. By analyzing web pages, it offers suggestions to improve load times and overall user experience. Frontend developers can leverage PageSpeed Insights to identify performance bottlenecks, such as render-blocking resources or large image sizes, and optimize their code accordingly. Its detailed reports enable developers to prioritize optimizations, ensuring faster loading times and better search engine rankings. With PageSpeed Insights integrated into the development process, frontend developers can create websites that deliver an exceptional user experience across devices and network conditions.<br>PSI provides both lab and field data about a web page. Lab data is useful for debugging issues, as it is collected in a controlled environment. However, it may not capture real-world bottlenecks. Field data is useful for capturing true, real-world user experience — but has a more limited set of metrics.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EPcXaGDYnwbrBaZVV7ZpxA.png" /><figcaption>Core Web Vitals for google.com</figcaption></figure><blockquote><a href="https://responsively.app/">Responsively</a> <br>Resposnively is a frontend development tool that lets developers preview how their website would look on multiple devices and screen sizes, in one screen.<br>It comes with features like real-time mirror interactions, customisable layouts, in-built elements inspector, hot reloading and device profiles, etc. which makes it a really great choice for a debugging tool.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vfvIQnIv0oohI0ZlgTo4XA.png" /><figcaption>Representing same website on multiple devices</figcaption></figure><blockquote>Postman:-<br>Postman is a collaborative and scalable API development platform offering a seamless solution for API integration, testing, documentation, and collaboration. It simplifies the process of testing API endpoints, creating and managing mock servers, and automating test suites, ensuring that frontend components interact correctly with backend services. With its comprehensive documentation features, Postman enables developers to generate detailed API documentation, facilitating smoother integration and understanding of APIs. Additionally, its collaboration capabilities streamline team communication and sharing of collections, environments, and test scripts. Integrated into CI/CD pipelines, Postman automates API testing, ensuring the quality and reliability of frontend applications throughout the development lifecycle.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mVliNUWWAPJUFjH-e1qhAA.png" /><figcaption>Postman UI for testing APIs</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd45b3dcbf9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SEO(Search Engine Optimisation)]]></title>
            <link>https://medium.com/@sumit07sinha/seo-search-engine-optimisation-45d954dcf58?source=rss-12da6fd3e17c------2</link>
            <guid isPermaLink="false">https://medium.com/p/45d954dcf58</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[search-engine-optimizati]]></category>
            <category><![CDATA[seo]]></category>
            <dc:creator><![CDATA[Sumit sinha]]></dc:creator>
            <pubDate>Thu, 14 Sep 2023 11:51:50 GMT</pubDate>
            <atom:updated>2023-09-14T11:51:50.913Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*-EVpL8dJdfos_eP7L3pbpw.png" /><figcaption>SEO</figcaption></figure><h3>What is SEO?</h3><p>To understand what SEO is, it’s necessary to know how search engines like Google, Bing, and others work. How do they determine their search rankings?</p><p>A search engine like Google, indexes web pages (if not otherwise determined).</p><p>Once we create a website, search engine bots crawl our website to understand the information it contains and index it accordingly, so that it appears in related search results. Search engine bots can now understand contextualized information (text, structure, and non-text content) on your website and index based on different factors, such as relevance and authority.</p><p>This is where search engine optimization comes into play. SEO refers to the process of making your site better for search engines. It’s about optimizing websites so that search engines understand relevance value and rank it accordingly on search.</p><p><strong>Search Engines index pages</strong>, not our website as a whole. This means that our SEO work should be done page by page rather than for the overall website.</p><h3>Why is SEO important?</h3><p>SEO helps in increasing organic traffic on platforms. It creates trust in the users&#39; minds if your website is listed in the first fold of the search results. It reduces the marketing cost of websites for promotions.</p><h3>Ways to Improve your site’s ranking (SEO)</h3><h4>1. Publish Relevant, Authoritative Content</h4><p>Quality, authoritative content is the number one driver of our <strong>search engine rankings</strong> and there is no substitute for great content.</p><h4>Keyword Research</h4><p>Keyword Research has dual benefits. First, by discovering and organizing relevant search queries, we’ll understand the words and phrases consumers use to find our products. You can then use those keywords in URL descriptions, titles, and posts — all to improve your organic search rankings.</p><h4>Placing Keywords</h4><p>Once your keyword phrase is chosen for a given page, consider using that:</p><ol><li>as a part or all of the keyword phrase in the page URL.</li><li>as a part or all of the keyword phrase in the page title or description.</li><li>as a part or all of the keyword phrases throughout the page headings and subheadings.</li></ol><p>This can improve your search engine ranking. Be <strong>natural and user-friendly</strong>, though. For instance, you do not want the word “engineering” to show up three or more times in the URL or have the phrase Northern Lights repeated in the page title and also <em>every</em> heading. Readability and usability still trump search engine optimization.</p><h4>Content</h4><p>Beyond page URLs, titles, and headings, <strong>content</strong> is most influential on search engine rankings. Repeat your keyword phrase several times throughout the page — once or twice in the opening and closing paragraphs, and two to four more times throughout the remaining content. Be authoritative. Strategically link to relevant sources and additional information — both within your organization&#39;s broad website and even to other websites that are useful.</p><p>There are quite a few free and freemium <a href="https://www.practicalecommerce.com/my-favorite-seo-keyword-tools">keyword research tools</a>.</p><p>URL structures also play a vital role in indexing.</p><h3>2. Update Content Regularly</h3><p>Regularly updated content is viewed as one of the best indicators of a site’s <strong>relevancy</strong>, so be sure to keep it fresh. You can write a job that runs once in 24 hours or based upon the frequency at which you want to update google with relevant data. This will update the search engines with relevant contents everyday and hence will help in building that trust to the model which will improve the indexing of website.</p><h3>3. Metadata</h3><p>When designing the website, each page contains a space between the &lt;head&gt; tags to insert metadata or information about the contents of the page.</p><h4>Title Metadata</h4><p><strong>Title metadata</strong> is responsible for the page titles displayed at the top of a browser window and as the headline within search engine results. It is the <em>most importan</em>t metadata on your page. This should be dynamic in nature and clearly state the purpose of the page.</p><h4>Description Metadata</h4><p><strong>Description metadata</strong> is the textual description that a browser may use in your page search return. Think of it as your site’s window display — a concise and appealing description of what is contained within, with the goal of encouraging people to enter. A good meta description will typically contain two full sentences. Search engines may not always use your meta description, but it is important to give them the option.</p><h4>Keyword Metadata</h4><p><strong>Keyword metadata</strong> is rarely if ever used to tabulate search engine rankings. However, if you know your keyword phrases, it doesn’t hurt to add them to your keyword metadata. A great example would be “good morning status” for the good morning pages of the Social Media Platform.</p><p>SEO Basic Intro:-<a href="https://developers.google.com/search/docs"> https://developers.google.com/search/docs</a></p><h3>4. Improve Click-throughs</h3><p>While keyword research identifies ranking opportunities, click-through optimization generates more traffic from <a href="https://www.practicalecommerce.com/increase-click-throughs-organic-search-listings">existing positions</a>.</p><p>The best-optimized click-through strategy is <a href="https://www.practicalecommerce.com/seo-drive-clicks-with-video-rich-snippets">rich</a> and <a href="https://www.practicalecommerce.com/structured-snippets-the-low-hanging-fruit-of-seo">structured</a> snippets. Both stand out on search engine result pages. They require minimum coding using<a href="http://schema.org/"> Schema.org</a> markup or similar. You have to inject a script tag of type=”application/ld+json”.</p><h3>5. Use alt tags</h3><p>Always describe your image and video media using <a href="https://www.mtu.edu/accessibility/training/images/">alt tags</a>, or alternative text descriptions. They allow search engines to locate your page, which is crucial — especially for those who use text-only browsers or screen readers.</p><h3>Good reads:-</h3><p><a href="https://www.seroundtable.com/">https://www.seroundtable.com/</a></p><p>Sitemaps Intro:-<a href="https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview"> https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview</a></p><p>Examples of good static sitemaps:-<a href="https://sharechat.com/sitemaps/static-sitemap.xml"> https://sharechat.com/sitemaps/static-sitemap.xml</a></p><p>Structured data markup:-<a href="https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data"> https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45d954dcf58" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is XSS? How can we avoid XSS attacks on our web applications?]]></title>
            <link>https://medium.com/@sumit07sinha/what-is-xss-how-can-we-avoid-xss-attacks-on-our-web-applications-e28962e166b1?source=rss-12da6fd3e17c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e28962e166b1</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[xss-vulnerability]]></category>
            <dc:creator><![CDATA[Sumit sinha]]></dc:creator>
            <pubDate>Wed, 06 Sep 2023 18:09:00 GMT</pubDate>
            <atom:updated>2023-09-07T05:55:48.536Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*APACpig5Y2eQrbJ3MOHbPw.png" /></figure><p>Cross-site scripting, commonly referred to as XSS occurs when hackers execute malicious JavaScript within a victim’s browser. Attackers inject their code into a web page, typically accomplished by exploiting a vulnerability in the website’s software, they can then inject their script, which is executed by the victim’s browser.</p><p>As per the Open Web Application Security Project (OWASP), around <strong>65%</strong> of websites are exposed to XSS vulnerabilities.</p><h4>Types of XSS</h4><ul><li><strong>Stored XSS:-</strong> Code that executes attacker’s scripts is persisted(you are adding something to the database, for ex:- you have an input field in your website where you want to take the user’s account name and hackers can add a malicious script in it)</li><li><strong>Reflected XSS:- </strong>Transient response from the server causes the script to execute.</li><li><strong>DOM-Based XSS:-</strong> No server is involved in this, pass code through query params, URLs, etc.</li><li><strong>Blind XSS:- </strong>Exploits vulnerability in another app (i.e. log-reader), that the attacker can’t see or access under normal means.</li></ul><h4><strong>Why should we prevent XSS attacks on our websites?</strong></h4><ul><li><strong>Avoid Phishing Attacks:-</strong> All consumer-facing apps and internal tools can be easily exposed by hacker attacks and one loophole in the system can lead to phishing.</li><li><strong>Data-breach:- </strong>Customers<strong>’</strong>/Clients’ data can be easily exposed to the outside world which will have an impact on the trust and safety of the organization.</li><li><strong>Company’s Reputation:- </strong>This has a serious impact on the company’s reputation, which will impact the website’s DAU (Daily Active Users).</li></ul><h4><strong>How can we avoid XSS?</strong></h4><ul><li><strong>URL Request Sanitisation (SSR):- </strong>Requests coming on the server from the client’s browser need to be sanitized from executing script tags. We can create a middleware that will intercept all the requests coming from client browsers to the server and if in case it finds it malicious it will block the user from accessing the website.</li><li><strong>CSP(Content Security Policy):- </strong>It works by restricting the resources (such as scripts and images) that a page can load and restricting whether a page can be framed by other pages.<br>For ex:- If we expect the network request of any website we will find the below screenshot.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/0*kmCRxW0DdAB2wMP8" /><figcaption>This is Facebook Content-Security-Policy</figcaption></figure><ul><li><strong>Sanitising QueryParams:- </strong>Always have a check to sanitize query params while reading and executing it on the client side browser.<br>For ex:- www.example.com?query=&lt;script&gt;{console.log(“hello world”)}&lt;/script&gt;. This query param can be sanitized at the client side application before using it for operating. We can write a simple sanitize function where we can pass the query param and it will return sanitized query params which will not contain a script tag for execution.</li><li><strong>Input Sanitisation:- </strong>Client-side inputs need to be sanitized before rendering/sending it to the server.<br>Forex:- A client-side application can have a form or any input section to get the input from the user. So while sending it to the server the first check should be applied at the client side where sanitised input will be sent to the server to perform CRUD operations.</li><li><strong>DOM Sanitisation:- </strong>This is a vast step where we can<strong> </strong>sanitize the entire DOM for external static HTML. I will add a detailed methodology to sanitize the DOM.</li></ul><h4><strong>Available Solutions:-</strong></h4><ul><li>Most modern frameworks already provide encoded variables to prevent XSS but some gaps can be easily exploited by hackers.</li><li>Latest Browsers also provide securities for XSS attacks but it’s easily breachable by using interceptors (for ex:- Burp-suite).</li><li>There are multiple global cloud service providers (e.g.:- Cloudflare) which protect us from XSS attacks but it comes with a subscription plan.</li><li>Open Web Application Security Project (OWASP) provides security guidelines that could help protect our websites from security threats but heavily depends on developer understanding and implementation.</li></ul><p>In the end, you can use the above steps to sanitize and protect your client-side web applications from XSS attacks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e28962e166b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>