<?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>Forem: Ruchi Pakhle</title>
    <description>The latest articles on Forem by Ruchi Pakhle (@ruchip16).</description>
    <link>https://forem.com/ruchip16</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%2F734274%2F82f730e9-4830-4b4c-bd53-2d603ba08514.png</url>
      <title>Forem: Ruchi Pakhle</title>
      <link>https://forem.com/ruchip16</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/ruchip16"/>
    <language>en</language>
    <item>
      <title>How to write unit-tests as a beginner in python</title>
      <dc:creator>Ruchi Pakhle</dc:creator>
      <pubDate>Sat, 25 Mar 2023 14:09:52 +0000</pubDate>
      <link>https://forem.com/ruchip16/how-to-write-unit-tests-as-a-beginner-in-python-im4</link>
      <guid>https://forem.com/ruchip16/how-to-write-unit-tests-as-a-beginner-in-python-im4</guid>
      <description>&lt;p&gt;As a beginner in Python, writing unit tests can seem a bit overwhelming, but it's an essential skill to learn inorder to become a proficient programmer. Unit tests are used to ensure that our code is functioning as expected and can help identify and prevent bugs early in the development process. &lt;/p&gt;

&lt;p&gt;Here are some steps that I followed while writing unit tests in Python:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Understanding the basic concept of unit tests&lt;/strong&gt;:&lt;br&gt;
Unit tests are written to test individual components or functions of a program, independent of the rest of the system. The goal is to ensure that each unit of code works as expected, and the code as a whole works correctly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Choosing a testing framework:&lt;/strong&gt;&lt;br&gt;
Python has several testing frameworks to choose from, such as Pytest, Unittest, and Nose. Pick one that you feel comfortable with, and start exploring.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Create a separate test file:&lt;/strong&gt;&lt;br&gt;
Create a new file and name it with &lt;em&gt;"test&lt;/em&gt;"_ prefix like, for example, &lt;em&gt;"test_math_functions.py."&lt;/em&gt; This file should contain all the test functions for the code that w want to test. Make sure that you are not mixing your production code with your test code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Write your first test function:&lt;/strong&gt;&lt;br&gt;
A test function should be named with a prefix of "test_" followed by the function name that you want to test. The test function should then include an assert statement that checks if the function's output matches the expected output.&lt;/p&gt;

&lt;p&gt;For example, let's say we want to test the following function:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;def add(x, y):&lt;br&gt;
    return x + y&lt;/code&gt;&lt;br&gt;
You can write a test function like this:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;def test_add():&lt;br&gt;
    assert add(2, 3) == 5&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Run your tests:&lt;/strong&gt;&lt;br&gt;
Use your testing framework to run your tests and check if they pass or fail. If the test passes, you will see a green output, and if it fails, you will see a red output. Fix the code until all tests pass.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Add more test functions:&lt;/strong&gt;&lt;br&gt;
Write more test functions to cover different scenarios and inputs. For example, you can test negative numbers, decimal numbers, or edge cases.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Refactor your code:&lt;/strong&gt;&lt;br&gt;
Refactor your code and run your tests again. Make sure that your tests still pass after refactoring.&lt;/p&gt;

&lt;p&gt;In short, unit tests are essential for ensuring code quality, and learning how to write them is a valuable skill for any developer.&lt;/p&gt;

</description>
      <category>python</category>
      <category>beginners</category>
      <category>unittesting</category>
    </item>
    <item>
      <title>100 Days of DSA</title>
      <dc:creator>Ruchi Pakhle</dc:creator>
      <pubDate>Wed, 21 Sep 2022 08:00:39 +0000</pubDate>
      <link>https://forem.com/ruchip16/100-days-of-dsa-353f</link>
      <guid>https://forem.com/ruchip16/100-days-of-dsa-353f</guid>
      <description>&lt;p&gt;Starting off my journey of mastering &lt;strong&gt;data-structures&lt;/strong&gt; &amp;amp; &lt;strong&gt;algorithms&lt;/strong&gt;  with this &lt;em&gt;&lt;strong&gt;#100Daysofdsa&lt;/strong&gt;&lt;/em&gt; which would help me remain consistent in my journey and also would be sharing small snippets or blogs from it to help me revise the topics and also get clarity.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Target for this month:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Stacks&lt;/li&gt;
