<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tyler N</title>
    <description>The latest articles on DEV Community by Tyler N (@tyleruploads).</description>
    <link>https://dev.to/tyleruploads</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3956829%2F404e8470-cc9d-4142-b434-9fec036fc8cd.png</url>
      <title>DEV Community: Tyler N</title>
      <link>https://dev.to/tyleruploads</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tyleruploads"/>
    <language>en</language>
    <item>
      <title>How to Build Interactive Webpages with JavaScript</title>
      <dc:creator>Tyler N</dc:creator>
      <pubDate>Tue, 17 Nov 2026 15:52:06 +0000</pubDate>
      <link>https://dev.to/tyleruploads/how-to-build-interactive-webpages-with-javascript-16f2</link>
      <guid>https://dev.to/tyleruploads/how-to-build-interactive-webpages-with-javascript-16f2</guid>
      <description>&lt;p&gt;HTML (HyperText Markup Language) defines the structure and content of a webpage, while CSS (Cascading Style Sheets) controls its appearance. However, HTML and CSS on their own do not provide general-purpose programming functionality required to dynamically manipulate the document and implement complex behavior, which is where JavaScript comes in. Almost every modern, interactive webpage uses some form of scripting, and JavaScript is by far the most popular language for this purpose. JavaScript allows you to manipulate and make interactive webpages by altering the DOM (Document Object Model), which I will explain very soon.&lt;/p&gt;

&lt;h2&gt;
  
  
  Linking JavaScript to the Webpage
&lt;/h2&gt;

&lt;p&gt;In this article, we will cover two ways to link JavaScript to an HTML document.&lt;/p&gt;

&lt;p&gt;The first way, and the most widely used, is to link an external JavaScript file in the HTML file using the &lt;code&gt;script&lt;/code&gt; tag. You can set the file's path in the &lt;code&gt;src&lt;/code&gt; attribute. Here is an example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;script&lt;/span&gt; &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"scripts/index.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want to wait until the HTML document has been parsed, you should add the &lt;code&gt;defer&lt;/code&gt; attribute to your script tag. This is very useful when placing scripts in the &lt;code&gt;head&lt;/code&gt; of your document, as it prevents them from blocking HTML parsing. Keep in mind, this only applies to external classic scripts. Module scripts are deferred by default. Here is how it would look:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;script&lt;/span&gt; &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"scripts/index.js"&lt;/span&gt; &lt;span class="na"&gt;defer&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The second way is to just write the code inside the &lt;code&gt;script&lt;/code&gt; tags, as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;script&amp;gt;&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"This is called inline JavaScript"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can place script tags both in the &lt;code&gt;head&lt;/code&gt; and &lt;code&gt;body&lt;/code&gt; of your HTML document. Consider using the &lt;code&gt;defer&lt;/code&gt; attribute if it is in the &lt;code&gt;head&lt;/code&gt;. You can also place the script near the bottom of the &lt;code&gt;body&lt;/code&gt;, so the HTML elements it needs will have already been parsed.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Document Object Model
&lt;/h2&gt;

&lt;p&gt;The Document Object Model represents a document in a tree structure, with each node representing an object corresponding to a part of the document. In the case of an HTML document, this tree represents the webpage and its elements.&lt;/p&gt;

&lt;p&gt;This is important for building interactive web pages because it allows JavaScript to create, remove, access, and modify elements in the document. JavaScript can also use the DOM to attach functions to event handlers, which lets actions like button presses or text input trigger code execution.&lt;/p&gt;

&lt;p&gt;Here is an example of how HTML corresponds to a DOM:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HTML&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!doctype html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"en-US"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;charset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"utf-8"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Document Object Model Example&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;section&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;img&lt;/span&gt;
        &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"test.png"&lt;/span&gt;
        &lt;span class="na"&gt;alt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Alternate text for this image"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;
        This is a link:
        &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://dev.to/tyleruploads/"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Tyleruploads on DEV.to&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;&lt;/p&gt;A text visualization of the DOM&lt;br&gt;
  &lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwp13a5d3lnwrtwe8jlhf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwp13a5d3lnwrtwe8jlhf.png" alt="A text visualization of the DOM" width="448" height="459"&gt;&lt;/a&gt;&lt;p&gt;&lt;/p&gt;




&lt;p&gt;&lt;/p&gt;A graphical visualization of the DOM&lt;br&gt;
  &lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx743zt9zetkig7zw26ef.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx743zt9zetkig7zw26ef.png" alt="A graphical visualization of the DOM" width="513" height="499"&gt;&lt;/a&gt;&lt;p&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Selecting and Storing Elements as Variables
&lt;/h2&gt;

&lt;p&gt;You can select elements from the document in many ways, then store them as variables. I will give some examples of common ways to select elements in JavaScript in this section.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!doctype html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"en-US"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;charset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"utf-8"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Document Object Model Example&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Fruits List&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"li-apple"&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"fruit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Apple&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"fruit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Banana&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"fruit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Orange&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want to store the list element that shows the text "Apple" as a variable, here are some ways to do it.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;getElementById()&lt;/code&gt; method allows us to select an element by its ID. If there is no element with the specified ID, it returns &lt;code&gt;null&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;element&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"li-apple"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;querySelector()&lt;/code&gt; method allows us to select an element by its CSS selector. The CSS selector for a class is &lt;code&gt;.className&lt;/code&gt;, and the CSS selector for an ID is &lt;code&gt;#id&lt;/code&gt;. The &lt;code&gt;querySelector()&lt;/code&gt; method only returns the first element that matches the provided selector. If many elements match, only the first one is returned. If no elements match, it returns &lt;code&gt;null&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;elementRef1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"#li-apple"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;elementRef2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;".fruit"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you wanted to store a reference to all of the fruits, you can use the &lt;code&gt;querySelectorAll()&lt;/code&gt; method. It returns a static &lt;code&gt;NodeList&lt;/code&gt;, which contains every element that matches the CSS selector, not just one. If you passed it "li", you'd get the same result, since all the &lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt; elements have the &lt;code&gt;fruit&lt;/code&gt; class. Unlike an &lt;code&gt;HTMLCollection&lt;/code&gt;, a static &lt;code&gt;NodeList&lt;/code&gt; does not automatically update whenever the document changes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;fruits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;".fruit"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Traversing the HTML DOM
&lt;/h2&gt;

&lt;p&gt;Now that you know how to select elements, let's go a bit more into traversing the DOM. We will be using the same HTML as above, provided again for your convenience.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!doctype html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"en-US"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;charset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"utf-8"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Document Object Model Example&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Fruits List&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"li-apple"&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"fruit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Apple&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"fruit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Banana&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"fruit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Orange&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let's say you want to iterate over each list item in the unordered list and print the content of every item to the console. To do this, you need to first get a reference to the unordered list, then iterate over its children. We will iterate over its children using the &lt;code&gt;children&lt;/code&gt; property, which returns an &lt;code&gt;HTMLCollection&lt;/code&gt; that contains the element's child elements.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;fruitUl&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"ul"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;child&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;fruitUl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;children&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;child&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The JavaScript will output: &lt;/p&gt;

&lt;p&gt;&lt;br&gt;
  Apple&lt;br&gt;
  Banana&lt;br&gt;
  Orange&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;If you want to select the parent of an element, you do so with the &lt;code&gt;parentElement&lt;/code&gt; property. If the parent node is not an element, or the element has no parent, this property returns &lt;code&gt;null&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;appleLi&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"li-apple"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;appleUl&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;appleLi&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;parentElement&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Manipulating Properties and Styles of Elements with Dot Notation
&lt;/h2&gt;

&lt;p&gt;Let's say you have selected an element &lt;code&gt;el&lt;/code&gt; representing a &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; element, and would like to change its text to say 'altered'. You would use dot notation and 'textContent' to do this. Here is an example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Altered"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You could also save its current text to a variable, like as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With this notation, you can change many things about an element. Here are some properties you can change, corresponding to what they represent:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Property&lt;/th&gt;
&lt;th&gt;Represents&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;innerHTML&lt;/td&gt;
&lt;td&gt;The HTML contained inside the element&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;outerHTML&lt;/td&gt;
&lt;td&gt;The HTML fragment describing the element, including its own opening and closing tags&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;textContent&lt;/td&gt;
&lt;td&gt;The raw text content inside the element and all of its descendants, which includes invisible text&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;innerText&lt;/td&gt;
&lt;td&gt;The rendered text content of the element and its descendants, taking visibility into account&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;tagName (READ ONLY)&lt;/td&gt;
&lt;td&gt;The element's HTML tag in uppercase, like &lt;code&gt;DIV&lt;/code&gt; or &lt;code&gt;H6&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;id&lt;/td&gt;
&lt;td&gt;The id of the element&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;Be careful when assigning user-provided or external data to &lt;code&gt;innerHTML&lt;/code&gt;, as it can introduce &lt;a href="https://en.wikipedia.org/wiki/Cross-site_scripting" rel="noopener noreferrer"&gt;cross-site scripting (XSS)&lt;/a&gt; vulnerabilities. If you only need to change text, use &lt;code&gt;textContent&lt;/code&gt; instead.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Modifying styles is very similar. Here are a few basic examples:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;backgroundColor&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"red"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;borderRadius&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"10px"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"80px"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fontSize&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"3rem"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Keep in mind that the &lt;code&gt;style&lt;/code&gt; property only accesses an element's inline styles. It doesn't directly modify the internal or external stylesheets themselves.&lt;/p&gt;

&lt;p&gt;If you want a full list of properties, consult the &lt;a href="https://www.w3schools.com/jsref/dom_obj_style.asp" rel="noopener noreferrer"&gt;w3schools HTML DOM Style Object List&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;When manipulating CSS, it may be important to alter element classes, as shown below:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;classList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"primary-card"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;classList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"primary-card"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;classList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toggle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"primary-card"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Working With Event Listeners
&lt;/h2&gt;

&lt;p&gt;Event listeners allow us to execute functions in response to events, such as mouse clicks, keyboard input, or changes to an element. We can register these listeners using the &lt;code&gt;addEventListener&lt;/code&gt; method.&lt;/p&gt;

&lt;p&gt;The event that triggers when the HTML document has been fully parsed and the deferred and module scripts have been executed is called &lt;code&gt;DOMContentLoaded&lt;/code&gt;. Keep in mind, this does not mean that all external resources, like images, have finished loading. If you want to link a function named &lt;code&gt;loadedFunc&lt;/code&gt; to this event, you can do so as follows:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Make sure not to include parentheses after the function here! If you did, you would be calling a function immediately, as opposed to passing a function reference.&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"DOMContentLoaded"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;loadedFunc&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also attach to specific events on elements. To attach a function named &lt;code&gt;clickedFunc()&lt;/code&gt; to the event handler for clicking on a specific element named &lt;code&gt;el&lt;/code&gt;, you can use the following code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"click"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;clickedFunc&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want to define a function inside the &lt;code&gt;addEventListener()&lt;/code&gt; method, you can use something called an arrow function, as shown below. Arrow functions are JavaScript's syntax for writing function expressions, which is commonly associated with lambda functions in other programming languages. The &lt;code&gt;event&lt;/code&gt; variable in the parentheses represents the click event.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"click"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;alert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Button Clicked. Deleting Button"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;currentTarget&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Creating, Appending, and Removing Nodes
&lt;/h2&gt;

&lt;p&gt;To create a node, use the &lt;code&gt;document.createElement()&lt;/code&gt; method, and pass the tag name of the element you want to create.&lt;/p&gt;

&lt;p&gt;To insert a newly created element into the DOM, use the &lt;code&gt;element.appendChild()&lt;/code&gt; method on the element intended to be the parent and pass a reference to the new child element. If it already exists somewhere in the document, it will be moved, rather than copied.&lt;/p&gt;

&lt;p&gt;If you have references to the parent and child elements, you can remove a child element from the parent using the &lt;code&gt;element.removeChild()&lt;/code&gt; method and pass the child element. The child must be a direct child of the parent. If it is not a direct child, the method will throw a &lt;code&gt;NotFoundError&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If you only have a reference to the element to be removed from its parent, use the &lt;code&gt;remove()&lt;/code&gt; method on it.&lt;/p&gt;

&lt;p&gt;Keep in mind that when removing an element, the element can still exist if you retain a reference to it. It is just removed from its parent.&lt;/p&gt;

&lt;p&gt;For the code example, the same HTML will be used, as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!doctype html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"en-US"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;charset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"utf-8"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Document Object Model Example&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Fruits List&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"li-apple"&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"fruit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Apple&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"fruit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Banana&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"fruit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Orange&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a code snippet using all of these functions.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Select unordered list and list element&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;fruitUl&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"ul"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;appleLi&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"li-apple"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Remove child with the help of a reference to its parent&lt;/span&gt;
&lt;span class="n"&gt;fruitUl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;removeChild&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;appleLi&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Create a new element that would be represented with a &amp;lt;li&amp;gt; tag if it were in HTML&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;newLi&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createElement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"li"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Set the text of the new element and its class&lt;/span&gt;
&lt;span class="n"&gt;newLi&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Grape"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;newLi&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;classList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"fruit"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Add the new list item to the unordered list&lt;/span&gt;
&lt;span class="n"&gt;fruitUl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;appendChild&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;newLi&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Remove the list item without the help of its parent's reference&lt;/span&gt;
&lt;span class="c1"&gt;// This is intentional and just to demonstrate how these methods work&lt;/span&gt;
&lt;span class="c1"&gt;// You won't see it on screen&lt;/span&gt;
&lt;span class="n"&gt;newLi&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Debugging JavaScript
&lt;/h2&gt;

&lt;p&gt;JavaScript can be very hard to debug! Unlike many other programming languages, JavaScript is very permissive, which means it lets certain mistakes occur without causing an error. Your code can execute perfectly, whilst still producing an incorrect result, or none at all. You can use your browser's developer tools to access important debugging tools, like the JavaScript console. You can also use the &lt;code&gt;console.log()&lt;/code&gt;, &lt;code&gt;console.warn()&lt;/code&gt;, and &lt;code&gt;console.error()&lt;/code&gt; methods to print important debugging information to the console, like variables, state information, and anything else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;You just learned the fundamentals of making interactive webpages using JavaScript and DOM manipulation! Keep in mind, this is not the end! You still have a lot more practice to do to really sharpen your skills! Try to think of a few ideas to practice this with!&lt;/p&gt;

