<?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: Elijah Watson</title>
    <description>The latest articles on DEV Community by Elijah Watson (@spectrail5).</description>
    <link>https://dev.to/spectrail5</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1170826%2F26567329-f712-4826-b93e-c82cbbe715ba.jpeg</url>
      <title>DEV Community: Elijah Watson</title>
      <link>https://dev.to/spectrail5</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/spectrail5"/>
    <language>en</language>
    <item>
      <title>HTML vs XML</title>
      <dc:creator>Elijah Watson</dc:creator>
      <pubDate>Fri, 08 Dec 2023 19:32:24 +0000</pubDate>
      <link>https://dev.to/spectrail5/html-vs-xml-10p9</link>
      <guid>https://dev.to/spectrail5/html-vs-xml-10p9</guid>
      <description>&lt;h2&gt;
  
  
  What is HTML and XML?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;HTML&lt;/strong&gt;&lt;br&gt;
HTML is short for HyperText Markup Language and is the basis for website building. It defines the structure of a website. It is often assisted by technologies such as CSS and JavaScript.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Here is an example of HTML&lt;br&gt;
&lt;/p&gt;


&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;HTML vs XML&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;

&amp;lt;h1&amp;gt;My First Heading&amp;lt;/h1&amp;gt;
&amp;lt;p&amp;gt;My first paragraph.&amp;lt;/p&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;HTML was Developed by: WHATWG and W3C (World Wide Web Consortium).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;XML&lt;/strong&gt;&lt;br&gt;
XML is short for Extensible Markup Language and is a file format for storing, transmitting, and reconstructing arbitrary data. XML is a markup language much like HTML. It was designed to store and transport data.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Here is an example of XML&lt;br&gt;
&lt;/p&gt;


&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;note&amp;gt;
  &amp;lt;to&amp;gt;HTML&amp;lt;/to&amp;gt;
  &amp;lt;from&amp;gt;XML&amp;lt;/from&amp;gt;
  &amp;lt;heading&amp;gt;Reminder&amp;lt;/heading&amp;gt;
  &amp;lt;body&amp;gt;Don't forget me this weekend!&amp;lt;/body&amp;gt;
&amp;lt;/note&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;XML was Developed by: W3C (World Wide Web Consortium).&lt;/p&gt;

&lt;h2&gt;
  
  
  So what's the Difference?
&lt;/h2&gt;

&lt;p&gt;XML was designed to carry data - with a focus on what data is, while HTML was designed to display data - with a focus on how data looks.&lt;br&gt;
HTML works with predefined tags like &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;table&amp;gt;&lt;/code&gt;, etc. With XML, the author must define both the tags and the document structure.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Sources&lt;br&gt;
&lt;a href="https://www.w3schools.com/xml/xml_whatis.asp"&gt;W3Schools&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
    </item>
    <item>
      <title>Queue Data Structure</title>
      <dc:creator>Elijah Watson</dc:creator>
      <pubDate>Fri, 03 Nov 2023 18:27:05 +0000</pubDate>
      <link>https://dev.to/spectrail5/queue-data-structure-4600</link>
      <guid>https://dev.to/spectrail5/queue-data-structure-4600</guid>
      <description>&lt;p&gt;A Queue is defined as a linear data structure that is open at both ends and the operations are performed in First In First Out (FIFO) order.&lt;/p&gt;

&lt;p&gt;Think of a Queue as a line at a store; the first person to get in the line is also the first person to get out the line.&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fab9blgdnmzf7kskav8j3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fab9blgdnmzf7kskav8j3.png" alt="Image description" width="800" height="419"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Adding a value to a queue is 'enqueue' and removing is 'dequeue.'&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Enqueue: Adds an item from the back of the queue. &lt;br&gt;
Dequeue: Removes an item from the front of the queue.&lt;br&gt;
Front/Peek: Returns the value of the item in front of the queue without dequeuing (removing) the item.&lt;br&gt;
IsEmpty: Checks if the queue is empty.&lt;br&gt;
IsFull: Checks if the queue is full.&lt;br&gt;
Display: Prints all the items in the queue.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Queue is used when things don’t have to be processed immediately, but have to be processed in First In First Out order.&lt;br&gt;
Queue can be used in several things like:&lt;/p&gt;

&lt;p&gt;-Task Scheduling: Queues can be used to schedule tasks based on priority or the order in which they were received.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Resource Allocation: Queues can be used to manage and allocate resources, such as printers or CPU processing time.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Batch Processing: Queues can be used to handle batch processing jobs, such as data analysis or image rendering.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Message Buffering: Queues can be used to buffer messages in communication systems, such as message queues in messaging systems or buffers in computer networks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Event Handling: Queues can be used to handle events in event-driven systems, such as GUI applications or simulation systems.&lt;br&gt;
Sources:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://www.geeksforgeeks.org/applications-of-queue-data-structure/"&gt;GeeksForGeeks&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.freecodecamp.org/news/queue-data-structure-definition-and-java-example-code/#:~:text=Enqueue%3A%20Adds%20an%20item%20from,if%20the%20queue%20is%20empty."&gt;FreeCodeCamp&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>HTML Forms</title>
      <dc:creator>Elijah Watson</dc:creator>
      <pubDate>Fri, 13 Oct 2023 19:40:33 +0000</pubDate>
      <link>https://dev.to/spectrail5/html-forms-5cdn</link>
      <guid>https://dev.to/spectrail5/html-forms-5cdn</guid>
      <description>&lt;p&gt;An HTML form is used to collect user input. The HTML &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; element creates an HTML form for user input. The &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; element is a container for different types of &lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt; elements, such as text fields, checkboxes, radio buttons, submit buttons, etc.&lt;/p&gt;

