How to start your Open Source journey

How to start your Open Source journey

·

7 min read

How to start your Open Source journey

Hey there, amazing people!

Quick Disclaimer👇

If your goal is to just get into GSoC, LFX, MLH, or any other top-notch open-source program, that's fantastic! However, let's not limit ourselves solely to the endgame. Open source has a wealth of benefits beyond just competition goals.

In this blog post, I'll break down the complexities for complete beginners.

A little about me — I'm certainly no expert, but I was once in your shoes. Back in my freshman and sophomore years, I used to contribute to open source, and today, it's a game-changer in more ways than I can count. Currently, I work as a Developer Advocate Intern at Treblle. But my journey started with open source. I previously participated in GSoC as an Open Source Developer at Checkstyle, where I gained invaluable experience and contributed to a real-world project.

So, consider me your friendly guide, ready to simplify things for fellow beginners like us!

How to start your Open Source journey


Why Contribute to Open Source?

For Job Seekers:

Open source contributions offer a unique avenue for job seekers to showcase their skills and enhance their prospects. Rather than simply submitting a resume and waiting for a response, consider engaging with a company's open-source projects.

  1. Solve issues within the company's open-source SDK or related projects. This not only establishes your credibility but also shows your familiarity with the technology and the specific codebase.

  2. If the company lacks open source projects, take the initiative to build something relevant using their technology. This proactive approach not only adds value to your portfolio but also demonstrates initiative and innovation.
    E.g.: Building an SDK.

For Students:

For students, open-source contributions provide numerous benefits:

  1. Contribute to projects to connect with experienced engineers from major companies. This exposure allows you to learn coding practices and gain insights into industry standards.

  2. Quality contributions can lead to paid opportunities through programs like GSoC, LFX, MLH, and more. These programs offer stipends for working on meaningful projects.

  3. An open-source portfolio is invaluable, showcasing not just coding skills but also communication, time management, and collaboration abilities. It becomes a key factor for companies evaluating potential hires.

Other Benefits:

  1. Contributing to open source allows you to create tools and software that benefit the broader developer community. Whether it's fixing bugs, adding features, or improving documentation, every contribution enhances the quality of shared resources.

  2. Your contributions are visible to the global developer community, encouraging you to focus on writing clean, maintainable code. This transparency fosters a culture of excellence and learning.

Finding Your First Open-Source Project

Things to consider while finalizing a project

  • Is the project actively maintained and updated? Are the maintainers helpful?

  • Is it welcoming and supportive of newcomers?

  • Are there 'good first issues' to ease you in?

Get yourself familiar with the Project

Imagine joining a new team. To work well together, you'd first want to understand their goals and how they like things done, right? This is exactly what we're doing here!

Here's why getting to know the project matters:

  • We'll learn what the project is all about, its purpose, and how it's all put together. This helps us contribute in a way that aligns with the project's overall vision.

  • Following the project's established guidelines ensures our contributions are clear, easy to understand, and integrate seamlessly with the existing code. This saves everyone time and effort!

Think of it like this:

  • README.md: This is like the team handbook, telling us the project's goals, structure, and how things work.

  • Contributing guidelines: These are the team's preferred ways of working, like how to submit suggestions or fix bugs.

Join the community: Introduce yourself and connect with other contributors in the project's community (if there is one).

Example:

How to start your Open Source journey

Find the issues to get started.

How to start your Open Source journey

1. Filtering by Tags:

  • Think of tags like helpful signs pointing you in the right direction. They describe the type of issue, making it easier to find what you're looking for.

2. Finding Beginner-Friendly Issues:

  • Look for tags like good first issue or bug fix. These often indicate simpler issues, perfect for beginners like you.

3. Using the Search Bar:

  • The search bar is your friend!

  • Type in the specific tag you're interested in, and GitHub will show you all the matching issues.

4. Labels on the Issues Tab:

  • Once you're on a repository's Issues tab, look for the Labels section. Click on it to filter issues based on specific tags.

Remember: Every successful journey begins with a single step!

How to get a local copy of the project to your environment?

Imagine you're at a library, browsing a massive book filled with knowledge (the project's code and documentation). You can often just read and highlight interesting parts (fixing minor typos in docs). But sometimes, you might want to take notes in your notebook, add your insights, or even rewrite a section (fixing code bugs). That's where forking and cloning come in!

  • Running locally is like opening your copy and trying out the things you read or wrote. You ca n see how your changes work before sharing them with everyone.

    $ git clone github.com/YOUR-USERNAME/YOUR-REPOSITORY

Cloning is like taking your personal copy home. You can now work on it offline and make changes freely.

How to start your Open Source journey

Forking is like making a personal copy of the book from the library. You can now make changes to your copy without affecting the original.

How to start your Open Source journey

But do you always need to do this?

Not necessarily!

Think of it like borrowing a book from the library. If you just have a small suggestion for a missing comma or a clearer sentence, you can edit it directly on the library's copy (editing the project on GitHub itself). However, for bigger changes, like fixing bugs or adding new features, forking and cloning give you the freedom to experiment and test your ideas before sharing them with the community.

Remember: Every project has its own contributing guidelines, like house rules for borrowed books. Be sure to read them carefully before making any changes!

How to add your code to the project's code?

Have you ever worked on a group project where everyone edits the same document, leading to confusion? Thankfully, software development has a smarter solution: Pull Requests (PRs).

Imagine PRs as proposals for improvements. You make changes to the code on your own "playground" (local environment), then submit a PR to the main project, proposing your modifications for review and integration.

Here's the technical story of creating a PR on GitHub:

  1. Edit the code locally, following the project's coding guidelines.

  2. Briefly explain your modifications and why they're beneficial to the project.

  3. Ask developers in the project to review your code and provide feedback.

On GitHub, navigate to your forked repository and initiate a PR.

How to start your Open Source journey

Upload your local commits back to your forked repository on GitHub.

git push origin feature/your-changes

Save your edits with a clear and concise message describing your modifications.

git add . git commit -m "Add/update feature: your-changes"

This creates a separate branch within your project to isolate your changes from the main codebase.

git checkout -b feature/your-changes

**Remember:**Address any feedback and iterate on your PR until it's ready to be merged (integrated) into the main project. Don't be afraid to ask for help: The people who maintain open-source projects are usually kind and welcoming. If you're unsure about something, just ask! They're happy to help newcomers get started.

The open-source community is here to support you on your journey.


Awesome Resources 📃

  1. Learn Git and GitHub

  2. First open-source contribution

  3. GitHub Docs

  4. Some good podcasts on the open-source cafe playlist to learn about organizations. Check out GSoC Organizations and MLH Experiences!

Stay tuned for the next blog where we will discuss how you can contribute to Treblle SDK to start your open source journey!

Â