<?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: ddmcdona06</title>
    <description>The latest articles on DEV Community by ddmcdona06 (@ddmcdona06).</description>
    <link>https://dev.to/ddmcdona06</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%2F1073745%2F0ad59873-424b-4c73-8d5f-f60ed1ff1e2e.jpeg</url>
      <title>DEV Community: ddmcdona06</title>
      <link>https://dev.to/ddmcdona06</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ddmcdona06"/>
    <language>en</language>
    <item>
      <title>******** ¿ What is ? ********</title>
      <dc:creator>ddmcdona06</dc:creator>
      <pubDate>Sun, 11 Jun 2023 21:07:41 +0000</pubDate>
      <link>https://dev.to/ddmcdona06/-what-is--45hf</link>
      <guid>https://dev.to/ddmcdona06/-what-is--45hf</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--o_RncV1D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xih7j7wwi4pq5b3fyx15.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--o_RncV1D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xih7j7wwi4pq5b3fyx15.png" alt="Docker Logo" width="300" height="168"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What exactly is Docker. Docker is a Platform As A Service, (PaaS), that uses virtualization to deliver software in packages called containers. Docker automates the deployment of these lightweight containers so that the software can work efficiently in multiple isolated environments.&lt;/p&gt;

&lt;p&gt;Virtualization is the creation of a virtual computer hardware platform, storage, and network resources. Virtualization creates these virtual resources from hard drives, CPU's, and GPU's. When virtualizing you combine a network of resources into what is seemingly one object.&lt;/p&gt;

&lt;p&gt;A &lt;em&gt;Virtual Machine (VM)&lt;/em&gt; is software used for virtualization but must be built on top of hypervisor software. This allows VMs' to run a separate operating system from the host hardware. The advantages of this are you can install new software, change code to the operating system, or rollback to a previous configuration while maintaining the security of the host hardware and operating system.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--j_s5shoI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wf0lmintjjasotz6bbs9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--j_s5shoI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wf0lmintjjasotz6bbs9.png" alt="virtual machine" width="800" height="639"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A &lt;em&gt;Container&lt;/em&gt; is an application completely isolated from other programs on a shared kernel. Containers are built from read-only images that usually run single processes or applications but can run multiple if needed. They are a guest operating system with virtual recourses who have no functional awareness of other processes running on the host operating system. The communication between the container and the device, as well as any other processes are handled by a container engine. One of the fundamental applications to Docker Daemon and its role in the Docker Engine.&lt;/p&gt;

&lt;p&gt;Docker uses Daemon to create and manage containers. The advantage of these docker containers is their portability. They can run in multiple environments because of their lightweight in resource usage. They run consistently no matter the operating system you implement because each container packages its own dependencies.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0C5Uy8g_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fdbx3atdrlzlv4pyaryi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0C5Uy8g_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fdbx3atdrlzlv4pyaryi.png" alt="docker" width="638" height="452"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Docker Containers Vs. Virtual Machines&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Direct access to hardware&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Easily update and delete instances of applications&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Simplifies complex tasks such as a CI/CD Pipeline&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Facilitate the use of microservices&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Although these seem like two competing tools when deciding to virtualize your programs, they can be used together. The security of virtual machines and the efficiency of Docker containers allow you to take advantage of all the benefits of virtualization. When using VMs' to secure your applications and using containers to deploy code between machines you can utilize both of their strengths.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KYndQMxN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kgna7rqrh3bsgr6rsksw.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KYndQMxN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kgna7rqrh3bsgr6rsksw.jpg" alt="Image description" width="800" height="407"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>JS Blog - String Manipulation</title>
      <dc:creator>ddmcdona06</dc:creator>
      <pubDate>Sat, 29 Apr 2023 05:23:18 +0000</pubDate>
      <link>https://dev.to/ddmcdona06/js-blog-string-manipulation-242n</link>
      <guid>https://dev.to/ddmcdona06/js-blog-string-manipulation-242n</guid>
      <description>&lt;p&gt;&lt;strong&gt;String Manipulation&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Strings are vital in any programming language. String manipulation techniques help developers easily edit code. In JavaScript, strings are immutable and help to store text that includes characters, numbers, and Unicode. JavaScript includes many built-in functions for creating and manipulating strings in various ways. This blog will illustrate some of the functions that developers use as tools to write more efficient code. I will first illustrate string methods and then conclude with the plus operator. &lt;/p&gt;

