Contributing to Open Source Projects and Code
Getting started contributing to open source can be daunting. Don't worry, no one is expecting you to rewrite half the code base in your first pull request. Instead, read these tips on great things you can do to help and help yourself as well.
Join the DZone community and get the full member experience.Join For Free
traditionally, it ran off the shelf commercial software, while datacenters ran proprietary unix hardware and x86 based windows servers. but recently, the end user computing environment has been disrupted by the advent of smartphones and tablets, with linux becoming increasingly a dominant force in the data center. not to mention that there have been predictions from idc analysts in august 2015 noting that there is already a shift to open source systems like couchbase and couchbase mobile in the server and mobile market.
contributing to open source code is not as daunting as it seems. first off, the open source community is large and diverse with people working together on common problems. stack overflow is an example of how collective minds are able to solve related issues faster and share in everyday findings. the benefits are that you are able to get direct feedback from a vast community of experts with different skill levels while building out a support system of champions.
even apple opened up their coding language, swift , and so developers outside of apple will be able to look into swift and contribute to its development , thus bringing it to new platforms like windows and android. another benefit of it being open source now is that you can see the product road map and evolution of swift for future feature release dates.
it is not as daunting as it may seem. many times we may believe that the only major contributions that open source project leads are interested in are feature extensions or major bug fixes. but in reality, all it takes is a couple of lines of code and starting small. working in a domain that you already know will allow you to quickly dive in and you will also be more motivated in improving the project overall. the other benefit is learning and picking up new domain skills. there are plenty of available projects on github that you may contribute to, such as library for all’s ebook reader, all while learning new technology such as react native.
how can you start? well one way is to be part of the collective group contributing to the source code, but another way is to look at existing bug report tickets. this is an opportunity to contribute by filling in useful information and setting the bar for quality error reporting. a strategy on how to go about this is to:
- verify the issue is still happening
- outline steps to reproduce the issue
- provide version informations
- add in code snippets, screenshots and error log or texts
the key here is to help with closing an existing issue. providing clear details will go a long way toward resolving the open ticket, thus making the overall experience and code better. once identified, you may also reference specific members on the project team to investigate the issues further. below you can see the outstanding couchbase mobile android issues that are being reported my users in the community.
developers rely on great documentation to learn and understand technologies. it is the first place developers visit before diving in. having great documentation is the key to developers adopting a technology quickly. this is another area where you may contribute greatly as project docs are not always maintained on pace with the rest of the project. you may help with providing clarity for yourself and other developers by:
- updating description of methods
- providing example of method and usage
- adding diagrams
- fixing typos and updating version numbers
much like the couchbase mobile android readme.md file below, your contributions in the documentation or guides will go a long way in providing success for developers, as this will be the primary resource developers interact with day in and day out.
now that you have reported issues and updated developer documentations, why not take your open source contributions to another level and work on resolving tickets on the outstanding issues? focusing on introducing as little code changes as possible, you may start on this path:
- document test cases
- write up detailed findings
- reference open issue(s) you are resolving
- update code base accordingly
looking at existing issues and trying to resolve them will help not only you, but other developers who are using the code base. you are making the product better overall, and even if you do not resolve the issue directly in the end, the detailed descriptions added will help someone else solve the ticket. below you can see how the couchbase mobile community members are helping each other out and resolving issues together openly.
as you see there are various ways to be part of the open source world and contribute to open source technologies like couchbase and couchbase mobile [ android / ios ]. not only is it great to collectively work on projects and code with people around the world, but the resolution time is so much faster too. you may also learn more on how to contribute by going over the github guidelines for how to be involved in open source and browsing for available projects .
Published at DZone with permission of William Hoang, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.