<?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 Kumilachew Getie on Medium]]></title>
        <description><![CDATA[Stories by Kumilachew Getie on Medium]]></description>
        <link>https://medium.com/@kumilachew1212?source=rss-5ee16b4f473c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pU0_NeTP4r7L5PxnrvPK_Q.png</url>
            <title>Stories by Kumilachew Getie on Medium</title>
            <link>https://medium.com/@kumilachew1212?source=rss-5ee16b4f473c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 10:54:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kumilachew1212/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How Does a Single-Page App Work?]]></title>
            <link>https://medium.com/@kumilachew1212/how-does-a-single-page-app-work-4130bc6718b9?source=rss-5ee16b4f473c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4130bc6718b9</guid>
            <dc:creator><![CDATA[Kumilachew Getie]]></dc:creator>
            <pubDate>Wed, 15 Nov 2023 14:12:35 GMT</pubDate>
            <atom:updated>2023-11-15T14:12:35.828Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. 1 Before Single-Page Apps</h3><p>Before the advent of modern JavaScript frameworks, most websites were implemented as multi-page applications. That is, when a user clicks on a link, the browser navigates to a new webpage, sends a request to the web server; this then responds with the full webpage and the new page is displayed in the browser.</p><p>This can make your application resource intensive to the Web Server. CPU time is spent rendering dynamic pages and network bandwidth is used sending entire webpages back for every request. If your website is complex, it may appear slow to your users, even slower if they have a slow or limited internet connection.</p><p>To solve this problem, many web developers develop their web applications as Single Page Applications.</p><h3>1. 2 Single-Page Apps?</h3><p>You’re using many Single Page Applications every day. Think of your favorite social network, or online email provider, or the map application you use to find local businesses. Their excellent user experiences are driven by Single Page Applications.</p><p>A Single Page Application allows the user to interact with the website without downloading entire new webpages. Instead, it rewrites the current webpage as the user interacts with it. The outcome is that the application will feel faster and more responsive to the user.</p><p>When the user navigates to the web application in the browser, the Web Server will return the necessary resources to run the application. There are two approaches to serving code and resources in Single Page Applications.</p><ol><li>When the browser requests the application, return and load all necessary HTML, CSS and JavaScript immediately. This is known as <strong><em>bundling</em></strong>.</li><li>When the browser requests the application, return only the minimum HTML, CSS and JavaScript needed to load the application. Additional resources are downloaded as required by the application, for example, when a user navigates to a specific section of the application. This is known as <strong><em>lazy loading</em></strong> or <strong><em>code splitting</em></strong>.</li></ol><p>Both approaches are valid and are used depending on the size, complexity and bandwidth requirements of the application. If your application is complex and has a lot of resources, your bundles will grow quite large and take a long time to download — possibly ending up slower than a traditional web application!.</p><p>Once the application is loaded, all logic and changes are applied to the current webpage.</p><p>Let’s look at an example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nCSlqlZmr8sJI5p0" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WrWNlU85T1saI-Rx" /></figure><h3>2. Practical Differences Between Single-Page Apps and Multi-Page Apps</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L9-MpolS3mvNf7xP" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9CcrSQOA2eCYYnDm" /></figure><p>You have a web application that has a navigation bar on top and two pages. One page shows the latest news, and the other shows the current user’s profile page. The navigation bar contains a link for each page.</p><p>In a traditional website, when the user clicks the Profile link, the web browser sends the request to the web server. The web server generates the HTML page and sends it back to the web browser. The web browser then renders the new web page.</p><p>In a Single Page Application, different pages are broken into templates (or views). Each view will have HTML code containing variables that can be updated by the application.</p><p>The web browser sends the request to the web server, and the web server sends back a JSON object. The web browser then updates the web page by inserting the template with the variables replaced by the values in the JSON object.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4130bc6718b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Difference Between Real DOM and Virtual DOM]]></title>
            <link>https://medium.com/@kumilachew1212/the-difference-between-real-dom-and-virtual-dom-dbd24b82dee6?source=rss-5ee16b4f473c------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbd24b82dee6</guid>
            <dc:creator><![CDATA[Kumilachew Getie]]></dc:creator>
            <pubDate>Wed, 25 Oct 2023 11:32:38 GMT</pubDate>
            <atom:updated>2023-10-25T11:32:38.955Z</atom:updated>
            <content:encoded><![CDATA[<p>DOM stands for Document Object Model it is the structural representation of the HTML Document. Real DOM is the actual structure represented in the User Interface while Virtual DOM is the memory representation of the same. It is a tree-like Structure consisting of all nodes in an HTML document DOM represents the Ul of your applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*aCg8CqkoJf7YCu3d6Rt3-A.jpeg" /></figure><p><strong>Reconciliation:</strong> is the process of comparing the current Virtual DOM(VDOM) tree to the previous Virtual DOM(VDOM) tree and determining the minimal set of changes that need to be made to bring the two trees into sync.</p><p><strong>Diffing:</strong> is the process of comparing two Virtual DOM trees to determine the minimal set of changes that need to be made to update the Real DOM.</p><h3>Real DOM</h3><p>The Real DOM, also known as the actual DOM, is the browser’s representation of a web page’s HTML structure. It is a tree-like data structure that represents all of the elements on a web page, including their attributes, text content, and child elements.</p><p>The Real DOM is created when the browser parses the HTML code for a web page. Once the DOM is created, the browser uses it to render the page on the screen.</p><h4><strong>DOM Tips</strong></h4><ul><li>Real DOM is the actual structure of the webpage.</li><li>React Update complete document in the Real DOM.</li><li>React DOM is the actual webpage rendered on the browser any changes made directly reflect on the complete webpage.</li><li>The developer can modify the content of the document using a scripting language like JavaScript.</li><li>The changes and updates to the DOM are fast because of its tree-like structure but re-rendering whole documents makes the DOM Slow.</li><li>All UI components need to be re-rendered for every DOM update.</li></ul><h4><strong>Real DOM Drawbacks</strong></h4><ul><li><strong>Performance:</strong> Updating the Real DOM can be slow, especially for large and complex web pages. This is because every time the DOM is updated, the browser has to re-render the entire page.</li><li><strong>Complexity:</strong> Working directly with the Real DOM can be complex and error-prone. This is because the DOM is a low-level API that requires developers to understand the intricate details of how the browser works.</li><li><strong>Cross-browser inconsistencies:</strong> The Real DOM is implemented differently in different browsers. This can lead to inconsistencies in the way that web pages are rendered and can make it difficult to develop cross-browser compatible applications.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EQHhyoha0qQyMWoc7QWRLw.png" /><figcaption>Compare Real DOM and Virtual DOM</figcaption></figure><h4>What is Virtual DOM?</h4><p>The Virtual DOM (VDOM) is a lightweight representation of the Real DOM. It is created by a JavaScript library, such as React or Vue.js.</p><p>When the state of a React component changes, the library creates a new Virtual DOM tree. It then compares the new Virtual DOM tree to the old Virtual DOM tree to determine the minimal set of changes that need to be made to the Real DOM.</p><p>Once the library knows what changes need to be made, it updates the Real DOM in the most efficient way possible.</p><p>This process is much faster than re-rendering the entire page, which is why using a Virtual DOM can significantly improve the performance of a web application.</p><h4><strong>Benefits of using a Virtual DOM:</strong></h4><ul><li><strong>Improved performance:</strong> The Virtual DOM allows for more efficient updates to the Real DOM, which can lead to significant performance improvements, especially for large and complex web applications.</li><li><strong>Reduced boilerplate code:</strong> Virtual DOM libraries provide a number of abstractions that can reduce the amount of boilerplate code required to develop web applications.</li><li><strong>Enhanced maintainability:</strong> Virtual DOM libraries can make code more maintainable by encouraging developers to write declarative code that is easier to understand and debug.</li><li><strong>Improved cross-browser compatibility:</strong> Virtual DOM libraries can help to improve cross-browser compatibility by abstracting away the differences in how different browsers implement the Real DOM.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*um8tNe5sK64xmodFgtFtww.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbd24b82dee6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Writing an article]]></title>
            <link>https://medium.com/@kumilachew1212/writing-an-article-8668e9d83e8?source=rss-5ee16b4f473c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8668e9d83e8</guid>
            <dc:creator><![CDATA[Kumilachew Getie]]></dc:creator>
            <pubDate>Sat, 24 Sep 2022 07:44:29 GMT</pubDate>
            <atom:updated>2022-09-30T08:15:53.416Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Two key solutions to becoming a web developer</strong></h3><p>There are many hurdles we may face in learning web development and putting what we’ve learned into practice. Therefore, we must start our studies knowing that we may face these problems. As a web developer, I wanted to explain to you two of the main problems I faced when I was new to web development. If we don’t fix these scams early on, they can become a huge obstacle to our future web development dreams.</p><p>Some of the main challenges I faced when I started learning web programming were:</p><h3><strong>1. Inability to set goals clearly</strong></h3><p>First of all, it is important to set goals that are useful for understanding and implementing something. When I started, I tried to understand everything at once and in a short period of time. But I realized too late that this is a big problem. Because of this, I was able to go back and fix what I needed to fix and get back on the right path as a web developer. Therefore, when we start the web development course, it is appropriate to set a clear goal to turn our ideas into action so that they do not spread and expand. The goal can be divided into short-term and long-term. For example, a short-term goal is to know the basics of the language and clearly understand the syntax of the language; Enriching simple applications using the language is another, while long-term goals may include mastering the language and building complex applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*0QjoMQWVlp0jGlTT" /><figcaption>Set goals clearly</figcaption></figure><h3><strong>2. Inability to choose the right technology</strong></h3><p>In my opinion, the problem of most beginner developers is not being able to choose a programming language that they can easily understand and that is most in demand in the world of work. This can hinder their dream of becoming an influential web developers in the future. Therefore, it is appropriate to learn web development and understand what challenges we may face and how to solve the challenges we face in order to enter the world of technology.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P_YvREBUvtQtxouD.png" /><figcaption><em>Choose the right technology</em></figcaption></figure><p>In general, I believe setting short-term and long-term goals; Choosing the right and current programming language, and practicing it consistently are key solutions to emphasize.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8668e9d83e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>