&lt;p&gt;If you need help finding some exercises, I made some for you!&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fahrenheit to Celsius Converter:&lt;/strong&gt; You can make a webpage that displays a number input for Fahrenheit, a submit button, and then an element below that will show the Celsius conversion. If you do not feel like using the form tags, you can connect the 'click' event listener on the button to a custom function. This function should reference the Fahrenheit-to-Celsius conversion equation, which is: C = (F - 32) / 1.8. If you don't know how to do arithmetic in JavaScript, it is, in fact, very easy. You can implement the equation as follows: &lt;code&gt;let celsius = (fahrenheit - 32) / 1.8&lt;/code&gt;. Remember, the &lt;code&gt;textContent&lt;/code&gt; property can edit the visible text of an element.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add Image on Button Click:&lt;/strong&gt; This one should be simple! In this example, you will create an image element and append it to the document when a specific button is clicked. The &lt;code&gt;src&lt;/code&gt; property allows you to change the source of an image.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;To-do List:&lt;/strong&gt; You will have a text input, an add button, and an ordered or unordered list of items. When the user clicks the add button, your custom function to make a new list element, change its &lt;code&gt;textContent&lt;/code&gt; to the text in the input (you can use the &lt;code&gt;.value&lt;/code&gt; property to find it), and add it to the list. If you want to make it a bit more advanced, you can make each list element have a delete button that is automatically added, which deletes the list item when pressed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once you are able to do all of these well, you should progress to making webpages that actually mean something. If you want any more ideas, check out &lt;a href="https://www.100jsprojects.com/projects#project-library" rel="noopener noreferrer"&gt;100 JavaScript Projects for Beginners&lt;/a&gt; and &lt;a href="https://www.freecodecamp.org/news/javascript-projects-for-beginners/" rel="noopener noreferrer"&gt;40 JavaScript Projects for Beginners&lt;/a&gt;. You absolutely do not need to do all of them! They are just extra help and ideas, in case you need them.&lt;/p&gt;

&lt;p&gt;If you have any questions about anything you see in the article, or anything else even remotely related to it, feel free to ask it in the comments below. If you think there's anything else people should know about this topic, you should also leave a comment below so other people can see it. I will respond to each and every comment, unless this gets to like 1,000 comments or something like that.&lt;/p&gt;

</description>
      <category>html</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How I Made a Markov Chain Model from Scratch in C++ During a Global Online Teen Hackathon</title>
      <dc:creator>Tyler N</dc:creator>
      <pubDate>Sun, 15 Nov 2026 19:51:04 +0000</pubDate>
      <link>https://dev.to/necoz/how-i-made-a-markov-chain-model-from-scratch-in-c-during-a-global-online-teen-hackathon-3gd7</link>
      <guid>https://dev.to/necoz/how-i-made-a-markov-chain-model-from-scratch-in-c-during-a-global-online-teen-hackathon-3gd7</guid>
      <description>&lt;p&gt;Stardance, a global teen online hackathon hosted for teenagers by Hack Club, a nonprofit organization, had just recently ended. I had made many great projects, and I even got a 3D printer, completely for free, because of my work. I was locked and loaded to make another coding project, but I wasn't sure what program I should do it with. So, I stopped for a few days, and eventually found Pixl, something very like Stardance. In fact, they were so similar to each other that I was able to get right back into it and created Corpustein, a blazingly fast N-gram Markov Chain model with a configurable order and a rolling window system, in just 34 hours over 13 days. It is coded completely in the C++20 STL, and it provides an interactive and beautiful TUI just through a user-input loop and ANSI codes.&lt;/p&gt;

&lt;p&gt;If you are very confused as to what Corpustein is, it is a mini AI model that generates text token by token using a window of previous tokens (or words) and a container of all the possible n-grams (or groups of X tokens) based on the current window. This is what an N-gram Markov chain (plus a rolling window system) is. It also maintains a set of previously generated tokens to prevent repeating them, but allows common English words to be repeated. Corpustein is also the TUI that lets users interface with it. The thing that makes it different from what you probably think of when you hear "Artificial Intelligence" (most likely a Large Language Model) is that a Markov chain does not remember anything larger than its N-gram window, but an LLM has an attention model, which looks at a very long sequence of tokens to help generate responses. And, with LLMs, semantic similarity is automatically encoded as high-dimensional coordinates in a continuous vector space, while Markov Chains rely on matching exact word sequences. LLMs can also generate reasonable answers to questions they've never seen before because of how they learn more abstract rules, logic, and world knowledge. Whereas Markov Chains usually just repeat fragments of their training data. An LLM is also much slower than a Markov Chain and is way more resource-intensive. Think of Corpustein as a statistical or probabilistic model that generates mostly coherent English.&lt;/p&gt;

&lt;p&gt;In my previous project, MDEZ++, I didn't think I got enough experience with actual C++, without the Qt Framework simplifying everything for me. If you want to read the article about it, look &lt;a href="https://dev.to/tyleruploads/how-i-made-yet-another-project-during-a-global-teen-hackathon-with-prizes-38hc"&gt;here&lt;/a&gt;. I definitely can not say the same thing here. I think this was the best thing I've ever done for my low-level coding skills, ever.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F59kq5fi9gjynbjmzw3pk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F59kq5fi9gjynbjmzw3pk.png" alt="Hero for Corpustein, a Markov Chain model built purely with the C++20 STL" width="800" height="280"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Check out the GitHub repository &lt;a href="https://github.com/tyleruploads/corpustein" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you are a Hack Club member, you can access the project page &lt;a href="https://pixl.hackclub.com/projects/2247" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you want a quick download, check this table!&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Linux&lt;/th&gt;
&lt;th&gt;Windows&lt;/th&gt;
&lt;th&gt;macOS&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/tyleruploads/corpustein/releases/latest/download/corpustein-x86_64.tar.gz" rel="noopener noreferrer"&gt;&lt;strong&gt;Linux Executable tar.gz (x86_64)&lt;/strong&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/tyleruploads/corpustein/releases/latest/download/corpustein-win64.zip" rel="noopener noreferrer"&gt;&lt;strong&gt;Windows Executable ZIP (x86_64)&lt;/strong&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Not Automatically Compiled by CI/CD&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fast and Lightweight:&lt;/strong&gt; Built only on the C++20 STL, Corpustein is fast and consumes virtually no resources.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom Corpus Loading:&lt;/strong&gt; Users can load custom corpus files to be used by Corpustein. Additionally, Corpustein comes with a vast array of default options already baked into the program for them to load.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automatic Configuration:&lt;/strong&gt; Corpus files contain metadata that provides default settings for the model to use, determined by the content of the corpus by its creator. If the file appears to just be a normal text file without any sort of metadata, it will skip the default settings gracefully.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compatibility:&lt;/strong&gt; With portable, native binaries automatically generated by the CI/CD for both Linux and Windows, Corpustein can be used on just about any system.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Commands and Settings:&lt;/strong&gt; Corpustein contains various commands users can run while in the interactive terminal environment to control many things about the model, like the order, maximum sentence count, and much more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Alternate Terminal Buffer:&lt;/strong&gt; Corpustein uses an alternate terminal buffer to make a beautiful, stylized environment. Users are able to enable and disable this alternate terminal buffer right in the CLI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discrete Handling:&lt;/strong&gt; When the model runs out of token choices, instead of simply stopping the answer, it will choose a new, random token to continue generating text, with the user never knowing it ran out of tokens in the first place.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context-Intelligent Repetition Avoidance:&lt;/strong&gt; Corpustein saves tokens to a history set to prevent repetition in its responses. It references tokens with a set of common English words to never force it into choosing a completely random token because of the avoidance of basic linguistic structural words&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Configurable Typewriting Animation:&lt;/strong&gt; Instead of throwing the model's entire response to the terminal all at once because of how fast it is, it uses a configurable typewriting animation to make it more appealing.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Devlogs
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1: "Minimum Viable Product"
&lt;/h3&gt;

&lt;p&gt;For the past 5.5 hours, I have been working on Corpustein. Corpustein is a Markov Chain built in C++20. I don't have a nice description or branding phrase yet, because I have been waiting for it actually to be slightly usable. Before I make my README, I will set up a GitHub Actions workflow to automatically compile Linux AppImage and Windows EXE files and attach them to Releases. How it works is that the user inputs a prompt, like "What is a transistor?" and the first step is finding a token for the program to start its response with. If you are wondering, a token is one unit of text. Usually, it is a word (that is, for Corpustein), but it could also be a character, punctuation mark, sentence, etc. It will compare the tokens in the user's prompt to the corpus to find a word the user said that is also in the corpus. And basic words like "in", "there", "a", "an", etc., can never be the seed. If it can't find a good seed based on the input text, it will just do a random one. It uses a rolling window where it stores three tokens at once, uses those tokens to find the best next token, and throws out the oldest token from the window so it's still only three tokens. Whenever it runs out of choices, it'll just go get a random window, continue, and everything will be okay. Currently, it has no way to know when to stop. That will be another thing I will do soon. It will just print text forever. The good thing is it doesn't repeat tokens, and it makes understandable sentences.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;====================
corpustein v0.1.0
====================

User: What is a transistor?
Corpustein: the transistor in 1947, which significantly compacted computers and led the digital transition. Information technology, particularly optical fiber and main electronic components (resistors, capacitors, etc.) can be created at a microscopic level. Nanoelectronics is Forest in 1914"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc2xpvow3xmqcjt41jchf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc2xpvow3xmqcjt41jchf.png" alt="A terminal running Corpustein v0.1.0" width="800" height="455"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  2: "First Release, and Nice Styling!"
&lt;/h3&gt;

&lt;p&gt;I just got the first release out, right here: &lt;a href="https://github.com/tyleruploads/corpustein/releases/tag/v0.1.0" rel="noopener noreferrer"&gt;https://github.com/tyleruploads/corpustein/releases/tag/v0.1.0&lt;/a&gt;. And it is precompiled for the user, which is pretty nice. That's from the GitHub Actions Workflow I just made. I also made it look a LOT better! I used an alternate terminal buffer to apply some cool styling.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fau4huwtj2x2a1231mlr6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fau4huwtj2x2a1231mlr6.png" alt="A terminal running Corpustein, a Markov Chain model built in C++20 STL, with amber and white text over a black background" width="799" height="236"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3: "Added some Settings"
&lt;/h3&gt;

&lt;p&gt;I just added many settings to Corpustein, along with some features too! The first feature is that now, text is streamed to the terminal with a custom typewrite() function. It streams it character by character, waiting a specific amount of time between each one. A setting was added to control the delay between each character. This next setting is probably the most important one, though. I made it so the user can configure the order of the n-gram model. The order is how many tokens it references to figure out the next token. These two settings were originally their own, but I decided to instead make a /set command and put them in there, as /set delay and /set order. I also made a subcommand in /set called max_sentence_count that allows the user to configure how many sentences the model is allowed to output per response. It also automatically scales the maximum tokens per response to 40 times the new sentences. This setting can not be raised higher than 50. Another important thing isthat  I gave users the option to enable or disable the alternate buffer. That is pretty important, since if the alternate buffer is on, they can not do any scrolling, and everything is lost when the application is exited. Whereas, without the alternate terminal buffer, they can scroll and keep the responses after they exit the program. This can be accessed by the altbuffer subcommand in /set. Finally, I made it so anything starting with / but isn't a real command will just do the help command instead of outputting text.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpgrh24bedmt3r76253dy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpgrh24bedmt3r76253dy.png" alt="Corpustein showing the output of the set command" width="800" height="218"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4: "A lot of stuff"
&lt;/h3&gt;

&lt;p&gt;Many changes have just been made. Most of these are really large architectural changes. So, here's an ORDERED BY SIGNIFICANCE numbered list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffgnmltotac94xnrcj8ri.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffgnmltotac94xnrcj8ri.png" alt="Corpustein showing many preloaded corpus options and stats" width="800" height="474"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;User-Defined and Multiple Default Corpus Support:&lt;/strong&gt; Now, there are multiple default corpora, as opposed to just one. At the moment, there are 10, consisting of things such as the complete works of William Shakespeare, Mark Twain, and Charles Dickens, every single United States Presidential Inaugural Speech, the Linux Kernel Documentation, and more. Users can also load their own corpora by file path. This can be done with the command /load  . Run /load help to view the types. The corpora start with a special format that starts off with a special file signature, then includes some default settings between the signature and the delimiter at the end (===). Here is how a heading looks:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;io.github.tyleruploads.corpustein:corpus-file
name: The name of the Corpus
default_order: An integer between 1 and 8 representing the order of the n-gram model
max_sentence_count: An integer representing the maximum sentences for each model's output, which also scales up the maximum tokens and the token history container.
===
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;/stats command:&lt;/strong&gt; A brand new /stats command has been added! It outputs the name of the current corpus, along with many other things such as the tokens in said corpus, the unique N-gram contexts that occurred as a result of the corpus and the order, and some variables not inherently associated with the corpus, like the maximum sentence count and more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Static Assertion and Preprocessor Directive Right at the Top:&lt;/strong&gt; Right at the top of the code, a preprocessor directive and static assertion have been added (the static assertion is not in the preprocessor directive). The static assertion ensures it is being compiled with C++20 or higher. The preprocessor directive invokes an error when APP_VERSION is not defined, which prevents a big wall of fatal errors from being shown to the user with no context. APP_VERSION is automatically passed by CMake.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  5: "Small but Large Stuff"
&lt;/h3&gt;

