<?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: Kumar Shubham</title>
    <description>The latest articles on DEV Community by Kumar Shubham (@shubham025).</description>
    <link>https://dev.to/shubham025</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%2F412266%2Faea85b1d-3174-45f5-833c-7d426f247e5f.PNG</url>
      <title>DEV Community: Kumar Shubham</title>
      <link>https://dev.to/shubham025</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shubham025"/>
    <language>en</language>
    <item>
      <title>Git Introduction.</title>
      <dc:creator>Kumar Shubham</dc:creator>
      <pubDate>Sat, 12 Dec 2020 09:13:33 +0000</pubDate>
      <link>https://dev.to/shubham025/git-introduction-2pli</link>
      <guid>https://dev.to/shubham025/git-introduction-2pli</guid>
      <description>&lt;p&gt;If you are into the programming world, you might have heard about git. Its complicated terms easily overwhelm the newcomers, this post is for those newcomers. Let’s start.&lt;/p&gt;

&lt;h1&gt;
  
  
  Why Git?
&lt;/h1&gt;

&lt;p&gt;When we are working in a team, code sharing is always a problem, we don’t know who implemented what features and whose changes break the code. Here, Git comes as a savior.&lt;/p&gt;

&lt;h1&gt;
  
  
  What is Git?
&lt;/h1&gt;

&lt;p&gt;Git is a distributed version control system(VCS). It is not the only Version Control System But the most famous one.&lt;br&gt;
Git allows us to see changes made to code in past and also who made it. If there are any problems with the code then we can revert to an earlier version of our code too. Isn’t it great?? We can also upload our code to site like Github and Gitbasket. Our team members can clone or fork it from there and start to work simultaneously by creating a new branch.&lt;/p&gt;

&lt;p&gt;Clone, fork, and branch might be led you to think that git is complicated but trust me it is not that complicated. Once you start learning step by step all will become clear.&lt;/p&gt;

&lt;p&gt;In this blog, I’m going to teach you some basics git commands, enough to get you started. But first, install Git in your system.&lt;/p&gt;

&lt;h1&gt;
  
  
  Installation.
&lt;/h1&gt;

&lt;p&gt;To download and install git in your system, &lt;a href="https://git-scm.com/downloads"&gt;click here&lt;/a&gt; and choose Git version for your OS and then follow the required installation steps.&lt;/p&gt;

&lt;p&gt;After installing git you are ready to run git in your system.&lt;/p&gt;

&lt;h1&gt;
  
  
  Most Used Git Command.
&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;git init &lt;br&gt;
This command will make your repository(just a fancy name for folder) into a git repository.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;git status&lt;br&gt;
This command will show the status of your git repository like whether the files are tracked, staged, or not.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;git add .&lt;br&gt;
This command will stage all unchanged files.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;git commit -m "message"&lt;br&gt;
This command will commit your staged files and a version of your program is created. In the future, you can always revert to this version of your code(more on that later).&lt;br&gt;
Replace the message with a meaningful text. It should be small and descriptive. Some common convention of writing commit messages are--&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   * feat - a new feature
   * fix - a bug fix
   * docs - changes in documentation
   * style - everything related to styling
   * refactor - code changes that neither fixes a bug or adds a feature
   * test - everything related to testing
   * chore - updating build tasks, package manager configs, etc.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;5 .  git add &amp;lt; filename &amp;gt;&lt;br&gt;
   To stage, any particular file run this command and then run the commit command.&lt;/p&gt;

&lt;p&gt;6 .  git log &lt;br&gt;
   This command allows us to view information about the previous commit.&lt;/p&gt;

</description>
      <category>git</category>
      <category>github</category>
    </item>
    <item>
      <title>Chapter 1 : Values and Their Operators in Javascript</title>
      <dc:creator>Kumar Shubham</dc:creator>
      <pubDate>Fri, 04 Dec 2020 07:03:23 +0000</pubDate>
      <link>https://dev.to/shubham025/values-and-their-operators-in-javascript-oah</link>
      <guid>https://dev.to/shubham025/values-and-their-operators-in-javascript-oah</guid>
      <description>&lt;h1&gt;
  
  
  Values
&lt;/h1&gt;

&lt;p&gt;If you are familiar with any programming language, then you must have heard about values and values in JS are more or less similar.&lt;br&gt;
Values are nothing just types of data that can be stored in  system.&lt;/p&gt;
&lt;h2&gt;
  
  
  Types of Values
&lt;/h2&gt;

&lt;p&gt;1.Number &lt;/p&gt;

&lt;p&gt;Values of the number type are numeric value. In a JS program they are written as :&lt;br&gt;
               91,23.5&lt;/p&gt;

&lt;p&gt;For very big number scientific notation is also used, like 3.997e8 which is equal to 3.997 * 10^8&lt;/p&gt;

&lt;p&gt;Now we know how the numbers are stored in system but these are of no use if we can't perform any meaningful operation on them.&lt;br&gt;
One of most important operation is &lt;strong&gt;Arithmetic Operation&lt;/strong&gt;.&lt;br&gt;
In &lt;strong&gt;Arithmetic Operation&lt;/strong&gt;, we perform simple Multiplication or addition and a new value is produced from them.&lt;br&gt;
E.g- 10+4*3&lt;br&gt;
Here an arithmetic operation is performed on numbers. + and * are operators.&lt;/p&gt;
&lt;h3&gt;
  
  
  Special Numbers
&lt;/h3&gt;

