I have always wanted to participate in an Open Source project but once I got the source code, I don't know where to start.
Sinatra framework (Ruby-based) and Apache Maven 3 are in mind but I don't know where to start.
How usually starting reading/viewing open source code?
Thanks for help and time.
Begin with a very simple idea relevant to the project you are going to contribute to. Then, turn that idea into reality primarily using that open-source project. Throughout the process make sure to learn about the project's dependencies, features, and important components/classes.
A successful open source project requires a lot of time and commitment. First of all the project must solve a problem, and solve it good. Developers are searching for good solutions for their problems. You must invest about 50% of the time into creating quality README.md and detailed documentation.
As you start to read more source code, you'll get better at this; you'll find what works for you.
In the meantime, there are a few strategies:
One thing that helps me is to put myself in the author's shoes. Why did they do things this way? Was it good/bad? For me, reading source code is about learning new strategies for solving problems. I usually look at a project and think how I would have done it, then I see how they do it and compare.
Specifically for Sinatra, if it were me, I'd setup the most basic Sinatra web app, and then try to figure out how the "get" method sets up a listener. Trace it back to it's Rack roots (Rack is the webserver it uses). You might end up learning a little bit about Rack applications.
You don't have to understand everything you see, but like in the above example, you'll want to get some kind of bearing of what's going on. Then ask more questions and try to find the answers.
You don't necessarily have to be out to fix the bug; just find out how the piece of the project involving the bug is done and what code makes it go. If you happen to spot the issue with the code, maybe you can fix it, and then you'll have stepped into being an actual contributor as well, in which case congratulations are in order. If not, you still start to get a feel for how the project is put together.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With