&lt;p&gt;String Methods:&lt;/p&gt;

&lt;p&gt;.length() : returns the length of a string&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ex. let name = "Darryl";
    let length = name.length =&amp;gt; //6
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;.slice() : extracts a part of a string and returns it into a new string&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ex. let places = "Los Angeles, Chicago, New York";
    let city = places.slice(13, 20) =&amp;gt; // "Chicago"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;.substring() : similar to slice but start and end values less than 0 are treated as 0&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; ex. let places = "Los Angeles, Chicago, New York";
    let city = places.substring(-2, 11) =&amp;gt; // "Los Angeles"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;.substr() : similar to slice but the second parameter specifies the length of the extracted part&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ex. let places = "Los Angeles, Chicago, New York";
    let city = places.substr(13, 7) =&amp;gt; // "Chicago"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;.concat() : joins two or more strings&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ex. let text1 = "Be you";
    let text2 = "they'll adjust!";
    let confidence = text1.concat(" ", text2) =&amp;gt; // "Be you they'll adjust!"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;.toUpperCase() : converts all values in string to uppercase&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ex. let text1 = "Be you";
    let text2 = text1.toUpperCase() =&amp;gt; // "BE YOU"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;.toLowerCase(): converts all values in strings to lowercase&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ex. let text1 = "They'll Adjust!"; 
    let text2 = text1.toLowerCase() =&amp;gt; // "they'll adjust!"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;.trim() : removes white space from both sides of a string&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ex. let text1 = "      Gator belts      ";
    let text2 = text1.trim() =&amp;gt; // "Gator belts"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;.trimStart() : removes white space from the start of a string&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ex. let text1 = "      patty melts      ";
    let text2 = text1.trimStart() =&amp;gt; // "patty melts    "
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;.trimEnd() : removes white space from the end of a string&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ex. ex. let text1 = "      and Monte Carlos      ";
    let text2 = text1.trimEnd() =&amp;gt; // "    and Monte Carlos"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;.padStart()/.padEnd() : pads a string with another string&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ex. let text = "10.00 - I'm broke";
    let padded = text.padStart(4,"x") =&amp;gt; // "xxx10.00 I'm broke"

ex. let text = "Ballin! $100,";
    let padded = text.padEnd(4,"0") =&amp;gt; // "Ballin! $100,000"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;.charAt() : returns the character at a specified index (position) in a string&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ex. let text = "Trekkie";
    let char = text.charAt(0) =&amp;gt; // "T"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;.charCodeAt() : returns the unicode of the character at a specified index in a string&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ex. let text = "A Milli";
    let char = text.charCodeAt(0) =&amp;gt; // 65
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;.replace() : replaces the first match in a string&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ex. let text = "Ain't no thang like a chicken thigh";
    let newText = text.replace("thigh", "wang") =&amp;gt; // "Ain't no thang like a chicken wang"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;.replaceAll() : replaces all characters within a string&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ex. let text = "I play cards. Cards can be challenging. I'm very competitive when I play cards!"
    text = text.replaceAll("Cards","Games");
    let text = text.replaceAll("cards","games") =&amp;gt; // "I play games. Games can be challenging. I'm very competitive when I play games!"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;.split() : Divides a string into an ordered list of two or more substrings and returns it&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ex. let text = "Dallas";
let myCity = text.split("") =&amp;gt; // [D, a, l, l, a, s]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;The + Operator:&lt;br&gt;
      the plus operator concatenates values.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  ex. let string1 = "Ain't nobody dope as me,";
      let string2 = " I'm just so fresh, so clean!"
      let lyric = string1 + string2 =&amp;gt; // "Ain't nobody dope as me, I'm just so fresh, so clean!"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>stringsmanipulation</category>
      <category>strings</category>
      <category>manipulatestrings</category>
    </item>
  </channel>
</rss>
