<?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: tummytucker94</title>
    <description>The latest articles on DEV Community by tummytucker94 (@tummytucker94).</description>
    <link>https://dev.to/tummytucker94</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%2F354175%2Ff8e02f80-bb76-4368-a589-5c649a999d09.png</url>
      <title>DEV Community: tummytucker94</title>
      <link>https://dev.to/tummytucker94</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tummytucker94"/>
    <language>en</language>
    <item>
      <title>100 Days of Code - Python</title>
      <dc:creator>tummytucker94</dc:creator>
      <pubDate>Wed, 09 Apr 2025 17:52:58 +0000</pubDate>
      <link>https://dev.to/tummytucker94/100-days-of-code-python-4ack</link>
      <guid>https://dev.to/tummytucker94/100-days-of-code-python-4ack</guid>
      <description>&lt;p&gt;Day 1 of 100 Days of Code - Python/Java&lt;/p&gt;

&lt;p&gt;The purpose of this is just to jot something down quickly to document my learning for today in regards to python.&lt;/p&gt;

&lt;p&gt;What Did I Learn?&lt;/p&gt;

&lt;p&gt;I learned that loops are programming operations or instructions that allow the computer or computing agent to execute a block of codes as many times as needed.&lt;/p&gt;

&lt;p&gt;Additionally, I have learned that there are two types of loops. The first type of loop is the for loop, which is executed a certain number of times. Basically, it is executed when the number of steps are known.&lt;/p&gt;

&lt;p&gt;The next type of loop is the while loop, which is a type of loop that is executed when the number of steps needed are unknown. This loop executes as long as a condition evaluates as true.&lt;/p&gt;

&lt;p&gt;What I struggled with?&lt;/p&gt;

&lt;p&gt;I understood the core concepts. The concepts that I struggled with or would like to explore further are the following: range() function, enumerate function(), algorithmic and computational problem-solving, and best programming practices of python.&lt;/p&gt;

&lt;p&gt;One-Sentence Summary: I learned that a loop is an operation that is executed repeatedly either according to a set number of times or as long as a condition is true; additionally, there are two types of loop statements in python, which are while-loop and for-loop.&lt;/p&gt;

</description>
      <category>python</category>
      <category>100daysofcode</category>
    </item>
    <item>
      <title>For-Loop in JavaScript</title>
      <dc:creator>tummytucker94</dc:creator>
      <pubDate>Tue, 07 Apr 2020 01:11:25 +0000</pubDate>
      <link>https://dev.to/tummytucker94/for-loop-in-javascript-1d5f</link>
      <guid>https://dev.to/tummytucker94/for-loop-in-javascript-1d5f</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4cWWhT_b--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/x2yl8ukt5nbt36qv3rq5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4cWWhT_b--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/x2yl8ukt5nbt36qv3rq5.png" alt="Alt Text" width="880" height="460"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am writing this post because recently I had seen an image of a pyramid, I will refer to it as the Hierarchy of Information Retention (HIR), in which it shows that we only retain 10% of the information that we gain from reading, 30% by demonstration or seeing it, 50% through discussion, and 70% through practice doing it, and 90% through teaching. This is because teaching shows us the gaps in our knowledge, and as a result it forces us to reckon with this gap by searching for the answers.&lt;/p&gt;

&lt;p&gt;As such, the purpose of this post is to teach other beginners like me about the for-loop in JavaScript and to spark discussion in the comments section in order to sharpen each other's knowledge base. So, with no further ado, let's get into for-loops.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Is a Loop?
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;loop&lt;/strong&gt; &lt;em&gt;is an operation that executes a block of code repeatedly.&lt;/em&gt; When something is executed repeatedly, it is said to iterate. Thus, ultimately, a loop is an operation that iterates a block of code.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Is a For-Loop?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1qpbXv_G--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/gp3d4bkuph7w2z0ks2pc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1qpbXv_G--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/gp3d4bkuph7w2z0ks2pc.png" alt="Alt Text" width="880" height="880"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A &lt;strong&gt;for-loop&lt;/strong&gt; &lt;em&gt;is a type of loop that executes a block of code for a known number of times as long as a condition is true and then terminates.&lt;/em&gt; A for-loop is composed of two general parts: the loop head and the loop body. &lt;/p&gt;