&lt;p&gt;There are 3 values in JS that is considered to be Special Numbers&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Infinity&lt;/li&gt;
&lt;li&gt;-Infinity&lt;/li&gt;
&lt;li&gt;NaN
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Infinity and -Infinity are respectively greatest positive and negative number possible. NaN stands for Not a Number. When we perform any numerical operation on data that does not yield any meaningful result it will give NaN. For example- 0/0 yield NaN.&lt;/p&gt;

&lt;p&gt;2.Strings&lt;/p&gt;

&lt;p&gt;Strings are used to store text. Text must be enclosed in quotes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;'I am string'
"I am String"
`I am String`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two strings can be concatenated using +&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;'I'+ 'am' + 'String'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3.Boolean Values&lt;/p&gt;

&lt;p&gt;Boolean values are just true and false.&lt;br&gt;
If we check some condition and it's true the it return true otherwise false.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(5&amp;gt;6)
// false
console.log(5&amp;lt;6)
// true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Don't worry about console.log , this is nothing just a way to see output. More on that later in other in next blogs.&lt;/p&gt;

&lt;p&gt;&amp;lt;,&amp;gt;,=,&amp;lt;=,&amp;gt;= are &lt;strong&gt;Comparison Operators&lt;/strong&gt; and have same functionality as in Mathematics.&lt;br&gt;
!= is also an Conditional operator and it is used as not equal to. if we write a!=b, this means a is not equal to b.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Logical Operators&lt;/strong&gt; are operators that can be performed on boolean types. They are AND,OR and NOT.&lt;br&gt;
AND is binary operator(need two value to perform operation) written as &amp;amp;&amp;amp; and it yield true iff both values given to it are true.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(true &amp;amp;&amp;amp; true)
// true
console.log(true &amp;amp;&amp;amp; false)
//false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OR is also binary operator written as || and it yield  true if at least any one of two given values are true.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(true || true)
// true
console.log(true &amp;amp;&amp;amp; false)
//true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;NOT is a unary operator written as ! and it reverse the boolean value.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(!true)
// true
console.log(!false)
//true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;4.Empty Values&lt;/p&gt;

&lt;p&gt;There are 2 Empty Values &lt;em&gt;null&lt;/em&gt; and &lt;em&gt;undefined&lt;/em&gt;. These two are personally value but does not have any value assigned to it.&lt;br&gt;
They are used to denote the absent of meaningful data.&lt;br&gt;
&lt;em&gt;null&lt;/em&gt; is an assigned value but it means nothing.&lt;br&gt;
*undefined * means a variable is declared but not defined yet.&lt;/p&gt;

&lt;p&gt;If you feel uncomfortable understanding null and undefined, give it some time. As you know more about JS, it will become clear.&lt;/p&gt;

&lt;p&gt;This blog is part  of reading and writing blog for each chapter of &lt;a href="https://eloquentjavascript.net/"&gt;eloquent Javascript&lt;/a&gt; book challenge, started by &lt;a href="https://twitter.com/tanaypratap"&gt;Tanay Sir&lt;/a&gt;. Follow him for more great contents.&lt;/p&gt;

&lt;p&gt;Blog Post of 2nd chapter is coming soon.&lt;/p&gt;

</description>
      <category>teamtanayejschallenge</category>
    </item>
    <item>
      <title>Introduction To Regular Expression</title>
      <dc:creator>Kumar Shubham</dc:creator>
      <pubDate>Tue, 30 Jun 2020 14:47:49 +0000</pubDate>
      <link>https://dev.to/shubham025/introduction-to-regular-expression-21ja</link>
      <guid>https://dev.to/shubham025/introduction-to-regular-expression-21ja</guid>
      <description>&lt;ul&gt;
&lt;li&gt;Commonly known as RegEx&lt;/li&gt;
&lt;li&gt;RegEx is a string containing some special characters. These characters taken together forms a pattern.&lt;/li&gt;
&lt;li&gt;This RegEx is used to check whether that particular pattern exists in any given string or not.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Python module &lt;em&gt;re&lt;/em&gt; is imported to use Regular Expression methods&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  RegEx Functions
&lt;/h2&gt;

&lt;h4&gt;
  
  
  1.findall
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;It returns a list containing all matches or an empty list in case of no match.&lt;/li&gt;
&lt;li&gt;It takes two parameter i.e, RegEx and String respectively.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  2.Search
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;It Search the string for one match.&lt;/li&gt;
&lt;li&gt;In case of match, it returns a &lt;strong&gt;MATCH OBJECT&lt;/strong&gt; of only first match.&lt;/li&gt;
&lt;li&gt;In Case of no match, it returns &lt;strong&gt;None&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;It takes two parameter i.e,RegEx and String respectively.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  3.Split
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;It returns a list where the string has been split at each match.&lt;/li&gt;
&lt;li&gt;It takes 2-3 parameters.&lt;/li&gt;
&lt;li&gt;First two parameters are RegEx and String respectively.&lt;/li&gt;
&lt;li&gt;The Third parameter is an optional parameter,known as maxsplit parameter and takes int value as input.&lt;/li&gt;
&lt;li&gt;This max split parameter controls maximum number of split can be performed on the String.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  4.Sub
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;It looks for a match then replace it with new text string.&lt;/li&gt;
&lt;li&gt;It takes 3-4 parameters,4th parameter is optional.&lt;/li&gt;
&lt;li&gt;First 3 parameters are RegEx, newText and  string respectively.&lt;/li&gt;
&lt;li&gt;Fourth parameter is known as count parameter and takes int value as input.&lt;/li&gt;
&lt;li&gt;This count parameter controls the maximum number of replacement performed on the string. &lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>python</category>
      <category>codenewbie</category>
      <category>regex</category>
    </item>
  </channel>
</rss>
