<?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: Virendra Khorwal</title>
    <description>The latest articles on DEV Community by Virendra Khorwal (@virendrakhorwal).</description>
    <link>https://dev.to/virendrakhorwal</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%2F646611%2F14f2667a-03c3-42f5-8a18-813197719f41.png</url>
      <title>DEV Community: Virendra Khorwal</title>
      <link>https://dev.to/virendrakhorwal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/virendrakhorwal"/>
    <language>en</language>
    <item>
      <title>Learn Solidity with me</title>
      <dc:creator>Virendra Khorwal</dc:creator>
      <pubDate>Fri, 30 Sep 2022 07:35:33 +0000</pubDate>
      <link>https://dev.to/virendrakhorwal/learn-solidity-with-me-1ck5</link>
      <guid>https://dev.to/virendrakhorwal/learn-solidity-with-me-1ck5</guid>
      <description>&lt;h2&gt;
  
  
  Let's start
&lt;/h2&gt;

&lt;p&gt;I am learning Solidity from &lt;a href="https://www.youtube.com/watch?v=gyMwXuJrbJQ" rel="noopener noreferrer"&gt;freeCodeCamp&lt;/a&gt; and &lt;a href="https://docs.soliditylang.org/en/latest/index.html" rel="noopener noreferrer"&gt;Solidity Official Documentation&lt;/a&gt;. As I learn some new concept I will try to explain to you. This will help me to understand it easily and also maybe you. If you feel something missing comment below. And feel free to ask any queries. All help each other and learn together.&lt;/p&gt;

&lt;h2&gt;
  
  
  Basics
&lt;/h2&gt;

&lt;p&gt;I will first begin with the different types or data types in Solidity. There are different types in solidity.&lt;/p&gt;

&lt;h3&gt;
  
  
  Integer
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;int8 to int256 (8 steps) like int16, int24 etc. &lt;/li&gt;
&lt;li&gt;uint8 to uint256 (8 steps) like uint16, uint24 etc.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;int&lt;/code&gt; are signed integers and &lt;code&gt;uint&lt;/code&gt; are unsigned integers. &lt;code&gt;int256&lt;/code&gt; and &lt;code&gt;int&lt;/code&gt; are same. Similarly, &lt;code&gt;uint256&lt;/code&gt; and &lt;code&gt;uint&lt;/code&gt; are also same. Or &lt;code&gt;int&lt;/code&gt; is alias for &lt;code&gt;int256&lt;/code&gt; and &lt;code&gt;uint&lt;/code&gt; is alias for &lt;code&gt;uint256&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Address
&lt;/h3&gt;

&lt;p&gt;There are two address types. One is &lt;code&gt;address&lt;/code&gt; and another is &lt;code&gt;address payable&lt;/code&gt;. The size of &lt;code&gt;address&lt;/code&gt; is &lt;strong&gt;20bytes&lt;/strong&gt; same as the size of &lt;strong&gt;Ethereum Address&lt;/strong&gt;. &lt;code&gt;address payable&lt;/code&gt; is same as &lt;code&gt;address&lt;/code&gt; but it have some additional information like &lt;code&gt;transaction&lt;/code&gt; and &lt;code&gt;send&lt;/code&gt;. We can implicitly convert &lt;code&gt;address payable&lt;/code&gt; to &lt;code&gt;address&lt;/code&gt;. But conversion from &lt;code&gt;address&lt;/code&gt; to &lt;code&gt;address payable&lt;/code&gt; done explicitly using &lt;code&gt;payable(&amp;lt;address&amp;gt;)&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Fixed Point Number
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;! Not fully support yet&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;We can declare fixed point number using &lt;code&gt;fixed&lt;/code&gt; and &lt;code&gt;ufixed&lt;/code&gt;. But can't assign to or from.&lt;/p&gt;

&lt;p&gt;We will discuss how to perfrom operation on these types and other types in another blog.&lt;br&gt;
Let's discuss the structure of a contract.&lt;/p&gt;
&lt;h2&gt;
  
  
  Structure of Contract
&lt;/h2&gt;

