<?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[hackinbits - Medium]]></title>
        <description><![CDATA[Learn programming and technology in bits. Build career skills in web development, computer science, programming and more with our well designed and easy to understand tutorials and articles. - Medium]]></description>
        <link>https://medium.com/hackinbits?source=rss----9e578ea0c8d1---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>hackinbits - Medium</title>
            <link>https://medium.com/hackinbits?source=rss----9e578ea0c8d1---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 10:39:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/hackinbits" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Understanding Scope in Javascript]]></title>
            <link>https://medium.com/hackinbits/understanding-scope-in-javascript-b5e900804f1b?source=rss----9e578ea0c8d1---4</link>
            <guid isPermaLink="false">https://medium.com/p/b5e900804f1b</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[hackinbits]]></category>
            <dc:creator><![CDATA[Srijan Saumya]]></dc:creator>
            <pubDate>Tue, 05 May 2020 16:53:51 GMT</pubDate>
            <atom:updated>2020-05-05T16:55:05.224Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*DWp7WTOvKPLuX-3n_4spaQ.png" /></figure><p><em>This story was first published on </em><a href="https://hackinbits.com/articles/understanding-scope-in-javascript"><em>hackinbits.com</em></a><em>.</em></p><p>Scope in javascript refers to the part of your code in which variables, functions, and objects are visible and can be used. It refers to the context in which the declared variables are accessible.</p><blockquote><em>In general, scope determines whether, in a particular part of the program, the declared variable, function or object is available for use or not.</em></blockquote><h3>Types of Scope</h3><ul><li>Global Scope</li><li>Local Scope</li></ul><h3>Global Scope</h3><p>The global scope is the outermost scope in your program. Global scope is already accessible to you when you start writing a new javascript program. Anything you declare in the global scope is available for use throughout the program.</p><p>Variables declared outside functions or code blocks(if, while, for, {}) are in the global scope of the program.</p><pre>//global scope<br>var globalVar = &quot;I am a global var&quot;;</pre><pre>function newFunc(){<br>	console.log(globalVar);<br>}</pre><pre>//Output: I am a global var<br>console.log(globalVar); </pre><pre>//Output: I am a global var<br>newFunc();</pre><h3>Local Scope</h3><p>In javascript, the local scope is created by functions and blocks(if, while, for, {}). Any variable declared inside a local scope is available in that scope only.</p><blockquote><em>For var, the local scope is only created by functions whereas let and const respects block scoping as well.</em></blockquote><h3>Function Scope</h3><p>A function creates a local scope in javascript. Any variables declared using var, let and const are locally scoped inside a function and is accessible only inside of it.</p><pre>//global scope<br>function func(){<br> var funcVar = &#39;I am function var&#39;;<br> let funcLet = &#39;I am function let&#39;;<br>}</pre><pre>//output:  Uncaught ReferenceError: funcVar is not defined<br>console.log(funcVar);</pre><pre>//output: Uncaught ReferenceError: funcLet is not defined<br>console.log(funcLet);</pre><h3>Block Scope</h3><p>Block statements also create local scope in Javascript. Variables declared using let and const are placed inside the block scope. But for var, the local scope is created by functions only.</p><pre>//global scope<br>{<br>	var blockVar = &#39;I am block var&#39;;<br>	let blockLet = &#39;I am block let&#39;;<br>	const blockConst = &#39;I am bock const&#39;;<br>}<br>//output:  I am block var<br>console.log(blockVar);</pre><pre>//output: Uncaught ReferenceError: blockLet is not defined<br>console.log(blockLet);</pre><pre>//output: Uncaught ReferenceError: blockConst is not defined<br>console.log(blockConst);</pre><h3>Lexical Scope</h3><p>Functions declared separately do not have access to each other’s scope in a program. But how does scope works when a function is declared inside other functions?</p><p>When functions are nested, the inner function has access to the scope of the parent function. Thus, the inner function can access variables defined inside parent function, but the opposite is not true. The parent function cannot access variables declared inside the inner function. In this case, inner function is said to have lexical scope.</p><pre>// GLOBAL SCOPE<br>var globalVar = &#39;I am global var&#39;;</pre><pre>function outerFunc(){<br>	// function scope 1<br>  	var funcVar = &#39;I am function var&#39;;<br>   	var innerFunc = function(){<br>    		// function scope 2<br>    		//output: I am global var <br>		console.log(globalVar);<br>		//output:  I am function var<br>    		console.log(localVar);<br> 	}<br>}</pre><p>If you liked this article, please upvote and recommend it to show your support. Feel free to ask any questions in the comments below.</p><p>We publish articles on web development and technology frequently. Consider subscribing to our newsletter or follow us on our social channels (<a href="https://twitter.com/hackinbits">Twitter</a>, <a href="https://www.facebook.com/hackinbits/">Facebook</a>, <a href="https://www.instagram.com/hackinbits">Instagram</a>, <a href="https://www.linkedin.com/company/hackinbits">LinkedIn</a>).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5e900804f1b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackinbits/understanding-scope-in-javascript-b5e900804f1b">Understanding Scope in Javascript</a> was originally published in <a href="https://medium.com/hackinbits">hackinbits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Variables in Javascript]]></title>
            <link>https://medium.com/hackinbits/understanding-variables-in-javascript-41a423096464?source=rss----9e578ea0c8d1---4</link>
            <guid isPermaLink="false">https://medium.com/p/41a423096464</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[frontend]]></category>
            <dc:creator><![CDATA[Srijan Saumya]]></dc:creator>
            <pubDate>Mon, 04 May 2020 19:09:19 GMT</pubDate>
            <atom:updated>2020-05-04T19:06:52.476Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*nbm2koKWzZrbK5xsqgiT3Q.png" /></figure><p><em>This article is first published on </em><a href="https://hackinbits.com/articles/understanding-variables-in-javascript"><em>hackinbits.com</em></a><em>.</em></p><p>Variables are like containers that are used to store values. It acts as a <strong>temporary storage</strong> unit in which you can store data and recall it multiple times in your program. In short, you can keep track of information using variables. The values stored in a variable can be of any data type that javascript supports. You can go through <a href="https://hackinbits.com/articles/javascript-data-types-explained"><strong>this article</strong></a> for a refresher on Javascript Datatypes.</p><h3>Variable Declaration</h3><p>You can declare a variable in Javascript using var, let and const keywords followed by the name of the variable. Javascript defines precise rules which you need to follow while naming them. We will discuss them later in the sperate section in this article.</p><pre>var myVar;<br>let myVar;</pre><h3>Variable Initialization</h3><p>In the above example, we created a variable but haven’t initialized it with any value. To initialize a variable, you need to assign it to a value using the assignment “=” operator.</p><pre>var myVar = &quot;Hello World&quot;;</pre><p>If you declare a variable using let and var and did not initialize it, it will be automatically assigned an undefined value.</p><pre>var myVar;<br>//undefined<br>let myLetVar;<br>//undefined</pre><p>const is used to define constant/immutable value, so declaration and initialization have to take place together.</p><pre>const myConstVar = &quot;Hello World&quot;;<br>//Hello World</pre><p>Javascript will throw an error if you will try to declare a variable without initializing it.</p><pre>const myConstVar;<br>//Uncaught SyntaxError: Missing initializer in const declaration</pre><h3>Naming Variables</h3><p>Following are the rules which we should keep in mind while naming variables in javascript:</p><ul><li>Variable names are case sensitive.</li><li>Variable names can only consist of letters (a-z, A-Z), numbers (0–9), dollar sign ($), and underscores (_).</li><li>Cannot begin with numbers or only consists of numbers</li><li>It cannot contain whitespaces.</li><li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Reserved_keywords_as_of_ECMAScript_2015">Reserved Keywords</a> cannot be used as variable names.</li></ul><h3>Examples</h3><pre>let firstVar;<br>//undefined</pre><pre>let secondVar = 100;<br>//100</pre><pre>let thirdVar = secondVar<br>//100</pre><pre>let fourthVar, fifthVar;<br>//both undefined</pre><pre>const constVar;<br>//Error</pre><pre>const constVar = 100;<br>//100</pre><p><strong>If you liked this article, please upvote and recommend it to show your support. Feel free to ask any questions in the comments below.</strong></p><p><strong>We publish articles on web development and technology frequently. Consider subscribing to our newsletter or follow us on our social channels (</strong><a href="https://twitter.com/hackinbits"><strong>Twitter</strong></a><strong>, </strong><a href="https://www.facebook.com/hackinbits/"><strong>Facebook</strong></a><strong>, </strong><a href="http://www.instagram.com/hackinbits"><strong>Instagram</strong></a><strong>, </strong><a href="https://www.linkedin.com/company/hackinbits"><strong>LinkedIn</strong></a><strong>).</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41a423096464" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackinbits/understanding-variables-in-javascript-41a423096464">Understanding Variables in Javascript</a> was originally published in <a href="https://medium.com/hackinbits">hackinbits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is the Internet — How the Internet works]]></title>
            <link>https://medium.com/hackinbits/what-is-the-internet-how-the-internet-works-7f0c0134c3f4?source=rss----9e578ea0c8d1---4</link>
            <guid isPermaLink="false">https://medium.com/p/7f0c0134c3f4</guid>
            <category><![CDATA[network]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[how-internet-works]]></category>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[tcp-ip]]></category>
            <dc:creator><![CDATA[Srijan Saumya]]></dc:creator>
            <pubDate>Sun, 10 Nov 2019 17:44:58 GMT</pubDate>
            <atom:updated>2019-11-10T16:40:56.191Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is the Internet — How the Internet works</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ma-af6Nq-374KSFPCohpbQ.jpeg" /><figcaption>Image from Pixabay</figcaption></figure><h3>Introduction</h3><p>The Internet is a network of networks. It links billions of devices together all around the world. It is a global system that is designed to move information.</p><blockquote><em>The Internet is becoming the town square for the global village of tomorrow.</em><br><strong>-Bill Gates</strong></blockquote><p>The purpose of this article is to provide a basic understanding of the internet and its working. To understand the Internet better, in this series we will explore its history and dive deep into its design and architecture.</p><h3>History of The Internet</h3><p>When computers first arrived in the 1960s, wired and dedicated connections were used to exchange data between them. This type of communication was limited to short distances only because of signal loss and infrastructure limitations. Back in the days’ many organizations were working to develop the required technology for effective communication between computers.</p><p>The packet switching concept was invented by Paul Baran in the early 1960s and is used in ARPANET, the world’s first packet-switching network.</p><p>TCP/IP, the protocol used in early packet switching networks like ARPANET and the Internet itself was introduced by Vint Cerf and Bob Kahn in 1974 in the IEEE paper titled <a href="https://ieeexplore.ieee.org/document/1092259/">A Protocol for Packet Network Intercommunication</a>.</p><p>We will discuss core concepts and design philosophy that helped the internet not only survive the boom but also to flourish and scale accordingly as millions of new users join it daily.</p><h3>How does the Internet works?</h3><p>When you send a post using postal service, you write down your own address and the destination address on the envelope and put it in a mailbox. The postal service then takes your mail and deliver it to the destination. Postal service encapsulates all the underlying technology and infrastructure it uses to deliver your mail to the destination. Thus providing you with a hassle-free service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*OFT-6S6uCgQSHmGU.png" /><figcaption>Postal Address is similar to Internet Address on Packets (Pixabay)</figcaption></figure><p>In the same way, on the Internet, each device has a unique address that is required for any type of communication over it. These addresses are called IP addresses. When you send data over the internet, the messages are first divided into manageable chunks called packets. To each packet, source and destination addresses are added. An offset is also added to packets for reassembly at the destination incorrect order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*QQT9kD3qr7jL3JIt.png" /><figcaption>Information is divided into packets (Pixabay)</figcaption></figure><p>The packets move through the network, guided by the routers towards there destination. Routers are computing devices that specialize in moving packets across the network. The protocol responsible for moving packets from source to destination is Internet Protocol. We will discuss routers and routing in detail in this series.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/0*Fwn1Uml-TrRNnQyx.png" /><figcaption>Visualization of Routing Paths through a portion of the Internet(Image from Wikipedia)</figcaption></figure><p>Packets can follow different paths and arrive at the destination out of order. It is the responsibility of TCP — Transmission Control Protocol to put packets in the correct order and check if all packets arrive correctly at the destination computer. If a packet is lost in transmission, TCP requests the source computer to send it again. Once all packets are accounted for, TCP assembles them back to form the original message and transmission is complete.</p><p>There is more to that, which we will cover in the next few articles.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f0c0134c3f4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackinbits/what-is-the-internet-how-the-internet-works-7f0c0134c3f4">What is the Internet — How the Internet works</a> was originally published in <a href="https://medium.com/hackinbits">hackinbits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blog | Introduction to DOM]]></title>
            <link>https://medium.com/hackinbits/blog-introduction-to-dom-b9d8e1500330?source=rss----9e578ea0c8d1---4</link>
            <guid isPermaLink="false">https://medium.com/p/b9d8e1500330</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[dom]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Srijan Saumya]]></dc:creator>
            <pubDate>Thu, 01 Nov 2018 18:18:08 GMT</pubDate>
            <atom:updated>2018-11-01T18:18:44.738Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction to DOM</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*rlXSvY1y9k4KbHAK.png" /></figure><p>The Document Object Model(DOM) is an application programming interface for HTML and XML documents. It defines the logical structure of documents and how a document can be accessed and manipulated using it.</p><p>The DOM is an object-oriented representation of the web page. Documents are represented in DOM using nodes and objects which facilitates changing its structure, style, and content with a programming language like javascript. All HTML tags and even text inside tags are represented as objects so that they can be easily accessed and modified according to the requirement.</p><p>From the beginning, DOM is designed in such a way that it can be used with any programming language. In this series, we will be using Javascript for all operations using DOM.</p><h3>DOM Tree</h3><p>The HTML Document, when parsed by the browser, is converted into DOM for all further operations. The DOM represents the HTML Document as a tree structure of tags as shown below. For example:</p><pre>&lt;!DOCTYPE HTML&gt; <br>&lt;html&gt; <br>  &lt;head&gt; <br>    &lt;title&gt;DOM | Hackinbits&lt;/title&gt; <br>  &lt;/head&gt; <br>  &lt;body&gt; <br>    &lt;h1&gt;Welcome to hackinbits&lt;h1&gt; <br>    &lt;p&gt; Learn programming and technology in bits.&lt;p&gt; <br>  &lt;/body&gt; <br>&lt;/html&gt;</pre><p>This Document will be structured internally as :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*ytavj-pYLl_sROChh9qiug.png" /></figure><p>You can edit the example document and see the tree structure at this link <a href="http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20HTML%3E%20%0A%3Chtml%3E%20%0A%3Chead%3E%20%0A%3Ctitle%3EDOM%20%7C%20Hackinbits%3C%2Ftitle%3E%20%0A%3C%2Fhead%3E%20%0A%3Cbody%3E%20%0A%3Ch1%3EWelcome%20to%20hackinbits%3C%2Fh1%3E%20%0A%3Cp%3E%20Learn%20programming%20and%20technology%20in%20bits.%3C%2Fp%3E%20%0A%3C%2Fbody%3E%20%0A%3C%2Fhtml%3E%20">hixie.ch</a></p><h3>Parsing of HTML Document by Browser</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/213/0*IzxDwX0cWYOQv7vf.png" /></figure><p>Let’s discuss briefly how HTML document is parsed by the browser and DOM is generated. When the browser processes HTML document, it performs the following steps:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/0*OYcKXz2WXIesO3gV.png" /><figcaption>Received Raw Data</figcaption></figure><ol><li>Conversion: The browser first converts received data into individual characters based on specified character encoding of the document( ex.UTF-8).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/0*Ed0VmYRWLxcpLzGK.png" /><figcaption>Characters obtained from Raw Data</figcaption></figure><p>2. Tokenizing: In next step, browser read strings of characters obtained from the first step and convert them into distinct tokens as specified by the W3C standards; for example “&lt;html&gt;” is a token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/0*K0QJRy5pNlMA7mpz.png" /><figcaption>Tokens generated from characters</figcaption></figure><p>3. Lexing: The tokens produced in the second step are converted into “objects”, which define their properties and rules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/0*Xed314n9BDS33VlK.png" /><figcaption>Nodes</figcaption></figure><p>4. DOM construction: The objects created in this way are then linked to a tree data structure which also captures the relationship between HTML tags as defined in the original document. For example, The HTML object is the parent of the body object, the body object is the parent of paragraph object and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*3veTLHPWPmE0cNN-PIMKcg.png" /><figcaption>DOM Tree</figcaption></figure><p>The DOM generated by above steps are used by the browser for all further processing.</p><p>In the next article, we will see the DOM tree in detail and how we can use javascript to modify the structure, content, and style of an HTML document.</p><p><em>Originally published at </em><a href="https://hackinbits.com/blog/introduction-to-dom"><em>hackinbits.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9d8e1500330" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackinbits/blog-introduction-to-dom-b9d8e1500330">Blog | Introduction to DOM</a> was originally published in <a href="https://medium.com/hackinbits">hackinbits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python List Basics]]></title>
            <link>https://medium.com/hackinbits/python-list-basics-d1f013e8c61a?source=rss----9e578ea0c8d1---4</link>
            <guid isPermaLink="false">https://medium.com/p/d1f013e8c61a</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[lists]]></category>
            <dc:creator><![CDATA[Srijan Saumya]]></dc:creator>
            <pubDate>Mon, 29 Oct 2018 03:12:08 GMT</pubDate>
            <atom:updated>2018-10-29T03:12:08.350Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*Bvt5cwQ8cqyz5HnV.png" /></figure><p>Python list is a sequence of objects in an ordered fashion. It is similar to arrays in other programming languages but it is heterogeneous in nature. A single list can hold different types of data objects(string, integer, float etc.). It can hold other lists also, a list inside another list is called a nested list.</p><p><strong>Note:</strong> You can run examples in this article on <a href="https://trinket.io/python">trinket.io</a> online.</p><h3>Create an empty list</h3><p>&gt;&gt;&gt; list1 = []</p><p>&gt;&gt;&gt; print list1</p><p><strong>[] #output</strong></p><h3>Create a list with three elements</h3><p>&gt;&gt;&gt; list1 = [1, &quot;hackinbits.com&quot;, 2.3]</p><h3>Accessing a list element</h3><p>&gt;&gt;&gt; list1 = [1, &quot;hackinbits.com&quot;, 2.3]</p><p>&gt;&gt;&gt; list1[1]</p><p><strong>&#39;hackinbits.com&#39; #output</strong></p><h3>Updating a list</h3><p>&gt;&gt;&gt; list1 = [1, 2, 3, 4]</p><p>&gt;&gt;&gt; list1[1] = 34</p><p>&gt;&gt;&gt; print list1</p><p><strong>[1, 34, 3, 4] #output</strong></p><h3>An empty list can also be created using list() method</h3><p>&gt;&gt;&gt; list1 = list()</p><p>&gt;&gt;&gt; print list1</p><p><strong>[] #output</strong></p><p>There are various operations that can be performed on lists using in-build list methods.</p><h3>append()</h3><p>Add a new element to the end of the list.</p><p>&gt;&gt;&gt; list1 = [1, 2]</p><p>&gt;&gt;&gt; print list1</p><p><strong>[1, 2] #output</strong></p><p>&gt;&gt;&gt; list1.append(3)</p><p>&gt;&gt;&gt; list1.append(4)</p><p>&gt;&gt;&gt; print list1</p><p><strong>[1, 2, 3, 4] #output</strong></p><h3>insert()</h3><p>Insert a new element at the specified index.</p><p>&gt;&gt;&gt; list1 = [1, 2, 3]</p><p>&gt;&gt;&gt; list1.insert(23, 1)</p><p>&gt;&gt;&gt; print list1</p><p><strong>[1, 23, 2, 3] #output</strong></p><h3>remove()</h3><p>Deletes the specified element from the list.</p><p>&gt;&gt;&gt; list1 = [1, 2, 3]</p><p>&gt;&gt;&gt; list1.remove(2)</p><p><strong>[1, 3] #output</strong></p><h3>pop()</h3><p>Removes an item from the list and also returns it.</p><p>&gt;&gt;&gt; list1 = [1, 2, 3]</p><p>&gt;&gt;&gt; item = list1.pop()</p><p>&gt;&gt;&gt; print list1</p><p><strong>[1, 2] #output</strong></p><p>&gt;&gt;&gt; print item</p><p><strong>3 #output</strong></p><h3>index()</h3><p>Returns the index of an element that matches first.</p><p>&gt;&gt;&gt; list1 = [1, 2, 3, 4]</p><p>&gt;&gt;&gt; list1.index(3)</p><p><strong>2 #output</strong></p><h3>count()</h3><p>Returns the total number of item count, passed as an argument to the method.</p><p>&gt;&gt;&gt; list1 = [1, 2, 3, 4, 5, 3]</p><p>&gt;&gt;&gt; list1.count(3)</p><p><strong>2 #output</strong></p><h3>reverse()</h3><p>Inverts the order of the elements in a list.</p><p>&gt;&gt;&gt; list1 = [1, 2, 3]</p><p>&gt;&gt;&gt; list1.reverse()</p><p><strong>[3, 2, 1] #output</strong></p><h3>extend()</h3><p>Extends a list by adding elements from another list (passed as a parameter).</p><p>&gt;&gt;&gt; list1 = [1, 2]</p><p>&gt;&gt;&gt; list2 = [3, 4]</p><p>&gt;&gt;&gt; list1.extend(list2)</p><p>&gt;&gt;&gt; print list1</p><p><strong>[1, 2, 3, 4] #output</strong></p><p>&gt;&gt;&gt; print list2</p><p><strong>[3, 4] #output</strong></p><h3>sort()</h3><p>Orders the elements of a list in an ascending manner.</p><p>&gt;&gt;&gt; list1 = [5, 6,3, 90, 3, 2]</p><p>&gt;&gt;&gt; list1.sort()</p><p>&gt;&gt;&gt; print list1</p><p><strong>[2, 3, 3, 5, 6, 90] #output</strong></p><p><strong>A list copy operation can be performed using the assignment operator.</strong></p><p>&gt;&gt;&gt; list1 = [1, 2, 3, 4]</p><p>&gt;&gt;&gt; list2 = list1</p><p>&gt;&gt;&gt; print list2</p><p><strong>[1, 2, 3, 4] #output</strong></p><p><strong>This kind of copy using the assignment operator is called shallow copy. Any changes in list1 will make the same change in list2.</strong></p><p>&gt;&gt;&gt; list1[2] = 22</p><p>&gt;&gt;&gt; print list2</p><p><strong>[1, 2, 22, 4] #output</strong></p><h3>Solution to shallow copy in python list:</h3><h4>Using the in-built copy module</h4><p>&gt;&gt;&gt; import copy</p><p>&gt;&gt;&gt; list1 = [1, 2, 3, 4]</p><p>&gt;&gt;&gt; list2 = copy.deepcopy(list1)</p><p>&gt;&gt;&gt; print list2</p><p><strong>[1, 2, 3, 4] #output</strong></p><p>&gt;&gt;&gt; list1[1] = 22</p><p>&gt;&gt;&gt; print list2</p><p><strong>[1, 2, 3, 4] #output</strong></p><h4>Creating another list and copying the content</h4><p>&gt;&gt;&gt; list1 = [1, 2, 3, 4]</p><p>&gt;&gt;&gt; list2 = []</p><p>&gt;&gt;&gt; for i in list1: list2.append(i)</p><p>&gt;&gt;&gt; list1[1] = 22</p><p>&gt;&gt;&gt; print list2</p><p><strong>[1, 2, 3, 4] #output</strong></p><p><em>Originally published at </em><a href="https://hackinbits.com/blog/python-list-basics"><em>hackinbits.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1f013e8c61a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackinbits/python-list-basics-d1f013e8c61a">Python List Basics</a> was originally published in <a href="https://medium.com/hackinbits">hackinbits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux kernel is the core of any Linux Operating System.]]></title>
            <link>https://medium.com/hackinbits/linux-kernel-is-the-core-of-any-linux-operating-system-77f229dafb6b?source=rss----9e578ea0c8d1---4</link>
            <guid isPermaLink="false">https://medium.com/p/77f229dafb6b</guid>
            <category><![CDATA[kernel]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-kernel]]></category>
            <category><![CDATA[operating-systems]]></category>
            <dc:creator><![CDATA[Srijan Saumya]]></dc:creator>
            <pubDate>Sat, 27 Oct 2018 18:47:27 GMT</pubDate>
            <atom:updated>2018-10-29T02:56:04.947Z</atom:updated>
            <content:encoded><![CDATA[<h3>Linux Kernel Explained</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*vrZoiiBxvE0Mkn79PWXnLg.png" /></figure><p>Linux kernel is the core of any Linux Operating System. A Linux Distribution consists of a Linux Kernel and other supporting software/tools which are required for file operations, user management, system management etc. Each of these software/tools performs small tasks of the complete system.</p><p>Kernels, in general, are classified on basis of whether they perform critical system tasks in Kernel Space or User Space. They are classified as Monolithic, Microkernel and Hybrid Kernel. Linux is a Monolithic Kernel. Let’s discuss them in little detail to have a better understanding of their working principles.</p><h3>User Space and Kernel Space</h3><p>System Memory consists of RAM (Random Access Memory) cells, which are accessed at extremely high speed but data in them are retained for a very short period of time. RAM hold programs and data that are currently in use by CPU because access time to main storage (Hard drives) are very high. Therefore RAM acts as a high-speed intermediary between system CPU and hard drive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*bFm2PrAvDRSu6ul8.png" /><figcaption>User space and Kernel Space</figcaption></figure><p>System Memory is divided into two distinct areas — Kernel Space and User Space:</p><h3>User Space</h3><p>In User space, user applications are executed. All user processes run in this space. A process is a running instance of a program. The kernel manages user processes in user space to prevent them from interfering with each other.</p><p>GNU C Library (glibc) also resides in User Space. It provides the System Call Interface which provides the mechanism to transition between the user-space application and the Kernel. More on it later.</p><h3>Kernel Space</h3><p>Kernel space is where core operating system codes are executed. The kernel provides its services using this space.</p><h3>Linux is a Monolithic Kernel</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*SaQmwogIwAcJzACf.png" /></figure><p>Monolithic kernel is an operating system architecture where the entire operating system is running in kernel space. In a monolithic kernel, the OS runs in supervisor mode and the applications run in user mode. Supervisor mode enables execution of all instructions, including privileged instructions. As more code are executed in supervisor mode, the monolithic kernel has a larger memory and install footprint.</p><p>In Linux, however, developers found a way to solve this problem by creating dynamically loadable modules. Modules can be loaded dynamically at runtime. These modules allow easy extension of the operating system’s capabilities as per user requirement. A module typically adds functionality to OS for things like devices, file systems, and system calls.</p><p>Third party drivers and software are not installed by default in many distributions because they are closed source. These drivers and software are made available by there developers as pre-compiled modules. These modules are free as in beer but are not free as in speech. For these reasons, they are not pre-loaded into the kernel for most of the Linux distributions.</p><h3>Microkernel</h3><p>Microkernel whereas only perform critical tasks in kernel space. Pretty much everything else is executed in user space. For that reason, Microkernel has less memory footprint and is more secure. We will have the discussion about different types of kernel and their architecture in another article.</p><p>Linux kernel is constantly evolving. Thousands of people around the world are contributing to its development daily. You can find information about current and previous releases of kernel at <a href="https://www.kernel.org/">www.kernel.org</a>.</p><h3>If you like this article, clap a few times to support us. More interesting articles are on its way…</h3><h3>Follow <a href="https://hackinbits.com/blog">Hackinbits.com</a></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77f229dafb6b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackinbits/linux-kernel-is-the-core-of-any-linux-operating-system-77f229dafb6b">Linux kernel is the core of any Linux Operating System.</a> was originally published in <a href="https://medium.com/hackinbits">hackinbits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Linux]]></title>
            <link>https://medium.com/hackinbits/linux-is-an-open-source-operating-system-58a050b33dd9?source=rss----9e578ea0c8d1---4</link>
            <guid isPermaLink="false">https://medium.com/p/58a050b33dd9</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-kernel]]></category>
            <category><![CDATA[distro-linux]]></category>
            <category><![CDATA[linux-introduction]]></category>
            <category><![CDATA[linux-os]]></category>
            <dc:creator><![CDATA[Srijan Saumya]]></dc:creator>
            <pubDate>Wed, 23 May 2018 11:36:14 GMT</pubDate>
            <atom:updated>2018-05-23T11:38:30.668Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*SdXwF9xpwJbcKTVjmplljQ.jpeg" /></figure><p>Linux is an Open Source Operating System. An operating system is the set of basic programs and utilities that make your computer run. It was created by Linus Torvalds back in 1991 when he was studying computer science at the University of Helsinki. For understanding Linux better lets first discuss Linux Kernel and its distributions.</p><h3>Linux kernel</h3><p>In an operating system, “Kernel” is like a middleman sitting between computer hardware and application programs. It receives requests from the application programs and provides access to requested hardware, acting as an interface between them. The required programs, tools and utilities to serve Linux as a fully functional OS totally depends on you. So it is more accurate to consider Linux as a kernel. You are free to configure Linux OS with the tools and programs of your choice and requirement.</p><h3><strong>Linux Distributions</strong></h3><p>Programmers and Organizations started designing their own custom operating systems using Linux Kernel. You can also build your own custom operating system by having Linux Kernel as the backbone and selecting tools, utilities, and programs as per your requirement. Doing so is a very complex task and the resulting system may not function as you would have expected.</p><p>Many popular operating systems were already developed using Linux Kernel like Ubuntu, Fedora, Debian and the list go on. They have a large community which actively provides support, so instead of creating your own flavor of Linux, you can use an existing one which suits your requirement. We will discuss different distributions in detail in another article. For a beginner the following distributions are good choice:</p><ul><li><a href="https://www.ubuntu.com/">Ubuntu</a></li><li><a href="https://linuxmint.com/">Linux Mint</a></li><li><a href="https://zorinos.com/">Zorion OS</a></li><li><a href="https://elementary.io/">Elementary OS</a></li><li><a href="https://manjaro.org/">Manjaro Linux</a></li></ul><h3>GNU/Linux</h3><p>Linux Kernel is generally bundled with GNU tools and utilities to provide a full set of functionality an operating system should have. GNU is also an open source project and all software created by them are free and released under their own Open Source License like <a href="https://en.wikipedia.org/wiki/GNU_General_Public_License">GPL License</a>. For that reason, the operating system created with GNU tools and utilities are often referred to as GNU/Linux. However, not all Linux distributions use GNU components as part of their System. For example, Android relies very little on GNU tools and yet uses the Linux kernel at its core.</p><h3>Advantages of Using Linux</h3><ul><li><strong>Linux is free. Free as in beer.</strong> You don’t need to spend a dime to install Linux and you are free to configure your system as Linux source code is open. It is generally released under <a href="https://en.wikipedia.org/wiki/GNU_General_Public_License">GPL License</a> (GNU Public License).</li><li><strong>Linux is Portable to any hardware platform.</strong> You are free to make changes to Linux kernel according to your hardware requirement. All the documentation and help are available free of cost.</li><li><strong>Linux does not need the frequent reboot.</strong></li><li><strong>Linux is secure and versatile.</strong> Linux security model is based on that of UNIX, which has proved to be robust and secure over time, again and again.</li><li><strong>Linux OS and applications have very short debug times.</strong> It has a vast community of developers and testers around the globe, for that reason very less number of bugs live to see another day and they are generally fixed within hours of discovery.</li></ul><p>Linux development is far from over, and developers are working around the clock to make it more reliable and secure with time. If you are a developer and Linux is on your list, install a distribution which suits your requirement and start learning it today.</p><h3>Useful Resources for Learning Linux</h3><p>There are many resources available online for learning Linux. I will mention a couple of them here:</p><ul><li><a href="http://www.tldp.org/guides.html">Linux Documentation Project — TLDP.ORG</a></li><li><a href="http://linuxcommand.org/">LinuxCommand.org</a></li></ul><h4>If you like this article, clap a few times. More interesting articles on its way, follow Hackinbits and we will inform you when new articles will arrive.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58a050b33dd9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackinbits/linux-is-an-open-source-operating-system-58a050b33dd9">Introduction to Linux</a> was originally published in <a href="https://medium.com/hackinbits">hackinbits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Javascript Data Types Explained]]></title>
            <link>https://medium.com/hackinbits/javascript-data-types-explained-670b00aa3c0c?source=rss----9e578ea0c8d1---4</link>
            <guid isPermaLink="false">https://medium.com/p/670b00aa3c0c</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[data-type]]></category>
            <category><![CDATA[hackinbits]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Srijan Saumya]]></dc:creator>
            <pubDate>Tue, 22 May 2018 12:44:03 GMT</pubDate>
            <atom:updated>2018-05-22T12:44:03.251Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*rGSBTKJaG1W0QOxR1VKCyQ.jpeg" /><figcaption>Image from <a href="https://pixabay.com/en/users/Pexels-2286921/">Pixabay</a></figcaption></figure><h3>Introduction</h3><p>When you are ordering food online, you select food by their “name” from online menu, lets say you selected ‘Cheese Burger’ which is of type string used to represent text. ‘Cheese Burger’ will have an associated cost say ‘$5’ which is a numeric value. As you proceed to checkout, option for ‘extra cheese’ pops in, which you can answer in either yes or no, or in technical term true or false.</p><p>In similar way, values in a program are expressed in different representations based on what you are using it for. These different representations for values are called data types in programming terminology.</p><ul><li><strong>‘Cheese Burger’:</strong> Value can be displayed on screen using a string.</li><li><strong>‘$5’:</strong> can be represented as a number, so when you add more items, math can be done on them.</li><li><strong>‘yes’ or ‘no’:</strong> A decision can be represented using a boolean (true or false).</li></ul><h3>Data Types in Javascript</h3><p>The data types in javascript can be further divided as <strong>Primitive</strong> and <strong>Object</strong>. There are total of 6 primitive types defined by latest ECMAScript standard:</p><ol><li>boolean</li><li>null</li><li>undefined</li><li>number</li><li>string</li><li>symbol(new in ECMAScript 2015)</li></ol><p>and <strong>Object Type</strong>.</p><h3>Primitive Types</h3><p>In Javascript, all values except Object are defined as immutable values (values that cannot be changed or modified).</p><h4>Boolean</h4><p>Boolean represents logical entity that can only have two values, true or false. It is useful in controlling program flow and decision making using conditional statements.</p><p>var bool = true;<br>if ( bool ) {<br>//then some action;<br>}</p><h4>Null</h4><p>null represents absense of any value ie empty or non-existent value. null explicitly means nothing. Content of variable can be erased without deleting it, by assigning it to null.</p><p>var num = 45;<br>num = null; //num contains no value now</p><h4>Undefined</h4><p>Undefined means variable has been declared but is not yet assigned to any value.</p><pre>var exp;<br>alert(exp); //<strong>undefined</strong></pre><h4>Number</h4><p>According to ECMAScript standard there is only one Number Type in Javascript. It serves for both integer and floating point. The number type have three special numeric values: +Infinity, -Infinity, and NaN(not-a-number).</p><ol><li><strong>Infinity and -Infinity</strong> are special values that represent mathematical infinity and are greater than or smaller to any number respectively.</li></ol><pre>var exp = 1 / 0;<br>alert(exp); //<strong> Infinity</strong></pre><p><strong>2. NaN</strong> represents a computational error. It is result of failed or incorrect mathematical operations.</p><pre>var exp = &quot;hackinbits&quot; / 45;<br>alert(exp); // <strong>NaN</strong></pre><p>Any further operations on NaN will give NaN</p><pre>var exp1 = &quot;hackinbits&quot; / 2;<br>var exp2 = exp1 + 3;<br>alert(exp2); // <strong>NaN</strong></pre><h4>String</h4><p>Strings are used to represent text. Javascript strings are immutable, that means once a string is created, it is not possible to modify it.</p><pre>var exp = &quot;Welcome to hackinbits.com&quot;;</pre><h4>Symbol</h4><p>Symbols are new to Javascript. Symbols are unique and immutable primitive value. They are used to create unique identifiers for objects (more on it in another article, as it can be explained better after discussing few topics first).</p><h3>Object Type</h3><p>Object type refers to a compound value that can be seen as collection of properties. Properties are key/value pairs. Keys are strings (or Symbols) and values can be of any type, including other objects.</p><p>var obj = { <br> name: &#39;Cheese Burger&#39;,<br> cost: 5,<br> extra_cheese: true<br>};</p><p>You would have noticed that the key <strong>extra_cheese</strong> is written with ‘_’ rather than using a space. Space can be used as well but then key should be quoted in “”(double quotes like “key”), example :</p><p>var obj = { <br> name: &#39;Cheese Burger&#39;,<br> cost: 5,<br> &quot;extra cheese&quot;: true<br>};</p><h3>Using typeof operator for determining types</h3><p>The typeof operator helps in finding the type of value that your variable is storing. It returns a string indicating the type of argument. It supports two syntax:</p><ol><li>As an operator:<strong> typeof v.</strong></li><li>As a function:<strong> typeof (v).</strong></li></ol><pre>var exp = typeof &quot;Welcome to hackinbits.com&quot;;<br>alert(exp); // <strong>string</strong></pre><h3>Dynamic Typing</h3><p>Variables in javascript are not directly associated with any particular data type. Only values have types in javascript. Variables are simple container for values. You can say, javascript have typed values and not typed variables.</p><p>var exp = 45; // exp is a Number<br>var exp = &#39;hackinbits.com&#39;; // exp is now a String<br>var exp = true; // exp is now a Boolean</p><h3>Summary</h3><ul><li>There are seven basic data types in Javascript :</li></ul><ol><li>boolean</li><li>null</li><li>undefined</li><li>number</li><li>string</li><li>symbol(new in ECMAScript 2015)</li><li>and <strong>Object Type</strong></li></ol><ul><li>Javascript has typed values instead of typed variables. Variables are simple container for values.</li><li>We can use typeof operator for knowing the type of value a variable is storing.</li></ul><p><strong>If you like this article, clap a few times. More interesting articles on its way, follow </strong><a href="https://hackinbits.com/"><strong>Hackinbits</strong></a><strong> and we will inform you when new articles will arrive.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=670b00aa3c0c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackinbits/javascript-data-types-explained-670b00aa3c0c">Javascript Data Types Explained</a> was originally published in <a href="https://medium.com/hackinbits">hackinbits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Doctype and its purpose in HTML Document]]></title>
            <link>https://medium.com/hackinbits/doctype-is-required-in-html-document-for-legacy-reasons-ed980a7451be?source=rss----9e578ea0c8d1---4</link>
            <guid isPermaLink="false">https://medium.com/p/ed980a7451be</guid>
            <category><![CDATA[hackinbits]]></category>
            <category><![CDATA[doctype]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Srijan Saumya]]></dc:creator>
            <pubDate>Mon, 21 May 2018 19:47:00 GMT</pubDate>
            <atom:updated>2019-07-08T09:24:12.300Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*viJa162a7IL6qsHRTYAgaQ.png" /><figcaption>Image from <a href="https://pixabay.com/en/users/JuralMin-2051452/">Pixabay</a></figcaption></figure><p>Doctype is required in HTML document for legacy reasons. Its main purpose is to prevent the browser from entering ‘Quirks Mode’ while rendering the document. Doctype declaration ensures that the browser will make its best effort to follow relevant specifications while rendering the document, rather than using a different rendering mode that is incompatible with some specifications.</p><h3>What is Quirks Mode?</h3><p>In the old days, pages were written separately for supporting different browsers. It means that if you were developing a website in the early days of the internet, you would have written code separately for chrome and firefox. To solve this problem, standards were developed by W3C but browsers could not have started supporting the new standards at once as it would have broken most of the websites at that time. Therefore, different rendering modes were developed for supporting new standard compliant sites as well as old legacy sites.</p><p>Layout Engine now uses three different rendering modes in web browsers:</p><ol><li><strong>Quirks modes:</strong> Layout emulates non-standard behavior as supported by old browsers</li><li><strong>Almost standard modes:</strong> Small number of quirks/old behavior are supported while rendering the layout.</li><li><strong>Full standard modes:</strong> Layout emulates standard behavior as described by HTML and CSS specification.</li></ol><h3>Including &lt;!Doctype html&gt; in your Document</h3><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fjsfiddle.net%2Fus9p63g5%2F2%2Fembed%2Fhtml%2Cresult%2F&amp;src=https%3A%2F%2Fjsfiddle.net%2Fus9p63g5%2F2%2Fembedded%2F&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=jsfiddle" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3e818a7f8a9191ba9ef8b11f23f89a90/href">https://medium.com/media/3e818a7f8a9191ba9ef8b11f23f89a90/href</a></iframe><p>Including the DOCTYPE in a document ensures that the browser makes best-effort to follow standard specifications. The doctype should be included at the beginning of HTML document as shown in the above example. In HTML5, Doctype’s only purpose is to activate the full standard mode.</p><p><strong>Note:</strong> Anything before the Doctype declaration can trigger quirks mode in IE 9 and older browsers.</p><p>Previous versions of HTML standard gave additional meaning to DOCTYPE, but it was never used by browsers for any other purpose than switching between different modes. We will have this topic for another article.</p><h3>Summary</h3><p>When you are writing HTML Document next time, don’t forget to add &lt;!DOCTYPE html&gt; at starting of the document. If you do, be prepared to debug any unusual behavior or so-called quirks in your document.</p><p>If you like this article, clap a few times. More interesting articles on its way, follow <a href="https://hackinbits.com/">Hackinbits</a> and we will update you when new articles will arrive.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed980a7451be" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackinbits/doctype-is-required-in-html-document-for-legacy-reasons-ed980a7451be">Doctype and its purpose in HTML Document</a> was originally published in <a href="https://medium.com/hackinbits">hackinbits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>