<?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: Prashant Sengar</title>
    <description>The latest articles on DEV Community by Prashant Sengar (@prashantsengar).</description>
    <link>https://dev.to/prashantsengar</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%2F148555%2Fa6c1998b-b36a-4931-84cc-88abde16d514.JPG</url>
      <title>DEV Community: Prashant Sengar</title>
      <link>https://dev.to/prashantsengar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/prashantsengar"/>
    <language>en</language>
    <item>
      <title>[Recommendation] How do I get started learning blockchain?</title>
      <dc:creator>Prashant Sengar</dc:creator>
      <pubDate>Tue, 14 Jan 2020 16:48:15 +0000</pubDate>
      <link>https://dev.to/prashantsengar/recommendation-how-do-i-get-started-learning-blockchain-5f00</link>
      <guid>https://dev.to/prashantsengar/recommendation-how-do-i-get-started-learning-blockchain-5f00</guid>
      <description>&lt;p&gt;Hello everyone! I am a CS undergraduate and want to learn blockchain. How should I start? Can you please recommend some good sources like courses and tutorials to start learning?&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>courses</category>
      <category>tutorials</category>
      <category>discuss</category>
    </item>
    <item>
      <title>[Discuss] How to get started with docker?</title>
      <dc:creator>Prashant Sengar</dc:creator>
      <pubDate>Fri, 25 Oct 2019 18:02:19 +0000</pubDate>
      <link>https://dev.to/prashantsengar/discuss-how-to-get-started-with-docker-587d</link>
      <guid>https://dev.to/prashantsengar/discuss-how-to-get-started-with-docker-587d</guid>
      <description>&lt;p&gt;Here is a question to the community ― how do I get started with docker? I want to learn everything about it, what it really is, what does it achieve, how to work with it. Can you point me to some good resources?&lt;/p&gt;

</description>
      <category>docker</category>
      <category>programming</category>
      <category>python</category>
    </item>
    <item>
      <title>How I published my first pip package</title>
      <dc:creator>Prashant Sengar</dc:creator>
      <pubDate>Thu, 23 May 2019 14:13:00 +0000</pubDate>
      <link>https://dev.to/prashantsengar/how-i-published-my-first-pip-package-4d5d</link>
      <guid>https://dev.to/prashantsengar/how-i-published-my-first-pip-package-4d5d</guid>
      <description>&lt;p&gt;This is my first article on &lt;a href="https://dev.to"&gt;DEV&lt;/a&gt; and first article related to programming.&lt;br&gt;
I am a programming student and I am full of joy today as I published my first &lt;a href="https://github.com/prashantsengar/RedPy"&gt;package&lt;/a&gt; on &lt;a href="https://pypi.org/project/RedPy"&gt;Pypi&lt;/a&gt;. &lt;br&gt;
This article will contain the things that I did to complete the feat.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Writing the code:
&lt;/h2&gt;

&lt;p&gt;My package is a Python wrapper to download images from Reddit. It consists of a class that consists of a method that takes the input - an user-agent, subreddit name, and other inputs. &lt;br&gt;
To write the code to be uploaded as a package, you need to modularize it well. Each line of code should be inside a function or a class.&lt;br&gt;
Writing objective of the program first will help in the process. Drawing flowcharts and/or for writing an algorithm will help as well. &lt;br&gt;
Follow the &lt;a href="https://www.python.org/dev/peps/pep-0008/"&gt;PEP-8&lt;/a&gt; guidelines in your code. &lt;/p&gt;

&lt;h2&gt;
  
  
  2. Testing the code:
&lt;/h2&gt;

&lt;p&gt;After you have written the code, a dry run should be the first step to figure out if there is a bug in your code. &lt;/p&gt;

&lt;p&gt;If you do not find any bug in the dry run, then test your code. &lt;br&gt;
Write a small script that imports your module and uses all the functions in it. &lt;/p&gt;

&lt;p&gt;If you do not find any bug in the test, voila, move on to the next step. &lt;br&gt;
If you find a bug, track it down and remove it. &lt;/p&gt;

&lt;h2&gt;
  
  
  3. Code review &lt;em&gt;(optional)&lt;/em&gt;:
&lt;/h2&gt;

&lt;p&gt;Although this step is optional, it is the most important one. Getting your code reviewed by other programmers is the best thing you can do. Other people can find bugs or bad programming practices in your code better than you can do. &lt;br&gt;
Hence, it is highly recommended to do this step. &lt;br&gt;
I learned a lot in this process and you will too. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Places where you can get your code reviewed-&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://codereview.stackexchange.com"&gt;codereview.stackexchange.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://reddit.com/r/python"&gt;r/python&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://reddit.com/r/learnpython"&gt;r/learnpython&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. Setting up the package for uploading and uploading the package
&lt;/h2&gt;

&lt;p&gt;Writing a good Readme and uploading the code to Github should be the first step before uploading&lt;br&gt;
There's a whole &lt;a href="https://packaging.python.org/tutorials/packaging-projects"&gt;documentation&lt;/a&gt; of getting your package ready for uploading on PyPi but it misses a lot of details. &lt;br&gt;
I would recommend reading &lt;a href="https://medium.com/@joel.barmettler/how-to-upload-your-python-package-to-pypi-65edc5fe9c56"&gt;this article&lt;/a&gt; by &lt;a href="https://medium.com/@joel.barmettler"&gt;joelbarmettlerUZH&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Your package is finally uploaded to PyPi and it is available for users to use. Spread the word! &lt;/p&gt;

&lt;p&gt;Here is the link to the Github repo of my package - &lt;a href="https://github.com/prashantsengar/RedPy"&gt;https://github.com/prashantsengar/RedPy&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>pip</category>
      <category>pypi</category>
      <category>github</category>
    </item>
  </channel>
</rss>