&lt;p&gt;If you are familiar with object oriented programming like &lt;code&gt;C++&lt;/code&gt;, &lt;code&gt;Java&lt;/code&gt; then you can find contract is similar like classes in these object oriented programming.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;contract SimpleStorage {
    // Code
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A contract can contain -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;State Variables&lt;/li&gt;
&lt;li&gt;Functions&lt;/li&gt;
&lt;li&gt;Function Modifiers&lt;/li&gt;
&lt;li&gt;Events&lt;/li&gt;
&lt;li&gt;Errors&lt;/li&gt;
&lt;li&gt;Struct Types&lt;/li&gt;
&lt;li&gt;Enum Types&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;State Variables are variables which permanently stored in contract. They store the state of that variable like&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;contract SimpleStorage {
    uint storeValue; // state variable
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Struct Types are user defined or custom defined types which includes several types.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;contract SimpleStorage {
    stuct Store {
        uint height;
        bool adult;
        address delegate;
        int number;
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Similar is Enum types but have finit set of constant values&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;contract SimpleStorage {
    enum Store {Created, Seated, Locked}
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We will discuss Function, Function Modifies, Events Errors in another blog.&lt;/p&gt;

</description>
      <category>web3</category>
      <category>solidity</category>
      <category>programming</category>
    </item>
    <item>
      <title>Basic Intro to Markdown or .md</title>
      <dc:creator>Virendra Khorwal</dc:creator>
      <pubDate>Tue, 12 Oct 2021 18:07:23 +0000</pubDate>
      <link>https://dev.to/virendrakhorwal/basic-intro-to-markdown-or-md-5cdf</link>
      <guid>https://dev.to/virendrakhorwal/basic-intro-to-markdown-or-md-5cdf</guid>
      <description>&lt;h3&gt;
  
  
  Hey there 👋, I am back with another interesting topic. Markdown.
&lt;/h3&gt;

&lt;p&gt;I will show you how to write markdown and where to write markdown.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Markdown?
&lt;/h2&gt;

&lt;p&gt;According to &lt;a href="https://www.markdownguide.org/getting-started/" rel="noopener noreferrer"&gt;www.markdownguide.org&lt;/a&gt;, it is a light weighted markup.&lt;br&gt;
No need to remember this. It is basically a language or more precisely a markup language which use to document your code on github or sometimes people use it for their mathematical work. &lt;/p&gt;

&lt;p&gt;The work we do with some word editor like ms-word or google docs, we can do with it.&lt;br&gt;
And remember different editor preview markdown differently.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where to write?
&lt;/h2&gt;

&lt;p&gt;If you are fan of vs-code like me then, there is an extension for it so, there whatever you write you can preview it. &lt;a href="https://marketplace.visualstudio.com/items?itemName=shd101wyy.markdown-preview-enhanced" rel="noopener noreferrer"&gt;Markdown Preview Enhanced&lt;/a&gt; &lt;br&gt;
If you don't use vs-code, no worry that's not end of world. You can use &lt;a href="https://stackedit.io/" rel="noopener noreferrer"&gt;StackEdit&lt;/a&gt; for online mode or &lt;a href="https://typora.io/" rel="noopener noreferrer"&gt;Typora&lt;/a&gt; for offline use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Basic Syntax of Markdown
&lt;/h2&gt;

&lt;h3&gt;
  
  
  For Heading
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;# Heading 1&lt;/span&gt;
&lt;span class="gu"&gt;## Heading 2&lt;/span&gt;
&lt;span class="gu"&gt;### Heading 3&lt;/span&gt;
&lt;span class="gu"&gt;#### Heading 4&lt;/span&gt;
&lt;span class="gu"&gt;##### Heading 5&lt;/span&gt;
&lt;span class="gu"&gt;###### Heading 6&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7388dkimnu2n9dj5kfpc.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7388dkimnu2n9dj5kfpc.jpg" alt="Heading" width="800" height="332"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Paragraph
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;This is Paragraph
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsjb8oh1oieel0y0ixxwi.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsjb8oh1oieel0y0ixxwi.jpg" alt="Paragraph" width="800" height="61"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Text Style
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;This is &lt;span class="gs"&gt;**Bold**&lt;/span&gt; text.
This is &lt;span class="ge"&gt;*italic*&lt;/span&gt; text.
This is &lt;span class="gs"&gt;***italic bold**&lt;/span&gt;&lt;span class="err"&gt;*&lt;/span&gt; text.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvw52bo2ffbe9yzu4nj7p.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvw52bo2ffbe9yzu4nj7p.jpg" alt="Text Style" width="800" height="121"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Line
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;***
---
&lt;/span&gt;&lt;span class="ge"&gt;__&lt;/span&gt;_
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh73r9ctnca2wlwrj4vlm.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh73r9ctnca2wlwrj4vlm.jpg" alt="Line" width="800" height="97"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Blockquotes
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gt"&gt;&amp;gt; Block Quotes&lt;/span&gt;
&lt;span class="gt"&gt;&amp;gt; &amp;gt; Nested Block Quote&lt;/span&gt;
&lt;span class="gt"&gt;&amp;gt; &amp;gt;&amp;gt; Another Nested Block Quote&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo2jdjygihph5bnx10omn.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo2jdjygihph5bnx10omn.jpg" alt="Blockquotes" width="800" height="88"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  For Images
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="p"&gt;![&lt;/span&gt;&lt;span class="nv"&gt;Alt Text&lt;/span&gt;&lt;span class="p"&gt;](&lt;/span&gt;&lt;span class="sx"&gt;Place&lt;/span&gt; image link here)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  For code
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx6qagra16i2m5z5pniiv.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx6qagra16i2m5z5pniiv.jpg" alt="Code" width="800" height="62"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>github</category>
      <category>markdown</category>
    </item>
    <item>
      <title>How to create awesome Github profile</title>
      <dc:creator>Virendra Khorwal</dc:creator>
      <pubDate>Tue, 05 Oct 2021 05:03:41 +0000</pubDate>
      <link>https://dev.to/virendrakhorwal/how-to-create-awesome-github-profile-1g4a</link>
      <guid>https://dev.to/virendrakhorwal/how-to-create-awesome-github-profile-1g4a</guid>
      <description>&lt;h3&gt;
  
  
  In this blog post I'm gonna show you how to create a amazing github profile. This feature is a secret feature provided by github.
&lt;/h3&gt;

&lt;p&gt;I will show you two methods to create github profile readme&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;By writing markdown self&lt;/li&gt;
&lt;li&gt;By using profile readme generator&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;First, create a new repository whose name is same as your username. As you can see in below image.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmkx5ogyir50nor64urso.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmkx5ogyir50nor64urso.jpg" alt="Create Repo" width="800" height="317"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Make this repository public and click on add readme.md and then  finally click on create repository.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqd4blqyxu8380buzwnbo.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqd4blqyxu8380buzwnbo.jpg" alt="Create Repo" width="800" height="608"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Method 1
&lt;/h2&gt;

&lt;p&gt;Now, you can see your profile readme is generated.&lt;br&gt;
Click on that highlighted button in image to edit this readme.&lt;br&gt;
Use markdown to edit this.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg5at1h0i9gvsy4wnh5i9.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg5at1h0i9gvsy4wnh5i9.jpg" alt="Edit Repo" width="800" height="268"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Method 2
&lt;/h2&gt;

&lt;p&gt;Visit the link &lt;a href="https://share.streamlit.io/rahulbanerjee26/githubaboutmegenerator/main/__init__.py" rel="noopener noreferrer"&gt;Here.&lt;/a&gt;&lt;br&gt;
Enter the information as asked. If you don't have some information like twitter account left it blank.&lt;br&gt;
At bottom click on generate Readme and you get your profile readme. Download it and paste the in the readme you have generated in first method.&lt;/p&gt;

&lt;p&gt;In next post I will show you how to write makrdown step by step. &lt;br&gt;
Stay tuned with me. If you have doubt ask me on comment section.&lt;/p&gt;

</description>
      <category>github</category>
      <category>markdown</category>
      <category>git</category>
    </item>
  </channel>
</rss>
