<?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: somos</title>
    <description>The latest articles on DEV Community by somos (@somos).</description>
    <link>https://dev.to/somos</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%2F340099%2F2b45eb1e-3ac1-43b4-8679-279c98f46bb6.jpeg</url>
      <title>DEV Community: somos</title>
      <link>https://dev.to/somos</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/somos"/>
    <language>en</language>
    <item>
      <title>How to Create Variables using any Language</title>
      <dc:creator>somos</dc:creator>
      <pubDate>Tue, 25 Feb 2020 02:58:28 +0000</pubDate>
      <link>https://dev.to/somos/how-to-create-variables-using-any-language-2phf</link>
      <guid>https://dev.to/somos/how-to-create-variables-using-any-language-2phf</guid>
      <description>&lt;h2&gt;
  
  
  What Are Variables?
&lt;/h2&gt;

&lt;p&gt;Variables can be used to store information that can be manipulated and referenced in a computer program. They provide a way to label data with descriptive names so that our code can be understood better.&lt;/p&gt;

&lt;p&gt;Variables can be thought of as containers that hold information. They label and store data that can be used later throughout your program. &lt;/p&gt;

&lt;h2&gt;
  
  
  Variables in Java
&lt;/h2&gt;

&lt;p&gt;In Java there are different types of variables: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;String&lt;/code&gt; - stores a string of text characters (i.e. "Hello".) String values are surrounded by double quotes&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;int&lt;/code&gt; - stores whole numbers (integers) with no decimal point (123 or -123.)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;float&lt;/code&gt; - stores floating decimal point numbers (i.e 19.99 or -19.99.)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;char&lt;/code&gt; - stores single characters (i.e 'a' or 'B'.) Char values are surrounded by single quotes&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Boolean&lt;/code&gt; - stores values with two states: &lt;code&gt;true&lt;/code&gt; or &lt;code&gt;false&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To create a variable, you must specify the type and assign it a value: &lt;/p&gt;

&lt;p&gt;&lt;code&gt;type variables = value;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ItzPW2mM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/WJmRwVW.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ItzPW2mM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/WJmRwVW.png" alt="Java Variables Example"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  JavaScript Variables
&lt;/h2&gt;

&lt;p&gt;JavaScript gives you seven different data types:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;undefined&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;null&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;boolean&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;string&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;symbol&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;number&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;object&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can create a variable in JavaScript by putting the keyword &lt;code&gt;var&lt;/code&gt; in front of it.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;var myName;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You can store a value inside the variable using the &lt;em&gt;assignment&lt;/em&gt; operator.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;var myName;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;myName = "Tom";&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;But it is mostly common to initialize a variable in the same line you declare it.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;var myName = "Tom";&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--f7yfSdAC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/IVsajw0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--f7yfSdAC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/IVsajw0.png" alt="JavaScript Variable Examples"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Variables with C
&lt;/h2&gt;

&lt;p&gt;With C and C based languages like C++ and C#, there are different types of variables defined with different keywords.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;int&lt;/code&gt; - Whole numbers, without decimals (i.e 123 or -123)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;double&lt;/code&gt;- stores numbers with floating decimal points (i.e 19.99 or -19.99)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;char&lt;/code&gt; - stores single text characters (i.e 'a' or 'B')&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;bool&lt;/code&gt; - stores values with two states &lt;code&gt;true&lt;/code&gt; or &lt;code&gt;false&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To declare a variable in C, you must specify the type and assign it a value.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;type variable = value;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--eWRxyfal--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/fsRs6Bk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--eWRxyfal--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/fsRs6Bk.png" alt="Cpp Variable Examples"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Python Variables
&lt;/h2&gt;

&lt;p&gt;Unlike many of the other programming languages, Python has no command for declaring a variable. It is created the moment you first assign a value to it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--71pFEbgN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/gew8Cb5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--71pFEbgN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/gew8Cb5.png" alt="Python Variable Examples"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A variable name can be short (x and y) or descriptive (age, carName, total_volume.)&lt;/p&gt;

