Open Source is fun - no need to be shy
Tags: events, internal, aws, cloud
Published: 2022-03-25 10:54:37

Written by Manuel Vogel and Jan Katins

Last week our company-wide open space format Open Friday took place and one of the sessions was called Open source is fun, no need to be shy hosted by [Jan Katins](https://kreuzwerker.de/profile/jan-katins "Jan Katins"), [John Nguyen](https://kreuzwerker.de/profile/john-long-nguyen "John Nguyen"), [Manuel Vogel](https://kreuzwerker.de/profile/manuel-vogel "Manuel Vogel"), [Martin Müller](https://kreuzwerker.de/profile/martin-mueller "Martin Müller") and [Martin Wentzel](https://kreuzwerker.de/profile/martin-wentzel "Martin Wentzel"). This blog post presents the outcome of the session: After giving an introduction about open source it describes different ways to contribute to open source projects and shows some examples from our team members. We explain why we believe that contributing to open source is easy and fun and share what we learned along the way.

---

If you are wondering what the Open Friday is, it is an Open Space format organized by the kreuzwerker Culture Club that takes place every other month in which all kreuzwerkers are invited to share knowledge, collaborate on new ideas and discuss topics of interest. Anyone can submit a session and fellow kreuzwerkers can choose to join them. Sessions usually cover quite a broad range of topics. This time in addition to the *Open source is fun, no need to be shy* session, the following sessions took place: *Gender equality AMA, Playing with Story Mapping - a hands-on workshop on Miro* and a presentation plus demo on *Artificial intelligence: letting computers solve problems with neural networks*. 

---

But before we dive deeper into why open source is fun, one disclaimer beforehand: __Contributing to open source is optional!__

![Emma Bostian Twitter](//images.ctfassets.net/hqu2g0tau160/6QDa5nc9m0AI8dL9gjT9fh/a2ba5f8ba3669594133af62ac360336a/nr1.jpg)
*[https://twitter.com/EmmaBostian/status/1484117024611749894](https://twitter.com/EmmaBostian/status/1484117024611749894)*

<br>

While some of us find it worthwhile to contribute to open source, both for professional reasons and for private ones, we strongly believe that it is purely optional. This article should not be taken as a suggestion that there is any kind of obligation or requirements to do so. We are aware that most people who contribute to open source projects do so in their spare time, which may be very limited depending on life circumstances. And that there are a variety of other reasons not to do it. Thus, we just want to share our own personal joy and experiences with it. And if someone feels encouraged after reading this - great! If not - great as well!

## Introduction

### What is Open Source...

> *__Open source__ is source code that is made freely available for possible modification and redistribution. [...] The __open-source model__ is a decentralized software development model that encourages open collaboration.* [Wikipedia](https://en.wikipedia.org/wiki/Open_source)

For us personally it boils down to
- I am allowed to see and modify the source code
- I collaborate (mostly with strangers) on platforms such as GitHub or [GitLab](https://kreuzwerker.de/partner/gitlab)
- I am able to use the software without a license cost, at least for private use. (Which doesn’t mean it’s free: I still have the costs to set up and use it. And of course, I might still choose to support the development of an open source product by [sponsoring it](https://github.com/orgs/kreuzwerker/sponsoring). I also need to be aware of the license and its implications.)

### ... and why would you contribute?

1. __Get rid of annoying bugs in a sustainable way__ - Since the world is running on open source™, most of us at some point during our professional career encounter a bug in our code base that is caused by a bug in an open source library. Sometimes it might be easier to implement a workaround in your own code base that solves the issue, rather than fixing the actual cause in the open source library. Sometimes it is impossible to do so or very cumbersome. In most cases though, the solution almost never leads to a simpler overall[^1] solution and leads to more maintenance effort and headaches down the line.
2. __Finally get a feature you want__ - We bet everyone at some point has been in desperate need of a certain feature in a piece of software, which they were using that just did not exist. By implementing it yourself right where it belongs, you might get it much sooner than waiting for the core maintainers to provide it. Additionally - this of course is a rather controversial topic - the maintenance costs get at least partially taken up by the community.
3. __Learn something new__ - A lot of open source projects have an amazing quality level and a super supportive and friendly community. Different architectures and programming paradigms, automated tests on multiple platforms, documentation, best practices of how to set up projects: there are a lot of open source projects that excel at such aspects from which you can learn. And of course, with open source you are not limited to your work stack, but you can contribute to projects in new languages and frameworks. Fixing a super small bug in a huge code base in a language that you are not familiar with yet is a great way to start building knowledge in it. Usually you will receive constructive and detailed feedback, which will improve the feature but also your own skills.
4. __Give back__ - We are all standing on the shoulders of giants. We all rely on the work done by others. We are likely all using some piece of software that someone developed in their spare time. Contributing to open source is a way to give back to this community. Of course - this is also a controversial topic - a lot of open source projects are backed by companies that don’t need this. And a lot of companies (all?) use open source projects maintained by individuals in their spare time for business critical operations without paying for them. So this is definitely a deeply personal decision to make.
5. And last but not least: __The warm fuzzy feeling when you accomplished something and someone even thanked you for it :-)__

### … and what do you need to contribute?

Contributing to open source is not much different to what you do at work: explaining how to use an app on Confluence? If you do it on platforms like Stack Overflow, you are contributing your knowledge to the community. Opening a ticket in the internal JIRA board is essentially the same as creating an issue in GitHub: have a problem, login to the ticketing system, search for already existing issues, open a new issue, describe the problem so that it is reproducible, done. Or develop a feature in a git branch, get it reviewed and finally get it merged? The same process applies to open source projects, just that the whole process happens in the open. So, if you’ve ever done any of these, you already have the knowledge and skills to contribute to open source projects!

### … and how do you contribute?

There are lots of ways to contribute to open source software and actually not all of them involve coding. Answering questions on GitHub or Stack Overflow, raising issues or simply just adding thumbs-up or +1 reactions to existing issues is one way of contributing that doesn't even require looking at the code. A great way to get started with a first pull request is by fixing a typo or extending existing documentation. If you are familiar with a certain codebase or product, reviewing or testing pull requests submitted by others might also be a welcome contribution. And then of course there is the actual coding: From fixing bugs to porting code to a new OS to setting up CI/CD pipelines, refactoring parts of the code base, improving test automation, introducing new features to taking over as maintainer of a piece of software used by millions of people around the world. 

In the next section, we want to share some of our own examples of contributing, followed by what we learned.

## Contribution Examples

The examples shown in this section should show the breadth of what is possible when contributing to open source, and the positive outcomes and warm fuzzy feeling you can get by doing so.

### Example #1: Reporting a Bug in pandas

While working on an early version of [pandas](https://github.com/pandas-dev/pandas), our colleague [Jan Katins](https://kreuzwerker.de/profile/jan-katins) found that it was raising an exception on data, which looked like it should actually work fine. He boiled it down to a nice short reproducible example and sent this as [an issue](https://github.com/pandas-dev/pandas/issues/1761) to the GitHub repo of pandas. The maintainer committed [a fix](https://github.com/pandas-dev/pandas/commit/4083689b8058c8de3f59ec297e1b1580ec993eeb) on the same day, which [got released](https://github.com/pandas-dev/pandas/releases/tag/v0.9.0) two months later in pandas 0.9.0.

Thus, by simply opening this ticket, not only did Jan’s own life improve within only two months, but in all likelihood, so did that of a lot of other developers who had never faced this issue before.

![DataFrame.corr throws error on simple data #1761](//images.ctfassets.net/hqu2g0tau160/7GjChOVVdFe5bVgB1vueJu/59169270787eaa6b4880bf57e0a2ab14/nr2.jpg)

### Example #2: Add Missing Parts to Spring Cloud Documentation

Our colleague [Guido Lena Cota](https://kreuzwerker.de/profile/guido-lenacota) was working on a project using  [Spring Cloud Gateway](https://github.com/spring-cloud/spring-cloud-gateway) and together with his team mates did a lot of code scavenging to understand the [Actuator API](https://docs.spring.io/spring-cloud-gateway/docs/current/reference/html/#actuator-api). After they gained enough understanding of how everything worked, they took the time [to document their findings](https://github.com/spring-cloud/spring-cloud-gateway/pull/634) in the official documentation, helping others save time in the future.

### Example #3: Fixing Formatting in AWS Documentation

While studying the[ AWS CodeBuild documentation on Github webhook events](https://docs.aws.amazon.com/codebuild/latest/userguide/github-webhook.html) documentation, our colleague [Manuel Vogel](https://kreuzwerker.de/profile/manuel-vogel) realized that the formatting in one of the code samples was slightly broken. He was able to fix this and improve the usability of the documentation simply by clicking the [Edit this page on GitHub](https://github.com/awsdocs/aws-codebuild-user-guide/tree/main/doc_source/github-webhook.md) link in the Did this page help you? box, applying a one-line change directly in the GitHub UI and submitting the change as [a pull request](https://github.com/awsdocs/aws-codebuild-user-guide/pull/87) which was merged one day later.

![aws documentation](//images.ctfassets.net/hqu2g0tau160/2T3aMPHpxDt5uSbikpJVM0/54b65379b34ca9296a83d2643505ed88/nr3.jpg)
![remove dash](//images.ctfassets.net/hqu2g0tau160/5hhalTux0j9SSxPN3z3Xjg/ef14df1b0cbbc200a610ed1a867a2c92/nr4.jpg)

### Example #4: Fix A Bug In AWS SDK For Java Documentation

Similarly, our colleague [Frank Wesemann](https://kreuzwerker.de/profile/frank-wesemann) came across a bug in the [AWS SDK for Java 2.0 documentation](https://github.com/aws/aws-sdk-java-v2/blob/master/services-custom/dynamodb-enhanced/README.md), because it took him a while to realize that it was actually an issue in the documentation and not in his thinking, he submitted [a pull request](https://github.com/aws/aws-sdk-java-v2/pull/2184) with a fix which was merged a couple of days later - saving future readers from going through the same cycle.

![fixtypo](//images.ctfassets.net/hqu2g0tau160/3GdWUIE9xgWtNUZDwk8dyt/7a976094cea1ef9f9da0c6e7561f50ba/nr5.jpg)

### Example #5: Fix An Open Issue in Spring Boot and Gain Deeper Understanding of The Framework (And a T-Shirt on Top)

While looking for issues to work on during [the annual Hacktoberfest event](https://kreuzwerker.de/post/hacktoberfest-at-kreuzwerker), our colleague [Kristine Jetzke](https://kreuzwerker.de/profile/kristine-jetzke) found some smaller open issues in the [Spring Boot framework](https://github.com/spring-projects/spring-boot). One [of them](https://github.com/spring-projects/spring-boot/issues/9299) asked for extending the log message during application startup. While this sounded trivial at first, it took quite some time to clone the whole repo, to get everything running locally and understand how the project was structured, which classes were relevant for the change and how the testing works. Once this was done though, implementing the actual change was a piece of cake and [the pull request](https://github.com/spring-projects/spring-boot/pull/10544) was merged within a month and included in the next release. And it for sure feels good to see one’s own contribution every time an application starts ;-)

### Example #6: Add a Feature to Starship and Learn Rust

Jan - whom we previously mentioned already - uses [Starship](https://starship.rs/), a CLI theme displaying all kinds of context information. In some cases it took a long time to display the command line prompt. It didn’t have an easy way to figure out which parts were responsible. Jan figured it wouldn’t be too hard to add something which gave him this information. Building it  turned out to involve learning a bit of Rust... Mainly trying to understand other parts of the code, copy and paste and make it work. And getting reviews on [his pull request](https://github.com/starship/starship/pull/1629) and improving what he learned. Learning Rust in turn came in handy a short time later in his professional life.

![6](//images.ctfassets.net/hqu2g0tau160/4EC1AdJKYMovGlvTIH9xED/d1922d7dbe8ff4b6089711aa4cc5491b/nr6.jpg)

### Example #7: Add A Missing Feature to Spring Data Elasticsearch and Deliver Project on Time

While rewriting a service for one of our clients, our colleague [Peer Müller](https://kreuzwerker.de/profile/peer-mueller) wanted to introduce the Spring Data Elasticsearch library in order to reduce maintenance effort and because it fit very well into the reactive stack that was being used in the application. One of the Elasticsearch queries that had to be migrated was using the rescore functionality, which the library did not support at that time. He implemented this missing feature and after several review rounds of [his pull request](https://github.com/spring-projects/spring-data-elasticsearch/pull/1688) with the project lead, it was merged, ensuring a successful migration. 

![7](//images.ctfassets.net/hqu2g0tau160/6Cer1Pr2Pl8ZZAZNoIB3dV/3d3094e2f6e6bdfde851761bf37690dd/1.jpg)

### Example #8: Make Your Own Work Publicly Available

Several of our team members, among them [Martin Wentzel](https://kreuzwerker.de/profile/martin-wentzel) or [Martin Müller](https://kreuzwerker.de/profile/martin-mueller), developed tools because of their own pain points and then open sourced them. Some examples include:
- [m1-terraform-provider-helper](https://github.com/kreuzwerker/m1-terraform-provider-helper) 
- [terraform-docker-provider](https://github.com/kreuzwerker/terraform-provider-docker) (used in the [official terraform tutorials](https://learn.hashicorp.com/tutorials/terraform/install-cli?in=terraform/docker-get-started))
- [node-ssh-forward](https://github.com/Stocard/node-ssh-forward)
- [cdk-prowler](https://github.com/mmuller88/cdk-prowler)
- [elastic-training-repo](https://github.com/glenacota/elastic-training-repo)
- our [template](https://github.com/kreuzwerker/oss-project-template) for open-source projects

## Lessons Learned

The examples above mostly show the nice and satisfying aspects of contributing to open source and, of course, not everything works out all the time. There are also a lot of examples where we spent time on something that at least felt “wasted” afterwards. And unluckily, sometimes our mistakes took not only our own time but that of others as well (sorry!). In this section, we want to share some of our learnings from those mistakes.

### Example #1: Open a Bug That Is Actually Not a Bug

Our colleague [John Nguyen](https://kreuzwerker.de/profile/john-long-nguyen)’s first open source contribution (thanks for sharing this with a broader audience, John) was [a bug report](https://github.com/awsdocs/aws-doc-sdk-examples/issues/830) that turned out not to be a bug at all, but just a configuration error on his side.

![bug report](//images.ctfassets.net/hqu2g0tau160/5B0dIwgKPBGoyPYAVEeG9R/18d81f115ebefb23bc23402eda77e486/2.jpg)

Jan has a similar story: His first open source contribution was “a plain stupid PR” (his words) where he only later realized that he should have tested his change properly. He embarrassedly closed the PR and sent a “sorry for the noise” message. Luckily -  like with most open source communities - the answer we got was super nice: No worries [...]. Thanks for the interest!”

![jankatin](//images.ctfassets.net/hqu2g0tau160/7guK7agdnVijwuZ4PqV5fE/1dc5906a5b0151f74dda7589e0844fef/3.jpg)

__Lesson Learned:__ Hard to say. On the one hand, no one wants to burden the maintainers with useless bug reports. On the other hand, sometimes you are not the only one that thinks something is a bug that actually isn’t, so that reporting it might help out someone else or make the maintainer aware that there is a general issue in understanding certain aspects. But in any case it helps to
- Be as precise as possible in your issue description. Some projects use issue templates that provide a checklist. Make sure you give the necessary details when you submit the issue. Put yourself in the shoes of the maintainer and include everything you yourself dream of when you get an issue to look at.
- Do your due diligence and make sure the issue hasn’t already been reported. Search for similar issues first. If you don’t find any, double-double-double-check that it is actually a valid issue. Don’t waste anyone’s (spare) time. 
- And speaking of people spending their spare time on maintaining projects: Always be polite. Always be humble. Always be nice.
And speaking of nice: Another one of our takeaways is that usually the open source community is a very welcoming place and making a mistake is usually not a problem. Especially if it is clear that you are a beginner and just started with a project.

### Example #2: Pull Request Gets Rejected

Sometimes we were too eager to propose a feature or a change without checking with the maintainers if this feature was even wanted, or without discussing the overall approach beforehand and thus choosing the wrong one, which led in numerous cases to our pull requests (and hard work ;-) ) being rejected e.g. in the case of [Jan](https://github.com/ipython/ipython/pull/3312), [Frank](https://github.com/mui/material-ui/pull/9422) or [Kristine](https://github.com/jenkinsci/blueocean-plugin/pull/1561).

![allow custom prefix](//images.ctfassets.net/hqu2g0tau160/6fgXa3RTxFKXbquCPeUD1T/154ad518764684c38959c0e60b115634/4.jpg)
![WIP Notebook](//images.ctfassets.net/hqu2g0tau160/1nrnc6iLrOiL5D6tuEfcT8/944e9971202dab062f036abce9d3fe99/5.jpg)
![Jenkins](//images.ctfassets.net/hqu2g0tau160/1LfHls7Ex44kzfQ5ITUxSW/ef3508268b606112000b85e8e26c8368/6.jpg)

__Lesson Learned:__ Create an issue before you submit something and explain what you intend to do and get feedback on your approach. Expect that even after you submit something you might have still not chosen the best way to accomplish this task and that the maintainers might ask you to make significant changes. Don’t be offended by it. And, again, do your due diligence and make yourself familiar with the project, get a feel of what acceptable pull requests look like and what conventions to follow. A lot of repos have a CONTRIBUTING.md file explaining how to contribute, might have a code of conduct to follow, some agreements to sign and might provide issues and pull request templates to help you along. See an example from [AWS CDK](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) below:

![See an example from AWS CDK below:](//images.ctfassets.net/hqu2g0tau160/bZ71jJXxx4263RNMYPeB7/603bf4e42bfa437e0ba4693fa5f905a0/7.jpg)

### Example #3: Issues Or Pull Request Gets Ignored

Similarly, but even more frustrating to most of us: Sometimes pull requests that we spend a lot of effort on simply get ignored and remain open for years. Seemingly critical Issues receive no reaction and are never solved. Questions remain unanswered, commits remain unmerged, bugs remain unfixed. Reasons why this happens may vary.

__Lessons Learned:__ Before submitting something, check if the project is actively maintained. If not, chances are high that your contribution will not be considered as well. Of course, you might still choose to raise issues to just share them with other users. Or raise an issue that actually addresses the maintenance questions, e.g. as seen in the question about the [Future of Hystrix](https://github.com/Netflix/Hystrix/issues/1783). If you want to submit a change and are unsure about the level of maintenance: raise an issue first, explaining your intent and only proceed after you receive a confirmation to go ahead. 

### Example #4: Pull Request Gets Abandoned

This is the other way around ;-) Sometimes we started working on something and later on realized we underestimated the effort or complexity or overestimated our skills and knowledge. And sometimes life just gets in the way. Kristine for example feels quite bad about starting to work on [this issue](https://github.com/pact-foundation/pact-jvm/issues/1465) several months ago and just abandoning it with a long checklist of TODO items.

![add support](//images.ctfassets.net/hqu2g0tau160/7rvvbijfxtS0SwumuS8M0o/af115ff01871dbd4437e852a508921eb/8.jpg)

__Lessons Learned:__ Get an overall understanding of the problem and the solution before committing to implementing it. Make small commits and document your findings and status so that others can pick up where you left off if in case it is needed.

## Conclusion

Contributing to open source projects can be done in a variety of ways. It can be fun and rewarding while at the same time adding value to your own projects and other people’s work. A lot of the considerations and lessons learned are not that much different from what most of us do and have learned at $WORK anyway. So anyone with time to spare and the inclination to have their work publicly seen can (but not must!) contribute to open source.
Like what you saw here? We do have [open positions](https://kreuzwerker.de/en/careers): send us your CV and let's meet for a virtual coffee :-)

And one last point that cannot be stressed enough: __The Open Source Community is welcoming and thankful!__

![welcoming and thankful](//images.ctfassets.net/hqu2g0tau160/5e2mE9nnFK8vJiW5DWHKHt/343366062e2dd77b9a3b4e909480fb2b/9.jpg)
![thank xou](//images.ctfassets.net/hqu2g0tau160/2HiYbHID4cew098orfIfVx/46e345fcde37c930ccae03ad731aa8f0/10.jpg)

*This article was a joint effort between [Jan Katins](https://kreuzwerker.de/en/profile/jan-katins), who, together with his co-hosts [John Nguyen](https://kreuzwerker.de/profile/john-long-nguyen), [Manuel Vogel](https://kreuzwerker.de/en/profile/manuel-vogel), [Martin Müller](https://kreuzwerker.de/profile/martin-mueller) and [Martin Wentzel](https://kreuzwerker.de/profile/martin-wentzel), came up with the original content for the Open Friday session and [Kristine Jetzke](https://kreuzwerker.de/profile/kristine-jetzke) who turned the slides into text.*

---

[^1]: For the difference between simple and easy see Rick Hickey’s talk [Simple Made Easy](https://www.infoq.com/presentations/Simple-Made-Easy/ "Simple Made Easy")