&lt;li&gt;Queues&lt;/li&gt;
&lt;li&gt;LinkedLists&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>HOW TO BUILD YOUR ONLINE COMMUNITY?</title>
      <dc:creator>Ruchi Pakhle</dc:creator>
      <pubDate>Fri, 15 Apr 2022 04:28:51 +0000</pubDate>
      <link>https://forem.com/ruchip16/how-to-build-your-online-community-1m81</link>
      <guid>https://forem.com/ruchip16/how-to-build-your-online-community-1m81</guid>
      <description>&lt;p&gt;Due to the Covid-19 pandemic, the work mode of all generations has been shifted to offline. Honestly, when it started, we all were being so productive and utilizing our time to learn something or the other or just find our passion. The pandemic created whole new havoc among the youngsters to follow their passion and get recognized. But one completely new thing, which we haven’t paid attention to before was building our online community. Considering the current scenario, it has become a really important thing. Through our online community presence, we can get a chance to land in our dream company. Now you must have a question popping up in your mind that &lt;strong&gt;where &amp;amp; how to build my online community?&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;There are platforms like &lt;strong&gt;LinkedIn&lt;/strong&gt; and &lt;strong&gt;Twitter&lt;/strong&gt; where recruiters and employees are mostly there. For people like me who are in their undergraduate years, building a strong profile on LinkedIn can fetch us opportunities to land in our dream company, having so much time in our hands we can build the required skillset and become potential candidates to recruiters. &lt;strong&gt;LinkedIn has the power to connect us directly with the recruiter&lt;/strong&gt;s and employees of the company and we can ask their doubts directly to them. We need to be aware of the opportunities and keep an eye on them because most people miss out on opportunities just because being unaware of them. During this pandemic like many people, I wasn’t aware of the special opportunities provided by the tech giants for women in the tech industry. Tech giants have introduced diversity programs, mentorship activities, coding programs, and hackathons to increase the ratio of women. Hence I created a list of all these opportunities and then look up to them frequently. You can also remain updated about these opportunities on LinkedIn as many of the employees or recruiters post often about such programs when the applications have rolled out. Also, LinkedIn features like you must turn on the &lt;strong&gt;visibility of your profile&lt;/strong&gt; to get noticed by the recruiters, and having &lt;strong&gt;keywords in your profile&lt;/strong&gt; can make you stand out from other candidates as these are the things people generally ignore or aren’t aware of beforehand. You can pay attention to these things and can increase your chances to get noticed by the recruiters.&lt;/p&gt;

&lt;p&gt;Are there any positive aspects of the online community?&lt;/p&gt;

&lt;p&gt;Well, there are many positive aspects to building an online community. It can benefit in ways that we could not even think of. Firstly, we get to &lt;strong&gt;collaborate socially&lt;/strong&gt; with like-minded people &amp;amp; developers which can help us grow exponentially. Having a peer group to discuss our doubts can make our minds think in the right direction, it helps individuals to go beyond their comfort zone as it generates healthy competition within us which helps to push our limits and hustle harder. Second, being a part of the online community can &lt;strong&gt;keep our reputation &amp;amp; retention&lt;/strong&gt; and give access to many opportunities we couldn’t think of. One important factor that has a huge part in the community’s success is &lt;strong&gt;transparency and a positive attitude&lt;/strong&gt; to help each other solve doubts &amp;amp; uplift ourselves and the people in our community. Lastly, when we join relevant communities and actively participate in them, unknowingly &lt;strong&gt;helps to build our brand&lt;/strong&gt; across the globe.&lt;/p&gt;

&lt;p&gt;Now, you must have thought that &lt;strong&gt;How do I find my community?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The answer is simple, you don’t have to spend time in searching communities, you just need to discover your passion and find ways to make it follow you and the rest will automatically happen in its place. Let me explain to you this when we are passionate about anything we anyhow find time to work harder for it and search for opportunities to enhance them so while searching you will find relevant people who can guide you in the right direction which can help you find your community and follow your passion.&lt;/p&gt;

&lt;p&gt;This pandemic is a great learning curve for us, you can develop your hobbies and recognize your passion. This is a great chance to explore different things and see if you develop any interest in them. Because as you follow your passion and instincts, you will build a great community and help other peers learn and upskill themselves. But before building or being a part of that community, make sure that you will be able to contribute actively because there is absolutely no point in building a passive community. It cannot benefit you in any way.&lt;/p&gt;

&lt;p&gt;Apart from LinkedIn, you can create your community online by being a part of the student programs that are mainly focused on building online communities in India and around the globe. I have mentioned below some of these programs which focuses on building online communities:&lt;/p&gt;

&lt;p&gt;1] &lt;strong&gt;Duolingo community&lt;/strong&gt; – Duolingo provides an online language-learning tool for making a team of less than 40 and focuses on the exponential growth of the team. The team gets volunteers who spread the word about their language courses.&lt;/p&gt;

&lt;p&gt;2] &lt;strong&gt;Facebook Developer Circle&lt;/strong&gt; – Developer Circles is a community-driven program that’s free to join and open to any developer. Each Developer Circle is led by members of the local community who act as leads for the circle, this includes working with Facebook to establish your Developer Circle, growing an active, engaged Facebook community, and hosting regular meetups. You can apply &lt;a href="https://developers.facebook.com/developercircles/"&gt;here.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3] &lt;strong&gt;Microsoft Learn Student Ambassador&lt;/strong&gt; – Focuses on building community to amplify impact and bring together peers to learn new skills and solve real-world problems worldwide. You can apply &lt;a href="https://studentambassadors.microsoft.com/en-US/"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4] &lt;strong&gt;Deep Learning AI Ambassador&lt;/strong&gt; – Helps bring together the global AI community by representing your city’s deep learners. Being an AI ambassador, you will need to find different AI hubs in your city and inspire your local community to break into AI. You can apply &lt;a href="https://docs.google.com/forms/d/e/1FAIpQLSdyztghL5bLnktJLP6YG2GU65E8IEpGR_o937CxEwxdemNcHA/viewform"&gt;here&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;5] &lt;strong&gt;HackerEarth Campus Evangelist&lt;/strong&gt; – Being Campus Ambassador at HackerEarth, you have to spread the word in your College by arranging coding hackathons. You can apply &lt;a href="https://docs.google.com/forms/d/e/1FAIpQLSdt26yVgUuRTo_U43OFCT1Sx1-TvkW_GOlauH-FTKldnVQ5tg/viewform"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Discussing all the relevant points related to building an online community, hope all things are clear to you and apply to the student community programs that can benefit you in large ways.&lt;/p&gt;

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