&lt;p&gt;I just made some changes to Corpustein that appear small, but are actually large. I will list them here in the order of their commits, because I really don't feel like ordering them by significance again and finicking around with changing all the list numbers on my own when I move around points. The extra half hour is explained in the "Add Features Section to README" point.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fot7duqg7hstnkftkcolt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fot7duqg7hstnkftkcolt.png" alt="A screenshot of the Corpustein README" width="800" height="871"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fixed Silent Error:&lt;/strong&gt; The code has an unordered set named unordered_repeats that contains a bunch of common English words. The model is programmed to never repeat tokens that are in its token history window, which is equal to four tenths of the maximum token count, which is 40 times greater than the maximum sentence count. If it can not find a token that is not already in the token history after five retries, it will go to a random token. The purpose of the allowed_repeats unordered set is to make sure it is allowed to repeat basic linguistic constructs, such as "the", "and", "he", etc. After checking the code with clang-tidy, I noticed that some of the elements of the unordered set did not have commas after them, which linked some words together. For example, instead of two elements, "himself" and "herself", it was "himselfherself" (just an example; those specific words were not combined in the real program).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add Windows Compilation to CI/CD:&lt;/strong&gt; If you've seen some of my other coding projects, you know that this obviously wasn't done in one commit. It took me four to prevent errors caused by things like not specifying the C++ standard properly (that's what I thought it was when I made the commit, but that wasn't the issue), not using the POSIX version of MinGW, and using Ubuntu 22.04. The Ubuntu version was the main cause of all the errors. With Ubuntu 22.04, it comes with C++11. While it compiled the Linux version fine and used C++20, when I compiled for Windows with the MinGW toolchain, it used C++11 instead of C++20, which obviously didn't work for my application.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Update README Downloads Section:&lt;/strong&gt; The downloads section of the README was a bit barren. So, I made a downloads table that now lists the Linux version, the Windows version, and the macOS version (or lack thereof). I also threw in a note for Linux users and for Windows users. The note for Linux users was essentially just: "Mark it as executable" (and some Bash commands in case they're really tired or something and can't do it on their own). But the note for Windows users was essentially just a full tutorial, because I had to include stuff about SmartScreen activation and stuff. And with Linux, I knew I didn't need to write that much, since it's self-evident they have some idea what to do with a tar.gz. The Bash command block was good enough. But for Windows users, I had to throw in the "What do I do with a ZIP File?" segment I derived from my previous project's README.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add Features Section to README:&lt;/strong&gt; This is self-explanatory. I just added some features to the README. But there was a really hard thing with it. Because I know all of my code so good, I couldn't think of anything special or worth nothing about my app. It was just the curse of knowledge. So, I physically printed out my code file and annotated it with my favorite pen (UniBall Signo 207, Black) and made markings like "Modular Design," "Robust Error Handling," "Advanced State Handling," "Fast and lightweight approach," "UX," "Windows UTF-8 Declaration," and a lot of other stuff. Most of it was just nonsense, like if I were a markov model designed to write corporate nonsense. But I eventually narrowed it down. This took about a half hour of manual pen and paper markings not counted by Hackatime, so I am manually adding one extra half hour for this journal entry.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add Corpus File and Directory Structure Sections to README:&lt;/strong&gt; Since Corpustein needs a specific directory structure and supports a custom corpus file format (still plaintext, designed by me, just for this app) to load default settings, I decided to make sure that's evident in the README.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add Cornel Movie-Dialog Corpus:&lt;/strong&gt; I usually don't put single corpora additions in these journal entries. But this one's pretty important, so I decided to. Fun fact: the corpus has 304,719 lines of text. That's a lot. And the really interesting thing is that it has 3,201,791 tokens in it, which makes 1,150,080 unique N-gram contexts with an order of 2. That means there were approximately 10.5 tokens per line. This corpus is definitely the most conversational.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  6: "Analysis and Commands"
&lt;/h3&gt;

&lt;p&gt;Those two words, analysis and commands, can summarize this devlog.&lt;/p&gt;

&lt;p&gt;For analysis, I made cppcheck, clang-tidy, and (not technically analysis, but close enough), clang-format and address sanitizers automatically run every debug build. It makes the code much more readable, modern, fast, and less error-prone.&lt;/p&gt;

&lt;p&gt;For Commands, I added /about, /reload and /history. I really don't need to explain those.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq7og07v7stxyz41ve2w2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq7og07v7stxyz41ve2w2.png" alt="A terminal running Corpustein, highlighting the history and about commands" width="800" height="474"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  7: "Linux and Optimization"
&lt;/h3&gt;

&lt;p&gt;From my last entry, I have made 6 commits (not counting bumping it to version v0.4.0). Almost all of these relate to either Linux or optimization.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Allow Linux Users to Store Default Corpora in /usr/local/share/corpustein/corpora:&lt;/strong&gt; If you are reading that and think it's very peculiar, it'll make sense when you read a bit more. If you don't use Linux and have no clue what /usr/local/share is for, it's where applications store files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make Optimizations and Add Basic Profiling:&lt;/strong&gt; The optimizations in this point simply consist of making the allowed_repeats unordered set a const reference in the arguments for the get_seed() function (which returns a string), making the tokens vector of strings in the get_ngram_contexts() arguments a const reference, and making another string a const reference. For profiling, I made a Timer class and used it to measure how long it takes to load corpora. I also made it so that when the lines of the corpus are being sent to the variable, it adds newlines where they should be.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generate Cleaned Tokens Set at Corpus Loading:&lt;/strong&gt; Previously, it would clean EVERY SINGLE TOKEN IN THE CORPUS, AFTER EACH AND EVERY PROMPT! That's terrible, since there can be millions of tokens, and they never change after the corpus has been loaded. I have no clue how much faster it made Corpustein, but it must've been a lot. It's probably a lot less resource-intensive now, too.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Create Linux Setup Script, and add to README:&lt;/strong&gt; Like my previous project, I had a Linux Setup Script. I copied most of it, then changed a lot of it. The main difference is that Corpustein uses a normal binary and other files it accesses that the user doesn't provide via some sort of UI, but MDEZ++ is just one single AppImage without any files the user doesn't provide via some sort of UI. It took a long, long time. I also added the installation command to the CMakeLists.txt. And I added the script to the README, of course. I am claiming one extra hour because of all of the testing this took, that wasn't in the code editor! I ran the setup script at least 100 times, because it oftentimes didn't work. And, if you're wondering, it was spaced way more than 2 minutes apart between the times I ran the script and made the changes, so the time in between isn't counted. 1 hour is probably an understatement, considering it is 6:11 PM.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add /history to README:&lt;/strong&gt; I simply forgot earlier.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Look at the Linux Setup Script:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy24gm6f1wm93m5qoyto1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy24gm6f1wm93m5qoyto1.png" alt="The Linux Setup Script for Corpustein running in a terminal with a white background" width="800" height="237"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  8: "Optimization, Modularization, and SIGINT User Directive"
&lt;/h3&gt;

&lt;p&gt;This seems like a weird name, but I'm going with it anyway. On the topic of modularization, I just replaced the ngram_contexts map to hold unordered sets, as opposed to vectors, which greatly sped up the loading. On the topic of modularization, instead of just having one main.cpp, I now also have function_runner.inc and load_corpus.inc. Each holds exactly one lambda function, and they are put in main.cpp with #include statements. If you don't know what an include statement is, it essentially just copies and pastes an entire file right there before compiling. And I made it so that when users press Ctrl + C, instead of just exiting, it'll ask them if they really want to exit. Keep in mind, it still has the feature from before where, when you press Ctrl + C while it is generating text, it will just skip the typewriting animation effect and print it out all at once. And, it's now v0.6.0! I think I'll make it v1.0.0 in a bit, but after I ship it! Yes, that's right, I think it's about time to ship it already! I really can't think of anything else I could add, because it is already so advanced!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw6jqzxhr2gpoxyz1ytc6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw6jqzxhr2gpoxyz1ytc6.png" alt="A terminal running Corpustein v0.6.0" width="800" height="196"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  EXTRA: Note Sent to Reviewer:
&lt;/h3&gt;

&lt;p&gt;Hello, reviewer! You're probably wondering why I wrote these journal entries like it's a blog article. I came from Stardance, where everything was one. I do recognize that these journals might not be public, and if they aren't, I'll just put them on DEV.to.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;If you couldn't tell, this is definitely a long article, probably almost 2,000 words. When I participate in Hack Club events, I keep pushing myself to be a better coder. This was actually my first project in plain C++20 STL, and I learned a lot from it.&lt;/p&gt;

&lt;p&gt;Corpustein is currently in the review queue, and I think it's going to go extremely well. On the topic of prizes, here are some things I'm probably going to get:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Minecraft&lt;/li&gt;
&lt;li&gt;3D Printing Filament Grant&lt;/li&gt;
&lt;li&gt;Steam Game Grant&lt;/li&gt;
&lt;li&gt;Soldering Iron&lt;/li&gt;
&lt;li&gt;Random Desk Object from Organization&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;Check out the GitHub Repository &lt;a href="https://github.com/tyleruploads/corpustein/" rel="noopener noreferrer"&gt;here&lt;/a&gt;. If you are a Hack Club member, you can access the project page &lt;a href="https://pixl.hackclub.com/projects/2247" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;What's the lowest-level thing you've ever done before? Feel free to share in the comments.&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>showdev</category>
      <category>programming</category>
      <category>ai</category>
    </item>
    <item>
      <title>How I Started Writing on DEV.to, and You Can Too</title>
      <dc:creator>Tyler N</dc:creator>
      <pubDate>Wed, 11 Nov 2026 23:53:26 +0000</pubDate>
      <link>https://dev.to/tyleruploads/how-i-started-writing-on-devto-and-you-can-too-481b</link>
      <guid>https://dev.to/tyleruploads/how-i-started-writing-on-devto-and-you-can-too-481b</guid>
      <description>&lt;p&gt;Hello, New DEV.to members!to Members!&lt;/p&gt;

&lt;p&gt;I am Tyler N, a 13-year-old (almost 14) from Maryland, and I made my first article here on DEV.to, or on any sort of blogging platform, on May 28, 2026, which was 167 days, 24 weeks, or 5 months ago. It was titled "Git for GitHub: How to use simple Git commands to manage a GitHub repository," and it definitely took me a while to write. But after I published it, I realized that I would be making many more articles here on DEV.to. I had received real comments on it about how it actually, really helped people. I thought it wouldn't go anywhere, but it definitely did.&lt;/p&gt;

&lt;p&gt;I started to learn to code sometime in the sixth grade (which was in the 2024-2025 school year), created my first GitHub repository in December of 2025, and DEV.to is just the natural continuation of that.&lt;/p&gt;

&lt;p&gt;Since that point, I have made six more articles. My second article was about how I used Inkscape to create a banner for the first article and my profile picture. While it may definitely be a brisk pace, I had sleepaway camp and summer right in the middle, so it just about evens it out. While making these articles, I have gotten much better at my writing, both technical and non-technical.&lt;/p&gt;

&lt;p&gt;The point of me telling you this is to inform you that you can absolutely do the same thing I did, if not better than me. To find the idea for that very first article, and just about every article after it, I thought about either something that was confusing for me or that I thought might be confusing to others, or a coding project I had recently gotten to a stable state. I also wrote one about why I chose to code in the Terminal, without an Integrated Development Environment (IDE). Obviously, these aren't the only things articles can be about. Be creative, and start writing! If you don't think you can write an article just yet, go around and explore other people's articles, and interact with them by leaving thoughtful comments.&lt;/p&gt;

&lt;p&gt;How did you guys discover DEV.to, and what are you going to write? Feel free to describe how you got into coding or another technical field.&lt;/p&gt;

</description>
      <category>welcome</category>
      <category>beginners</category>
      <category>community</category>
      <category>discuss</category>
    </item>
    <item>
      <title>How I Made Yet Another Project During a Global Teen Hackathon with Prizes</title>
      <dc:creator>Tyler N</dc:creator>
      <pubDate>Fri, 30 Oct 2026 21:07:45 +0000</pubDate>
      <link>https://dev.to/tyleruploads/how-i-made-yet-another-project-during-a-global-teen-hackathon-with-prizes-38hc</link>
      <guid>https://dev.to/tyleruploads/how-i-made-yet-another-project-during-a-global-teen-hackathon-with-prizes-38hc</guid>
      <description>&lt;p&gt;Just over two weeks ago, I made an article here on DEV about how I made an action video game with the Godot game engine during a global digital couple-month-long hackathon for teenagers named Stardance. An important part of the article was the prizes involved in participating in the hackathon, and how I earned a Bambu Lab A1 Mini 3D Printer because of my work. I also mentioned that I made some smaller projects before that one. The article is here: &lt;a href="https://dev.to/thetylern/how-i-built-an-action-game-with-godot-during-a-global-teen-hackathon-with-prizes-4db0"&gt;How I Built an Action Game with Godot During a Global Teen Hackathon with Prizes&lt;/a&gt;. Well, I guess I didn't mention my plans for what I would do after! This article is all about that!&lt;/p&gt;

&lt;p&gt;I just very recently made MDEZ++ (mdez), a lightweight Markdown editor. It is built with C++20 and the Qt Framework for the need for speed. Instead of a WYSIWYG (What You See Is What You Get) editor, or the polar opposite, a raw Markdown editor with a separate option to render it, it renders the raw Markdown as you type it on the right side of the screen. There’s essentially no knowledge required to use MDEZ++, not even knowledge of Markdown syntax. This is because of the Format menu, which allows you to apply Markdown syntax by clicking on unambiguous buttons. It can even render HTML files too, with almost the same workflow as Markdown files. It can also edit any other plaintext file format,  making it highly versatile.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fljnc1thx0r4iibagiom4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fljnc1thx0r4iibagiom4.png" alt="MDEZ++ (mdez), a lightweight markdown editor, editing its own README document" width="800" height="560"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;While this project only took me 40 hours (10 less than the last project), these hours were definitely harder than my last project. I had to find unique solutions to some problems that traditionally can never be solved without embedding a resource-expensive, bulky Chromium instance into the rendering side, which would completely defeat the purpose of the project. Those types of issues all stem from Qt’s Markdown rendering. It applies some really weird rendering to Markdown. Two of these issues were blockquotes not having ANY special coloring, and the same with code blocks (not even a grey background). I solved those issues with unique, complex regexes. While brittle, they still seem to work.&lt;/p&gt;

&lt;p&gt;I even had to work with permission issues for a while, especially while getting it ready for Flathub. And when I implemented the feature of clicking a link in the document to automatically open up a new tab with that content, I had to do so many conditionals to make sure the end user doesn’t see something ridiculously ambiguous as an error sent right to their screen, even for a C++ coder. Fun fact: it took over 100 lines of code to implement something as simple as that. And I then had to go back and make even more changes to make it work in unique environments, and when users enter a fake link.&lt;/p&gt;

