<?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: RIshi Dutt Shukla</title>
    <description>The latest articles on DEV Community by RIshi Dutt Shukla (@rduttshukla).</description>
    <link>https://dev.to/rduttshukla</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%2F254511%2F7685b481-e0ee-446f-a547-4cef43c06620.png</url>
      <title>DEV Community: RIshi Dutt Shukla</title>
      <link>https://dev.to/rduttshukla</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rduttshukla"/>
    <language>en</language>
    <item>
      <title>Importance of Licensing your code &amp; choosing a license on GitHub</title>
      <dc:creator>RIshi Dutt Shukla</dc:creator>
      <pubDate>Thu, 08 Oct 2020 05:02:23 +0000</pubDate>
      <link>https://dev.to/rduttshukla/importance-of-licensing-your-code-choosing-a-license-on-github-5hip</link>
      <guid>https://dev.to/rduttshukla/importance-of-licensing-your-code-choosing-a-license-on-github-5hip</guid>
      <description>&lt;p&gt;Hey there, I hope you're doing well! 😊&lt;/p&gt;

&lt;p&gt;I see a lot of people passionate about open source and impressed by the idea that you can create software with anyone in the world. But I see them doing one thing wrong every time. Which is - not licensing their code, and then expecting contribution. &lt;/p&gt;

&lt;p&gt;So in this post I'll tell you just that. I will tell you about &lt;strong&gt;licensing your code and why you should license your code.&lt;/strong&gt; In a closed source project, you do licensing. But in an open-source project, it is important to license your code as well. &lt;/p&gt;

&lt;h1&gt;
  
  
  What is a license anyway?
&lt;/h1&gt;

&lt;p&gt;A license is a way of telling others what they can do and what they can't do with your code.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does it mean when your code is not licensed
&lt;/h2&gt;

&lt;p&gt;When you do not license your code on a code host like GitHub then it means that &lt;strong&gt;no one has permission to use and/or modify your code.&lt;/strong&gt; You want it to be open and attract contribution when you're posting your code on GitHub, no? So adding a license is a must.&lt;/p&gt;

&lt;h1&gt;
  
  
  How do I get started with licensing?
&lt;/h1&gt;

&lt;p&gt;You can directly head to &lt;a href="https://choosealicense.com/" rel="noopener noreferrer"&gt;Choose a License&lt;/a&gt; for an awesome intro to licensing your code. They will guide you in choosing your license, according to your use case.&lt;/p&gt;

&lt;h1&gt;
  
  
  What are the many types of licensing available
&lt;/h1&gt;

&lt;p&gt;There are many kinds of licensing available&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;MIT license&lt;/li&gt;
&lt;li&gt;Apache License&lt;/li&gt;
&lt;li&gt;GNU GPL v3
and so on.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  How do you choose a license on GitHub?
&lt;/h1&gt;

&lt;p&gt;GitHub has made it more easier for us to add a license. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Head to the repository in which you want to add a license. And then click on "Add file" &amp;gt; "Create a new file"
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fefpueesgmiygk7ycz890.PNG" alt="Add file button"&gt;
&lt;/li&gt;
&lt;li&gt;On the next screen that appears, type "license" or "LICENSE" in the file name text box. On the right-hand side, you will see the "choose a license template" button.
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fibvbhaa0xxefhahm5j8r.jpg" alt="Filling "&gt;
&lt;/li&gt;
&lt;li&gt;Click on it without any delay if you want to choose from the pre-defined licenses from there!
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ft8it058th5mrhb9vs8o1.png" alt="Licenses list"&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Choose any one of the licese and GitHub will show you the license and its simplified format. Choose according to your interest. For most projects, a MIT license will do.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Don't forget to commit to add your license after doing that.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now you're all set up by making your repository contributions ready! 🎉&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;So, in this post you learned the importance of adding a license and that a project is even not open source if it has no license. Don't forget to visit &lt;a href="https://choosealicense.com/" rel="noopener noreferrer"&gt;Choose a License&lt;/a&gt; for more details.&lt;/p&gt;

&lt;p&gt;I am new to the DEV community, and I got to know about DEV Community from my junior in college, Ankush Singh Gandhi. Go ahead and check out his &lt;a href="https://dev.to/ankushsinghgandhi"&gt;blog&lt;/a&gt; for interesting posts like this on open source! &lt;/p&gt;

</description>
      <category>opensource</category>
    </item>
  </channel>
</rss>
