<?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 Codeguage on Medium]]></title>
        <description><![CDATA[Stories by Codeguage on Medium]]></description>
        <link>https://medium.com/@codeguage?source=rss-dcab0a0b62fd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*GxZEGBq1YtU1qQieiIvO1w.png</url>
            <title>Stories by Codeguage on Medium</title>
            <link>https://medium.com/@codeguage?source=rss-dcab0a0b62fd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 09:15:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@codeguage/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[You Know JavaScript But Can’t Solve Problems in It?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/you-know-javascript-but-cant-solve-problems-in-it-97d130e2c60a?source=rss-dcab0a0b62fd------2"><img src="https://cdn-images-1.medium.com/max/2600/0*E7GKAK1mqpxZZ_DD" width="2766"></a></p><p class="medium-feed-snippet">If you find yourself struggling in solving problems in JavaScript but feel that you know the language well enough, here&#x2019;s your learning&#x2026;</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/you-know-javascript-but-cant-solve-problems-in-it-97d130e2c60a?source=rss-dcab0a0b62fd------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/you-know-javascript-but-cant-solve-problems-in-it-97d130e2c60a?source=rss-dcab0a0b62fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/97d130e2c60a</guid>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Codeguage]]></dc:creator>
            <pubDate>Fri, 22 Aug 2025 02:32:32 GMT</pubDate>
            <atom:updated>2025-08-22T02:32:32.032Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[JavaScript Interview Question: Compute the Sum of a List of Numbers, Recursively]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/javascript-interview-question-compute-the-sum-of-a-list-of-numbers-recursively-a79d0f0d2643?source=rss-dcab0a0b62fd------2"><img src="https://cdn-images-1.medium.com/max/2600/0*c_qPZaz12Km_cB6L" width="5472"></a></p><p class="medium-feed-snippet">See how as simple of a problem as computing the sum of a list of numbers can be made into an interview question by adding recursion to it.</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/javascript-interview-question-compute-the-sum-of-a-list-of-numbers-recursively-a79d0f0d2643?source=rss-dcab0a0b62fd------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/javascript-interview-question-compute-the-sum-of-a-list-of-numbers-recursively-a79d0f0d2643?source=rss-dcab0a0b62fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/a79d0f0d2643</guid>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Codeguage]]></dc:creator>
            <pubDate>Wed, 13 Aug 2025 18:05:50 GMT</pubDate>
            <atom:updated>2025-08-15T01:52:04.708Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[9 Questions on Hoisting in JavaScript Answered]]></title>
            <link>https://levelup.gitconnected.com/9-questions-on-hoisting-in-javascript-answered-ee59a6934e61?source=rss-dcab0a0b62fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee59a6934e61</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Codeguage]]></dc:creator>
            <pubDate>Fri, 07 Feb 2025 15:54:19 GMT</pubDate>
            <atom:updated>2025-02-10T14:02:24.545Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn from questions commonly asked on the web regarding hoisting in JavaScript and clear all your doubts.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P6tWhDN8VyxXEME_" /><figcaption>Photo by <a href="https://unsplash.com/@6heinz3r?utm_source=medium&amp;utm_medium=referral">Gabriel Heinzer</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Hoisting is perhaps one of the most peculiar aspects of <a href="https://www.codeguage.com/courses/js">JavaScript</a>. It’s something which doesn’t get help from experience of another programming language — as far as I know, almost no other programming language exhibits hoisting like JavaScript does. In fact, to some extent, even the term <em>‘hoisting’</em> is perhaps nascent for a programming language.</p><p>Due to its nature, hoisting is either misunderstood completely or understood without crystal-clear clarity. In this respect, there are numerous questions people tend to ask with regards to hoisting and that why is it even something to worry about in 2025.</p><p>This article hopefully aims to clear all your confusions regarding hoisting in JavaScript. By the end of it — and I encourage you to read till the end — you’ll be absolutely confident in your ability to reason about the whole intuition behind hoisting and when you might leverage it, if at all.</p><h3>1. Why does JavaScript have hoisting?</h3><p>This question can be broken down into two questions:</p><ul><li><em>Why did JavaScript have hoisting in its early days?</em></li><li><em>Why does JavaScript have hoisting to date?</em></li></ul><p>Let’s answer each one.</p><h4>Why did JavaScript have hoisting in its early days?</h4><p>Remember that JavaScript had extreme simplicity as a design goal. The goal was was to appeal to non-technical people so they could easily add simple interactions in their websites. And to a large extent, this goal was indeed met.</p><p>Speaking of this simplicity, many features were added to the language exactly for this very reason — simplicity. Hoisting is an example.</p><p>The initial motivation in JavaScript was function hoisting, whereby a function is accessible even before its definition. Variable hoisting, as per <a href="https://x.com/BrendanEich/status/522395336615428097">Brendan Eich’s own words</a>, was an unintended consequence of function hoisting.</p><p>So the reason why JavaScript had hoisting was to make the language simpler.</p><p>Without a doubt, it would’ve been superbly convenient for people to call functions without having to worry about whether they were even declared before that or not.</p><h4>Why does JavaScript have hoisting to date?</h4><p>This is answered later below.</p><h3>2. How does hoisting work in JavaScript?</h3><p>We all have heard of the fact that hoisting works by taking the declaration at the top of its scope. In reality, this is true but with some abstraction applied to the explanation.</p><p>Let’s dive a little bit deeper into how hoisting actually works…</p><p>First the code is parsed and then the parsed version goes through a first pass. In this first pass, all variable and function declarations are found and taken to the very top of start of scopes. In other words, in this first pass, the interpreter basically hoists all declarations. In the second pass, the code finally gets executed.</p><p><em>Is this more work for the interpreter?</em> Definitely yes.</p><p><em>Does it affect performance negatively?</em> Not much, if at all. The thing is that hoisting is done once — in the first pass after parsing — so there’s no continual overhead as a script runs add. Furthermore, the overhead of hoisting in the initial run is also almost negligible.</p><h3>3. Explain hoisting with an example</h3><p>Actually there are many classifications of hoisting. So this question boils down to showing an example for every classification.</p><h4>var hoisting</h4><p>Let’s review var hoisting to begin with:</p><pre>// This doesn&#39;t throw because of `var` hoisting<br>console.log(x);<br><br>var x = 10;</pre><pre>undefined</pre><h4>let and const hoisting</h4><p>Now, let’s see let ( const works similarly):</p><pre>// This throws due to the TDZ<br>console.log(x);<br><br>let x = 10;</pre><pre>Uncaught ReferenceError: Cannot access &#39;x&#39; before initialization</pre><p>Before the line where x is declared, we try to access it. This immediately throws an error because the region before the line where a let declaration appears, in its respective scope (global in this case), is a <em>temporal dead zone</em> where the variable&#39;s access fails.</p><p>Keep in mind that because knowledge of the fact is kept that a let declaration appears later when we access x in console.log(x), there is surely some kind of pre-processing involved here before executing the code.</p><p>I personally would refrain from calling this as hoisting of let, leaving the term <em>&#39;hoisting&#39;</em> to only refer to a case where it&#39;s <em>allowed</em> to refer to an identifier before its declaration.</p><h4>Function hoisting</h4><p>Anyways, let’s now see function hoisting:</p><pre>// The function is accessible even before its definition<br>greet();<br><br>function greet() {<br>   console.log(&#39;Hello world!&#39;);<br>}</pre><pre>Hello world!</pre><p>By far, the only useful aspect of hoisting lies in this type — function hoisting.</p><h4>class hoisting</h4><p>Next up, we have class hoisting, which is more or less just like let/const hoisting:</p><pre>console.log(Foo);<br><br>class Foo {}</pre><pre>Uncaught ReferenceError: Cannot access &#39;Foo&#39; before initialization</pre><p>In the code above, we try accessing the Foo class before its declaration. The code throws an error because of the temporal dead zone in which Foo is prior to its declaration.</p><p>Again, I’d refrain from really calling this as <em>‘hoisting’</em> of class - it&#39;s invalid to refer to the class prior to its declaration, likewise if our definition of <em>&#39;hoisting&#39;</em> only allows for cases where it&#39;s valid to access an identifier before its declaration, then this doesn&#39;t apply.</p><h4>import hoisting</h4><p>And then finally there’s import hoisting as well but that&#39;s quite apparent because JavaScript clearly states that all import statements are processed at the start of evaluating a given script:</p><pre>/** constants.js */<br><br>export const a = 10;</pre><pre>// This works because of `import` hoisting<br>console.log(a);<br><br>import { a } from &#39;./constants.js&#39;;</pre><p>In the code above, the console.log(a) statement logs the value of a, which is 10, without any issues even though the import declaration occurs after it. This is by virtue of import hoisting.</p><h3>4. Why do we need hoisting in JavaScript?</h3><p>This question can also be rephrased as: <em>What is the application of hoisting in JavaScript?</em></p><p>Well, there isn’t anything for which we explicitly require hoisting in JavaScript. That is, hoisting isn’t something which we need for our JavaScript applications; it’s just a casual behavior exhibited as per the language’s design.</p><p>To better understand what this means, let’s make a quick comparison.</p><p>Consider the <a href="https://www.codeguage.com/courses/js/functions-arguments#Default-valued_parameters">default-valued parameter</a> feature in JavaScript (introduced with ES6).</p><p><em>Why do we need a default-valued parameter?</em> Well, when we need to define a function with a parameter that isn’t required per se, and in case of not being provided with a corresponding argument, the parameter must assume a default value, that’s when we need a default-valued parameter.</p><p>You see, there is a clear-cut application of the default-valued parameter feature in JavaScript. However, there is nothing like this for hoisting. Hoisting is, more or less, not a utilitarian feature but rather a behavioral feature; it only makes up the behavior of JavaScript when executed.</p><p>And that’s why there isn’t any real application of hoisting when we’re working with JavaScript.</p><h3>5. Why is hoisting still supported in JavaScript if it generally confuses code?</h3><p>Today, in JavaScript, the biggest reason why hoisting is still supported is for <strong>backwards compatibility</strong>. Legacy scripts might rely heavily upon hoisting and so removing it completely would mean bringing these scripts to a halt in new browsers.</p><p>Besides that, hoisting is also supported for convenience sake. It won’t be completely wrong to say that function hoisting is particularly useful at times (though, it isn’t something that I think other developers should eagerly aim for or that new languages should copy in any way).</p><h3>6. What is the difference between function hoisting and variable hoisting?</h3><p>Function hoisting refers to the behavior whereby a function is made available at the start of its respective scope before its declaration site.</p><p>In contrast, variable hoisting refers to the behavior whereby a variable’s declaration is made available at the start of its respective scope, for var, or where the variable is entered into a <em>temporal dead zone</em> at the start of its respective scope, for let (and const too), prior to its declaration.</p><p>It’s important to note that there isn’t a broad notion of <em>‘variable hoisting’</em> in JavaScript. It’s either var hoisting, or let hoisting (which might not classify as hoisting depending on how the term <em>&#39;hoisting&#39;</em> is defined).</p><p>Function hoisting was a real feature of the language (in its very early days); var hoisting was an afterthought of function hoisting; let hoisting was purely for the sake of remedying the flaws of var hoisting.</p><h3>7. Can we avoid hoisting in JavaScript?</h3><p>Being an intrinsic language feature, we can NOT technically avoid hoisting in JavaScript, so to speak.</p><p>However, we <em>can</em> deliberately structure our code so as to not leverage the convenience of hoisting (for it’s only a convenience more than anything else for function hoisting, and a troublesome trait for other kinds).</p><h3>8. What are the advantages of hoisting?</h3><p>Let’s be fair in answering this.</p><p>Function hoisting is the only kind of hoisting in JavaScript which could be considered as useful in some cases.</p><p>I am personally not a really big fan of function hoisting either but sometimes it might prove handy to have all the functions come last in a script after all concrete logic and implementation details have come.</p><p>But apart from function hoisting, there isn’t much benefit of hoisting, if at all.</p><h3>9. Do let and const get hoisted?</h3><p>It depends on the way we define the term <em>‘hoisted’</em> here. If we take <em>‘hoisting’</em> to mean that an identifier is accessible before its declaration site without any errors being generated, then let/const do not get hoisted.</p><p>But if we take <em>‘hoisting’</em> to mean that an identifier goes through some pre-processing for its declaration before the code is finally executed, then yes let/const get hoisted. With respect to this definition, let/const enter a temporal dead zone before their declaration site when they&#39;re hoisted.</p><p><em>Originally published at </em><a href="https://www.codeguage.com/blog/javascript-hoisting-questions"><em>https://www.codeguage.com</em></a><em> on February 7, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee59a6934e61" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/9-questions-on-hoisting-in-javascript-answered-ee59a6934e61">9 Questions on Hoisting in JavaScript Answered</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</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 Difference Between :focus, :focus-visible, and :focus-within in CSS?]]></title>
            <link>https://levelup.gitconnected.com/what-is-the-difference-between-focus-focus-visible-and-focus-within-in-css-ea38f3812f50?source=rss-dcab0a0b62fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea38f3812f50</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[accessibility]]></category>
            <dc:creator><![CDATA[Codeguage]]></dc:creator>
            <pubDate>Wed, 01 Jan 2025 10:03:24 GMT</pubDate>
            <atom:updated>2025-01-31T16:39:58.979Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is the Difference Between :focus, :focus-visible, and :focus-within in CSS?</h3><h4>Understand the difference between the three seemingly similar pseudo-classes in CSS: :focus, :focus-visible, and :focus-within.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0httkeNh4bj5A7cT" /><figcaption>Photo by <a href="https://unsplash.com/@pankajpatel?utm_source=medium&amp;utm_medium=referral">Pankaj Patel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As you may know, there are three similar sounding pseudo-classes in CSS, namely :focus, :focus-visible, and :focus-within.</p><p>At the first glance, one might get confused about the difference between these and when to use which one. The good news is: these three pseudo-classes are extremely simple to understand and distinguish from one another.</p><p>In this article, we shall understand what exactly is :focus, :focus-visible, and :focus-within, and when and how to use each one of these pseudo-classes.</p><p><strong>Read more: </strong>If you need a refresher on pseudo-classes, hop over to the chapter <a href="https://www.codeguage.com/courses/css/pseudo-classes">CSS Pseudo Classes</a>, in our <a href="https://www.codeguage.com/courses/css">CSS course</a>.</p><h3>The :focus pseudo-class</h3><p>First things first, the <strong>:focus</strong> pseudo-class applies to an element when it&#39;s <em>focused</em>.</p><p>This focus can be made using the mouse (when we click on the element), the keyboard (when we navigate to it by pressing Tab), or the underlying program (when we use JavaScript).</p><p>Furthermore, only <em>focusable elements</em> are allowed to receive focus and, therefore, be the subject of :focus. These are typically interactive elements in HTML - the likes of &lt;input&gt;, &lt;textarea&gt;, &lt;button&gt;, and so on.</p><p><strong>Note:</strong> Non-interactive elements such as &lt;p&gt;, &lt;h1&gt;, &lt;blockquote&gt;, &lt;code&gt;, etc., aren&#39;t focusable and therefore can&#39;t be the subject of :focus. It&#39;s only if we explicitly make them focusable, by setting the tabindex attribute on them, that we can expect :focus to apply to them.</p><p>Coming back to :focus, this pseudo-class is used to select and, thereafter, apply styles to elements when they are in the focused state.</p><p>Perhaps, the most naive example of doing so would be to consider an input field as demonstrated below:</p><pre>&lt;label&gt;<br>   &lt;span&gt;Name&lt;/span&gt;<br>   &lt;input type=&quot;text&quot; name=&quot;name&quot;&gt;<br>&lt;/label&gt;</pre><p><a href="https://www.codeguage.com/examples/blog/focus-vs-focus-visible-vs-focus-within/focus.html">Live Example</a></p><p>The moment we click on the input field, it receives focus and, consequently, the browser applies a black outline to it, as illustrated below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/0*7vBSNIR0nvUgV4U3.png" /><figcaption>The input field focused</figcaption></figure><p>This helps us immediately see which input are we currently in within a form of many input fields.</p><p>To better appreciate the benefit of this, imagine the opposite. Suppose we click on an input field and have no special styling applied to the field as we do so.</p><p><em>What do you think, would it be possible for us to determine which input are we currently in?</em> Well, it clearly won’t be impossible to do so but NOT that quick either.</p><p>The ideal thing in designing user interfaces of any kind is to <em>‘make everything as easy as possible.’</em> And in this case, this ideal world can very easily be achieved just by employing the :focus pseudo-class.</p><p>In essence:</p><p>The :focus pseudo-class (even the other two focus pseudo-classes) helps us <strong>improve the accessibility</strong> of a webpage.</p><p>By clearly communicating to the user visually as to where he currently is on the webpage, we make it easy enough for him to interact with the webpage and get his work done without any confusion.</p><p>In other words, :focus is more important of a pseudo-class than we might think it is.</p><p>But it’s not the only important focus-based pseudo-class; we have <strong>:focus-visible</strong> as well.</p><h3>The problem with :focus</h3><p>In the example above for :focus, we considered a basic, text input field. Let&#39;s now shift to a button in order to see a shortcoming of :focus.</p><p>Consider the following button, with the added :focus rule for it:</p><pre>&lt;button&gt;A button&lt;/button&gt;</pre><pre>button:focus {<br>   outline: 3px solid blue;<br>}</pre><p><a href="https://www.codeguage.com/examples/blog/focus-vs-focus-visible-vs-focus-within/focus-button.html">Live Example</a></p><p>The moment we click on the button, we get the desired blue outline, as illustrated below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/144/0*STchXeFYSHBM1EvR.png" /><figcaption>The button focused</figcaption></figure><p><em>But wait a second? Is this desire of us desirable?</em></p><p>Said another way: <em>Is it a wise decision to showcase the outline when we click on the button using the mouse?</em> As it turns out, NO, it’s not!</p><p>Let’s understand why…</p><p>When we click on a button — or any interactive element, in general, that is meant to <strong>perform an action</strong>, for e.g. a link — we already know where we are on the webpage. Obviously, because we click consciously on the button, we certainly can’t be confused about which element on the webpage currently has focus — we clearly know that it’s the button we just clicked that has the focus currently.</p><p>In this respect, it does NOT make much sense, if at all, to visually emphasize the button to be the currently focused element.</p><p><em>But why does this make sense for input fields?</em></p><p>Good question. You’re right in your observation that :focus works absolutely fine when we use it on input fields and there&#39;s a simple reason for it. When we click on an input field using the mouse, our <strong>job doesn&#39;t finish</strong>; we still have to enter data into the field.</p><p>And because our work isn’t done yet, we quickly and clearly need to know which input is currently active.</p><p>Most importantly notice the important, yet subtle, distinction between input fields and buttons (and other suchlike interactive elements):</p><ul><li>An input field doesn’t accomplish a task <em>immediately</em> and therefore requires focus to be visualized even when we use the mouse to interact with it.</li><li>A button accomplishes a task immediately (for e.g. adds an item to a cart) and therefore doesn’t pose the need to visually showcase it in its focused state when we interact with it using the mouse.</li></ul><p>So, at this point, we know that input fields gel nicely with the :focus pseudo-class but that&#39;s not the case with buttons.</p><p>But keep in mind that this reasoning only applies to when we interact with these elements using the mouse. <em>What happens when we shift to a keyboard?</em></p><p>Let’s find out…</p><h3>Interactions using the keyboard</h3><p>As you may know, it isn’t only possible to navigate around a webpage using the mouse; we can use the keyboard for this as well, and <em>equally well</em>.</p><p>In fact, if a webpage is built this way to only entertain mouse interactions, it’s extremely inaccessible.</p><p>Imagine someone broke their mouse device and now wants to prepare for their exam, and that there’s no way to order another one at the moment. The worst case would be if that person wanted to prepare from a website built only around mouse interactions.</p><p>As CSS developers, we must acknowledge this fact and design websites to be as accessible without a mouse as with it. In this respect, we must make sure to provide necessary visual emphasis on interactive elements when they receive focus.</p><p><strong>And this now includes buttons as well.</strong></p><p>Let’s state this again.</p><p>When we’re using the mouse to interact with a webpage, creating visual emphasis for buttons (and similar elements) in their focused state isn’t necessary; in fact, it’s undesirable as we saw above. This is because the user already knows that after clicking on the button, it is the one that comes in focus.</p><p>But when we’re using the keyboard instead, <strong>creating visual emphasis is utmost necessary</strong>. This is because, now, the user isn’t aware of which interactive element is in focus. We <em>need</em> to visually showcase this.</p><p>The problem is that we can’t use :focus for this styling concern because... <em>well</em>... it applies to button even when we interact with them using the mouse.</p><p><em>Now what?</em></p><p>No need to worry, for we have <strong>:focus-visible</strong> to the rescue!</p><h3>The :focus-visible pseudo-class</h3><p>I stress a lot on the fact that before getting to learn anything in programming, first gaze over its nomenclature (a fancy word for <em>‘naming’</em>). Chances are high that the meaning lies in the name itself.</p><p>Following this, if we analyze the name :focus-visible, it clearly has something to do with <em>&#39;focus&#39;</em> but also something to do with <em>&#39;visible&#39;</em>.</p><p><em>Can you figure out just by the name what this pseudo-class means?</em></p><p>Well, :focus-visible applies to an element that is in focus <em>and</em> whose focus needs to be made visible (ideally). Compactly, we could also say that :focus-visible applies to an element that ought to have its <em>focus visible</em>.</p><p>:focus-visible only shows up when we bring an element in focus using the keyboard, or some other non-mouse interaction (for e.g. using JavaScript).</p><p>Most importantly — and this is really really important — <strong>:focus-visible does NOT apply to buttons (and suchlike elements) when they receive focus by virtue of mouse interactions</strong>.</p><p>With this, let’s go back to our &lt;button&gt; example above and replace the :focus rule with :focus-visible so that the outline is only presented when the button receives focus via the keyboard:</p><pre>button:focus-visible {<br>   outline: 3px solid blue;<br>}</pre><p><a href="https://www.codeguage.com/examples/blog/focus-vs-focus-visible-vs-focus-within/focus-visible-button.html">Live Example</a></p><p>Here’s what we get when we click on the button (using the mouse):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/144/0*NHE5wwE-zJyAYHZe.png" /><figcaption>The button (with a :focus-visible style) focused again</figcaption></figure><p>Nothing.</p><p>But when we press the Tab key in order to navigate to the button and bring it in focus, we get the same outline as before:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/144/0*tlkZ4Ran9vKiEu-U.png" /><figcaption>The button focused via the keyboard</figcaption></figure><p>This brings us right at the ultimate conclusion that when styling buttons (or other suchlike elements, for e.g. &lt;a&gt;), we must preferably use :focus-visible instead of :focus (for reasons we saw above).</p><p>:focus-visible is basically a win-win situation in that (a) we don&#39;t apply styles when buttons are clicked, and therefore focused, using the mouse and (b) we do make sure that our webpage remains accessible when using the keyboard with necessary focus styles on buttons.</p><p><em>:focus-visible is a hero! (But I don&#39;t know the movie&#39;s name!)</em></p><h3>What about :focus-within?</h3><p>Obviously, we couldn’t end this article without going over the less useful <strong>:focus-within</strong> pseudo-class. Let&#39;s do that now.</p><p>:focus-within, as the name suggests ( <em>remember to read names carefully</em>), applies to an element that has <em>focus within it</em>.</p><p>Following is an example:</p><pre>&lt;div&gt;<br>   &lt;p&gt;This is a paragraph&lt;/p&gt;<br>   &lt;button&gt;A button&lt;/button&gt;<br>&lt;/div&gt;</pre><p>We have a button contained inside a &lt;div&gt;. Our goal is to style the &lt;div&gt; specially when its button is in focus. The following CSS accomplishes this:</p><pre>div:focus-within {<br>   background-color: pink;<br>}</pre><p><a href="https://www.codeguage.com/examples/blog/focus-vs-focus-visible-vs-focus-within/focus-within.html">Live Example</a></p><p>The moment the button receives focus, the &lt;div&gt; gets a pink background color.</p><p><em>Pretty basic.</em></p><p><strong>Note:</strong> Keep in mind that :focus-within behaves exactly like :focus in that it also shows up on mouse interactions on buttons, for example. It does NOT exhibit a behavior similar to :focus-visible.</p><p>Now you might be looking for a more practical example of :focus-within and that&#39;s precisely what I have up next for you.</p><p>As stated earlier, :focus-within isn&#39;t that commonly used in CSS but some cases are such that they can be solved pretty elegantly using :focus-within. Read on to learn about such a case.</p><h4>Practical use case for :focus-within</h4><p>Suppose we have an accessibility bar on a website that only shows up when using keyboard navigation. Initially, it’s hidden but only visually; that is, it’s possible to tab to either of the buttons inside this bar.</p><p><strong>Note:</strong><em> ‘Hidden only visually’</em> means that the element doesn’t have display: none or visibility: hidden set on it to otherwise actually hide it. For instance, opacity: 0 hides an element only visually.</p><p>Now, the moment any of the buttons in this accessibility bar comes into focus, it’s required to showcase this bar to the user.</p><p><em>But how to select the accessibility bar when either of its buttons has focus?</em> Well, supposing that the bar can be selected by the class selector .a11y-bar (<em>&#39;a11y&#39;</em> is a short form for <em>&#39;accessibility&#39;</em>), the desired selector would be .a11y-bar:focus-within.</p><p>.a11y-bar:focus-within selects the .a11y-bar whenever focus resides within it, which is exactly what we need.</p><p><em>Good job!</em></p><p>The link below demonstrates this example:</p><p><a href="https://www.codeguage.com/examples/blog/focus-vs-focus-visible-vs-focus-within/focus-within-practical.html">Live Example</a></p><h3>Further reading</h3><p>Despite the fact that we’ve covered almost everything that we need to know about :focus, :focus-visible, and :focus-within, there still is value in reading further from some resources as mentioned below:</p><ul><li><a href="https://www.w3.org/WAI/WCAG21/Techniques/css/C45">Using CSS :focus-visible to provide keyboard focus indication — WCAG 2.1 Techniques</a></li><li><a href="https://www.w3.org/WAI/WCAG21/Understanding/focus-visible.html">Understanding Success Criterion 2.4.7: Focus Visible | WAI | W3C</a></li><li><a href="https://www.w3.org/TR/selectors-4/#the-focus-pseudo">9.3. The Input Focus Pseudo-class: </a><a href="https://www.w3.org/TR/selectors-4/#the-focus-pseudo">:focus — Selectors Level 4 | W3C</a></li><li><a href="https://www.w3.org/TR/selectors-4/#the-focus-visible-pseudo">9.4. The Focus-Indicated Pseudo-class:: </a><a href="https://www.w3.org/TR/selectors-4/#the-focus-visible-pseudo">:focus-visible — Selectors Level 4 | W3C</a></li><li><a href="https://www.w3.org/TR/selectors-4/#the-focus-within-pseudo">9.5. The Focus Container Pseudo-class: </a><a href="https://www.w3.org/TR/selectors-4/#the-focus-within-pseudo">:focus-within — Selectors Level 4 | W3C</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea38f3812f50" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/what-is-the-difference-between-focus-focus-visible-and-focus-within-in-css-ea38f3812f50">What is the Difference Between :focus, :focus-visible, and :focus-within in CSS?</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[14 Common Questions for JSX (React) and Their Answers]]></title>
            <link>https://levelup.gitconnected.com/14-common-questions-for-jsx-react-and-their-answers-bba4db24d1fc?source=rss-dcab0a0b62fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/bba4db24d1fc</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Codeguage]]></dc:creator>
            <pubDate>Sun, 06 Oct 2024 13:10:55 GMT</pubDate>
            <atom:updated>2025-01-07T18:21:35.396Z</atom:updated>
            <content:encoded><![CDATA[<h4>Quickly revise your understanding of JSX by going through a series of 14 simple questions.</h4><figure><img alt="Question mark drawn on a board" src="https://cdn-images-1.medium.com/max/1024/1*1aosMiKwOQFxLpq8NKTY7A.jpeg" /></figure><p>JSX, as you may know, is a useful piece of technology that we use customarily when building apps in <a href="https://www.codeguage.com/courses/react/">React</a>, a JavaScript library for building interactive UIs.</p><p>In my quick short research on the questions developers are frequently asking online for JSX, I came across a bunch of them and decided to answer them all in one go, hence this blog post.</p><p>I encourage you to go through the list of these 14 questions below, for it’s not going to take more than 10 minutes but it might expose you to fundamental ideas in React and help clarify any confusions you have regarding JSX.</p><p><em>So shall we get into it?</em></p><h3>The list of questions</h3><h4>1. What exactly is JSX?</h4><p>JSX is a <strong><em>syntax extension</em></strong> to JavaScript, originally developed by Facebook (now Meta) for use with React to simplify defining React elements in JavaScript code.</p><h4>2. What is the full-form of JSX?</h4><p>JSX is sometimes referred to as <strong><em>JavaScript Syntax Extension</em></strong>, and sometimes as <strong><em>JavaScript XML</em></strong>.</p><h4>3. Why is React better with JSX?</h4><p>React is better — actually <em>much much better</em> — with JSX because JSX allows us to very conveniently define sets of React elements using an HTML-like syntax that we are all intrinsically familiar with, instead of calling createElement() (the function exported by the react package) manually in code.</p><p>React embraces a <strong><em>declarative</em></strong> programming paradigm, even with its createElement() logic as compared to the native HTML DOM element creation logic, and JSX just takes this declarative world to a whole new level.</p><p><strong><em>Read more</em></strong>: To learn more about how React is declarative as compared to the HTML DOM, refer to <a href="https://www.codeguage.com/courses/react/first-program#The_declarative_beauty_of_React">React First Program: The declarative beauty of React</a>.</p><h4>4. What is the role of JSX in React?</h4><p>Speaking broadly, JSX helps us <strong>define our app’s UI</strong> in React.</p><p>Speaking technically, the role of JSX is to <strong>simplify calls to </strong><strong>createElement()</strong> by using an HTML-like syntax to define elements.</p><p>For instance, instead of having to manually write createElement() as follows, to create an &lt;h1&gt; element with the content <em>&#39;Hello World!&#39;</em></p><pre>createElement(&#39;h1&#39;, null, &#39;Hello World!&#39;);</pre><p>we can simply do the following in JSX:</p><pre>&lt;h1&gt;Hello World!&lt;/h1&gt;</pre><p><em>Quite amazing, isn’t it?</em></p><h4>5. Is JSX mandatory for React?</h4><p>Not at all. JSX is NOT mandatory for React; we can create an entire application solely using createElement(), without even touching JSX. However, it&#39;s important to note that there&#39;s <em>very very little</em> reason to do so in a React app.</p><h4>6. What is the difference between React and JSX?</h4><p>React is a JavaScript library for building interactive UIs whereas JSX is just a tool that can be used while working in React to simplify the creation of elements (i.e. simplify the creation of the UI).</p><h4>7. Is JSX a programming language?</h4><p>No, JSX is NOT a programming language! JavaScript is the programming language, React is the library made on top of JavaScript, and JSX is just a syntactic extension to JavaScript (that is transpiled into plain JavaScript by a tool such as Babel before it’s executed by the browser).</p><h4>8. Is JSX a templating language?</h4><p><em>Hmm…</em> I’d say NO.</p><p>If you have experience of working with templating languages, such as EJS, Blade, Handlebars, etc., you’d be able to realize that they are not meant to contain fully-fledged code snippets of the underlying language, if any.</p><p>For example, you won’t see a whole set of <a href="https://www.codeguage.com/courses/advanced-js/modules-basics">JavaScript </a><a href="https://www.codeguage.com/courses/advanced-js/modules-basics">import/export statements</a> in an EJS file, neither any function definitions, or any class definitions. At the most, we&#39;ll probably see JavaScript function invocations and arbitrary expressions. The main thing that we see are <em>directives</em> of EJS.</p><p>In contrast, JSX, being a syntax extension to JavaScript, naturally allows us to define whole JavaScript code blocks. In fact, this is what we do regularly when working with JSX — importing other components, writing JavaScript functions, running some rendering logic in those functions, and then finally returning a JSX element.</p><p>You see, a JSX file doesn’t define only the template; it also contains a ton full of JavaScript code, sprinkled with tiny, cute pieces of JSX elements.</p><p>All in all, I am compelled to stand with the stance that JSX is not a templating language. <em>What do you think?</em></p><h4>9. Can browsers understand JSX?</h4><p>No, browsers can NOT understand JSX (at least as of now).</p><h4>10. Why browsers can’t read JSX?</h4><p>JSX is neither a part of the ECMAScript standard, nor a separate technology that’s recognized by browsers (as of yet). Hence, they can’t parse JSX on their own. In order to successfully build a React app with JSX, we need a <strong><em>transpiler</em></strong> to convert the alien JSX syntax into plain JavaScript that all browsers can parse and execute.</p><h4>11. Can I use JSX without Babel?</h4><p>While there are third-party packages ( <a href="https://github.com/acornjs/acorn-jsx">acorn-jsx</a> and <a href="https://github.com/alexmingoia/jsx-transform">jsx-transform</a>) besides Babel that <em>can</em> be used to transpile JSX into plain JavaScript, none of them is actively maintained, with the last commits being years and years old. Likewise, it can be concluded that JSX can NOT be used without Babel.</p><h4>12. How is JSX converted into JS?</h4><p>The high-level overview is that each JSX element gets converted into a corresponding createElement() call. The low-level details obviously are slightly complex and out of the scope of this article.</p><h4>13. Should I use React without JSX?</h4><p>Certainly, this entirely depends on your preference, but as far as I know, I’ve not seen anyone developing React apps without using JSX. The simplicity and convenience that JSX brings is a great thing to have on board. So, I’d say no, don’t use React without JSX.</p><h4>14. What is the difference between HTML and JSX?</h4><p><a href="https://www.codeguage.com/courses/html/introduction#What_is_meant_by_a_markup_language">HTML is a markup language</a> (keep in mind, it’s not a programming language!) that helps us define the content, structure, and semantics of webpages. In contrast, JSX is a syntax extension to JavaScript that helps us conveniently define UIs in React. Sure, JSX resembles HTML but they both are completely different tools for different purposes.</p><h3>Wrapping up…</h3><p>React is a pretty powerful and popular JavaScript library, used by companies of all sizes to empower their complex web applications, and even their mobile and desktop applications (thanks to tools like <a href="https://www.electronjs.org/">Electron</a> and <a href="https://reactnative.dev/">React Native</a>).</p><p>There are many foundational ideas to learn in React, such as <a href="https://www.codeguage.com/courses/react/elements">elements</a>, <a href="https://www.codeguage.com/courses/react/components">components</a>, <a href="https://www.codeguage.com/courses/react/events">events</a>, and amongst the most important of these is JSX.</p><p>This article put forth a healthy discussion on some aspects of JSX but obviously it didn’t explore all the underlying aspects of working with JSX. If you wish to learn more about JSX, and cover all these aspects of it, refer to the chapter <a href="https://www.codeguage.com/courses/react/jsx">React JSX</a> from my <a href="https://www.codeguage.com/courses/react/">comprehensive React course</a>.</p><p>And if you feel you’re quite confident with your JSX skills, you can try taking the <a href="https://www.codeguage.com/courses/react/jsx-quiz">React JSX quiz</a>, answering a decent number of questions on JSX.</p><p><em>Happy learning and happy coding!</em> 🙂</p><p><em>Originally published at </em><a href="https://www.codeguage.com/blog/jsx-common-questions"><em>https://www.codeguage.com</em></a><em> on October 6, 2024.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bba4db24d1fc" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/14-common-questions-for-jsx-react-and-their-answers-bba4db24d1fc">14 Common Questions for JSX (React) and Their Answers</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can You Solve These 10 HTML DOM Exercises?]]></title>
            <link>https://levelup.gitconnected.com/youre-an-html-dom-pro-if-you-can-solve-these-10-exercises-2b1014286071?source=rss-dcab0a0b62fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b1014286071</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Codeguage]]></dc:creator>
            <pubDate>Wed, 31 Aug 2022 17:10:21 GMT</pubDate>
            <atom:updated>2022-09-03T17:44:28.440Z</atom:updated>
            <content:encoded><![CDATA[<h4>Ranging from easy to hard exercises.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5-ZLS2XmDILYblto" /><figcaption>Photo by <a href="https://unsplash.com/@homajob?utm_source=medium&amp;utm_medium=referral">Scott Graham</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>JavaScript, as we all know, is a really powerful language, whether it runs inside the browser environment or inside the server environment. In either environment, it’s backed by robust and powerful APIs to help in performing given tasks easily.</p><p>Talking about the browser environment, one particularly useful API and also one of the most used ones is the DOM API. The DOM allows us to modify the structure and content of given a HTML/XML document.</p><p>Focusing on purely HTML documents, we have the HTML DOM API, which extends the core DOM API with HTML-specific features.</p><p>Overall, the HTML DOM API is so huge and complex that one might need more than a week to get completely comfortable with half of the core interfaces.</p><p>In this regard, here we have gathered a collection of 10 exercises to test your understanding of various interfaces from the HTML DOM API, from our very own <a href="http://codeguage.com/courses/js/">JavaScript course</a>.</p><p>Let’s see them…</p><h3>1. Text Content</h3><p><strong>🔗 Link:</strong> <a href="https://www.codeguage.com/courses/js/html-dom-text-content-exercise">https://www.codeguage.com/courses/js/html-dom-text-content-exercise</a></p><p>📈 <strong>Difficulty Level: </strong>Average</p><p><strong>🎯 Objective: </strong>Manually define the textContent property on the Node interface.</p><p>The textContent property is a really handy property when we just want to obtain the textual content inside a given element node. But since it’s defined on the Node interface, it isn’t accessible on element nodes only — we can access it on text and comment nodes as well. On text and comment nodes, textContent returns their nodeValue.</p><p>By redefining the textContent property on the Node interface, you’ll learn about how to remove element nodes from a given node, how to add a new node, how to work with nodeValue, and much more.</p><h3>2. Redefining replaceChild()</h3><p><strong>🔗 Link:</strong> <a href="https://www.codeguage.com/courses/js/html-dom-redefining-replacechild-exercise">https://www.codeguage.com/courses/js/html-dom-redefining-replacechild-exercise</a></p><p>📈 <strong>Difficulty Level: </strong>Easy</p><p><strong>🎯 Objective: </strong>Redefine the replaceChild() method using other methods of the Node interface.</p><p>The replaceChild() method allows us to replace a particular a child node of a given element with another node. Technically, replaceChild() can be defined entirely using two other methods of the Node interface and that’s what this exercise is all about.</p><h3>3. Node Count</h3><p><strong>🔗 Link:</strong> <a href="https://www.codeguage.com/courses/js/html-dom-node-count-exercise">https://www.codeguage.com/courses/js/html-dom-node-count-exercise</a></p><p>📈 <strong>Difficulty Level: </strong>Easy</p><p><strong>🎯 Objective: </strong>Create a Node instance method to count all the nodes under a given node, including itself.</p><p>When working in such tree structures as the DOM, recursion is our friend in many instances. One instance is when we wish to know exactly how many nodes lie in the subtree starting at a given node, including the node itself.</p><p>This is what this exercise is about. You’ll learn about recursion, about the childNodes property, about how to check for given node types, and much more.</p><h3>4. Redefining insertAdjacentElement()</h3><p><strong>🔗 Link:</strong> <a href="https://www.codeguage.com/courses/js/html-dom-redefining-insertadjacentelement-exercise">https://www.codeguage.com/courses/js/html-dom-redefining-insertadjacentelement-exercise</a></p><p>📈 <strong>Difficulty Level: </strong>Average</p><p><strong>🎯 Objective: </strong>Redefine the insertAdjacentElement() method of the Element interface, manually in JavaScript.</p><p>Many developers are aware of the appendChild() and insertBefore() methods of the Node interface. But only a few might be aware of the insertAdjacentElement() method, which is a really handy way to add an element node adjacent to another element.</p><p>In this exercise, you get to redefine insertAdjacentElement() solely using existing methods of the Node interface and, in this way, learn about various ideas such as how to work with an element’s siblings, with the insertBefore() method, how to throw an error when provided with the wrong kind of arguments, and much more.</p><h3>5. Redefining firstElementChild</h3><p><strong>🔗 Link:</strong> <a href="https://www.codeguage.com/courses/js/html-dom-redefining-firstelementchild-exercise">https://www.codeguage.com/courses/js/html-dom-redefining-firstelementchild-exercise</a></p><p>📈 <strong>Difficulty Level: </strong>Easy</p><p><strong>🎯 Objective: </strong>Redefine the firstElementChild property of the Element interface, manually in JavaScript.</p><p>The Element interface defines a firstElementChild property that returns back the first child node of a calling element node that is an element itself. Technically, it can be defined entirely using properties of the Node interface and that’s what this exercise is about.</p><p>You’ll learn about the firstChild property of nodes, how to set up a while loop, and how to check whether a given node is an element or not.</p><h3>6. Building Tables</h3><p><strong>🔗 Link:</strong> <a href="https://www.codeguage.com/courses/js/html-dom-building-tables-exercise">https://www.codeguage.com/courses/js/html-dom-building-tables-exercise</a></p><p>📈 <strong>Difficulty Level: </strong>Average</p><p><strong>🎯 Objective: </strong>Create two variants of a function to build an HTML table based on a given array of items.</p><p>It’s not really a rare thing to build an HTML table with the help of data stored in a JavaScript array. This exercise tests your skills in doing so. But more than that, it also tests your understanding of DOM mutation via innerHTML solely and via mutation methods such as appendChild() and insertBefore() .</p><h3>7. Redefining className</h3><p><strong>🔗 Link:</strong> <a href="https://www.codeguage.com/courses/js/html-dom-redefining-classname-exercise">https://www.codeguage.com/courses/js/html-dom-redefining-classname-exercise</a></p><p>📈 <strong>Difficulty Level: </strong>Easy</p><p><strong>🎯 Objective: </strong>Redefine the className property of the Element interface, manually in JavaScript.</p><h3>8. HTML Serialization</h3><p><strong>🔗 Link:</strong> <a href="https://www.codeguage.com/courses/js/html-dom-html-serialization-exercise">https://www.codeguage.com/courses/js/html-dom-html-serialization-exercise</a></p><p>📈 <strong>Difficulty Level: </strong>Hard</p><p><strong>🎯 Objective: </strong>Create a function to replicate the behavior of innerHTML when it&#39;s retrieved.</p><p>HTML serialization is the name given to the process of converting an element node to its corresponding string representation. It might seem an easy thing to do, but it requires us to consider a couple of ideas while crafting the algorithm. In this exercise, you’ll learn about the attributes property of element nodes, recursion once again, the childNodes property of the Node interface, and much more.</p><h3>9. Dynamic Lists</h3><p><strong>🔗 Link:</strong> <a href="https://www.codeguage.com/courses/js/html-dom-dynamic-lists-exercise">https://www.codeguage.com/courses/js/html-dom-dynamic-lists-exercise</a></p><p>📈 <strong>Difficulty Level: </strong>Easy</p><p><strong>🎯 Objective: </strong>Fill up those &lt;ol&gt; and &lt;ul&gt; elements with &lt;li&gt; elements that have a data-list attribute on them.</p><h3>10. append() Polyfill</h3><p><strong>🔗 Link:</strong> <a href="https://www.codeguage.com/courses/js/html-dom-append-polyfill-exercise">https://www.codeguage.com/courses/js/html-dom-append-polyfill-exercise</a></p><p>📈 <strong>Difficulty Level: </strong>Easy</p><p><strong>🎯 Objective: </strong>Create a polyfill for the append() method of the Element interface.</p><p>The append() method allows us to bulk-insert nodes inside a given element after its last child. This exercise tests your understanding of document fragments and how to use them to group nodes and then insert the nodes, all at once, into the DOM.</p><h3>In the end</h3><p>And with this, we reach the very end of our collection of 10 exercises to test your knowledge of the HTML DOM API.</p><p>If you found the exercises helpful, don’t forget to clap for the article. Also, let us know in the comments as to which one of these did you find the most challenging.</p><p>To learn more about JavaScript, you can consider our absolutely free JavaScript course, as linked below:</p><p><a href="https://www.codeguage.com/courses/js/">JavaScript</a></p><p>Finally, if you generally enjoy reading my content here on Medium and back at CodeGuage, you can always support me by <a href="https://www.buymeacoffee.com/codeguage">buying me some coffee</a> ☕.</p><h3>More articles to read</h3><ul><li><a href="https://levelup.gitconnected.com/the-story-of-my-journey-to-codeguage-part-2-87fa914c3a4d">The Story of My Journey to CodeGuage — Part 2</a></li><li><a href="https://levelup.gitconnected.com/my-story-on-how-i-got-to-codeguage-part-1-62313a880f10">My Story on How I Got to CodeGuage — Part 1</a></li><li><a href="https://levelup.gitconnected.com/do-you-know-about-rulers-in-visual-studio-code-f754b221a135">Do You Know About Rulers in Visual Studio Code?</a></li><li><a href="https://levelup.gitconnected.com/top-7-publishers-of-books-on-computer-technologies-that-you-must-know-b36d51e29bc1">Top 7 Publishers of Books on Computer Technologies That You Must Know</a></li></ul><h3>Level Up Coding</h3><p>Thanks for being a part of our community! Before you go:</p><ul><li>👏 Clap for the story and follow the author 👉</li><li>📰 View more content in the <a href="https://levelup.gitconnected.com/?utm_source=pub&amp;utm_medium=post">Level Up Coding publication</a></li><li>🔔 Follow us: <a href="https://twitter.com/gitconnected">Twitter</a> | <a href="https://www.linkedin.com/company/gitconnected">LinkedIn</a> | <a href="https://newsletter.levelup.dev/">Newsletter</a></li></ul><p>🚀👉 <a href="https://jobs.levelup.dev/talent/welcome?referral=true"><strong>Join the Level Up talent collective and find an amazing job</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b1014286071" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/youre-an-html-dom-pro-if-you-can-solve-these-10-exercises-2b1014286071">Can You Solve These 10 HTML DOM Exercises?</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Story of My Journey to CodeGuage — Part 2]]></title>
            <link>https://levelup.gitconnected.com/the-story-of-my-journey-to-codeguage-part-2-87fa914c3a4d?source=rss-dcab0a0b62fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/87fa914c3a4d</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[storytelling]]></category>
            <category><![CDATA[storyofmylife]]></category>
            <dc:creator><![CDATA[Codeguage]]></dc:creator>
            <pubDate>Tue, 23 Aug 2022 15:03:45 GMT</pubDate>
            <atom:updated>2024-02-09T11:54:29.774Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Story of My Journey to Codeguage — Part 2</h3><h4>Getting into the world of algorithms</h4><figure><img alt="Roadmap of my journey to CodeGuage" src="https://cdn-images-1.medium.com/max/800/1*Yplgy1qb7hB-yz2p7ORQUA.png" /></figure><p>In the first part of this series on my journey to <a href="https://www.codeguage.com/">Codeguage</a>, I talked about how exactly I got into programming and web development just by a 7th grade book.</p><p>Below I’ll leave a link to it so that you can read it, if you haven’t, before proceeding with this second part:</p><p><a href="https://levelup.gitconnected.com/my-story-on-how-i-got-to-codeguage-part-1-62313a880f10">My Story on How I Got to CodeGuage — Part 1</a></p><p>In this part, I talk about how I got into the world of algorithms via an introductory course on algorithms on Khan Academy and then after having failed in the Canadian Computing Competition.</p><p>Let’s begin.</p><h3>Into the world of algorithms</h3><p>For almost like 3 years, I continued to learn HTML, CSS, JavaScript, PHP and MySQL, in addition to a couple more simpler technologies revolving around these.</p><p>I never got introduced to algorithms at any point in these 3 years — not even binary search!</p><p><em>Isn’t this surprising?</em></p><p>Now, I’ve forgotten a little bit of details of the time beyond this, except for the point when I first got to see a glimpse of the huge world of algorithms in programming.</p><p>Let’s talk about that…</p><h4>Introduction to Khan Academy</h4><p>While searching for a given concept of mathematics, as I was learning it for my CAIE O Levels, I guess, I came across this awesome site called <a href="https://www.khanacademy.org/">KhanAcademy.org</a>.</p><p>There, while I was learning about math, I saw a section devoted to computer algorithms.</p><p><a href="https://www.khanacademy.org/computing/computer-science/algorithms">Algorithms | Computer science theory | Computing | Khan Academy</a></p><p>Already having a bit of programming experience under my belt, I thought of giving it a try.</p><p>Back then, this algorithms course didn’t have a huge list of chapters to go over — they were only a few in number. But it was crafted very nicely. I can still recall a pacman-based analogy to understand breadth-first search (BFS).</p><p>Anyways, as I completed this short course (actually, I won’t call it a ‘<em>course</em>’, but rather as a ‘<em>quick intro</em>’), I realized about the beautiful and humongous world of algorithms in computer science.</p><p>But wait here… The real appreciation would come a little bit later from one of the most celebrated books on algorithms, i.e. CLRS.</p><h4>Enrollment in Canadian Computing Competition</h4><p>At some point, in the first year at college for my CAIE A Levels, all the students in the college received an email about a coding competition.</p><p>It was an online competition held by the <a href="https://uwaterloo.ca/">University of Waterloo</a>, referred to as the <a href="https://cemc.uwaterloo.ca/contests/ccc-cco.html"><strong><em>Canadian Computing Competition</em></strong></a>, or <strong><em>CCC</em></strong> for short.</p><p><a href="https://cemc.uwaterloo.ca/contests/ccc-cco.html">Canadian Computing Competition</a></p><blockquote>BTW, each year, the University of Waterloo still conducts this competition. I don’t know about how individuals could sign up for it. All I know is that schools/colleges enroll in it and thereafter allow their students to be a part of the competition).</blockquote><p>Interested students were asked to register via a form sent in the email.</p><p>Now when I got the email, without further ado, I read about the competition on the <a href="https://cemc.uwaterloo.ca/contests/ccc-cco.html">official website of CCC</a>. Clearly, I felt a desire to enroll and so I did. I signed up for my first ever competitive programming competition.</p><p>Now you might be thinking that how was I able to hop into competitive programming with just being a person familiar with JavaScript and PHP.</p><p><em>Were you?</em></p><p>Well, the music to my years was that CCC accepted solutions in PHP. That was a driving factor which led me to convince myself to take part in the competition.</p><blockquote>Had the competition asked only for C, C++ and Java, which is quite standard for ‘real’ competitive programming competitions, I wouldn’t have taken part in it.</blockquote><p>Anyhow, right then, it was time to start practicing past problems of CCC. This was the very first time that I got to read questions asking to solve a logical/mathematical problem via a piece of code.</p><p>It was new ground for me.</p><p>As I said before, I was familiar with the idea of algorithms prior to opting for this competition (recall KhanAcademy), but still, getting to comprehend the problem as stated in a given CCC question and then writing code to solve it was an entirely new experience.</p><p>In fact, it was so new that I didn’t even know about <em>standard output</em> and <em>standard input</em>! 🙂</p><blockquote>I spent tons and tons of minutes on finding what exactly was standard input and output in PHP and how exactly to retrieve a line of input from a particular CCC question via a PHP program.</blockquote><p>Moving on, I chose for the junior level of the competition after having read a couple of senior level problems.</p><p><em>Why?</em></p><p>Well, I am sure you would know about this thing that there are two kinds of questions that we call ‘<em>difficult questions</em>’:</p><ul><li>Ones that you understand but can’t figure out the solution to.</li><li>Ones where you don’t just understand anything in the text of the question, let alone thinking about the solution. 😑</li></ul><p>Senior level problems were an instance of the latter case. It was totally out of my reach to even try to understand what the questions were asking for. They were filled with mathematical rigour, specifically geometrical and graphical.</p><p>So coming back to the discussion, I went for the junior level and began practicing junior level problems from the CCC website up until the day of the competition.</p><h4>An interesting story</h4><p>There’s is an extremely interesting story that I consider worthy of sharing with you guys here.</p><p>Before the day of the competition, one person for the admin office at the college summoned all of the participants at the office to brief about the competition’s day, i.e. where would we show up, at what time, what to bring with us, and so on.</p><p>I somehow managed to be there before all the other participants.</p><p>There I got to know that there were 4 junior (including me) and 1 senior level participant. The one in the senior level had Further Mathematics as one of this subjects in the college, was a teacher’s assistant for the subject, and a well-known genius of mathematics in the college.</p><p>When I got to know that he was the one in the senior level, that surprised me because I never ever knew that the guy did coding as well.</p><p>Anyways, after a certain span of time, as I waited in the admin office for the other participants to come, the person who had summoned us all asked me a question:</p><p>“Are you a computer science student (here in college)?”</p><p>I said “No.”</p><p>“Then how will you be able to compete in the competition?” she replied.</p><p>I smiled and replied back “Don’t worry, I’ll manage it.”</p><p>We might be tempted to think that a computer science degree (university) or the computer science subject (CAIE O and A Levels) is a prerequisite for performing well in the field and to be able to solve computational problems.</p><p>But the reality is that this is <strong>NOT THE CASE</strong>.</p><blockquote>A computer science degree is not required to perform well in the field.</blockquote><p>I didn’t have computer science as a subject for my A Levels, but I knew that I didn’t need it to take part in a coding competition and perform well.</p><p>All that is required is a good mathematical background and a good sense of reasoning and logic. <em>That’s it</em>.</p><h4>The day of the competition</h4><p>On the day of the competition, as briefed, we gathered in another branch of the college, set up our desks with our laptops and the all-time-favorite pens and papers, and waited patiently for the competition to commence.</p><p>As it began, all that could be heard in the room, amid the silence, was the sound of keystrokes. We all were in a hurry to code as we had just 3 hours to complete the competition with 5 problems to tackle.</p><p>This might seem like a lot of time, but it really wasn’t — consider the time taken to read the questions, thinking about the solutions by scribbling with the pen on the paper, typing code (no one typed fast amongst us, back then), debugging programs, looking up the documentation of languages for given functions, and so on.</p><p><em>Competitive programming is always a run against time!</em> ⏰</p><p>The first question was quite straightforward and so I got done with it in a couple of minutes. The second one was also fairly simple. The third one was yet another rudimentary problem and got solved in a short span of time.</p><p>The fourth question was on array rotation, which I had never done before, along with some more complex array processing. This question took most of my time. But in the end, I solve it as well.</p><p>The fifth, and the last, question was the most challenging, but I seemingly thought of having figured out its solution as well. I reasoned that the problem could be solved using breadth-first search, and likewise went out on coding a BFS algorithm based on the scenario of the question to solve it.</p><p>I had just a few minutes remaining and so was getting more and more nervous. But the coding went on.</p><p><em>You know that feeling when you know that you can solve a given question, but fear that the time might keep you from doing so?</em></p><p>In the end, with just 2–3 minutes remaining, I was done and submitted the solution. While gazing over the grader system to tell me whether my solution was correct, I got to see something that I wasn’t desiring — a ‘<em>Wrong Answer</em>’ verdict.</p><p>Realizing that nothing could be done now — with just 1–2 minutes remaining — I had to abandon the question. And thereafter the competition reached its very end.</p><p>In total, I was able to solve 4 out of 5 questions. My friend, who was sitting next to me (but at a distance to prevent any kind of cheating) and coding in C++, also solved 4 questions, and not the last one.</p><p>One friend, coding in Java, wasn’t even able to solve the third question (on array rotation), let alone the fourth and the fifth one. As for the fourth junior level participant, I don’t remember his score, but he wasn’t also able to solve the fifth question.</p><p>As for the senior level guy, he only got the first two questions correct. The third one got him to spare all of his time, ending up with a ‘<em>Wrong Answer</em>’ verdict, nonetheless.</p><p>Recall that this senior level guy was a further mathematics student, yet that wasn’t enough to give him the tools to tackle such complex computational problems as introduced in the senior level of CCC.</p><blockquote><em>Back in our college, it was a common belief that only the truly exceptional people could take Further Mathematics, and that it was extremely difficult mathematics to deal with. (You can even look up the syllabus of Further Mathematics </em><a href="https://www.cambridgeinternational.org/Images/414957-2020-2022-syllabus.pdf"><em>here</em></a><em>).</em></blockquote><blockquote><em>For a second, let’s accept the fact that Further Mathematics is tedious (which I don’t feel it is).</em></blockquote><blockquote>Then what about the true maths used in computer science?</blockquote><blockquote><em>Think of number theory, Boolean algebra, relation theory, graph theory, combinatorics, automata theory, probability theory, and so on. These topics are much more complicated in their whole than the mere ideas of Further Mathematics.</em></blockquote><blockquote><em>Without any second thoughts, today I am a firm believer of the fact that Further Mathematics is nothing compared to the mathematics used in computer science, if one approaches computer science the right way.</em></blockquote><blockquote><em>I feel that people don’t generally realize that computer science does require some sophisticated mathematics under one’s belt.</em></blockquote><blockquote><em>But please don’t get me wrong. I don’t say that programming requires sophisticated mathematics — not at all!</em></blockquote><blockquote><em>One could be a proficient frontend web developer, a backend web developer, a desktop app developer, or anything of the sort, without really knowing about Euler’s totient function, or about the internals of the RSA cryptosystem, or about Cantor’s diagonalization method.</em></blockquote><blockquote><em>All I say is that the field of computer science requires one to have a firm footing in mathematics.</em></blockquote><blockquote><em>If people out there say that this isn’t the case, then it’s their call. I can’t really see how to leverage the most out of a computing machine without employing the essence of mathematics.</em></blockquote><blockquote>What do you think?</blockquote><p>Once again, coming back to the competition, this was it for the competition. I wasn’t able to solve the last question, even though I was seemingly 100% sure that the solution was via BFS.</p><p>I didn’t achieve any reward in the competition, just a certificate of participation.</p><blockquote>BTW, the reward was for people who solved all the five questions. I wish I was able to solve it as well.</blockquote><p>But what I had achieved was much more than a reward — I got a will now inside of me to learn about algorithms.</p><p>And from this point onwards, as I can recall it, I started to read the book <a href="https://www.amazon.com/Introduction-Algorithms-3rd-MIT-Press/dp/0262033844/">Introduction to Algorithms 3rd Edition— CLRS</a>.</p><p>At the time of this writing, the 4th edition of the book is also out.</p><p><a href="https://www.amazon.com/Introduction-Algorithms-fourth-Thomas-Cormen/dp/026204630X/">Introduction to Algorithms, fourth edition</a></p><p>And this is how I got into the world of algorithms.</p><h3>Moving on</h3><p>But the story doesn’t end here…</p><p>In the next article, I’ll talk about how and why I abandoned reading from CLRS, and took up another book, however not to learn algorithms, but to learn mathematics.</p><p>Till then, have a good time programming and learning! 🙂</p><p>BTW, if you enjoyed reading this post and the content back at Codeguage, you could support me by <a href="https://www.buymeacoffee.com/codeguage">buying me a coffee</a> ☕.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87fa914c3a4d" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/the-story-of-my-journey-to-codeguage-part-2-87fa914c3a4d">The Story of My Journey to CodeGuage — Part 2</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Story on How I Got to CodeGuage — Part 1]]></title>
            <link>https://levelup.gitconnected.com/my-story-on-how-i-got-to-codeguage-part-1-62313a880f10?source=rss-dcab0a0b62fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/62313a880f10</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[storytelling]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[storyofmylife]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Codeguage]]></dc:creator>
            <pubDate>Sun, 14 Aug 2022 16:57:33 GMT</pubDate>
            <atom:updated>2024-02-09T11:53:24.591Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Story of My Journey to Codeguage — Part 1</h3><h4>Getting into programming via a link mentioned in a grade-7 book.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tW8Ijbkgwbo_izMKngYoEg.png" /></figure><p>The year is 2018; it’s a classroom as big as an auditorium to address more than a hundred people; the teacher is giving a lecture on De Moivre’s Theorem; all students in the class are busy making notes, some even asking questions, with the exception of <strong>one person</strong>. He is busy writing content for a course on CSS (Cascading Style Sheets).</p><p>That person is <strong>me</strong>.</p><p>Welcome guys.</p><p>After over 4 years of working on my website <a href="https://www.codeguage.com/">Codeguage</a>, I’ve now finally got the time and the chance to share with you my humble story.</p><p>The story of how I got into the world of computer science, how I managed to launch Codeguage during my college years, how I run it these days, and where I wish to see it in the near future.</p><p>To keep the interest there in the whole story (which is quite long), I’ve divided it into multiple parts, as you could probably guess from the title of this article.</p><p>In this first part, I’ll talk about how I got into programming by a link in a grade-7 book. So without further ado, let’s begin…</p><h3>How I got into programming?</h3><p>Back in the day, when I was in grade 7, we used to have these so-called IT classes.</p><p>In them, we used to visit a computer lab in our school and get introduced to some piece of software that was part of the IT course whose exam was to be conducted at the mid and end of the year.</p><h4>Introduction to HTML4</h4><p>Now, in the course, we had something called <strong><em>HTML (Hyper Text Markup Language).</em></strong></p><blockquote>By the way, this was HTML4, and if you ever worked with it, it was an extremely tedious way to write HTML.</blockquote><p>We were introduced to the most simplest of elements, such as &lt;p&gt;, &lt;h1&gt;, &lt;h2&gt;, &lt;h3&gt;, &lt;h4&gt;, &lt;h5&gt;, &lt;h6&gt;, &lt;b&gt; (for bold text), &lt;i&gt; (for italicizing text), and even &lt;marquee&gt; (deprecated long ago), in addition to basic styling attributes such as bg-color, color, border, etc.</p><p>In our visits to the lab, we were tasked with creating given web pages, but only static ones, by understanding their design and then writing some HTML to replicate them.</p><blockquote>There was no concept of CSS back then in these lab classes, let alone an introduction to JavaScript.</blockquote><p>I still recall that HTML felt alien to me. I wasn’t used to typing &lt; and &gt; again and again. This was my first ever encounter of a computer language, with precise rules and a well-defined syntax to adhere to.</p><p>Even typing out a simple and short piece of HTML code took forever. But it was fun, for sure.</p><p>I and all of my friends felt as if we had some magical power in our hands to program the computer. (Well in some way, we did have that power 🙂.)</p><h4>The final year IT exam</h4><p>Anyhow, in the final year IT exam, we had many topics to cover, including HTML. We had to memorize certain HTML elements, their names, their purposes, certain attributes, and a little bit of definitions, under this topic.</p><p>And did I forget to tell you that we also had a pretty nice book for the IT subject, as per our school’s syllabus.</p><p>While I was reading the unit on HTML in that book, there was a reference to <a href="https://www.w3schools.com/">W3Schools</a> on its very last page, saying that “To learn more, please visit the following link.”</p><p>Out of curiosity, as I was already into writing a little bit of HTML from our computer lab visits, I thought, well, let’s give it a try.</p><h4>A glimpse of HTML5</h4><p>When I opened up W3Schools’ website, which was extremely different back then, I was actually stunned. HTML was far more complex and useful than what we had been taught in our IT classes.</p><p>As I stated before, we were introduced to HTML4 which was a little bit tedious to write. However, on W3Schools, I got to know about something much more neater, simpler and modern — HTML5.</p><h4>A glimpse of CSS</h4><p>Going down a little bit, I saw a small snippet demonstrating something called <strong><em>CSS (Cascading Style Sheets)</em></strong> which was a more generalized and much better way to style HTML than those bg-color and color attributes.</p><p>And it didn’t end here.</p><h4>A glimpse of JavaScript</h4><p>Going down another couple of pixels, I saw something called <strong><em>JavaScript</em></strong> — a language used to add interactivity to HTML.</p><p>You could just imagine what I would’ve been going through while seeing all these simple, yet giant, technologies, using which I could create much more spectacular web pages that I had created ever before</p><p>Adding to this the fact that I thoroughly enjoyed writing even HTML 4 in our computer labs, I decided to start learning HTML, CSS and JavaScript.</p><p>Soon, I learnt PHP, XML and a bit of MySQL and also started to create multiple personal projects.</p><blockquote>By the way, these personal projects were only for fun and to improve my understanding of the given technologies. I never created them for a formal portfolio.</blockquote><p>And this is how I got into programming — through web development.</p><blockquote>I guess this is how most people start programming these days as well, i.e. via web development (in particular, with HTML, CSS and then JavaScript).</blockquote><h3>To be continued…</h3><p>So this is it for the first part of this series.</p><p>To keep an anticipation element in the story, and obviously keep from writing a 30-minute article, I’ll end it right here.</p><p>In the next article, I’ll walk you through how I got into the world of algorithms after coding webpages for more than 3 years.</p><p>The story is to be continued…</p><h3>More articles</h3><p>In the meanwhile, you can consider checking out some more of our articles, as shown below:</p><ul><li><a href="https://levelup.gitconnected.com/do-you-know-about-rulers-in-visual-studio-code-f754b221a135">Do You Know About Rulers in Visual Studio Code?</a></li><li><a href="https://levelup.gitconnected.com/top-7-publishers-of-books-on-computer-technologies-that-you-must-know-b36d51e29bc1">Top 7 Publishers of Books on Computer Technologies That You Must Know</a></li><li><a href="https://levelup.gitconnected.com/what-exactly-is-a-spa-single-page-application-and-how-to-build-one-yourself-dad2ca24d0d8">What Exactly Is a SPA (Single-Page Application) and How To Build One Yourself?</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62313a880f10" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/my-story-on-how-i-got-to-codeguage-part-1-62313a880f10">My Story on How I Got to CodeGuage — Part 1</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Do You Know About Rulers in Visual Studio Code?]]></title>
            <link>https://levelup.gitconnected.com/do-you-know-about-rulers-in-visual-studio-code-f754b221a135?source=rss-dcab0a0b62fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/f754b221a135</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[visual-studio-code]]></category>
            <dc:creator><![CDATA[Codeguage]]></dc:creator>
            <pubDate>Sun, 31 Jul 2022 22:16:57 GMT</pubDate>
            <atom:updated>2022-08-06T14:40:00.903Z</atom:updated>
            <content:encoded><![CDATA[<h4>They are extremely helpful as a guide while coding</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qhsm1ZSfl92rpahGHtCodQ.png" /></figure><p><a href="https://code.visualstudio.com/">Visual Studio Code</a> is one of the best free coding editors out there.</p><p>It can be configured in many many many many ways. (<em>This emphasis was really necessary).</em></p><p>We can change the color theme of the editor, the set of icons therein, the font, the font’s size, the line height; configure key bindings with given actions; set up various kinds of tasks; and much more.</p><p>There are so <em>many</em> things configurable in Visual Studio Code that we can easily write an article with over 10,000 words to just <em>slightly</em> explain some of them; let alone a <em>detailed</em> explanation of every configuration.</p><p>In this article, we’ll learn about an extremely helpful feature of the Visual Studio Code editor — <strong><em>rulers</em></strong>.</p><h3>What are rulers?</h3><p>In simple words:</p><blockquote>A ruler is simply a visual guide to help us determine right when we touch a character limit for a line of code.</blockquote><p><em>That was too much, wasn’t it?</em></p><p>Let’s take it step-by-step…</p><p>A ruler is a <strong><em>visual guide</em></strong>, i.e. it’s actually displayed visually in the editor window, and it helps us determine<em> ‘something’.</em></p><p>That <em>‘something’ </em>is when we touch a character limit for a line of code.</p><p>Suppose we are writing a long line of code that has over 100 characters. If we have a ruler placed at the 60th character position, then it could help us see exactly when we hit the 60-character limit while typing that line.</p><p>That’s why we say that a ruler is a <strong><em>guide</em></strong>.</p><p>Rulers are extremely useful when writing code. Often times while coding, we tend to type certain lines that just keep on going forever and forever.</p><p>Having a ruler means that we can notice exactly when we reach the maximum character limit for that line and thus type the subsequent piece of code on a new line.</p><p>Overall, this keeps the code neat and readable.</p><h3>How to add a ruler?</h3><p>Adding a ruler in Visual Studio Code is extremely simple.</p><p>In quick words, we just ought to head over to the <strong>settings.json</strong> file for the current workspace or the current user, add the property <strong>&quot;editor.rulers&quot;</strong> in there, and then set it to an <strong>array of integers</strong>, each of which specifies a <strong>ruler position</strong>.</p><p>In detailed words, the following is how we ought to proceed.</p><h4>Step 1. Open the settings.json file</h4><p>Open up Visual Studio Code, and then click on the settings icon at the bottom-left corner, as highlighted below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v4p8x-MqyedGsjFWY2xxKA.png" /></figure><p>Select the <strong>Settings</strong> option from the box that appears thereafter, as highlighted below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IZ0pIncx9rMnlDRKrTdh6w.png" /></figure><p>This opens up a window similar to the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aWdBTm36Ld7rF72K94ua5A.png" /></figure><p>In the top-left corner of this window, as highlighted in the figure above, there are two options namely <strong>User</strong> and <strong>Workspace</strong>.</p><ul><li><strong>User</strong> applies given settings throughout the current Visual Studio Code installation. You could think of <strong>User</strong> as <em>global</em> settings.</li><li><strong>Workspace</strong> applies given settings just to the current <em>workspace</em>. A <em>workspace</em> is simply a folder that we open up in Visual Studio Code to act as the entry point of a given project. If we open up different folders in Visual Studio Code, we, in effect, open up different workspaces.</li></ul><p>If you keep the <strong>User</strong> tab selected, you’d be applying rulers throughout all workspaces that you currently have in your Visual Studio Code installation.</p><p>On the other hand, if you keep the <strong>Workspace</strong> tab selected, you’d be applying rulers only to the current workspace.</p><p>We’d apply rulers while keeping the <strong>User</strong> tab selected (as shown above, there is a line beneath <strong>User </strong>indicating that it is selected), as we want these helpful guides in every single code file that we edit in Visual Studio Code.</p><p>Now while the <strong>User</strong> tab is selected, we’ll open up its corresponding <strong>settings.json</strong> file by clicking on the small file icon at the top-right corner of the window, as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wXa9VPdibLUCLEA4E62P8A.png" /></figure><p>This opens up the <strong>settings.json</strong> file for the current <strong>User</strong> setting, as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E-BRD5aOgyEg4a497GsNbQ.png" /></figure><p>Depending on your setup, this file might already have some code in it. We also have some code in our <strong>settings.json</strong> file to start with (because of some previous configurations we did).</p><p>Whether the <strong>settings.json</strong> file has some code already in it or not shouldn’t concern us. We are only interested in adding a new setting in the file in order to set up a ruler.</p><h4>Step 2. Add an “editor.rulers” property</h4><p>The next step is to add an <strong>editor.rulers</strong> property to the JSON file we just opened up in the previous step.</p><p>editor.rulers simply holds an array containing integers, each of which represents a ruler’s position in the editor. That’s why it’s called <em>editor.rulers</em>!</p><p>The position is in terms of the number of characters from the beginning of a given line. The position could also be thought of as a column number.</p><p>That is, the integer 60 would mean that the ruler would appear exactly after 60 characters in the editor or that it would appear right in the 60th column.</p><blockquote>Note that here we assume that you know how to work with JSON or, in general, know how to work with JavaScript object literals.</blockquote><p>Go on at the end of the code, right before the ending right-brace character (}), and add the editor.rulers property, setting its value to an empty array.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1BpKUTouj8BKArYhGtzFUw.png" /></figure><p>After this, depending on how many rulers you desire, add integers to the array, each of which represents the position of a ruler in the editor.</p><p>We’ll only add one ruler and that would be at the position 80, as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FkPs0Hnbbvghso90Y8xB8A.png" /></figure><p><em>Now you might be thinking, why 80?</em></p><p>Well, in the world of coding, the 80-character bound is a pretty conventional limit for characters of a single line in a piece of code.</p><p><em>That’s it.</em></p><p>Once, you’ve typed in the value 80, go ahead and save the <strong>settings.json</strong> file.</p><p>Now, in a new tab, open a new code file.</p><blockquote>One quick way to open up a new code file is to double-click at the top of the editor window, right next to the box that represents the current tab.</blockquote><h4>Step 3. Celebrate</h4><p><em>And Voila!</em></p><p>You can now witness the ruler that you just added above:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hLB-rV-R7CE8z19jIdJ_Bw.png" /></figure><h3>Changing the color of the ruler</h3><p>We stated above that editor.rulers is an array of integers. Precisely speaking, this is wrong.</p><p>It would be better to say that editor.rulers is an array of <em>items</em> that can be either of the following:</p><ul><li>An <strong>integer</strong> which represents the position where a ruler should be added.</li><li>An <strong>object</strong>, containing two properties, namely column and color, that represents the position where a ruler should be added and its color, respectively.</li></ul><p>In the following code, we add another ruler to our previous editor.rulers property, this time using an object and not an integer.</p><p>The position is set to 90 while the color is set to #ffcc00 (a bright yellow color).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0i-UztlbXiW-qC34_cZGLg.png" /></figure><p>Let’s save the file and then witness our new ruler.</p><blockquote><strong>Note:</strong> Often times, changes to settings don’t show up immediately in the current Visual Studio Code window. You’d have to restart Visual Studio Code in order to get those changes to be applied.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wyrw9ovEy8mYear8kgTj_w.png" /></figure><h3>That’s it</h3><p>In the end, we’d like to ask a simple question?</p><p><em>Did you know about rulers in Visual Studio Code before this article, and did you ever use them?</em></p><p>if (yes) { console.log(&#39;Good 👍&#39;) }</p><p>else { wouldYouNowUseThem(&#39;❔&#39;) }</p><p>I hope you enjoyed reading this article.</p><h3>More of our articles</h3><ul><li><a href="https://levelup.gitconnected.com/top-7-publishers-of-books-on-computer-technologies-that-you-must-know-b36d51e29bc1">Top 7 Publishers of Books on Computer Technologies That You Must Know</a></li><li><a href="https://levelup.gitconnected.com/what-exactly-is-a-spa-single-page-application-and-how-to-build-one-yourself-dad2ca24d0d8">What Exactly Is a SPA (Single-Page Application) and How To Build One Yourself?</a></li><li><a href="https://levelup.gitconnected.com/what-exactly-are-javascript-strings-sequences-of-8-bit-units-or-16-bit-units-b731b74c78c0">What Exactly are JavaScript Strings? Sequences of 8-Bit Units or 16-Bit Units?</a></li></ul><h3>Level Up Coding</h3><p>Thanks for being a part of our community! Before you go:</p><ul><li>👏 Clap for the story and follow the author 👉</li><li>📰 View more content in the <a href="https://levelup.gitconnected.com/?utm_source=pub&amp;utm_medium=post">Level Up Coding publication</a></li><li>🔔 Follow us: <a href="https://twitter.com/gitconnected">Twitter</a> | <a href="https://www.linkedin.com/company/gitconnected">LinkedIn</a> | <a href="https://newsletter.levelup.dev/">Newsletter</a></li></ul><p>🚀👉 <a href="https://jobs.levelup.dev/talent/welcome?referral=true"><strong>Join the Level Up talent collective and find an amazing job</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f754b221a135" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/do-you-know-about-rulers-in-visual-studio-code-f754b221a135">Do You Know About Rulers in Visual Studio Code?</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 7 Publishers of Books on Computer Technologies That You Must Know]]></title>
            <link>https://levelup.gitconnected.com/top-7-publishers-of-books-on-computer-technologies-that-you-must-know-b36d51e29bc1?source=rss-dcab0a0b62fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/b36d51e29bc1</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[books]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Codeguage]]></dc:creator>
            <pubDate>Sun, 24 Jul 2022 23:50:17 GMT</pubDate>
            <atom:updated>2025-07-08T13:44:33.436Z</atom:updated>
            <content:encoded><![CDATA[<h4>And how to get started with a book from one of them.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n81PBt3hLaMA3cU5" /><figcaption>Photo by <a href="https://unsplash.com/@jruscello?utm_source=medium&amp;utm_medium=referral">Jessica Ruscello</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In this modern era of learning, where we have countless of mediums to learn computer technologies, ranging from formal university degrees, to boot camps, to YouTube videos, to subscription-based interactive courses, to mere text-based articles, to podcasts, one medium has clearly stood the test of the time, and will hopefully continue to do so in the future as well.</p><p>That is the <strong><em>book</em></strong>.</p><p>Different people obviously have different opinions about it.</p><ul><li>Some say that books have become obsolete for learning computer technologies, and that YouTube videos are a much better option.</li><li>Some vote in favor of other interactive courses that get the learner to implement actual stuff while learning a given topic.</li><li>Some say that books are costly and so it’s much better to go with free learning resources instead of spending tons and tons of pennies on this bulk of paper.</li></ul><p>While each of these arguments <em>does</em> have some sort of relevance, I honestly believe that <strong><em>one of the best</em></strong> ways to learn just about <em>anything</em> related to computer technologies is to pick up a book on that topic.</p><p>Since ages, people with expertise on a particular topic have been writing books to teach that topic to other people. Usually books are written by experts in their field, covering the underlying topic of the book in a comprehensive way.</p><p>Not to mention, it’s not always the case that a given book would be easy to follow along, or written in clear and simple words. Sometimes there do come books that are not well-crafted in terms of their structure, their content, their overall design, and so on.</p><p>But there are some notable publishers in the field of computer technologies that have succeeded over the past few years in producing a much higher ratio of quality books that are extremely easy to follow through by the intended audience.</p><p>Once again, it would be wrong to say that <em>literally every single book</em> produced by these publishers is exceptional.</p><p><em>Not really!</em></p><p>Some books by these publishers do have certain areas where there is room for a substantial amount of improvement. But keep in mind that the percentage of such books is very very low, and so we can safely expect almost <em>every</em> book to be of top-notch quality.</p><p>In this article, we’ll discuss about <strong>7</strong> such publishers that produce excellent and comprehensive books on computer technologies.</p><h3>1. <a href="https://www.oreilly.com/">O’Reilly</a></h3><figure><img alt="O’Reilly logo" src="https://cdn-images-1.medium.com/max/600/1*gU6MT1rmTlagDP_pwJNgZA.png" /></figure><p><strong>O’Reilly </strong>started publishing books on programming and other computing disciplines back in 1984.</p><p>Its founder, Tim O’Reilly, is a well-reputed international speaker who’s had a role in many computing innovations over the past few years.</p><p>The company puts up a bunch of conferences, over the year, around the globe, to help spread the word about computer technologies amongst all kinds of people in the field, ranging from newbie learners to advanced experts.</p><p>As for the books published by O’Reilly on computer technologies, they are extremely well-designed and well-structured.</p><p>From the table of contents, to the typography used, to the readability of the code snippets (including their syntax highlighting), to the clarity of content — O’Reilly has everything to offer.</p><p>To get started with a book from O’Reilly, you can head over to their official website, <a href="https://www.oreilly.com/">oreilly.com</a>, and then search for a given topic, such as <em>‘javascript’.</em></p><p>A number of search results would appear thereafter. In the results, books from other publishers will be included as well.</p><p>To limit the search only to books from O’Reilly, click on the <strong>Publishers</strong> dropdown at the top of the search results page, and then select <strong>O’Reilly Media, Inc</strong> from there. This will filter the search to show only books from O’Reilly.</p><p>From all the books shown, select a book and then either buy its print version from the link to Amazon (or Ebooks.com), or subscribe to O’Reilly on a monthly or yearly basis to get access to all their books online.</p><p>Below are some of the books from O’Reilly that I’ve personally read and found quite amazing:</p><ul><li><a href="https://www.oreilly.com/library/view/javascript-the-definitive/9781491952016/">JavaScript: The Definitive Guide, 7th Edition</a></li><li><a href="https://www.oreilly.com/library/view/think-python-2nd/9781491939406/">Think Python, 2nd Edition</a></li><li><a href="https://www.oreilly.com/library/view/learning-php-mysql/9781492093817/">Learning PHP, MySQL &amp; JavaScript, 6th Edition</a></li></ul><h3>2. <a href="https://www.packtpub.com/">Packt</a></h3><figure><img alt="Packt logo" src="https://cdn-images-1.medium.com/max/420/1*Am8kg3HPyaBmNXEzL0yfIA.png" /></figure><p><strong>Packt</strong>, founded in Birmingham, UK, has been around since 2004, helping to provide aspiring readers with learning and information services.</p><p>As stated on their official website, <a href="https://www.packtpub.com/">packtpub.com</a>, Packt has published over 6500 books and videos on computer technologies.</p><p>This clearly isn’t just a mere number. It’s purely reminiscent of the fact that Packt has put up a huge library of resources, over the past two decades, to help people acquire computing skills.</p><p>It’s really simple to get started with a Packt book.</p><p>Head over to <a href="https://www.packtpub.com/">packpub.com</a>, and then enter the topic in the search bar at the top of the page for which you’d like to read a book. Let’s say your search query is <em>‘java’</em>.</p><p>From the search results that appear, select a book and click on it. This will take you to the page where you can get buy the book using either of three buying options.</p><p>That is, you can either subscribe (on a monthly basis, a yearly basis, or for a period of 18 months), and thus get online access to the entire library of Packt. Or you can buy a hardcopy of a particular book from Amazon, or buy that book’s eBook version directly from Packt’s official website.</p><p>Once again, following is a list of some books that I’ve personally read from Packt, and would surely recommend to others as well:</p><ul><li><a href="https://www.packtpub.com/product/mastering-typescript/9781800564732?_ga=2.30765500.227003809.1658648787-1507643003.1658648787">Mastering TypeScript - Fourth Edition | Packt</a></li><li><a href="https://www.packtpub.com/product/object-oriented-javascript/9781785880568?_ga=2.30826044.227003809.1658648787-1507643003.1658648787">Object-Oriented JavaScript - Third Edition | Packt</a></li><li><a href="https://www.packtpub.com/product/node-js-web-development/9781838987572?_ga=2.90519065.227003809.1658648787-1507643003.1658648787">Node.js Web Development - Fifth Edition | Packt</a></li></ul><h3>3. <a href="https://www.wiley.com/en-us">Wiley</a></h3><figure><img alt="Wiley logo" src="https://cdn-images-1.medium.com/max/400/1*h68v3wcVQuGDSaymcQWhcw.png" /></figure><p>Another globally-leading book publisher is <strong>Wiley</strong>, founded even earlier than two centuries ago, in 1807.</p><p>Wiley doesn’t only publish books on computer technologies. Rather, it covers a wide range of fields, ranging from medicine, to healthcare, to law, to engineering, to arts, to behavioral sciences, to environment, to mathematics, and much more.</p><p>Yet this huge and diverse catalogue of books at Wiley doesn’t compromise their quality at all. Wiley’s books are well-written, easy to follow through, and extremely well-designed.</p><p>To get started with a book from Wiley, head over to their official website, <a href="https://www.wiley.com/en-us">wiley.com</a>, and enter a topic in the search bar at the top of the page. Let’s say the query you enter is <em>‘javascript’.</em></p><p>On the subsequent search results page, choose a book from the collection of books found to be related to the entered topic, and then click on it. This will take you to the page where you could buy the book.</p><p>One option is to purchase an eBook version, while the second option is to purchase a hardcopy. Both can be done right from within the Wiley’s website.</p><p>As another option, it’s also possible to read some books from Wiley online via a subscription of O’Reilly. That’s because O’Reilly partners with some publishing companies and makes their titles available on its online platform.</p><p>Anyways, below I’ve gathered a list of some books from Wiley that I’ve read and found particularly interesting:</p><ul><li><a href="https://www.wiley.com/en-us/UML+2+For+Dummies-p-9780764526145">UML 2 For Dummies</a></li><li><a href="https://www.wiley.com/en-us/Professional+JavaScript+for+Web+Developers%2C+4th+Edition-p-9781119366577">Professional JavaScript for Web Developers, 4th Edition</a></li><li><a href="https://www.wiley.com/en-us/GitHub+For+Dummies-p-9781119572657">GitHub For Dummies</a></li></ul><h3>4. <a href="https://www.apress.com/">Apress</a></h3><figure><img alt="Apress logo" src="https://cdn-images-1.medium.com/max/300/1*wGBw9vaikHEPpDktc0C8Eg.png" /></figure><p><strong>Apress</strong>, a Springer Nature company, was found in 1999, by authors Gary Cornell and Dan Appleman. When started, it was called Author’s Press, later shortened to APress, and then finally to Apress.</p><p>Apress is focused on producing books on IT, software and computer programming. As stated on the <a href="https://www.apress.com/in/about">About Us</a> page at its official website:</p><blockquote>Our high-quality, practical content helps technology professionals at all levels increase the skills they need to advance in their day-to-day work.</blockquote><p>There are numerous technologies covered by Apress’s books, ranging from Java, to C++, to Swift, to Python, to full-stack web development, to the .NET family of programming tools, and a lot more.</p><p>To get started with an Apress book, head over to SpringerLink’s website, <a href="https://link.springer.com/">link.springer.com</a>, and enter the topic in the search bar at the top of the page whose book you wish to read. Let’s say the topic is <em>‘python’.</em></p><p>From the resulting collection of matching books, select a book and then click on it. This will take you to the main page of the book where it could be bought.</p><p>As with all the options above, you could either pay for an eBook version of the chosen book, or proceed with purchasing a hardcopy.</p><p>Following is a collection of some of the books from Apress that I really enjoyed reading:</p><ul><li><a href="https://link.springer.com/book/10.1007/978-1-4842-0076-6">Pro Git</a></li><li><a href="https://link.springer.com/book/10.1007/978-1-4842-0187-9">Beginning Node.js</a></li><li><a href="https://link.springer.com/book/10.1007/978-1-4842-3039-8">Practical Node.js</a></li></ul><h3>5. <a href="https://nostarch.com/">No Starch Press</a></h3><figure><img alt="No Starch Press logo" src="https://cdn-images-1.medium.com/max/420/1*G5aVvqaH-w_CRiHHer6Kyg.png" /></figure><p>When it comes to beautiful illustrations and quality content, it would be unfair to not talk about <strong>No Starch Press</strong>.</p><p>No Starch Press was found in 1994 by Bill Pollock. It’s based in San Francisco, USA, and is yet another popular publisher concerned with producing books on computer technologies.</p><p>Books from No Starch Press are comprehensive, well-structured and extremely easy to read through. I’ve myself read many many books from No Starch Press and would surely want to read even more.</p><p>I just find one thing a little bit unsatisfying in these books and that’s the fact that code snippets aren’t syntax-highlighted (i.e. different parts of a code colored differently so as to quickly distinguish between them, visually).</p><p>However, this shouldn’t keep you from opting to buy a book from No Starch Press. The clarity of the content of <em>all</em> their books and the extent of information covered is truly remarkable.</p><p>To get started with a book from No Starch Press, head over to their website, <a href="https://nostarch.com/">nostarch.com</a>, and enter the topic, whose book you want to read, in the search bar at the top-right corner of the page. Let’s say the topic is <em>‘tcp’</em>.</p><p>From the results that appear thereafter, select a book and then click on it. This will take you to the page where you can either buy an eBook version of the book or a printed hardcopy.</p><p>Superbly-written books that I’ve read from No Starch Press:</p><ul><li><a href="https://nostarch.com/automatestuff2">Automate the Boring Stuff with Python, 2nd Edition</a></li><li><a href="https://nostarch.com/oojs">Principles of Object-Oriented JavaScript</a></li><li><a href="https://nostarch.com/practical-sql-2nd-edition">Practical SQL, 2nd Edition</a></li></ul><h3>6. Pearson</h3><figure><img alt="Pearson logo" src="https://cdn-images-1.medium.com/max/500/1*HruntcbNU6LZeHIqfmwI8A.png" /></figure><p>Akin to Wiley, <strong>Pearson</strong> is another publishing company that produces books in a wide variety of disciplines, including computer technologies.</p><p>According to <a href="https://en.wikipedia.org/wiki/Pearson_plc">Wikipedia</a>:</p><blockquote>The company was founded by <a href="https://en.wikipedia.org/wiki/Samuel_Pearson">Samuel Pearson</a> in 1844 as a building and engineering concern operating in Yorkshire under the name ‘S. Pearson &amp; Son’.</blockquote><p>As time went on, Pearson changed its concerns into managing the publication of widespread education materials, and to date continues to do so.</p><p>Pearson is an extremely diverse publisher. It has books on numerous subjects, ranging from mathematics, to healthcare, to engineering, to arts, to business, to teaching, to social sciences, and much more.</p><p>Talking about IT and computer science, there are many exceptional books worth consideration in these sectors as well.</p><p>To get started with a Pearson book, head over to their website, <a href="https://www.pearson.com/">pearson.com</a>, and search for a given topic in the search bar at the top-right corner. Let’s say the topic is <em>‘c++’.</em></p><p>From the results that appear, pick a book that interests you, and then click on it to go to the main page of the book. Here you get to buy the book, as always, in one of the two formats — eBook or print.</p><p>Following is a collection of some my favorite books from Pearson:</p><ul><li><a href="https://www.amazon.com/Introduction-Design-Analysis-Algorithms-3rd/dp/0132316811">Introduction to the Design and Analysis of Algorithms</a></li><li><a href="https://www.amazon.com/Data-Structures-Algorithm-Analysis-C/dp/013284737X">Data Structures &amp; Algorithm Analysis in C++</a></li><li><a href="https://www.amazon.com/Problem-Solving-Program-Student-Programming/dp/0134243951">Problem Solving and Program Design in C, Student Value Edition Plus MyLab Programming with Pearson eText -- Access Card Package</a></li></ul><h3>7. <a href="https://www.manning.com/">Manning</a></h3><figure><img alt="Manning Publications logo" src="https://cdn-images-1.medium.com/max/320/1*p6eLQj0Cf7dIgbHFUhX-Kg.png" /></figure><p><strong>Manning</strong> was founded in 1990 by Lee Fitzpatrick and Marjan Bace. It published its first book way back in 1993.</p><p>Since then, to date, it continues to provide readers with valuable books on computer science and its related disciplines.</p><p>The distinctive feature of Manning books is their cover pages which, initially, were inspired from the 1805 edition of Sylvain Marechal’s four-volume compendium of regional dress customs.</p><p>The goal of Manning, by producing such covers, is to showcase the cultural diversity that was present, almost two centuries ago, in the dressing of people from different locations on the globe.</p><p>As Manning puts it, on its <a href="https://www.manning.com/covers">Covers</a> page:</p><blockquote>Dress codes have changed everywhere with time and the diversity by region, so rich at the time, has faded away. It is now hard to tell apart the inhabitants of different continents, let alone different towns or regions. That cultural diversity derived from isolation and we are now anything but isolated from each other.</blockquote><blockquote>So, we celebrate the inventiveness and initiative of today’s computer world with book covers based on the rich diversity of regional life of two centuries ago.</blockquote><p>Anyways, coming back to the content of their books, Manning, like all the publishers discussed above, covers an array of topics in computer technologies, ranging from things such as programming languages, to web development, to mobile application development, to AI/ML, to embedded systems, to networking, and much more.</p><p>To get started with a Manning book, head over to its website, <a href="https://www.manning.com/">manning.com</a>, and search for a topic in the search bar at the top of the page. Let’s say the topic is <em>‘express’.</em></p><p>Thereafter, as always, from the collection of books matching the entered query, choose a particular book and then click on it. This will take you to the main page where you can buy the book.</p><p>Manning offers two options in this regard — either buy an eBook version or a print version, with which you automatically get the eBook version too.</p><p>Below, I’ve compiled a list of some useful books from Manning that are written in a concise and well-structured manner:</p><ul><li><a href="https://www.manning.com/books/express-in-action">Express in Action</a></li><li><a href="https://www.manning.com/books/node-js-in-action-second-edition?query=node">Node.js in Action, Second Edition</a></li><li><a href="https://www.manning.com/books/getting-mean-with-mongo-express-angular-and-node-second-edition?query=angular">Getting MEAN with Mongo, Express, Angular, and Node, Second Edition</a></li></ul><h3>In the end</h3><p>Learning is a lifelong process. It really can’t be done just by using one single medium, be it any (books, interactive courses, YouTube videos, text-based articles, etc).</p><p>Books are, no doubt, an excellent medium to learn just about anything related to computer science and programming. However, it would be utterly wrong to say that one can become a pro solely by reading books, books and just books.</p><p><em>Well, that doesn’t work!</em></p><p>Instead, we ought to focus on multiple mediums and harness as much knowledge as we could from each of them.</p><p>We must listen to interviews, hear the discussions of programmers in conferences, get to know about the history of technologies, read plenty of books, go through documentation, refer to online courses, have a look over other people’s codes, and most importantly, create real-world programs.</p><p>Still there would be many things that I missed in this list, but you hopefully get the idea — we have to spread our reach over multiple places so that we could learn as much as possible.</p><p>Happy learning and happy coding. 🙂</p><p>BTW, at <a href="https://www.codeguage.com/">Codeguage</a>, we offer an absolutely free and comprehensive course on JavaScript.</p><p>It has over 20 quizzes and over 25 exercises for you to practice given topics in JavaScript. There is a wide range of over 70 chapters, covering things from the basics of the language to advanced ideas such as <a href="https://www.codeguage.com/courses/js/objects-prototypes">object prototypes</a> and <a href="https://www.codeguage.com/courses/js/functions-closures">function closures</a>.</p><p><a href="https://www.codeguage.com/courses/js/">JavaScript</a></p><h3>Level Up Coding</h3><p>Thanks for being a part of our community! Before you go:</p><ul><li>👏 Clap for the story and follow the author 👉</li><li>📰 View more content in the <a href="https://levelup.gitconnected.com/?utm_source=pub&amp;utm_medium=post">Level Up Coding publication</a></li><li>🔔 Follow us: <a href="https://twitter.com/gitconnected">Twitter</a> | <a href="https://www.linkedin.com/company/gitconnected">LinkedIn</a> | <a href="https://newsletter.levelup.dev/">Newsletter</a></li></ul><p>🚀👉 <a href="https://jobs.levelup.dev/jobs?utm_source=pub&amp;utm_medium=post"><strong>Top jobs for software engineers</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b36d51e29bc1" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/top-7-publishers-of-books-on-computer-technologies-that-you-must-know-b36d51e29bc1">Top 7 Publishers of Books on Computer Technologies That You Must Know</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>