&lt;p&gt;I am so proud of myself for getting my project on Flathub. I had considered getting my last project (a video game in Godot) onto Flathub in the past, but I thought it would be a bit too hard for me. I was thinking, “Oh, imagine how many files I’ll need! A manifest, a metadata information file, CI/CD, human review, manual SHA256 sum changes in the manifest! There’s no way I’ll ever be able to do it!” But I definitely did it with this project! And it looks pretty good on there too!&lt;/p&gt;

&lt;p&gt;When I look through the features section of my README (which I just recently updated), I don’t think of MDEZ++ as a small project made by an indie developer (I don’t like the word Indie for some reason; it just seems too culturally appealing in the sense of turning coding into some sort of a social media lifestyle), but rather, just as a professional-grade project. I can’t even imagine how I made something as complex as this. The features section has 12 points, which still skips over the non-cumbersome or medium-to-easy-difficulty features.&lt;/p&gt;

&lt;p&gt;Even the Downloads &amp;amp; Installation section of the README has complexity greater than anything I have endeavored to do before. It has an introduction, two ways to run the Linux Setup Script I made (which has four options inside it), a download table containing an AppImage file, the Flathub webpage, a Windows executable, a WebAssembly download, and a webpage, then a note for Linux users, and a note for Windows users.&lt;/p&gt;

&lt;p&gt;Even the &lt;a href="https://github.com/tyleruploads/mdez#keyboard-shortcuts" rel="noopener noreferrer"&gt;Keyboard Shortcuts&lt;/a&gt; section and the &lt;a href="https://github.com/tyleruploads/mdez#menu-tree" rel="noopener noreferrer"&gt;Menu Tree&lt;/a&gt; section of the README were orchestrated with a degree of precision beyond what I thought I was capable of. They read more like documentation for Google Docs or Microsoft Word, rather than a one-man 40-hour C++20 Qt Markdown Editor.&lt;/p&gt;

&lt;p&gt;And, I do admit, I had a lot of trouble with the GitHub Actions CI/CD Workflow. It’s 164 lines long. But the line count shouldn’t matter. It’s that I was dealing with one of the hardest things in all of computer science: compiling C++ using Qt in a CI/CD (sorry if that was anticlimactic, since you probably guessed it already).&lt;/p&gt;

&lt;p&gt;But a harder trouble than the GitHub Actions CI/CD Workflow was that I was essentially a beginner to C++ before I started this project! I had briefly touched some C++ maybe a year or so ago, but in my mind, I was a complete beginner when I started MDEZ++. That was evident in my unfamiliarity with absolutely every single thing I had to do, and especially with those compiler errors (and segmentation faults, especially when implementing the ability to use a tabbed interface) I had never experienced before. But I powered through with those Qt Docs, and I did beautifully! But I still don’t think I know C++. I have only been working within the Qt ecosystem, which does a lot of stuff for you. It even has its own class for strings! Strings, of all things! The simplest things ever! All a string is is just characters stored in adjacent memory addresses with a character pointer to the first one, terminated with a null terminator character! (I know, I was describing a C-style string. That’s because my reliance on QStrings has made me not know the full definition of an std::string. I read up on that from a random coding slideshow presentation from some university that was probably used in one class like 20 years ago.)&lt;/p&gt;

&lt;p&gt;With my unfamiliarity with the C++ coding language, I was debugging randomly for many hours on end. And I was even personally targeted by segmentation faults! Yes, personally! I didn’t even know about gdb (GNU Project Debugger) until a few days ago when I saw a random Reddit post. I was essentially thinking, “Which one of these lines looks most suspicious?” for most of my debugging of this project, which isn’t even the correct way to find a segmentation fault! (It’s usually the communication of multiple different things. But philosophically, that statement is always right, just not elaborated upon properly).&lt;/p&gt;

&lt;p&gt;Sorry if this is reading like a whitepaper so far! When I started writing this, I had just gotten back from an intense bike ride. I had just essentially gone forward until I couldn’t go any further. That doesn't even include the ride back. So, my tone switches from fast and engaging to stone-cold, academic, very quickly. Or I could just be imagining that, especially considering my vocabulary is completely standard and non-domain-specific (I literally had to Google what an adjacent memory address was when I read it in that random coding slideshow for a college course from like 20 years ago, despite the fact I’m in Geometry! I was thinking something about opposite sides, not right next to each other!)&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Use MDEZ++
&lt;/h2&gt;

&lt;p&gt;When you open MDEZ++, you will see two panes: one on the left and one on the right. As you type Markdown on the left, it automatically renders on the right. The black bar separating them can be dragged with your cursor to resize the two panes.&lt;/p&gt;

&lt;p&gt;Near the top of the window, there is a bar that contains all of the document tabs in the application. To create a new tab, click the + button on the far right side of the bar. The first tab will be automatically titled "Tab 1," and all subsequently created tabs will be titled accordingly. To delete a tab, click the red X next to the tab name. All other tab names will be automatically updated based on their new index caused by the deletion.&lt;/p&gt;

&lt;p&gt;Arguably, the most important menu is the File menu. It consists of Open File, Save As, Save, Save All Files, Print, and Export as HTML buttons. The Save As, Save, Print, and Export buttons apply only to the selected tab. The Open File button will create a new tab to open the file in automatically, and that tab will be instantaneously selected for the user. The Save All Files button saves all of the documents from every single tab. If a tab has not already been saved, you will not be asked to set a save path when clicking the Save All Files button. Instead, only files that have already been saved, therefore giving them a save path, will be saved.&lt;/p&gt;

&lt;p&gt;Another important menu is the Format menu, which contains many buttons that allow you to apply Markdown syntax without knowing Markdown. If text is selected, the syntax will be automatically applied to it. Whereas, selecting a syntax button with no text selected will apply the syntax with no text inside of it and automatically move your cursor to the appropriate location for you to continue typing. All of these buttons also have keyboard shortcuts that can be invoked from anywhere throughout the application. Below is a table that contains all of the syntax shortcuts in the Format menu.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Format&lt;/th&gt;
&lt;th&gt;Keyboard Shortcut&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Bold&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Ctrl+B&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Insert bold text&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Italic&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Ctrl+I&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Insert italicized text&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Heading 1&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Ctrl+Alt+1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Insert a level one heading&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Heading 2&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Ctrl+Alt+2&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Insert a level two heading&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Heading 3&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Ctrl+Alt+3&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Insert a level three heading&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Horizontal Divider&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Ctrl+D&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Insert horizontal divider&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Block Quote&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Ctrl+]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Insert a block quote&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Strikethrough&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Alt+Shift+5&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Insert strikethrough text&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Link&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Ctrl+K&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Insert a link&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Image&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Ctrl+Shift+I&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Insert an image&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Ctrl+\&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Insert a code block&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Inline Code&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Ctrl+E&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Insert inline code&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;MDEZ++ also contains a Settings Menu, which saves across application instances and is automatically applied to each and every tab. The first setting is the Autosave setting, which can be enabled or disabled and have its interval altered through a number input in seconds. Its default is to be disabled. There are also separate options for the font point size of the editor and the font point size for the rendering pane. For the font point size setting of the rendering pane, other elements will be scaled accordingly relative to the font point size provided. Another setting is the end-of-line character option, which lets you choose between UNIX / macOS (LF) and Windows (CRLF) line endings. The final two settings are toggles for line wrapping in the editor and showing fun facts after application initialization.&lt;/p&gt;

&lt;h2&gt;
  
  
  The End
&lt;/h2&gt;

&lt;p&gt;Stardance was the first ever hackathon I ever participated in. And it is ending tomorrow, on Halloween, October 31, 2026. In the previous article, I was so happy about how I got a certificate that showed I did 70 hours of work with Stardance. Now that I am at 110 hours and it's officially wrapping up, I can really take a step back and think about how I grew as a result of my spontaneous joining of Hack Club and its associated hackathon. I have done so many things I never thought I would be able to do before because of the wide community, incentives, and support that Hack Club has to offer. And Stardance isn't just a one-off thing. They run many events like it. They are called YSWS (You Ship We Ship) and are always completely free to enter. They just about always have intriguing and, more importantly, useful prizes that will last you a lifetime.&lt;/p&gt;

&lt;p&gt;Also, I mentioned how I got a Bambu Lab A1 Mini 3D Printer from my last project. Well, that's technically leaving out some stuff, at least now. I just recently got an RTL-SDR Blog v3 and an ESP32 Kit from the Stardance store with the rest of the Stardust after the project before this! They haven't arrived yet, but I'm anticipating! And, I still have a bunch of Stardust I am going to get when I ship this project, which will probably get me a lot of stuff from the store. &lt;/p&gt;

&lt;p&gt;If you haven't already downloaded or even checked out MDEZ++ yet, feel free to. The GitHub Repository for MDEZ++ is &lt;a href="https://github.com/tyleruploads/mdez" rel="noopener noreferrer"&gt;here&lt;/a&gt;. Its Flathub page (for Linux users) is &lt;a href="https://flathub.org/en/apps/io.github.tyleruploads.mdez" rel="noopener noreferrer"&gt;here&lt;/a&gt;. The Downloads &amp;amp; Installation section of the README can be found &lt;a href="https://github.com/tyleruploads/mdez#downloads--installation" rel="noopener noreferrer"&gt;here&lt;/a&gt;. And, if you don't want to download or install it, you can always check out the WebAssembly version &lt;a href="https://tyleruploads.github.io/mdez/" rel="noopener noreferrer"&gt;here&lt;/a&gt; on GitHub Pages. It is almost as good as the actual downloaded thing.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>showdev</category>
      <category>cpp</category>
      <category>programming</category>
    </item>
    <item>
      <title>How I Built an Action Game with Godot During a Global Teen Hackathon with Prizes</title>
      <dc:creator>Tyler N</dc:creator>
      <pubDate>Wed, 14 Oct 2026 23:24:25 +0000</pubDate>
      <link>https://dev.to/tyleruploads/how-i-built-an-action-game-with-godot-during-a-global-teen-hackathon-with-prizes-4db0</link>
      <guid>https://dev.to/tyleruploads/how-i-built-an-action-game-with-godot-during-a-global-teen-hackathon-with-prizes-4db0</guid>
      <description>&lt;p&gt;I had just recently completed a couple of medium-sized projects for Stardance, a global teen hackathon hosted by Hack Club, a global nonprofit organization for teen coders. To continue, I decided to follow a beginner mission that required just 5 hours of coding. I thought this project would be a quick and easy way to get a relatively small amount of digital currency for the Stardance shop, which allows you to purchase both physical and digital items. This digital currency is called Stardust.&lt;/p&gt;

&lt;p&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbsyepyfhuo6hm3y425a0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbsyepyfhuo6hm3y425a0.png" alt="Logo for CodeWare, depicting an infinity symbol split in half with bars connecting them" width="800" height="800"&gt;&lt;/a&gt; 
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I decided to name the project CodeWare; more on that in a minute.&lt;/strong&gt; I went through the missions tutorial and finished in a decent amount of time. But I kept going back and making sure everything was perfect, squashing bugs before a real user would see them.&lt;/p&gt;

&lt;p&gt;But I thought to myself one thing. This one thing completely transformed the rest of the project (did you really think I ended it there?) The one thing I thought to myself was, &lt;strong&gt;"Am I really going to just submit a simple project following a beginner tutorial?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The answer to that question, and quite frankly the reason why I am making this article, is &lt;strong&gt;an absolute, firm "no." I was not just going to turn in a simple beginner project following a simple beginner tutorial.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flzn2c9bum1o343kror3k.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flzn2c9bum1o343kror3k.webp" alt="The Tyleruploads mountain range, which is the background of the title image for the CodeWare video game created by Tyleruploads" width="799" height="448"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The title screen of the game is the Tyleruploads Mountain Range, which contains many mountains connected via land bridges. The suspension for those bridges is the game's logo turned into a bunch of small links. &lt;strong&gt;Metaphysically, the game’s goal is to cross those bridges.&lt;/strong&gt; Based on the abstract nature of this game, it also has two very abstract endings: one for when you win, and one for when you lose all of your five lives. However, I am not going to explain exactly what happens in these endings, but I will explain their significance.&lt;/p&gt;

&lt;p&gt;They highlight &lt;strong&gt;the eternity of coding in the realm of bureaucratic and automatic computer-generated code files.&lt;/strong&gt; When you take a deeper look into this seemingly elementary project, you may see a full world of possible interpretations. In the death scene, the user is said to be between the two sides of eternity, represented by the bicycle-looking infinity loop in the logo of the game.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The game is a collection of fast-paced, action-filled minigames.&lt;/strong&gt; Each minigame has a timer you can hear ticking throughout the game. If the timer strikes zero, you either lose one of your five lives and redo the minigame, or continue to the next one. The distinction depends on the minigame type. The two types are minigames in which you need to do something within a set time or survive until the time runs out.&lt;/p&gt;

&lt;p&gt;To set the record straight, before making this, &lt;strong&gt;I had absolutely no experience in any sort of game development.&lt;/strong&gt; I didn't even have Godot—or any game engine, as a matter of fact—on my computer. I thought that Stardance Mission would be a &lt;strong&gt;"gentle introduction to game development and Godot."&lt;/strong&gt; Originally.&lt;/p&gt;

&lt;p&gt;But it was more like &lt;strong&gt;"ditch the mission and get actual game development skills."&lt;/strong&gt; Currently, I have invested &lt;strong&gt;51 hours and 38 minutes of real (slightly underrepresented) coding time,&lt;/strong&gt; backed by a time tracker also provided by Hack Club. That was at least 5x larger than any project I had ever worked on before.&lt;/p&gt;

