<?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>Forem: Idman</title>
    <description>The latest articles on Forem by Idman (@idman95).</description>
    <link>https://forem.com/idman95</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%2F462186%2Ffdd1af1a-c162-494f-9859-797883e65332.jpg</url>
      <title>Forem: Idman</title>
      <link>https://forem.com/idman95</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/idman95"/>
    <language>en</language>
    <item>
      <title>What are variables?</title>
      <dc:creator>Idman</dc:creator>
      <pubDate>Mon, 07 Sep 2020 22:00:30 +0000</pubDate>
      <link>https://forem.com/idman95/what-are-variables-5418</link>
      <guid>https://forem.com/idman95/what-are-variables-5418</guid>
      <description>&lt;p&gt;It took me a while to understand what variables mean in JavaScript. An analogy that resonated with me was to think of a variable as a storage box. The name assigned to a variable would be the sticky-label on the box; and the value of the variable would be what's actually &lt;em&gt;inside&lt;/em&gt; the box. So:&lt;/p&gt;

&lt;p&gt;Variable = storage box&lt;br&gt;
Name of the variable: sticky-label on the box&lt;br&gt;
Value = the contents of the box&lt;/p&gt;

&lt;p&gt;Once that was clear, I could begin thinking of it in 'technical' terms and understood that variables store values.&lt;/p&gt;

&lt;h1&gt;
  
  
  Declaring Variables
&lt;/h1&gt;

&lt;p&gt;Variables are declared by using the statements &lt;code&gt;let&lt;/code&gt; and &lt;code&gt;const&lt;/code&gt;. You might have heard of &lt;code&gt;var&lt;/code&gt; being used but it's not so common anymore. In the simplest (maybe a bit too simple, ha) terms possible:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;let&lt;/code&gt; means that the value of the variable can vary, whereas &lt;code&gt;const&lt;/code&gt; means that the value of the variable is fixed and can't be changed.&lt;/p&gt;

&lt;h1&gt;
  
  
  Why are variables important?
&lt;/h1&gt;

&lt;p&gt;I'm only a couple of weeks into learning JS, but that's long enough to realise that we can't do much in JS without variables! It's just an integral part of this programming language. Also, variables prevent us from writing repetitive code. In the English language we use pronouns (he, she, they, etc...) to avoid repeating ourselves. In the same way, we use variables to avoid repetition in our code. &lt;/p&gt;

&lt;p&gt;There are other reasons for why and most importantly &lt;em&gt;how&lt;/em&gt; variables are used but that is beyond the scope 😏 of this brief post.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>console.log("My First Post")</title>
      <dc:creator>Idman</dc:creator>
      <pubDate>Sun, 06 Sep 2020 14:15:04 +0000</pubDate>
      <link>https://forem.com/idman95/console-log-my-first-post-5g52</link>
      <guid>https://forem.com/idman95/console-log-my-first-post-5g52</guid>
      <description>&lt;p&gt;Hi, my name is Idman 👋🏾&lt;/p&gt;

&lt;p&gt;Welcome to my first post!&lt;/p&gt;

&lt;p&gt;I'm reading 'The Software Craftsman' by Sandro Mancuso and he advises that every developer should have some sort of blog to document their learning and progress - so here I am. &lt;/p&gt;

&lt;p&gt;This blog is for me to look back on and hopefully see improvement in my understanding of the technologies I'm learning. Also, I've benefited immensely from developers documenting their journeys and sharing tips. Maybe this will be useful to a beginner at some point.&lt;/p&gt;

&lt;p&gt;I've been enrolled on a bootcamp for 6 weeks now and, prior to the bootcamp, I had a bit of experience with HTML and CSS so the learning curve wasn't too steep.&lt;/p&gt;

&lt;p&gt;Then we started JavaScript 😬&lt;/p&gt;

&lt;p&gt;My background is in social science and education, so the last time I solved a logical problem involving numbers was probably during my maths GCSEs, which were nearly a decade ago!&lt;/p&gt;

&lt;p&gt;I've spent the past week solving beginner's-level JavaScript katas just to get my brain re-accustomed to conditional logic and reasoning. A tip that has helped a non-maths-inclined individual like myself is to: break down the problem in digestible bits and think of how you'd solve it in real-life.&lt;/p&gt;

&lt;p&gt;I'm hoping that the JavaScript content I've learnt so far will become less abstract once I apply it to the projects I'm working on. &lt;/p&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>codenewbie</category>
    </item>
  </channel>
</rss>