&lt;p&gt;Using forms can be a good way to collect input data to use somewhere else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Text Fields
&lt;/h2&gt;

&lt;p&gt;The Description for &lt;code&gt;&amp;lt;input type="text"&amp;gt;&lt;/code&gt; from &lt;a href="https://www.w3schools.com/html/html_forms.asp"&gt;W3 schools&lt;/a&gt; says:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Displays a single-line text input field" &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;As shown here&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2rjgr0b0tczxfixc94w6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2rjgr0b0tczxfixc94w6.png" alt="Here I am using the form text field element to create a basic form with no CSS" width="175" height="117"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; &amp;lt;h2&amp;gt;HTML Forms&amp;lt;/h2&amp;gt;

    &amp;lt;form action="/action_page.js"&amp;gt;
        &amp;lt;input type="text" id="fname" name="fname" placeholder="John"&amp;gt;&amp;lt;br&amp;gt;
        &amp;lt;input type="text" id="lname" name="lname" placeholder="Doe"&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;
    &amp;lt;/form&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The text field input type can be used to collect information like user names, passwords, etc.&lt;/p&gt;

&lt;h2&gt;
  
  
  CheckBoxes
&lt;/h2&gt;

&lt;p&gt;The Description for &lt;code&gt;&amp;lt;input type="checkbox"&amp;gt;&lt;/code&gt; from &lt;a href="https://www.w3schools.com/html/html_forms.asp"&gt;W3 schools&lt;/a&gt; says:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Displays a checkbox (for selecting zero or more of many choices)" &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;As shown here&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F11r14wk9j6z9ofdgqok9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F11r14wk9j6z9ofdgqok9.png" alt="Image description" width="161" height="76"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; &amp;lt;form action="/action_page.php"&amp;gt;
  &amp;lt;input type="checkbox" id="vehicle1" name="vehicle1" value="Bike"&amp;gt;
  &amp;lt;label for="vehicle1"&amp;gt; I have a bike&amp;lt;/label&amp;gt;&amp;lt;br&amp;gt;
  &amp;lt;input type="checkbox" id="vehicle2" name="vehicle2" value="Car"&amp;gt;
  &amp;lt;label for="vehicle2"&amp;gt; I have a car&amp;lt;/label&amp;gt;&amp;lt;br&amp;gt;
  &amp;lt;input type="checkbox" id="vehicle3" name="vehicle3" value="Boat"&amp;gt;
  &amp;lt;label for="vehicle3"&amp;gt; I have a boat&amp;lt;/label&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;
  &amp;lt;input type="submit" value="Submit"&amp;gt;
&amp;lt;/form&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The checkbox input type can be used to make multiple-choice questions.&lt;/p&gt;

</description>
      <category>html</category>
    </item>
    <item>
      <title>The basics of Bootstrap</title>
      <dc:creator>Elijah Watson</dc:creator>
      <pubDate>Fri, 06 Oct 2023 19:41:07 +0000</pubDate>
      <link>https://dev.to/spectrail5/the-basics-of-bootstrap-54d6</link>
      <guid>https://dev.to/spectrail5/the-basics-of-bootstrap-54d6</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Bootstrap is a free, open-source front-end development framework for creating websites and web apps. It is used to make front-end development more consistent. &lt;/p&gt;

&lt;p&gt;Bootstrap was developed by Mark Otto and Jacob Thornton at Twitter in mid-2010 as a framework to encourage consistency across internal tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  Buttons
&lt;/h2&gt;

&lt;p&gt;One of the ways Bootstrap helps to make code more consistent is with its button component. Here's an example of said component.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2pm6pfluqpecpgp8g7pi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2pm6pfluqpecpgp8g7pi.png" alt="Image description" width="590" height="135"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
            &amp;lt;div class="content"&amp;gt;

                &amp;lt;div id="example"&amp;gt;
                    &amp;lt;button type="button" class="btn btn-primary"&amp;gt;Primary&amp;lt;/button&amp;gt;
                    &amp;lt;button type="button" class="btn btn-secondary"&amp;gt;Secondary&amp;lt;/button&amp;gt;
                    &amp;lt;button type="button" class="btn btn-success"&amp;gt;Success&amp;lt;/button&amp;gt;
                    &amp;lt;button type="button" class="btn btn-danger"&amp;gt;Danger&amp;lt;/button&amp;gt;
                    &amp;lt;button type="button" class="btn btn-warning"&amp;gt;Warning&amp;lt;/button&amp;gt;
                    &amp;lt;button type="button" class="btn btn-info"&amp;gt;Info&amp;lt;/button&amp;gt;
                    &amp;lt;button type="button" class="btn btn-light"&amp;gt;Light&amp;lt;/button&amp;gt;
                    &amp;lt;button type="button" class="btn btn-dark"&amp;gt;Dark&amp;lt;/button&amp;gt;

                    &amp;lt;button type="button" class="btn btn-link"&amp;gt;Link&amp;lt;/button&amp;gt;


                &amp;lt;/div&amp;gt;

            &amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://getbootstrap.com/docs/5.3/components/buttons/"&gt;Bootstrap button component&lt;/a&gt;&lt;br&gt;