&lt;p&gt;The reason I was able to get in so many hours is because of &lt;strong&gt;an unexpected plot twist.&lt;/strong&gt; That plot twist, something that may earn me a &lt;strong&gt;Bambu Lab A1 Mini 3D Printer&lt;/strong&gt; (I don't know yet), is a &lt;strong&gt;One-Month Extension&lt;/strong&gt;. I had joined the Stardance hackathon late in the summer, partly due to my one-month-long sleepaway camp that doesn't even allow certain MP3 players or any E-Readers—and definitely not any sort of personal computing device but a calculator. So, I was thinking &lt;strong&gt;I will never have enough time to get a nice prize.&lt;/strong&gt; And while that could still possibly be true, at least now I have &lt;strong&gt;a chance to have every single type of printer I could possibly think of&lt;/strong&gt; in my room.&lt;/p&gt;

&lt;p&gt;To be fair, that last sentence is actually &lt;strong&gt;very anticlimactic&lt;/strong&gt;; the two types of printers I can think of are old HP printers with dirt-cheap generic toner cartridges and 3D printers. But what matters much more than what type of printer you have is how you use it.&lt;/p&gt;

&lt;p&gt;In the Stardance hackathon, your Stardust payout is determined with a very simple formula: &lt;code&gt;Multiplier * Hours Spent Coding = Stardust&lt;/code&gt;. In case you didn't catch it in the first paragraph, Stardust is what you use to buy rewards (like a 3D printer) in the digital shop. The multiplier is a bit harder to explain. It is based on 12 reviews from other teenage coders around the world, and they rate it on the following topics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Originality:&lt;/strong&gt; "How distinct is the project from common projects?"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Technicality:&lt;/strong&gt; "How much effort did the creator put into the implementation?"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Usability:&lt;/strong&gt; "Did you like using it? Could you use it at all?"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storytelling:&lt;/strong&gt; "How well does the creator document the development journey through devlogs, documentation, commit messages, and READMEs?"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I honestly think my project would get a pretty mediocre rating in terms of originality. It's just a video game. It could be boosted if the reviewers understand the philosophical aspects of the game, but they probably won't.&lt;/p&gt;

&lt;p&gt;For technicality, I really think this is where it'll shine. In the &lt;strong&gt;51 hours and 38 minutes&lt;/strong&gt; I spent working on this project, I really think I made something spectacular. I went over it so many times until I was really sure it was perfect.&lt;/p&gt;

&lt;p&gt;As for usability, this has to be great. CodeWare is accessible on its own &lt;a href="https://tyleruploads.itch.io/codeware" rel="noopener noreferrer"&gt;Itch.io page&lt;/a&gt; and &lt;a href="https://tyleruploads.itch.io/codeware" rel="noopener noreferrer"&gt;GitHub Pages site&lt;/a&gt;. It also has Linux, Windows, and even Web downloads available at its &lt;a href="https://github.com/tyleruploads/code-ware/releases/latest" rel="noopener noreferrer"&gt;GitHub Releases Page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I also think I did really well in storytelling. I made some very detailed devlogs (updates on what I code).&lt;/p&gt;

&lt;p&gt;Feel free to check out my game at the links a bit above here. You can also check out its &lt;a href="https://stardance.hackclub.com/projects/57952" rel="noopener noreferrer"&gt;Stardance project page&lt;/a&gt;. Right now, you are essentially stuck in the biggest cliffhanger ever: &lt;strong&gt;Will Tyler get a 3D Printer?&lt;/strong&gt; Well, that is going to take until &lt;strong&gt;November of this year&lt;/strong&gt; to find out.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SCROLL DOWN FOR IMPORTANT INFORMATION&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy64lwnxscgki16po2psr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy64lwnxscgki16po2psr.png" alt="Hero image for CodeWare minigame 6" width="800" height="445"&gt;&lt;/a&gt; 
&lt;/p&gt;

&lt;p&gt;It turns out I did not need to wait until November! I did so well on this project that I got an &lt;strong&gt;unimaginable payout of 1013 Stardust with a 16.45x out of 20x multiplier, with a 20% bonus for being "Blessed" because of my thoughtful voting.&lt;/strong&gt; With this unimaginable payout, I did not need to wait any longer to be able to purchase the 3D Printer! For perspective, it costs 802 Stardust. I am so happy with the awesome, thoughtful, and detailed reviews I got on my project! Here are some of them:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Review #1/12:&lt;br&gt;
"This project is so cool. I really like how you used so many different pretty [colors on] the website and how you can watch gameplay videos because it is super confusing, &lt;strong&gt;but after I watched the gameplay videos, I [understood] exactly what to do, so I will make sure to tell this project to all of my friends and family so they can play it too!!&lt;/strong&gt;"&lt;/p&gt;

&lt;p&gt;Review #4/12:&lt;br&gt;
"I really enjoyed the game. &lt;strong&gt;It was really fun [to] play. At first the ticking was annoying, but you get used to it.&lt;/strong&gt; I liked &lt;strong&gt;how simple, yet so [addictive] it was.&lt;/strong&gt; The levels are &lt;strong&gt;creative&lt;/strong&gt; and match the game really well. No level was way too hard; they were just fine. Maybe [it] could be a bit harder. &lt;strong&gt;Very good project!&lt;/strong&gt;"&lt;/p&gt;

&lt;p&gt;Review #5/12:&lt;br&gt;
"The game is &lt;strong&gt;fun to play and difficult too.&lt;/strong&gt; I [tried] to beat level 1 but [wasn't] able to. &lt;strong&gt;The mix of dodging, typing, and RGB matching gives CodeWare plenty of variety, and your detailed devlogs make the development journey easy to follow.&lt;/strong&gt; One useful code improvement would be making the orb-expiry timer in minigame 3 pause alongside the countdown by passing false to create_timer(). Well, overall, &lt;strong&gt;the project is cool and fun to play.&lt;/strong&gt;"&lt;/p&gt;

&lt;p&gt;Review #7/12:&lt;br&gt;
"Hi, as an OG WII player, I gotta say that &lt;strong&gt;the vibe fits perfectly [with] the meaning of "WarioWare-like game".&lt;/strong&gt; I bet it was &lt;strong&gt;extremely fun to build&lt;/strong&gt; and it would be crazy good if you could play this with someone. Apart from my crazy and unrealistic ideas, &lt;strong&gt;you did an amazing job!&lt;/strong&gt;"&lt;/p&gt;

&lt;p&gt;Review: #10/12:&lt;br&gt;
"&lt;strong&gt;YOOO THIS PROJECT IS SOOOO GOOOD YOU SHOULD ADD MORE FEATURES LIKE A TUTORIAL.&lt;/strong&gt;"&lt;/p&gt;

&lt;p&gt;Review: #12/12 (grammatical edits skipped to show full enthusiasm):&lt;br&gt;
"&lt;strong&gt;The art is really cool and homemade, all the games are intuitive to me. I know exactly what to do with those really helpful instructions at the bottom. I completed the game on my second try. Really fun.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;None of the games seemed unfair in my opinion, but maybe make the games run for shorter time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;devlogs, communication is really good,&lt;/strong&gt; highlights what have done, challenges you faced, future plans and more. NICE! Your README is also very detailed and has lots of info, GOOD JOB&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The extras page is really cool! Never seen that before. The gallery walk as well as credits! how unique. tuff&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;lemme tell you something, lemme tell you something. YOU DO NOT NEED a licence for a simple WarioWare video game. RAAA&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Something better, if can like leave the boring writing license stuff outside of the gameplay loop, like in the extras, that would be really appreciated!😁😁😁😁&lt;/p&gt;

&lt;p&gt;One thing I experienced while playing is that you can actually pause the timer screen before the game starts, not sure if that's intentional but just FYI. maybe fix.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;But overall you have put a lot of effort into this, this game is really fun, best WarioWare type-game i've seen so far.&lt;/strong&gt;"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwc7rd6y9mbbqtedlgd29.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwc7rd6y9mbbqtedlgd29.png" alt="A purchase confrimation for a Bambu Lab A1 Mini 3D Printer" width="800" height="330"&gt;&lt;/a&gt; 
&lt;/p&gt;

&lt;p&gt;I also happen to be &lt;strong&gt;4th on the global leaderboard for hours shipped&lt;/strong&gt; on my team, which consists of approximately half of the Stardancers. But I know there are definitely some super large 200-hour projects from other people waiting to be submitted. I won't stand a chance a couple of days before it ends (actually, this time).&lt;/p&gt;

&lt;p&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fotkqa2rlw97bqhqtpx3s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fotkqa2rlw97bqhqtpx3s.png" alt="An image of the Stardance leaderboard for perspective teams" width="722" height="428"&gt;&lt;/a&gt; 
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I also got a beautiful certificate because of this project!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd5ssrm6q31vcccu7isu5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd5ssrm6q31vcccu7isu5.png" alt="A certificate of achievement certifying 70 hours of work across 5 projects were completed in the Hack Club Stardance Challenge by Tyler N" width="800" height="566"&gt;&lt;/a&gt; 
&lt;/p&gt;




&lt;h3&gt;
  
  
  What's Next?
&lt;/h3&gt;

&lt;p&gt;Thank you to everyone in the Hack Club community who played, reviewed, and supported &lt;strong&gt;CodeWare!&lt;/strong&gt; I truly learnt so much about game development, Godot, and projects that take over 50 hours!&lt;/p&gt;

&lt;p&gt;If you haven't played CodeWare yet, view its &lt;a href="https://tyleruploads.itch.io/codeware" rel="noopener noreferrer"&gt;Itch.io page&lt;/a&gt;, &lt;a href="https://tyleruploads.itch.io/codeware" rel="noopener noreferrer"&gt;GitHub Pages Site&lt;/a&gt;, &lt;a href="https://github.com/tyleruploads/code-ware" rel="noopener noreferrer"&gt;GitHub Repository&lt;/a&gt;, or &lt;a href="https://stardance.hackclub.com/projects/57952" rel="noopener noreferrer"&gt;Stardance Project Page&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>godot</category>
      <category>gamedev</category>
      <category>showdev</category>
      <category>opensource</category>
    </item>
    <item>
      <title>A Markdown Cheat Sheet for Anywhere</title>
      <dc:creator>Tyler N</dc:creator>
      <pubDate>Sat, 04 Jul 2026 22:15:00 +0000</pubDate>
      <link>https://dev.to/tyleruploads/a-markdown-cheat-sheet-for-anywhere-32bp</link>
      <guid>https://dev.to/tyleruploads/a-markdown-cheat-sheet-for-anywhere-32bp</guid>
      <description>&lt;p&gt;Not too long ago, I was terrible at Markdown. I was illiterate in arguably the most critical markup language in modern technology, spanning from Software Development and Artificial Intelligence to Technical Writing and Workspace Communications. I couldn't even make a basic README!&lt;/p&gt;

&lt;p&gt;To be able to write code but be unable to make documentation is like knowing an alien language without being able to travel to the alien planet. To be fair, I wasn't much good at coding then anyway.&lt;/p&gt;

&lt;p&gt;I tried to use GitHub Skills &lt;a href="https://github.com/skills/communicate-using-markdown" rel="noopener noreferrer"&gt;Communicate using Markdown&lt;/a&gt;, but as a beginner in GitHub, I wasn't able to trigger the required Actions to move forward.&lt;/p&gt;

&lt;p&gt;I believe that everyone should be able to learn Markdown easily, regardless of what other tools they can use. The way I learned was through tutorials like this, so I decided to contribute a nice tutorial to the community.&lt;/p&gt;

&lt;p&gt;Here is a quick-reference guide to common Markdown syntax to help you get started.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Element&lt;/th&gt;
&lt;th&gt;Markdown&lt;/th&gt;
&lt;th&gt;HTML&lt;/th&gt;
&lt;th&gt;Output&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Heading Level One&lt;/td&gt;
&lt;td&gt;&lt;code&gt;# H1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;h1&amp;gt;H1&amp;lt;/h1&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;h1&gt;H1&lt;/h1&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Heading Level Six&lt;/td&gt;
&lt;td&gt;&lt;code&gt;###### H6&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;h6&amp;gt;H6&amp;lt;/h6&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;h6&gt;Heading Level Six&lt;/h6&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bold&lt;/td&gt;
&lt;td&gt;&lt;code&gt;**text**&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;b&amp;gt;text&amp;lt;/b&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;text&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Italic&lt;/td&gt;
&lt;td&gt;&lt;code&gt;*text*&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;text&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Link&lt;/td&gt;
&lt;td&gt;&lt;code&gt;[Title](URL)&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;a href='URL'&amp;gt;Title&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="URL"&gt;Title&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Inline Code&lt;/td&gt;
&lt;td&gt;&lt;code&gt;code&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;code&amp;gt;code&amp;lt;/code&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;code&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Image&lt;/td&gt;
&lt;td&gt;&lt;code&gt;![Alt](URL)&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;img src="URL" alt="Alt"&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/URL" alt="Alt" width="800" height="400"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Strikethrough&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~~text~~&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;del&amp;gt;text&amp;lt;/del&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;del&gt;text&lt;/del&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Horizontal Divider&lt;/td&gt;
&lt;td&gt;&lt;code&gt;---&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;hr&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unordered list&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;* item&lt;/code&gt; OR &lt;code&gt;- item&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;item&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;ul&gt;&lt;li&gt;item&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ordered list&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1. item&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;ol&amp;gt;&amp;lt;li&amp;gt;item&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;ol&gt;&lt;li&gt;item&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Blockquote&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;gt; quote&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;blockquote&amp;gt;quote&amp;lt;/blockquote&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;blockquote&gt;quote&lt;/blockquote&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code Blocks&lt;/td&gt;
&lt;td&gt;```language code```&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;pre&amp;gt;&amp;lt;code&amp;gt;code&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;pre&gt;&lt;code&gt;code&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Checked Box&lt;/td&gt;
&lt;td&gt;&lt;code&gt;- [x] Task&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;input type="checkbox" checked&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;☑ Task&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unchecked Box&lt;/td&gt;
&lt;td&gt;&lt;code&gt;- [] Task&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;input type="checkbox" unchecked&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;☐ Task&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How to use tables
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;To make the headers, write the column names separated with &lt;code&gt;|&lt;/code&gt; symbols like this:
Column 1 | Column 2 | Column 3 |&lt;/li&gt;
&lt;li&gt;Add the alignment indicators, also separated with &lt;code&gt;|&lt;/code&gt; symbols:&lt;/li&gt;
&lt;li&gt;Left aligned: &lt;code&gt;:---&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Right aligned: &lt;code&gt;---:&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Center: &lt;code&gt;:---:&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Enter the content with more &lt;code&gt;|&lt;/code&gt; tags&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;An example of a completed table is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Left | Center | Right |
:--- | :---: | ---: |
Left-aligned text | Center-aligned text | Right-aligned text |
Column 1 | 2 | 3 |
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And, it renders as:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Left&lt;/th&gt;
&lt;th&gt;Center&lt;/th&gt;
&lt;th&gt;Right&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Left-aligned text&lt;/td&gt;
&lt;td&gt;Center-aligned text&lt;/td&gt;
&lt;td&gt;Right-aligned text&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Column 1&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  "How do I practice this?"
&lt;/h2&gt;

&lt;p&gt;"How do I practice this?" is a question you are probably asking right now, or definitely will in the future. The way you practice is simply by using Markdown in your daily life. Instead of pulling up a WYSIWYG editor like Google Docs or Microsoft Word, you could use Markdown.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Markdown is a valuable tool in many areas, and you just learned some of it. You’ll eventually realize that Markdown isn’t really as hard as it seems.&lt;/p&gt;

&lt;p&gt;I originally wrote this article and expected it to be published while I was at a sleepaway camp, but there was an issue with the scheduler, and it was not published. This article has been manually published after I returned home from the sleepaway camp in question.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>tutorial</category>
      <category>markdown</category>
      <category>productivity</category>
    </item>
    <item>
      <title>How I Built a Python Script to Export and Analyze Your DEV.to Followers</title>
      <dc:creator>Tyler N</dc:creator>
      <pubDate>Fri, 12 Jun 2026 11:39:38 +0000</pubDate>
      <link>https://dev.to/tyleruploads/how-i-built-a-python-script-to-export-and-analyze-your-devto-followers-59p6</link>
      <guid>https://dev.to/tyleruploads/how-i-built-a-python-script-to-export-and-analyze-your-devto-followers-59p6</guid>
      <description>&lt;p&gt;It was a Friday, and school was out for the weekend. I made a bit of a Spelling Bee page for my website while I was at school, but that wasn't enough. I was bored and had no clue what to make (because I always code over the weekend).&lt;/p&gt;

&lt;p&gt;When I was at a free 'boost' period at school, I checked my DEV.to notifications to find some new articles to read. And, I was shocked by how fast you can gain an audience on DEV.to. But there was just one thing I couldn't completely get a grasp on. There wasn't a good way to view and export your follower base, or even print a list of your followers in a nice format without it just being a big list of profile pictures, names, and usernames (from the dashboard).  &lt;/p&gt;

&lt;p&gt;So, when I came home, I began to create &lt;a href="https://github.com/tyleruploads/devto-followers2md" rel="noopener noreferrer"&gt;devto-followers2md&lt;/a&gt;, an open-source Python program that exports information about a user's followers on DEV.to in a beautiful Markdown file or a complete CSV or JSON file.&lt;/p&gt;

&lt;p&gt;Here is an example of a nice Markdown output the program made (yes, I spent a long time making sure the program outputs it in a way that looks nice):&lt;/p&gt;




&lt;h3&gt;
  
  
  devto-followers2md
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Generated by &lt;a href="https://github.com/tyleruploads/devto-followers2md" rel="noopener noreferrer"&gt;devto-followers2md&lt;/a&gt;.&lt;br&gt;
It is not limited to Markdown files; it supports Markdown, JSON, and CSV exports&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h4&gt;
  
  
  Profile: Tyler N
&lt;/h4&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Attribute&lt;/th&gt;
&lt;th&gt;Details&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Name&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Tyler N&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Username&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/thetylern"&gt;thetylern&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Summary&lt;/td&gt;
&lt;td&gt;Hello, I am Tyler N. On GitHub, I am &lt;a class="mentioned-user" href="https://dev.to/tyleruploads"&gt;@tyleruploads&lt;/a&gt;. I just ditched my default green geometric identicon profile picture using Inkscape--check out my latest post to hear more about it!&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Location&lt;/td&gt;
&lt;td&gt;The United States of America&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Joined At&lt;/td&gt;
&lt;td&gt;May 28, 2026&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;User ID&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/api/users/3956829"&gt;3956829&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3956829%2F404e8470-cc9d-4142-b434-9fec036fc8cd.png" width="500" alt="Profile" height="500"&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Index&lt;/th&gt;
&lt;th&gt;Username&lt;/th&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Followed At&lt;/th&gt;
&lt;th&gt;User ID&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/charice_silverman_975926c"&gt;@charice_silverman_975926c&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Charice Silverman&lt;/td&gt;
&lt;td&gt;2026-06-06T10:55:55Z&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/api/users/3971127"&gt;3971127&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/david_maina_0fa61e59b303c"&gt;@david_maina_0fa61e59b303c&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;David Maina&lt;/td&gt;
&lt;td&gt;2026-06-05T05:06:24Z&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/api/users/3957041"&gt;3957041&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/youngalpaccino"&gt;@youngalpaccino&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Amir Mohammad Hemmati&lt;/td&gt;
&lt;td&gt;2026-06-03T09:54:01Z&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/api/users/3966207"&gt;3966207&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/coreuptech1"&gt;@coreuptech1&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Coreuptech&lt;/td&gt;
&lt;td&gt;2026-06-02T21:14:19Z&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/api/users/3965374"&gt;3965374&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/uixlaby"&gt;@uixlaby&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Natalia&lt;/td&gt;
&lt;td&gt;2026-06-02T21:03:15Z&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/api/users/3965362"&gt;3965362&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/lenovatus"&gt;@lenovatus&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Lenovatus Levelian&lt;/td&gt;
&lt;td&gt;2026-06-02T20:57:38Z&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/api/users/3965358"&gt;3965358&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/asraym"&gt;@asraym&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Ashishraymajhi&lt;/td&gt;
&lt;td&gt;2026-06-02T20:53:05Z&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/api/users/3965353"&gt;3965353&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  The Features
&lt;/h2&gt;

&lt;p&gt;devto-followers2md has many features that make it a solid, quality project.&lt;/p&gt;

&lt;h3&gt;
  
  
  Easy Usage
&lt;/h3&gt;

&lt;p&gt;The project allows people who are not able to comfortably use CLI (command-line interface) applications to still benefit from the detailed and beautiful information it provides. It employs a custom banner, an API Key security notice, and a custom-made function that asks you to input save paths for each file format. Simple instructions on how to make a DEV.to API Key and a simple download and usage process is outlined in &lt;a href="https://github.com/tyleruploads/devto-followers2md/blob/main/README.md" rel="noopener noreferrer"&gt;the README file&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Multi-Format Exporting
&lt;/h3&gt;

&lt;p&gt;The project allows you to export to Markdown, CSV, and JSON files seamlessly in the terminal, without out-of-place GUI file pickers. This ensures that you can see both a beautiful overview and a complete log of the information about your audience. The CSV and JSON files contain the same data that was received from the server.&lt;/p&gt;

&lt;h3&gt;
  
  
  Secure API Key Handling
&lt;/h3&gt;

&lt;p&gt;The script handles the input of your DEV.to API Key with the Python Standard Library module getpass, which, in this case, allows you to enter your API Key without it appearing in your terminal history. This prevents you from accidentally including your API Key when copying and pasting the output of the program, or experiencing other security issues.&lt;/p&gt;

&lt;p&gt;The program also includes a notice near the top of its output that helps you understand how an API Key is not just a toy, but is essentially an all-accessing password. This notice helps prevent your DEV.to account from getting compromised.&lt;/p&gt;

&lt;h3&gt;
  
  
  Smart Rate-Limiting
&lt;/h3&gt;

&lt;p&gt;The script ensures that every call to the DEV.to API endpoint is almost always accepted in 3 ways:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The script waits one second in between each call to ensure the server will not be angry (one second is its favorite wait time—yes, this is not a joke).&lt;/li&gt;
&lt;li&gt;The script inspects the &lt;code&gt;Retry-After&lt;/code&gt; header to find the optimal time to pause after receiving an HTTP code &lt;code&gt;429 Too Many Requests&lt;/code&gt; response, which means we are above the server's stated usage thresholds. This ensures that you will not get your IP address banned from the API endpoint and that no time is wasted on unnecessary wait times.&lt;/li&gt;
&lt;li&gt;The script includes a user-agent in the header of the request to ensure full acceptance.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Beautiful and Detailed, but Concise
&lt;/h3&gt;

&lt;p&gt;The application allows you to export the follower information into a beautiful and detailed but concise Markdown file, or a CSV or JSON file that has every single field of information the DEV.to API gives the script. And, you don't have to choose between beautiful and complete! The program gives you the opportunity to export to any one or all of those formats in one execution.&lt;/p&gt;

&lt;h2&gt;
  
  
  More on how I built it
&lt;/h2&gt;

&lt;p&gt;While 300 lines of code may seem very simple (which is true on the outside because of how short it is), each line of its code is in a compact form and contributes greatly to the final result, including formatting and white space. &lt;/p&gt;

&lt;p&gt;Behind the small 300 lines of code were hours of development, thinking, debugging, linting (to the best of my ability; I am not even in high school), Information Architecture (deciding how to structure and organize information), and Document Engineering (converting messy API data to a beautiful Markdown output—in my case).&lt;/p&gt;

&lt;p&gt;Originally, it only supported Markdown outputs. But after some thinking, I determined that it was best to add JSON and CSV outputs to enable you to analyze your data with code or spreadsheet formulas and to do other similar tasks. The way the program helps with analysis—other than the beautiful human-readable output—is by automatically collecting each page of your followers into one output, which you would have to do manually or create your own script to do so without the application.&lt;/p&gt;

&lt;h2&gt;
  
  
  Future Plans
&lt;/h2&gt;

&lt;p&gt;A simple weekend project turns into a trustworthy and handy tool when it is contributed to and updated over time. I am already envisioning new features that I can add to the project, such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;More Platforms&lt;/strong&gt;: Imagine if you had one tool that analyzed your audience across many different platforms, and even compared those audiences to find users who are engaging with you in multiple mediums. Think of one space to understand all of your audience, both for developers and non-developers. This is a large goal for the project, and would require community input as to what platforms should be targeted.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gender and Nationality Analytics&lt;/strong&gt;: Understanding your user base in this sense can help you decide when to publish articles based on time zones, routines, and preferences. It can also help you decide what topics may be more appealing to your user base. This data could be added as 2 columns to the main followers table.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Collecting More Information&lt;/strong&gt;: The reason each user does not have all the information that the main user's profile does is simple: &lt;strong&gt;time&lt;/strong&gt;. To comply with the API thresholds of DEV.to, it would take a long time to gather this information for each of your audience members. In the future, I am planning on making it gather this information about each audience member, which will take time to ensure it is coded to run as fast as it can while still complying with the DEV.to API thresholds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Comparing to Past Outputs&lt;/strong&gt;: Currently, the script does not compare the new API responses to any old ones, meaning it can not tell you the rate at which you are growing, if you gained or lost followers, or any more detailed information. I plan to have it compare multiple outputs to give more detailed analytics.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;More File Formats&lt;/strong&gt;: While the application already supports Markdown, JSON, and CSV exports, I plan on adding support for more export formats. Some of the formats I plan on incorporating into the application are: HTML table snippet, full HTML page, PDF, SQLite, and more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An Analytics Section&lt;/strong&gt;: I am planning on adding a simple section in between the header and the followers table in the Markdown output that tells you how many followers you have, and the date the program was run. Aggregated gender and nationality information could also be put here.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrap-Up and Contributing
&lt;/h2&gt;

&lt;p&gt;This project started as a simple weekend project to keep me from being profusely bored. But, as you just saw, I plan to maintain it. &lt;/p&gt;

&lt;p&gt;If you want to try it out, export your own follower list, or contribute to help the ideas above become more possible, look at the repository on GitHub:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/tyleruploads/devto-followers2md" rel="noopener noreferrer"&gt;https://github.com/tyleruploads/devto-followers2md&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is your favorite project that you or someone else made? Also, which one of the features do you think I should prioritize?&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;IMPORTANT NOTE&lt;/strong&gt;:&lt;br&gt;
On 06/14/2026, devto-followers2md has been renamed to devtkit (DEV Toolkit).&lt;br&gt;
I chose to rename the project so it can be expanded to include more tools beyond just exporting followers.&lt;br&gt;
I plan to add many features in addition to the previously listed ones, including a tool that lets users input an article ID and output a Markdown/HTML/PDF of it that includes the article's title, cover image, publish date, name and username, content, and full comment tree and the ability to do this automatically for every article of a specific user, and more.&lt;br&gt;
The new project can be accessed &lt;a href="https://github.com/tyleruploads/devtkit" rel="noopener noreferrer"&gt;here&lt;/a&gt; (old links will redirect)&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>showdev</category>
      <category>python</category>
      <category>devto</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Why Terminal-Based Development Is Best For Me</title>
      <dc:creator>Tyler N</dc:creator>
      <pubDate>Thu, 11 Jun 2026 01:49:12 +0000</pubDate>
      <link>https://dev.to/tyleruploads/why-terminal-based-development-is-best-for-me-4h3g</link>
      <guid>https://dev.to/tyleruploads/why-terminal-based-development-is-best-for-me-4h3g</guid>
      <description>&lt;p&gt;One day, I was working on a Python project. I had my 'reliable and speedy' Windows and my 'fast and optimized' VS Code. But, the only issue with this, is that those adjectives, are false. To have three browser tabs and one VS Code window open at the same time was like a death wish to my 16GB of RAM. And, as you may have guessed, this wasn't just 'one day', but rather, every single time I wanted to do any sort of development in the Microsoft ecosystem (minus the browser, I viewed Microsoft Edge as terrible and Chrome as just the only replacement, despite its lag).&lt;/p&gt;

&lt;p&gt;At that rate, imagine how slow it was for me to code. I was running the newest Windows, the newest VS Code, didn't have any unnecessary background apps, and followed every single 'secret' step to 'optimize' and 'speed up' Windows and its associated applications. I was doing everything right, but it still was too slow. Oftentimes, a large portion of my 16GB of RAM, was used simply by thousands of background services that added up to use a large amount of memory.&lt;/p&gt;

&lt;p&gt;So, approximately three months ago, on March 10th, 2026, I decided to experiment with dual-booting a Linux distribution on my main computer. I shrunk my Windows partition with the Disk Management application and proceeded to allocate around 300GB of space on my 1TB SSD (solid-state drive) for Debian 13.3, (Trixie), a Linux distribution notable for its stability, large software repository, extensive architecture support, strict free and open source software (FOSS) philosophy, and upgrade reliability. And, so far, I have only used 62GB of space on the 300GB partition, meaning that I could have been very comfortable with 100GB. This data usage is including large media files.&lt;/p&gt;

&lt;p&gt;I originally thought I would only use Linux as a side project or hobby, and that I would often boot to Windows, too. But, two facts made me never boot Windows again with the intent to use it for purposes other than data collection. Those facts are:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;I have never experienced lagginess on Linux that I deemed to not have a reasonable cause.&lt;/li&gt;
&lt;li&gt;It was not as hard to use as I thought it would be.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To elaborate more on fact two, at least to me, the complexity of Linux is decided by your Desktop Environment (DE). On Windows, you are locked down to one Desktop Environment (DE) that can be very laggy, but is extremely simple to use for basic tasks. On the other hand, Linux generally allows users to choose their own Desktop Environment (DE), with the exception being certain immutable distributions and Operating Systems like Android OS and Chrome OS (yes, they rely on Linux). On Linux, users can choose themselves the correct balance between accessibility, usability, and speed for their specific circumstances by making an educated choice on which Desktop Environment (DE) to utilize.&lt;/p&gt;

&lt;p&gt;I originally tried my best to find the 'perfect', light-weight IDE for Linux. I tried &lt;a href="https://www.sublimetext.com/" rel="noopener noreferrer"&gt;Sublime Text&lt;/a&gt;, and I was fine with it for a while. But, I eventually decided to strip out the IDE, and instead, simply code in the terminal.&lt;/p&gt;

&lt;p&gt;When using the terminal to code via a code or text editor (like micro or nano), the tools you write code with generally do not significantly contribute to the resource usage of your computer, with the exception of certain advanced code analysis tools to prevent security, speed, and other issues or errors, along with certain other applications. For example, if you can have 5 browser tabs open without any lag, adding on something like micro will not make your experience any more laggy.&lt;/p&gt;

&lt;p&gt;With my new development workflow, I am able to code—minus the lag. I can have 10 different terminal tabs open, and it's not even as hard on my laptop as resting a feather on its lid, (figuratively). It's 2 cents compared to the resource utilization on the rest of the computer.&lt;/p&gt;

&lt;p&gt;And, my choice of using Linux also greatly contributed to reduced lag when using my computer, both in general and in development workflows, —in addition to utilizing terminal based code editing. Because of Linux's open-source nature, every single line of code is scrutinized by the public, and every issue is eventually caught and handled (if you are going to comment about copy fail and similar issues, it was in fact, eventually fixed). On the contrary, Windows' proprietary nature allows for extreme telemetry and non-optimization, despite their claims of speed. Windows is even thinking about utilizing more system resources—instead of actually optimizing—to make the Windows experience faster.&lt;/p&gt;

&lt;h2&gt;
  
  
  My General Workflow for Making Python Projects on Linux While Utilizing the Terminal
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;I generally use the micro code editor or the nano text editor, both terminal-based applications.&lt;/li&gt;
&lt;li&gt;I may have the Firefox FOSS (free and open-source) web browser open to a documentation page or a forum of some sorts. Web browsers like &lt;a href="https://www.google.com/chrome/" rel="noopener noreferrer"&gt;Google Chrome&lt;/a&gt;, &lt;a href="https://www.apple.com/safari/" rel="noopener noreferrer"&gt;Apple Safari&lt;/a&gt;, and &lt;a href="https://www.microsoft.com/en-us/edge/?ep=0&amp;amp;form=MA1403&amp;amp;es=325&amp;amp;cs=1301686474" rel="noopener noreferrer"&gt;Microsoft Edge&lt;/a&gt; are not FOSS (free and open-source).&lt;/li&gt;
&lt;li&gt;Now that I have started my Python project &lt;a href="https://github.com/tyleruploads/devto-followers2md/tree/main" rel="noopener noreferrer"&gt;devto-followers2md&lt;/a&gt;, I have recently started checking my code with &lt;a href="https://docs.astral.sh/ruff/" rel="noopener noreferrer"&gt;Ruff&lt;/a&gt;, a fast Rust-based Python linter and code formatter. I also started using &lt;a href="https://github.com/microsoft/pyright" rel="noopener noreferrer"&gt;pyright&lt;/a&gt;, (yes, I know it is very ironic, it is made by Microsoft), and will be working on making sure the project aligns with its standards too.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;(If you are wondering more about my Python project, I have an awesome article about it coming out on Friday morning, here on DEV.to.&lt;/strong&gt; When it comes out, I will insert the link for it, here).&lt;/p&gt;

&lt;h2&gt;
  
  
  The Final Anecdote (for now)
&lt;/h2&gt;

&lt;p&gt;Due to Windows' confusing file storage locations (including Microsoft OneDrive), I was forced to boot Windows in order to recover my coding folder that was not visible when I decrypted my Windows partition with my &lt;a href="https://support.microsoft.com/en-us/windows/bitlocker-drive-encryption-76b92ac9-1040-48d6-9f5f-d14b3c5fa178" rel="noopener noreferrer"&gt;BitLocker&lt;/a&gt; recovery key. I tried to copy it to my Google Drive account, but it was transferring at a rate close to &lt;strong&gt;ZERO&lt;/strong&gt; megabits per second, so that was a no go. I tried to transfer to a flash drive that generally works just fine, and it said my 16GB or so of data would take 16 hours, then 20 hours, then just weeks to copy. That, also, was not going to work. It turns out that the Antivirus system, &lt;a href="https://www.bitdefender.com/en-us/" rel="noopener noreferrer"&gt;BitDefender&lt;/a&gt;, completely crashed, on every level. Because Windows does not allow the administrator to force kill the antivirus process or its associated programs, the antivirus GUI dashboard and control center hung and never closed due to the crash of its antivirus process. Possibly, the antivirus software was attempting to scan files when it was not able to, causing this issue. I eventually was able to transfer it (very slowly), with the terminal!&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;While I switched from Windows to Linux and greatly benefited from it, I acknowledge that it is not the right move for everyone. People may be locked into it because of their jobs, or they may have a certain circumstance making Linux not the best for their specific workflow. And, of course, I acknowledge macOS, too. Since macOS is built on a UNIX foundation (like Linux), it is much closer to Linux than Windows is.&lt;/p&gt;

&lt;p&gt;Windows users who want to experience Linux can utilize &lt;a href="https://learn.microsoft.com/en-us/windows/wsl/install" rel="noopener noreferrer"&gt;WSL&lt;/a&gt;, which lets Windows users utilize a Linux environment on their Windows computer. (It is made by Microsoft, so if you are wondering, no, it is not unofficial or dangerous). WSL is free to use, but is not completely FOSS (free and open-source).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is your favorite coding workflow, and, what OS do you use? Do you agree with what I said?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'll share my OS:&lt;/p&gt;

&lt;p&gt;OS: Debian GNU/Linux 13 (trixie) x86_64&lt;br&gt;
Kernel: Linux 6.12.90+deb13.1-amd64&lt;br&gt;
DE: KDE Plasma 6.3.6&lt;br&gt;
WM: KWin (Wayland)&lt;br&gt;
Shell: bash 5.2.37&lt;br&gt;
Display: 1920x1080 @ 60 Hz&lt;br&gt;
CPU: 12th Gen Intel(R) Core(TM) i7-1255U (12)&lt;br&gt;
GPU: Intel Iris Xe Graphics [Integrated]&lt;br&gt;
Memory: 16GB&lt;/p&gt;

</description>
      <category>linux</category>
      <category>productivity</category>
      <category>discuss</category>
      <category>python</category>
    </item>
    <item>
      <title>How I used Inkscape to make Assets for GitHub and DEV.to</title>
      <dc:creator>Tyler N</dc:creator>
      <pubDate>Sun, 31 May 2026 21:00:48 +0000</pubDate>
      <link>https://dev.to/tyleruploads/how-i-used-inkscape-to-make-assets-for-github-and-devto-bck</link>
      <guid>https://dev.to/tyleruploads/how-i-used-inkscape-to-make-assets-for-github-and-devto-bck</guid>
      <description>&lt;p&gt;Developers often ignore their profile picture by keeping default geometric placeholders or blank banners because design tools can be intimidating. Up until recently, my GitHub profile was simply a green, Pacman-like geometric pattern, which doesn't show anything about me, or a spec of my creativity. I didn't know how to use any design software, except basic Photopea. With almost no design knowledge, I wanted to make myself an awesome profile picture, without spending money on proprietary software subscriptions, so I turned to Inkscape, (a free, open-source vector editor).&lt;/p&gt;

&lt;p&gt;Standard raster images (like PNGs and JPGs) are just grids of colored pixels that blur when scaled. Vector files (like SVG) are built on mathematical coordinates and nodes. In fact, SVG vector files are really just XML data. Because I chose to design my profile picture with vector graphics, it is able to stay completely crisp, no matter how I resize it. The pixelation issues that occur when you enlarge standard images simply does not exist in vector graphics.&lt;/p&gt;

&lt;p&gt;The way I got a basic understanding of Inkscape without watching long videos or signing up for paid courses was by applying a different philosophy of learning that I find is also highly effective when learning programming languages or concepts.This philosophy of learning emphasizes applying concepts as you learn them, rather than learning concepts and only applying them once you completely understand them. This approach is even more powerful in Inkscape because you see visual results directly on your canvas. Unlike coding, where your code must be correct before you can run it (generally), design lets you learn simply by doing.&lt;/p&gt;

&lt;p&gt;The way I applied this philosophy of learning to Inkscape was by following along with a simple and short (~15 minutes) tutorial, and using tools the second the instructor explained them. I frequently paused to experiment more with the tools, which worked very well, except for the Bézier tool and it's paths, which I still sadly can not use well (I tried to make a smiley face with it, and I made an upside down &lt;code&gt;^&lt;/code&gt; symbol, which is why I made it with the calligraphy tool). When there was something I truly did not know how to do (like wrapping text around an ellipse), I simply searched for it online and applied it immediately.&lt;/p&gt;

&lt;p&gt;To design the profile picture, I centered a large ellipse onto a 500 by 500 pixel canvas with a smooth blue to pink linear gradient, leaving the corners transparent. From there, I built the features: 3D boxes for eyes, ovals for ears, the hair, and my initials for the nose. I even layered a duplicated calligraphy path to make depth for the smile. Finally, I exported the finished asset as a PNG file to preserve transparency.&lt;/p&gt;

&lt;p&gt;I then updated my GitHub and DEV.to profile picture to be my newly designed profile picture. My &lt;a href="https://tyleruploads.github.io/thetylern/" rel="noopener noreferrer"&gt;custom Hugo blog&lt;/a&gt; even updated its main page automatically once I reran my GitHub actions workflow, since it pulls my profile picture dynamically from GitHub.&lt;/p&gt;

&lt;p&gt;I also use Inkscape to make cover images for my DEV.to articles, like this one with a canvas size of 1000 by 420 pixels, for a clean, professional look. Because the original asset is a vector, I can shrink it into the corner to be a small logo or blow it up to be the center of attention of an article cover, and it always stays crisp.&lt;/p&gt;

&lt;p&gt;Learning how to use an open-source creative tool is just like learning how to use a CLI utility. You don't need to master the entire tool; you only need to learn the parts you are actually going to use.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What do your profile pictures look like?&lt;/strong&gt; Did you make them yourself, or are they still placeholders? If you are still using a placeholder, are you planning on making one now? If you are confused by Inkscape, I'm sure someone in the comments could help you.&lt;/p&gt;

&lt;p&gt;Also, if anyone has any experience using Inkscape or other graphic design software, I would love to hear your thoughts!&lt;/p&gt;

</description>
      <category>github</category>
      <category>opensource</category>
      <category>discuss</category>
      <category>programming</category>
    </item>
    <item>
      <title>Git for GitHub: How to use simple Git commands to manage a GitHub repository</title>
      <dc:creator>Tyler N</dc:creator>
      <pubDate>Thu, 28 May 2026 21:18:19 +0000</pubDate>
      <link>https://dev.to/tyleruploads/git-for-github-how-to-use-simple-git-commands-to-manage-a-github-repository-435g</link>
      <guid>https://dev.to/tyleruploads/git-for-github-how-to-use-simple-git-commands-to-manage-a-github-repository-435g</guid>
      <description>&lt;p&gt;Recently, I was working on creating a website on a cloud-based IDE (CodeHS). One night, I was editing, and then when I was done, I simply turned off my monitor and disabled my mouse and keyboard. Then, the next day at school, I continued to work on the website, and made significant changes. When I got home, I made more significant changes, but then realized something very important. What I realized is that when I continued to work on the project at home, the cloud-based IDE hadn't refreshed to the new code, and overwrote the work I did at school when I saved my new work.&lt;/p&gt;

&lt;p&gt;So, what is the purpose of me telling you this? Is it to say that you should always close your code editor when you're done working, or some other trick to prevent this from happening? No, it definitely is not.&lt;/p&gt;

&lt;p&gt;After the initial panic, I realized that the cloud-based IDE had a history section, which has a detailed log of every change that happened to every file. I then looked back at my old copy, copied the changes, and put them back into my new code.&lt;/p&gt;

&lt;p&gt;Now, imagine you aren't using a cloud-based IDE, and your just editing a file on your computer, in an IDE, or simply your terminal. To clarify, Git is not cloud-based, it is local, (sitting on your computer), that connects to the cloud (GitHub). What happens when something breaks? For some environments, this could be catastrophic, and make you loose a lot of work. When you make an update to a file, the last state and all the states before it are gone.&lt;/p&gt;

&lt;p&gt;But, this isn't the only thing that can happen. When you use a version control system (VCS), like Git, you can always go back to your previous commits, (snapshots of your code).&lt;/p&gt;

&lt;p&gt;The work I almost lost wasn't very important; that work didn't effect anyone, except myself. Imagine what would happen if I was working on something more important, or even just working on something for a job.&lt;/p&gt;

&lt;p&gt;Before learning how to manage your project, it helps to understand what Git actually is. Git is overwhelmingly the most popular version control system (VCS), and is completely free to use.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"By far, the most widely used modern version control system in the world today is Git. Git is a mature, actively maintained open source project originally developed in 2005 by Linus Torvalds, the famous creator of the Linux operating system kernel." &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Source: &lt;a href="https://www.atlassian.com/git/tutorials/what-is-git" rel="noopener noreferrer"&gt;Atlassian&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;In this guide, you will learn how to use the Git version control system (VCS) to manage a GitHub repository by initializing a project, linking it your GitHub repository, and using it to manage your GitHub repository.&lt;/p&gt;

&lt;h2&gt;
  
  
  Section 1: Installing and Setting Up Git
&lt;/h2&gt;

&lt;p&gt;In this section, we will navigate to our terminal and install Git.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Opening your terminal
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Windows: Press the &lt;code&gt;Windows Key&lt;/code&gt;, type Powershell, and hit enter. &lt;/li&gt;
&lt;li&gt;macOS: Press &lt;code&gt;Cmd + Space&lt;/code&gt;, type Terminal, and hit enter. &lt;/li&gt;
&lt;li&gt;Linux: Press &lt;code&gt;Ctrl + Alt + T&lt;/code&gt; to open your default shell.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 2: Installing Git
&lt;/h3&gt;

&lt;p&gt;In your terminal, run the following command to determine if you have Git installed&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git --version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;If a version number appears, you are ready to go to step 3. &lt;/li&gt;
&lt;li&gt;If the command is not recognized, follow the steps below to install Git.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Windows Installation:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To install Git on Windows, you can do so in one of the following ways.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run the following command to install Git with Winget: &lt;code&gt;winget install --id Git.Git -e --source winget&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Run one of the standalone installers found at &lt;a href="https://git-scm.com/install/windows" rel="noopener noreferrer"&gt;Git-scm&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;macOS Installation:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To install Git on macOS, you can do so by installing Git with homebrew.&lt;/p&gt;

&lt;p&gt;If you do not have homebrew, install homebrew with the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/bin/bash -c &lt;span class="s2"&gt;"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once you have homebrew, run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brew install git&lt;span class="sb"&gt;` to install Git.
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Linux Installation:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To install Git on Linux, use your distributions package manager.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Debian/Ubuntu: &lt;code&gt;sudo apt-get install git&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Fedora: &lt;code&gt;sudo dnf install git&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Arch: &lt;code&gt;sudo pacman -S git&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 3: Setting up Git (Identity Configuration)
&lt;/h3&gt;

&lt;p&gt;The next step to using git is to set variables that let Git know who you are. These are permanently attached to every commit you do, which allows platforms like GitHub to attach it to your profile card.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Set your display name (can be your real name, your GitHub username, or many other things)&lt;/span&gt;
git config --global user.name &lt;span class="s2"&gt;"Your Name"&lt;/span&gt;

&lt;span class="c"&gt;# Set your email (MUST match your GitHub email)&lt;/span&gt;
git config --global user.email &lt;span class="s2"&gt;"your-email@example.com"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Section 2: Tracking Version History
&lt;/h2&gt;

&lt;p&gt;In this section, we will initialize a local git project and learn how to use basic git commands to track the files.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Initializing local Git Project
&lt;/h3&gt;

&lt;p&gt;In this step, we will initialize our local Git project. First, navigate to the directory you would like to store your project, and run the following command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git init -b main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;-b main&lt;/code&gt; ensures the default branch is named &lt;code&gt;main&lt;/code&gt;, matching GitHub's default layout.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Stage and Commit files
&lt;/h3&gt;

&lt;p&gt;In this step, we will stage our files, (which means to tell Git to start tracking the files), and to commit our files (making a snapshot of the file on our local machine.)&lt;/p&gt;

&lt;p&gt;To stage the files, type the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;.&lt;/code&gt; symbol is our current directory, which tells Git to stage all the files in your current location.&lt;/p&gt;

&lt;p&gt;Next, we will commit these files and add a commit message. It is standard practice to use the imperative mood (e.g. "Add css rule to fix whitespacing", not "Added css rule to preserve whitespacing") for commit messages, as this follows the convention used by Git itself.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git commit -m &lt;span class="s2"&gt;"Initial commit"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;-m&lt;/code&gt; flag stands for &lt;code&gt;message&lt;/code&gt;, which is why we put our commit message after it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Section 3: Making GitHub repository and linking with local project
&lt;/h2&gt;

&lt;p&gt;In this section, we will make a GitHub repository and link our local project with it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Initializing Repository
&lt;/h3&gt;

&lt;p&gt;In this step, we will make a GitHub repository, which is where we publish our project. If you do not have a GitHub account, please make one.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Navigate to &lt;a href="https://github.com/" rel="noopener noreferrer"&gt;the GitHub homepage&lt;/a&gt; and sign in if you are not already.&lt;/li&gt;
&lt;li&gt;Click the green &lt;code&gt;New&lt;/code&gt; button located at the top right of the &lt;code&gt;Top Repositories&lt;/code&gt; menu that is on the left side of your screen. If you are unable to find this button, click on &lt;a href="https://github.com/new" rel="noopener noreferrer"&gt;this link&lt;/a&gt; instead, which will take you to the same location.&lt;/li&gt;
&lt;li&gt;Set a repository name, and make sure that all of the &lt;code&gt;Add ...&lt;/code&gt; boxes are unchecked.&lt;/li&gt;
&lt;li&gt;Click &lt;code&gt;Create Repository&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Remember the URL for your repository&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step 2: Linking local project to repository
&lt;/h3&gt;

&lt;p&gt;In this step, we will link our local project to the GitHub repository we just made.&lt;/p&gt;

&lt;p&gt;Navigate to your local project, and run the following command, while ensuring to replace &lt;code&gt;&amp;lt;REPOSITORY LINK&amp;gt;&lt;/code&gt; with the link you remembered in 3.1.5&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git remote add origin &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;REPOSITORY LINK&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 3: &lt;code&gt;Push&lt;/code&gt;ing
&lt;/h3&gt;

&lt;p&gt;In this step, we will push to our repository on GitHub. This means that your local project and all the changes you made, along with your commit messages, will be put on GitHub.&lt;/p&gt;

&lt;p&gt;Navigate to your local project, and run the following command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git push -u origin main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The flag &lt;code&gt;-u&lt;/code&gt; stands for &lt;code&gt;upstream&lt;/code&gt;, which links your local branch to the remote branch so that in the future, Git knows exactly where to send your code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Section 4: Wrapping up and Next Steps
&lt;/h2&gt;

&lt;p&gt;You have successfully initialized a local project, tracked your changes, and pushed your code securely to the cloud on GitHub.&lt;/p&gt;

&lt;p&gt;Now that your local project is linked to your remote GitHub repository, your workflow becomes way more simpler.&lt;/p&gt;

&lt;h3&gt;
  
  
  What to do in the future
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmermaid.ink%2Fimg%2Fpako%3AeNqNU2tr2zAU_SvifmkHiRvHr9kLgcUO66CtSx6MdR5FiTRb1JKMLJd2Wf77ZJu23mih-qKre-85uucgHWAvCYUIcoWrAm2STCCz6mbXJy7kHpe3seRVo6lCPzJIr9D3dLtCcXp5vd0sVxn87DHtIkzRvWZSoM3iJfvZwL5JdcdEjpKuQ6rH2U7NZzXHZTk_3Yoa31OC4gKLnNYfZmd9YXZmmv65YGGo1hrnLRVWFA9ZrhWtTO49NLGh6aQhg5E1-3-gdTfOWuCqLqR-hWggDo3Hc_QH5UwjTAiyTDzQvhiU95Jzs405OrEs68Rk476RCvJE-ex8XMqG3C7FPVNScCp0a_7XK7Q5X6L4It0m7zA-MZAvTJ83O7R6VWcqSiboG0YNpooHKqqmLkyYfIKReTWMQKRVQ0fAqeK4PcKhBWWgC8ppBpEJCVZ3GWTiaDAVFjdS8ieYkk1eQPQLl7U5NRXBmiYMGxNeWswkVMWyERoi3-4oIDrAA0SOG1iO67kfQ29ih55jio8QeYEVTOypH0zdqevYvnscwe_uzonlB64XTMIwnHq-bTvhCChpfbns_0H3HY5_ATQm8ZA%3Ftype%3Dpng" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmermaid.ink%2Fimg%2Fpako%3AeNqNU2tr2zAU_SvifmkHiRvHr9kLgcUO66CtSx6MdR5FiTRb1JKMLJd2Wf77ZJu23mih-qKre-85uucgHWAvCYUIcoWrAm2STCCz6mbXJy7kHpe3seRVo6lCPzJIr9D3dLtCcXp5vd0sVxn87DHtIkzRvWZSoM3iJfvZwL5JdcdEjpKuQ6rH2U7NZzXHZTk_3Yoa31OC4gKLnNYfZmd9YXZmmv65YGGo1hrnLRVWFA9ZrhWtTO49NLGh6aQhg5E1-3-gdTfOWuCqLqR-hWggDo3Hc_QH5UwjTAiyTDzQvhiU95Jzs405OrEs68Rk476RCvJE-ex8XMqG3C7FPVNScCp0a_7XK7Q5X6L4It0m7zA-MZAvTJ83O7R6VWcqSiboG0YNpooHKqqmLkyYfIKReTWMQKRVQ0fAqeK4PcKhBWWgC8ppBpEJCVZ3GWTiaDAVFjdS8ieYkk1eQPQLl7U5NRXBmiYMGxNeWswkVMWyERoi3-4oIDrAA0SOG1iO67kfQ29ih55jio8QeYEVTOypH0zdqevYvnscwe_uzonlB64XTMIwnHq-bTvhCChpfbns_0H3HY5_ATQm8ZA%3Ftype%3Dpng" alt="Graph of workflow" width="277" height="750"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the future, your workflow isn't as complicated as it just may have been. You just need to remember 4 simple commands for the most part.&lt;/p&gt;

&lt;p&gt;First, you need to know the &lt;code&gt;git status&lt;/code&gt; command. This command shows you:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The branch you are on&lt;/li&gt;
&lt;li&gt;How many commits above or behind you are compared to the GitHub&lt;/li&gt;
&lt;li&gt;Changes that have not been staged to commit&lt;/li&gt;
&lt;li&gt;Untracked files It is recommended to look at the output of this command before you start working.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When you want to stage files (tell Git to track them), you simply run the command &lt;code&gt;git add &amp;lt;FILES, or . for every file in the directory&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;When you want to commit these files (to save a snapshot of them to your local machine), you simply run the command &lt;code&gt;git commit -m "COMMIT MESSAGE"&lt;/code&gt; Keep in mind that at this point, the new changes have not left your computer.&lt;/p&gt;

&lt;p&gt;Then, when you want to put them onto GitHub, you just run the command &lt;code&gt;git push&lt;/code&gt; If you want to be extra sure that the &lt;code&gt;git push -u origin main&lt;/code&gt; was remembered, you can always just run &lt;code&gt;git push origin main&lt;/code&gt; if you want to be sure.&lt;/p&gt;

&lt;p&gt;And, that's your workflow now. See how simple it is?&lt;/p&gt;

&lt;h3&gt;
  
  
  Important Note: .gitignore
&lt;/h3&gt;

&lt;p&gt;It is standard practice to add a &lt;code&gt;.gitignore&lt;/code&gt; file in your root directory. The purpose of the &lt;code&gt;.gitignore&lt;/code&gt; file is to tell Git what files to not track, keeping it from the public (GitHub). You simply type specific rules into the file with one line for each. Here is quick tutorial.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You can use &lt;code&gt;#&lt;/code&gt; signs to indicate that everything after it on the line is a comment&lt;/li&gt;
&lt;li&gt;If you type a literal name (i.e. &lt;code&gt;secret.txt&lt;/code&gt;), that specific file will be ignored&lt;/li&gt;
&lt;li&gt;Patterns ending with a &lt;code&gt;/&lt;/code&gt; (i.e. &lt;code&gt;private/&lt;/code&gt;) match only directories and their entire contents&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;*&lt;/code&gt; Matches any amount of characters. For example, &lt;code&gt;*.txt&lt;/code&gt; matches all files ending in &lt;code&gt;.txt&lt;/code&gt;, and &lt;code&gt;log*&lt;/code&gt; matches all files starting in &lt;code&gt;log&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;**&lt;/code&gt; matches directories recursively. For example, &lt;code&gt;**logs&lt;/code&gt; matches any directory named &lt;code&gt;logs&lt;/code&gt; in the project&lt;/li&gt;
&lt;li&gt;Lines starting with &lt;code&gt;!&lt;/code&gt; re-include a file that was excluded by a previous rule&lt;/li&gt;
&lt;li&gt;Using a &lt;code&gt;/&lt;/code&gt; anchors the pattern to where the &lt;code&gt;.gitignore&lt;/code&gt; file resides, NOT the root of the computer&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Section 5: Ending Notes
&lt;/h2&gt;

&lt;p&gt;In this tutorial, you learned how to use Git to manage a local project and to link that local project with GitHub.&lt;/p&gt;

&lt;p&gt;Now that you see how you do it, I think it's important that I explain a bit more about why we do it.&lt;/p&gt;

&lt;p&gt;Imagine you are working on an Automated Market-Making (AMM) System, which is a system that place buy and sell orders for many stocks simultaneously, that pocket small price differences without human intervention, and you accidentally make an error in the code, which is costing the company money.&lt;/p&gt;

&lt;p&gt;If there was no version control system (VCS), the company could experience significant downtime and financial loss. With the usage of a version control system (VCS) like Git, the company can easily revert back to slightly older working code and restart the program, saving the company a lot of money.&lt;/p&gt;

&lt;p&gt;Keep in mind that with Git and GitHub, there are many features that allow code to be collaborated on by many people at the same time, and also provides features to make sure code can be checked by other collaborators before it is approved.&lt;/p&gt;

&lt;p&gt;This is why version control systems (VCS) are so important in the development workforce.&lt;/p&gt;

&lt;p&gt;Even if you do not have a coding job and are just coding on your own, you can still loose significant progress when you do not use version control systems (VCS), (like we just discussed).&lt;/p&gt;

&lt;p&gt;Also, I want to put out that while I may not write the best commit statements, I am working to make better ones. A good standard for writing commits that I found is the Conventional Commits standard. I will not describe the standard here, but I recommend to read &lt;a href="https://www.conventionalcommits.org/en/v1.0.0/#summary" rel="noopener noreferrer"&gt;this summary&lt;/a&gt; to learn more about it.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>git</category>
      <category>github</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