&lt;p&gt;I like to think of the for-loop as a body in which the loop head does the reasoning: it initializes the loop; then, it sets a condition; and if the condition evaluates true, then the loop continues to execute the statements within the loop body. After the statements are carried out, the computer executes the final expression, which is either incremented(++) or the decremented(--), in order to keep count of the loop.&lt;/p&gt;

&lt;h3&gt;
  
  
  Loop Head
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Csdsjusp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/l0d5mlt86qkrw0rygqob.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Csdsjusp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/l0d5mlt86qkrw0rygqob.png" alt="Alt Text" width="880" height="880"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The loop head is comprised of three parts:&lt;/p&gt;

&lt;p&gt;1)The &lt;strong&gt;initializer&lt;/strong&gt; &lt;em&gt;is the part of the loop head that sets the value to begin the loop.&lt;/em&gt; It acts as the loop counter and is typically, though not always, denoted by what is known as the &lt;strong&gt;iterator variable ( i )--the variable whose value counts a loop's number of iterations.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;2)The &lt;strong&gt;continuation condition&lt;/strong&gt; &lt;em&gt;is the set condition that determines whether or not the loop will execute the statements contained within the loop body.&lt;/em&gt; I like to think of the continuation condition as sort of a question that you ask yourself if it is true or not, and based on that answer it will determine if the program will continue the loop or not. &lt;/p&gt;

&lt;p&gt;3)The &lt;strong&gt;final expression&lt;/strong&gt; &lt;em&gt;is the last part of the instructions in the loop head that is performed.&lt;/em&gt; And, the operations that are typically executed in this part is either an increment or a decrement.&lt;/p&gt;

&lt;h3&gt;
  
  
  Loop Body
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7kX9v4Lh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/oyr8kvn4fs5p8gftzskv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7kX9v4Lh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/oyr8kvn4fs5p8gftzskv.png" alt="Alt Text" width="880" height="880"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;loop body&lt;/strong&gt; &lt;em&gt;is the second part of the loop structure and is composed of statements that execute when the continuation condition is true.&lt;/em&gt; The loop body is denoted by a &lt;strong&gt;code block, { },&lt;/strong&gt; in which the statements are contained.&lt;/p&gt;

&lt;p&gt;Lastly, I would like to note that a loop is also known as a control flow statement because when it is executed it controls the natural execution flow of a program. The diagram below shows the control flow of a for-loop in which the execution flow continues one way if the continuation condition is true and another way if it evaluates false.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9kVFC2Qd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ib0ia79sfh5gi6s20f4z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9kVFC2Qd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ib0ia79sfh5gi6s20f4z.png" alt="Alt Text" width="880" height="880"&gt;&lt;/a&gt; &lt;/p&gt;

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

&lt;p&gt;Overall, the for-loop is an operation that executes a block of code repeatedly a known number of times as long as a condition evaluates true. Additionally, it is composed of two general components--the loop head and the loop body. The loop head is made up of three subcomponents: the initializer, the continuation condition, and the final expression. And, the loop body contains the statements to be executed. For-loops are imperative to understand and master, which is why I recommend that you practice using them and writing basic programs in order to master it.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>javascript</category>
    </item>
    <item>
      <title>8 Terms that Define a Relationship--Do You Agree with these Definitions?</title>
      <dc:creator>tummytucker94</dc:creator>
      <pubDate>Tue, 31 Mar 2020 01:02:56 +0000</pubDate>
      <link>https://dev.to/tummytucker94/8-terms-that-define-a-relationship-do-you-agree-with-these-definitions-3d30</link>
      <guid>https://dev.to/tummytucker94/8-terms-that-define-a-relationship-do-you-agree-with-these-definitions-3d30</guid>
      <description>&lt;p&gt;This is Day 10 of 100DaysOfCode, and I have been doing projects in order to cement my understanding of the foundations of HTML and CSS. This project is a project that defines Relationship terms. The purpose of the project was to get used to using Links and Lists. Link to project here:&lt;a href="https://codepen.io/tummytucker94/pen/JjdxwBy?editors=1000"&gt;https://codepen.io/tummytucker94/pen/JjdxwBy?editors=1000&lt;/a&gt;&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>100daysofcode</category>
      <category>codenewbie</category>
    </item>
  </channel>
</rss>