&lt;p&gt;Here are some common rules for Python variables: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Must start with a letter or the underscore character &lt;/li&gt;
&lt;li&gt;Cannot start with a number &lt;/li&gt;
&lt;li&gt;Can only contain alpha numeric characters and underscores (A-Z, 0-9, and _ )&lt;/li&gt;
&lt;li&gt;Are case-sensitive (age, Age, and AGE are all different variables)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WRhz47rQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/zhhqsVL.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WRhz47rQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/zhhqsVL.png" alt="Python Variable Examples"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  What's Important?
&lt;/h1&gt;

&lt;p&gt;All syntax aside the most important part of learning variables, and any other part of programming is to be sure to understand the logic and methodology behind it. You shouldn't just memorize the syntax as if you were studying for a vocabulary test. &lt;/p&gt;

&lt;p&gt;If you understand the logic behind what you are coding, it is easy to figure out how to solve any issue using your programming knowledge.&lt;/p&gt;

</description>
      <category>python</category>
      <category>javascript</category>
      <category>java</category>
      <category>beginners</category>
    </item>
    <item>
      <title> 2/100 Days of Code</title>
      <dc:creator>somos</dc:creator>
      <pubDate>Sat, 22 Feb 2020 22:48:09 +0000</pubDate>
      <link>https://dev.to/somos/2-100-days-of-code-406o</link>
      <guid>https://dev.to/somos/2-100-days-of-code-406o</guid>
      <description>&lt;p&gt;On day two of this challenge I woke up and got straight to coding, &lt;br&gt;
I saw a simple responsive web navbar on Instagram and got some motivation to dive more into media queries as I was having a bit of trouble understanding them. &lt;/p&gt;

&lt;p&gt;I wrote the whole code from scratch on VSCode and then copied it over to codepen, just to show it off easier of course. I followed the CSS part for the media queries in a tutorial-kind-of-way but then added on to it and made it my own. &lt;/p&gt;

&lt;p&gt;I understand media queries much more now but will come back to visit them again in the future, as I do know how important they are, or at least how important it is to make a website responsive specially in this mobile-first era. &lt;br&gt;
Maybe there will be a much simpler way to do this further down the line.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/dapca/embed/mdJOjeV?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Any advice or help is welcome :) &lt;br&gt;
Cya !&lt;/p&gt;

</description>
      <category>codepen</category>
      <category>html</category>
      <category>css</category>
      <category>100daysofcode</category>
    </item>
    <item>
      <title>1/100 Days of Code</title>
      <dc:creator>somos</dc:creator>
      <pubDate>Sat, 22 Feb 2020 22:45:44 +0000</pubDate>
      <link>https://dev.to/somos/day-1-100-days-of-code-4g5i</link>
      <guid>https://dev.to/somos/day-1-100-days-of-code-4g5i</guid>
      <description>&lt;p&gt;I decided to use dev.to as a journal to log my progress during the #100daysofcode. You know, to spice it up a bit. &lt;/p&gt;

&lt;p&gt;It just happened that the day I decided to start this challenge is the same day I started the Javascript Algorithms and Data Structures certification on freeCodeCamp.org, so today that's what I did. &lt;/p&gt;

&lt;p&gt;I completed 35% of the curriculum, we went over variables, integers, floats, operators, strings, and string continuation. Nothing new apart from the syntax as I have minimal knowledge on the basic fundementals of coding thanks to a few Python courses that I took in the past (I don't know much at all, but do understand the basic building blocks of the code.) &lt;/p&gt;

&lt;p&gt;Excited for whats to come! &lt;br&gt;
I will most likely be following and completing this curriculum during the next 99 days along with practicing and reviewing things I learned in the Responsive Web curriculum - the previous one. &lt;/p&gt;

&lt;p&gt;Cya !&lt;/p&gt;

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