Here's an example of my attempt to make these buttons use basic HTML and CSS.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4b8zypjn7duxadpku9qu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4b8zypjn7duxadpku9qu.png" alt="Image description" width="560" height="120"&gt;&lt;/a&gt;&lt;br&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 plaintext"&gt;&lt;code&gt; &amp;lt;div class="content"&amp;gt;

                &amp;lt;div id="interests"&amp;gt;
                    &amp;lt;button type="button" class="btn" id="primary"&amp;gt;Primary&amp;lt;/button&amp;gt;
                    &amp;lt;button type="button" class="btn" id="secondary"&amp;gt;Secondary&amp;lt;/button&amp;gt;
                    &amp;lt;button type="button" class="btn" id="success"&amp;gt;Success&amp;lt;/button&amp;gt;
                    &amp;lt;button type="button" class="btn" id="danger"&amp;gt;Danger&amp;lt;/button&amp;gt;
                    &amp;lt;button type="button" class="btn" id="warning"&amp;gt;Warning&amp;lt;/button&amp;gt;
                    &amp;lt;button type="button" class="btn" id="info"&amp;gt;Info&amp;lt;/button&amp;gt;
                    &amp;lt;button type="button" class="btn" id="light"&amp;gt;Light&amp;lt;/button&amp;gt;
                    &amp;lt;button type="button" class="btn" id="dark"&amp;gt;Dark&amp;lt;/button&amp;gt;

                    &amp;lt;button type="button" class="btn" id="link"&amp;gt;Link&amp;lt;/button&amp;gt;
                &amp;lt;/div&amp;gt;

            &amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.btn {
            width: 75px;
            height: 30px;
            border-radius: 10px;
        }

        #primary {
            background: #0d6efd;
            color: white;
            border: #0d6efd;
        }

        #secondary {
            background: #6c757d;
            color: white;
            border: #6c757d;
        }

        #success {
            background: #198754;
            color: white;
            border: #198754;
        }

        #danger {
            background: #dc3545;
            color: white;
            border: #dc3545;
        }

        #warning {
            background: #ffc107;
            color: black;
            border: #ffc107;
        }

        #info {
            background: #0dcaf0;
            color: black;
            border: #0dcaf0;
        }

        #light {
            background: #f8f9fa;
            color: black;
            border: #f8f9fa;
        }

        #dark {
            background: #212529;
            color: white;
            border: #212529;
        }

        #link {
            background: transparent;
            color: var(link);
            border: transparent;
        }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It took me more lines of code to get a similar effect.&lt;br&gt;
Bootstrap is a good way to shorten and keep code consistent.&lt;br&gt;
&lt;a href="https://getbootstrap.com/"&gt;Bootstrap's home page&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>A Moment about MomentJS</title>
      <dc:creator>Elijah Watson</dc:creator>
      <pubDate>Fri, 29 Sep 2023 18:34:47 +0000</pubDate>
      <link>https://dev.to/spectrail5/a-moment-about-momentjs-14n4</link>
      <guid>https://dev.to/spectrail5/a-moment-about-momentjs-14n4</guid>
      <description>&lt;h2&gt;
  
  
  What is MomentJS?
&lt;/h2&gt;

&lt;p&gt;MomentJS is a JavaScript package that makes it simple to parse, validate, manipulate, and display date/time in JavaScript. MomentJS allows you to display dates in a human-readable format based on location.&lt;/p&gt;

&lt;h2&gt;
  
  
  Features of Moment.js:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Parsing: You can parse the date into the desired format using parsing. Date parsing is possible in the string, object, and array formats. It allows you to clone a moment with the help of moment.clone().&lt;/li&gt;
&lt;li&gt;Manipulation: We can manipulate the Date and Time on the moment object using inbuilt methods provided by Moment.js. &lt;/li&gt;
&lt;li&gt;Date Validation: We can perform date validation using the isValid() method provided by Moment.js. It also has various parsing flags to validate dates.&lt;/li&gt;
&lt;li&gt;Date Queries: It has various built-in methods to check if the date is greater than or less than the input provided.&lt;/li&gt;
&lt;li&gt;Duration: It is one of the essential features that handles the time length for the given units.&lt;/li&gt;
&lt;li&gt;Display: It provides us with different formats to display data in different ways like JSON, array, object, etc.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://www.geeksforgeeks.org/moment-js-introduction/"&gt;geeksforgeeks&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
