<?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 Arun Bojja on Medium]]></title>
        <description><![CDATA[Stories by Arun Bojja on Medium]]></description>
        <link>https://medium.com/@arunbojja?source=rss-d8040c5e5cb2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*g36alTsomul45UeljvwI_g.jpeg</url>
            <title>Stories by Arun Bojja on Medium</title>
            <link>https://medium.com/@arunbojja?source=rss-d8040c5e5cb2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:38:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arunbojja/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 Do Web Browsers Work?]]></title>
            <link>https://medium.com/hackernoon/how-do-web-browsers-work-40cefd2cb1e1?source=rss-d8040c5e5cb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/40cefd2cb1e1</guid>
            <category><![CDATA[what-are-web-browsers]]></category>
            <category><![CDATA[web-browser-explained]]></category>
            <category><![CDATA[how-do-web-browsers-work]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web-browser]]></category>
            <dc:creator><![CDATA[Arun Bojja]]></dc:creator>
            <pubDate>Sun, 21 Apr 2019 21:43:49 GMT</pubDate>
            <atom:updated>2019-04-21T21:43:49.498Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3oCmXlKfN1_GLCP_" /><figcaption>Photo by <a href="https://unsplash.com/@chang612?utm_source=medium&amp;utm_medium=referral">Chang Duong</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>“If you don’t understand the details of your business, you are going to fail “— Jeff Bezos</blockquote><p>Today, it is difficult to imagine a world without internet.</p><p>The web browser is at the heart of how we experience the internet. Every day, millions visit websites via browsers. Five major browsers — Chrome, Firefox, Internet Explorer, Safari and Opera — account 95% of <a href="http://gs.statcounter.com/">web traffic</a>.</p><p>A major role of a web browser is to accept a web URL via an address bar, fetch resources, and display them on the screen.</p><p>Browsers functionality can be classified into four major sections and these include:</p><ul><li><strong>Fetch</strong></li><li><strong>Process</strong></li><li><strong>Display</strong></li><li><strong>Storage</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a0-LCAnbikVTog4WSVh14Q.png" /></figure><p>Each category defines a set of duties that browser has to execute and comprises of subsystems.</p><h3>Fetch</h3><p>A major subsystem called <em>network layer </em>plays a vital role in fetching data from subsequent web servers via the internet.</p><h4>The network layer</h4><p>Accepts URLs from the browser user interface and is responsible for making network calls to fetch resources via HTTP/FTP protocols.</p><p>It feeds data to the process subsystem called <em>rendering engine</em> as it becomes available and is usually done in byte size to improve performance.</p><p>If the requested website implements a cache, a copy of the data is made in App Cache or <a href="https://medium.com/@arunsena.bojja/4-simple-steps-to-get-your-website-working-offline-using-service-workers-4ff427aff88f">Service Workers</a> for next time. Caches are great for their quick response times and saving network requests for regular visits.</p><p>The browser initially looks for any cache availability on local memory for requested URLs. Otherwise, the network layer creates an HTTP packet with a domain name for requesting a web resource over the internet.</p><p>The network layer plays a major role in the user experience. It can be a bottleneck in web performance, since browsers wait for remote data/content to arrive. Various techniques can be used to reduce this impact on the user’s experience.</p><h3>Process</h3><p>This step involves accepting data from the network layer and feed the display subsystems. <em>Render engine, JS engine</em> and <em>UI backend</em> subsystems are part of the process.</p><h4>The rendering engine</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*grQU_pdyKp_Dm2hj5jhcXg.png" /><figcaption>WebKit Main Flow</figcaption></figure><p>The rendering engine subsystem processes data from the network layer and displays web content on the screen.</p><p>By default, it can process HTML, XML and Image files. However, it can be extended to accommodate various data types via extensions.</p><p>Many render engines are available, and are usually written in C++. Examples include:</p><ul><li>Chrome and Opera both use Blink</li><li>Firefox uses Gecko</li><li>Internet Explorer uses Trident</li><li>Edge uses EdgeHTML</li><li>Safari uses WebKit</li></ul><p>With rendering engines, web resources are parsed. For example, a HTML parser converts a HTML template into an object called the DOM tree.</p><p>Stylesheets are parsed to generate style rules for both external and inline style elements.</p><p>A render tree is an object that combines both the parsed HTML and CSS. It is generated with visual instructions and attributes to render elements on the user’s screen.</p><p>Once the render tree is constructed, it undergoes layout and painting processes, and displays the output on the screen.</p><p>The layout process includes calculating dimensions and exact coordinates where each element should appear on the viewport.</p><p>The painting process includes filing the layout with style attributes like color, background and other CSS properties.</p><p>The rendering engine processes data in chunks and displays the content as soon as possible. It will not wait until the entire document content undergoes the layout and painting processes.</p><h4>The JavaScript engine</h4><p>This is the subsystem for parsing JavaScript code to machine code and then executing it. These JS engines can be standard interpreters or <a href="https://en.wikipedia.org/wiki/Just-in-time_compilation">JIT</a> (just in time) compilers.</p><p>One of the most popular engines is the Google V8 engine. It is written in C++. Here are some examples that different browsers use:</p><ul><li>Chrome uses<strong><em> </em></strong><a href="https://en.wikipedia.org/wiki/Chrome_V8">Chrome V8</a></li><li>Safari uses <a href="https://en.wikipedia.org/wiki/WebKit#JavaScriptCore">JavaScriptCore</a></li><li>Firefox uses <a href="https://en.wikipedia.org/wiki/SpiderMonkey">SpiderMonkey</a></li><li>Edge uses <a href="https://en.wikipedia.org/wiki/Chakra_(JavaScript_engine)">Chakra</a></li><li>Internet Explorer uses <a href="https://en.wikipedia.org/wiki/Chakra_%28JScript_engine%29">Chakra</a> (JsScript)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9N0JaNCX7__Qy9BubffpvQ.png" /><figcaption>JavaScript Engine</figcaption></figure><p>These engines include two components: the memory heap and the call stack.</p><p>The memory heap is where memory is allocated for variables, functions and other JS elements.</p><p>The call stack is simply a queue of stack frames or sequential steps executed by the browser.</p><p>JavaScript is a single-threaded process and each entry or execution step is a stack frame.</p><p>These engines have several threads internally to perform various tasks. Examples of such tasks include:</p><ul><li>Fetching, compiling and executing code</li><li>A profiling thread to analyze functions and their time consumption</li><li>Optimizing the execution process</li><li>Garbage collectors</li></ul><p>Google’s V8 engine uses a mark-and-sweep method to perform garbage collection in an incremental way. This makes use of the browser’s idle time and improves performance.</p><p>As of version 5.9 (early 2017), Ignition and Turbofan are the latest pipelines in the V8 engine.</p><p><a href="https://nodejs.org/en/">NodeJS</a> is<em> </em>a server-side JavaScript runtime built<em> </em>based on Google’s open source V8 engine. It is used to execute JavaScript on the server side.</p><h3>Display</h3><p>As the name itself suggests, this relates presenting data to the users. <em>User Interface </em>and <em>Browser Engine</em> are responsible for data presentation and handling user navigation.</p><h4>User Interface</h4><p>The visual appearance of the browser normally includes an address bar to accept web URLs, and navigation buttons such as a back, forward, refresh, and a home and bookmarks bar.</p><p>Along with these inputs and action buttons, we have the viewport (the main part of the screen)<em> </em>to display content fetched from websites.</p><p>The User Interface (UI) communicates with other subsystems within the browser to display content and act accordingly.</p><p>No specific standards are imposed on how the interface should look and feel. Instead, browser vendors have refined the UI as browsers have evolved over the years.</p><h4>The browser engine</h4><p>The browser engine is an embeddable subsystem that provides a high-level interface to the rendering engine.</p><p>It loads a given URL and supports primitive browsing actions such as navigating forward, back and reload.</p><p>It also provides hooks for viewing various aspects of the browsing session. For example, viewing current page load progress and JavaScript alerts.</p><p>The browser engine also allows for querying and manipulating the rendering engine settings.</p><h3>Storage</h3><p>Web browsers have a small amount of storage capacity in order perform few actions, cache data and store data over browser for perform kicks and other browser functionality.</p><h4>Data Storage</h4><p>Data persistence is achieved through various browser APIs. Some of them include:</p><ul><li>Local storage</li><li>Session Storage</li><li>Cookies</li><li>WebSQL</li><li>IndexedDB</li><li>FileSystem</li><li>AppCache</li><li>Service Workers</li></ul><p>Local storage and Session storage are key-value pairs that can store any JS objects and functions in the browser.</p><p>Session storage persists the data on the browser as long as a website session is active. Local storage is the memory on the browser. It persists data until it is cleared or altered explicitly by the user or JavaScript code.</p><p>These Session and Local web storage limits are 5MB per object, and 50MB per system.</p><p>Cookies are collections of key-pair data stored on the browser memory. They are sent back and forth between client and server.</p><p>These are expensive and are the least performant of the data persistence methods. However, they are very useful when privacy and security come into the picture.</p><p>WebSQL, IndexedDB, and FileSystem have the abilities to store data on browser depending on size, performance, and necessity.</p><p>App Cache was introduced in HTML5. It stores website static content and serves UI content during network downtime.</p><p>Service Workers are Google’s new way of caching website data for offline usage. It has significant features compared to App Cache. You can read more about Service Workers <a href="https://medium.com/@arunsena.bojja/4-simple-steps-to-get-your-website-working-offline-using-service-workers-4ff427aff88f">here</a>.</p><h3>Recap and references</h3><p>All right, let’s do a quick recap now. All major web browsers comprise subsystems, along with other submodules to help with the process.</p><p>These systems are involved from accepting the web URLs, to displaying web content on the screen. They make network calls, fetch resources, parse HTML, CSS, and JavaScript files to create objects to render on the screen. These all combine to produce a wonderful website for the user.</p><p>You can read more at the resources linked below:</p><ul><li><a href="https://www.html5rocks.com/en/tutorials/internals/howbrowserswork/">How Browsers Work: Behind the scenes of modern web browsers — HTML5 Rocks</a></li><li><a href="https://blog.sessionstack.com/how-does-javascript-actually-work-part-1-b0bacc073cf">How JavaScript works: an overview of the engine, the runtime, and the call stack</a></li><li><a href="https://medium.com/comparethemarket/browser-data-persistence-cb57d3b3a527">Browser Data Persistence</a></li><li><a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.60.1151&amp;rep=rep1&amp;type=pdf">Browser Architecture</a> —by Alan Grosskurth and Michael W. Godfrey</li></ul><p>Thank you for reading 👍</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40cefd2cb1e1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/how-do-web-browsers-work-40cefd2cb1e1">How Do Web Browsers Work?</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4 Simple steps to get your website working offline using Service Workers]]></title>
            <link>https://medium.com/@arunbojja/4-simple-steps-to-get-your-website-working-offline-using-service-workers-4ff427aff88f?source=rss-d8040c5e5cb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ff427aff88f</guid>
            <category><![CDATA[browsers]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[website]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[service-worker]]></category>
            <dc:creator><![CDATA[Arun Bojja]]></dc:creator>
            <pubDate>Wed, 23 Jan 2019 02:53:16 GMT</pubDate>
            <atom:updated>2019-01-25T17:57:14.387Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*chtNOxJawppy_zly" /><figcaption>“two square blue LED lights” by <a href="https://unsplash.com/@othentikisra?utm_source=medium&amp;utm_medium=referral">israel palacio</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Google’s new service workers are replacing the <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache">HTML 5 App cache</a> for website offline usage. Service workers are based on JavaScript <a href="https://developer.mozilla.org/en-US/docs/Web/API/Worker">workers</a> API and are most powerful in modern browsers.</p><p>With HTML 5, introduction to App cache was one of the most useful feature added to the browser for offline usage by simply adding a manifest file and manifest meta tag to index file which caches the desired files.</p><p><strong>Example for App cache:</strong></p><p>Index file:</p><pre>&lt;html manifest=&quot;example.manifest&quot;&gt;<br>...<br>&lt;/html&gt;</pre><p>Manifest file will look something like this:</p><pre>CACHE MANIFEST<br># VERSION 1 <br># SOME META INFO<br>https:www.example.com/index.html<br>https:www.example.com/images/image1<br>https:www.example.com/contact.html</pre><p>App cache API was great until there were static files to be loaded and provide no interaction. Service workers come with more advanced features like routing, fetching, loading data on users requests, push notifications and background syncs.</p><p>Service workers are based on JavaScript workers API, they are non-blocking and run parallel to the normal executable context. They can communicate with a web page and manipulate <a href="https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Introduction">DOM</a> via the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Worker/postMessage">postMessage</a><strong> </strong>interface. These can allow you to control how network requests are handled which makes them so powerful.</p><p><strong>Prerequisites:</strong></p><p>Secure connection — you need <a href="https://https.cio.gov/faq/">HTTPS</a> over HTTP to avoid data fabrication and hijack connections. Initial development can be done using localhost but need HTTPS protocol on end website to implement.</p><p>Let’s get started — these are very simple to learn and easy to use them in your own websites</p><ol><li>Register a Service Worker</li><li>Install a Service Worker</li><li>Request Data</li><li>Update a Service Worker</li></ol><p><strong>Register a Service Worker</strong></p><p>This includes checking if the host browser supports service workers and load the sw.js file to register it</p><p>Add below lines in index.html or base file and add a JavaScript file in root path with the registered name(in this example — <strong>sw.js</strong>)</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fjsfiddle.net%2F7no8bmeL%2F16%2Fembedded%2Fhtml%2Fdark&amp;src=https%3A%2F%2Fjsfiddle.net%2F7no8bmeL%2F16%2Fembedded%2Fhtml%2Fdark&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=jsfiddle" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/02d298b5438f011aa62a2eb463a577e9/href">https://medium.com/media/02d298b5438f011aa62a2eb463a577e9/href</a></iframe><p>When you run this code you should see a message in the browser console — ‘Service worker registered’</p><p><strong>Note</strong>: Make sure you add the sw.js file in the root path of the project directory since it’s scoped where defined and have control over the same.</p><p><strong>Install a Service Worker</strong></p><p>In SW.js file that we created, add files that need to be cached using Cache API. For this, we will add an event listener to open caches and add files to a given cache name</p><p>If any of the files fail to download and cache, SW will fail and won’t be installed but it keeps trying until it gets the desired data</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fjsfiddle.net%2F7no8bmeL%2F34%2Fembedded%2Fjs%2Fdark&amp;src=https%3A%2F%2Fjsfiddle.net%2F7no8bmeL%2F34%2Fembedded%2Fjs%2Fdark&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=jsfiddle" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/fac527bed623f0a9af0d2e76c227d46c/href">https://medium.com/media/fac527bed623f0a9af0d2e76c227d46c/href</a></iframe><p><strong>Request Data</strong></p><p>Now that we have installed service worker and added files to cache, we will retrieve files from the cache by adding these lines below to the same SW.js file</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fjsfiddle.net%2F7no8bmeL%2F28%2Fembedded%2Fjs%2Fdark&amp;src=https%3A%2F%2Fjsfiddle.net%2F7no8bmeL%2F28%2Fembedded%2Fjs%2Fdark&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=jsfiddle" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/124da4bcd3508168dd546fcb7bb49ee0/href">https://medium.com/media/124da4bcd3508168dd546fcb7bb49ee0/href</a></iframe><p>While retrieving data, it tries to load data from memory that’s already cached by matching the event request. If it didn’t find the matching request, it will make a network call to fetch data. Once the response is fetched, it serves the response back to the request and clones the response for caching to serve next time when a request has made.</p><p><strong>Update a Service Worker</strong></p><p>Any byte size change will make an existing worker update with the latest changes considering it as <strong><em>new. </em></strong>The old worker is still active and is not terminated until existing pages are closed.</p><p>Once the existing pages are closed, the newly updated worker will take control over the old one and fires an ‘activate’ event. At this moment, the old workers are going to stay on memory unless we delete them explicitly. So, we need to delete them on activate event call back.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fjsfiddle.net%2F7no8bmeL%2F32%2Fembedded%2Fjs%2Fdark&amp;src=https%3A%2F%2Fjsfiddle.net%2F7no8bmeL%2F32%2Fembedded%2Fjs%2Fdark&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=jsfiddle" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/90eb0c0872d6ed70ae415a2f19725475/href">https://medium.com/media/90eb0c0872d6ed70ae415a2f19725475/href</a></iframe><p>Success ✔️ now your website can work offline!</p><p>These can be greatly used to improve the performance of an app with network bypassing for navigation and better user interactions.</p><p><strong>Demo link</strong></p><p><a href="https://s3.amazonaws.com/service-workers/index.html">Service Workers</a></p><p><strong>Additional reads</strong></p><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API">Service Worker API - Web APIs | MDN</a></li><li><a href="https://developers.google.com/web/fundamentals/primers/service-workers/">Service Workers: an Introduction | Web Fundamentals | Google Developers</a></li><li><a href="https://angular.io/guide/service-worker-intro">Angular</a></li></ul><p><strong>Browser Support</strong></p><ul><li><a href="https://caniuse.com/#search=serviceworkers">Can I use... Support tables for HTML5, CSS3, etc</a></li><li><a href="https://jakearchibald.github.io/isserviceworkerready/">Is service worker ready?</a></li></ul><p>Thanks for reading !! 👍</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ff427aff88f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to host a static website using GitHub for free]]></title>
            <link>https://medium.com/@arunbojja/how-to-host-a-static-website-using-github-for-free-fe260c32bbea?source=rss-d8040c5e5cb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe260c32bbea</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[github-pages]]></category>
            <category><![CDATA[website]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Arun Bojja]]></dc:creator>
            <pubDate>Sun, 30 Sep 2018 23:10:53 GMT</pubDate>
            <atom:updated>2018-09-30T23:10:53.507Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FhEEoRY5P6AeOmem" /><figcaption>“person holding ballpoint pen writing on notebook” by <a href="https://unsplash.com/@thoughtcatalog?utm_source=medium&amp;utm_medium=referral">Thought Catalog</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The Internet is a world of web pages and there are millions of websites out there. It’s always an amazing way to portray yourself through a personal website or your business website which expands your horizons. When it comes to website hosting, there are many popular ways to do it whether it is getting a domain on <a href="https://www.godaddy.com/">GoDaddy</a>, <a href="https://www.namecheap.com/">Namecheap</a>, <a href="https://www.hostgator.com/">Hostgator</a> or through site builders like <a href="https://www.wix.com/">Wix</a> or <a href="https://wordpress.com/">Wordpress</a>. Not to forget, <a href="https://aws.amazon.com/">Amazon Web Services</a> (AWS), a cloud-based platform for hosting at a low cost per usage.</p><p>Here, I am talking about <a href="http://www.github.com/">GitHub</a> — a popular developer portal to discover, share and deploy code. GitHub allows you to host static website quickly in simple steps over secure https protocol for free</p><h3><strong>Create a account in GitHub</strong></h3><p>Go to <a href="http://www.github.com/">GitHub</a> to create an account</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w85iqm6bODB9otmOLbpttg.png" /><figcaption>Create a account in github</figcaption></figure><p>Once you create an account— two ways to get your website in minutes</p><p>If black screen so-called command prompt scares you, please skip to next step and make your life simple with GitHub Desktop app</p><h3>Using Command line</h3><p>Once, you log in to GitHub</p><ul><li>Create a new repository using a plus icon on the top right corner of the page</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*ibxxWvxPzPnGNN45_aoFVg.png" /></figure><ul><li>Give a name to the repo, keep the default options and click ‘<strong>create repository</strong>’</li><li>Now, let’s hold on here and go to desktop and open command prompt (Enter ‘<strong>cmd</strong>’ in the start menu on Windows or search for ‘<strong>terminal</strong>’ on Mac)</li><li>Create a new directory using the command ‘<strong>mkdir</strong>’ in your command prompt and ‘<strong>cd’</strong> to that folder where you want to add your code</li></ul><pre>mkdir folder-name<br>cd folder-name</pre><ul><li>Make sure you have git installed locally using ‘git — version’. If you don’t have one, please refer to this <a href="https://git-scm.com/book/en/v2/Getting-Started-Installing-Git">link</a> on installation steps</li><li>Run ‘<strong>git init</strong>’ to initialize empty git repo in the folder you created</li><li>Add your HTML and other resources to this folder</li><li>Once you add your files, run ‘<strong>git add .</strong>’ command to stage your files</li><li>Now, run ‘<strong>git commit -m “initial commit”</strong>’ to commit your changes and run ‘git status’ to check the status</li><li>Let’s add the remote URL we got when we created the repo and push to publish your changes to the right repo in GitHub</li></ul><pre>git remote add origin https://github.com/username/folder-name.git<br>git push -u origin master</pre><ul><li>Please enter GitHub Credentials if prompted</li><li>Go to your GitHub account and now you should see your files under your newly created repo</li><li>Now navigate to setting page for this repo on the top right corner and go to GitHub Pages</li><li>Select the source and change it to master and click save</li><li>Click the generated link in the GitHub pages section and you should see your webpage</li><li>Congratulations on getting your website!!</li></ul><h3>Using GitHub Desktop App</h3><p>GitHub desktop is pretty simple to use, you can get one here — <a href="https://desktop.github.com/">Github Desktop</a></p><ul><li>Once you install the app, click to create a new repository</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*JWsuXisbW80BeITZpANjZA.png" /><figcaption>Create a repo in GitHub desktop app</figcaption></figure><ul><li>Give a name, description and a local path to your repo and click ‘<strong>Create</strong> <strong>Repository</strong> ’ button</li><li>Navigate to the folder in finder or windows explorer and add files</li><li>Come back to the app and you will see your files have been staged here</li><li>Now give a commit message in the bottom left box and commit changes</li><li>Once you commit your changes, click the ‘<strong>Publish Repository</strong>’ on the top</li><li>Please enter GitHub Credentials if prompted</li><li>Go to your GitHub account and now you should see your files under your newly created repo</li><li>Now navigate to setting page for this repo on the top right corner and go to GitHub Pages</li><li>Select the source and change it to master and click save</li><li>Click the generated link in the GitHub pages section and you should see your webpage</li><li>Congratulations on getting your website!!</li></ul><blockquote>Make sure you have one html file and all other resources in a separate folder to make sure GitHub doesn’t get confused which file to use when it launches your website</blockquote><p>If you want to add/use a custom domain instead of generated URL by GitHub, please refer below link</p><p><a href="https://help.github.com/articles/using-a-custom-domain-with-github-pages/">Using a custom domain with GitHub Pages - User Documentation</a></p><h4>Additional links:</h4><ul><li><a href="https://github.com/">GitHub · Change is constant. GitHub keeps you ahead.</a></li><li><a href="https://bitbucket.org/product">Bitbucket | Git solution for teams using Jira</a></li></ul><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe260c32bbea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Front-end debugging made easier with black boxing]]></title>
            <link>https://medium.com/@arunbojja/front-end-debugging-made-easier-with-black-boxing-cd32df59421f?source=rss-d8040c5e5cb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd32df59421f</guid>
            <category><![CDATA[chrome]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[Arun Bojja]]></dc:creator>
            <pubDate>Mon, 11 Jun 2018 18:56:46 GMT</pubDate>
            <atom:updated>2018-07-30T18:33:23.365Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fghE3Ugrsnk_Y_p0gTSUVg.png" /></figure><p>As a Front end developer, everyday we debug code using developer tools like <a href="https://getfirebug.com/">firebug</a>, <a href="https://developers.google.com/web/tools/chrome-devtools/">chrome developer tools</a> or other browser developer tools.</p><p>As we run through code to debug an issue either using <a href="https://developers.google.com/web/tools/chrome-devtools/javascript/breakpoints">breakpoints </a>or <strong><em>debugger </em></strong>in the code we step into many third party libraries or dependencies like JQuery, Angular, React, Lodash source code which makes debugging time consuming and cumbersome</p><p>In order to eliminate or bypass unnecessary dependency code, browsers implemented a concept called ‘<strong>Blackboxing</strong>’. Using this concept eliminates the process of stepping through library code and focus on custom code</p><p><em>Chrome developer tools settings:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*dWXPZTw_9_EiodBvH7H0Nw.png" /></figure><p>For example, in Chrome developer tools setting page shown above has a tab ‘Black boxing’ where we can add patterns of files that we want to filter out(black box). Another easy way is to open <em>sources </em>tab in debugger and using ‘Ctrl + P’ to open a file to debug, right click to add it to black boxing list</p><p>When debugging code with black boxing, scripts or code is hidden in call stack like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*zJBXkqFY5i_v0k2ScWX_mA.png" /><figcaption>Chrome Debugger call stack window</figcaption></figure><p><strong><em>For more reference :</em></strong></p><p><a href="https://developers.google.com/web/tools/chrome-devtools/javascript/"><em>Getting started with debugging front end applications</em></a></p><ul><li><a href="https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Black_box_a_source">Black box a source</a></li><li><a href="https://developer.chrome.com/devtools/docs/blackboxing">Blackbox JavaScript Source Files - Google Chrome</a></li></ul><p>Thanks for reading!</p><p>Cheers</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd32df59421f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>