cmrincon
Posts: 16
Joined: Thu May 24, 2018 7:39 pm

Which is the best way to start working on a c project?

Thu Apr 18, 2019 9:26 pm

Hi! I'm actually thinking about joining and contribute to a open source project (https://github.com/fsphil/hacktv) but in spite of i have a intermediate knoledge of c i think is difficult to understand the code already written.
In order to be able to contribute to the project do i need to understand the full project code and the libraries ( ffmpeg and hackrflib) used? Which is the best way to start working on a project?

User avatar
croston
Posts: 694
Joined: Sat Nov 26, 2011 12:33 pm
Location: Blackpool
Contact: Website

Re: Which is the best way to start working on a c project?

Thu Apr 18, 2019 9:31 pm

You could always contribute documentation to get started. Open source projects are more than just code.

Heater
Posts: 12102
Joined: Tue Jul 17, 2012 3:02 pm

Re: Which is the best way to start working on a c project?

Fri Apr 19, 2019 6:59 am

I'm no great contributor to open source projects but...

If you have some bug fixes or documentation etc then start by forking the github repository. Develop and test your changes then make a pull request to the upstream repository. Be sure to make changes to only one thing at a time. Nobody wants to pull a huge pile of code that fixes 10 bugs and touches dozens of files. If you are lucky the developer will accept your changes.

Be sure to stick to the projects coding style and formatting.

Adding features may be a bit tougher. You will need to know the code well. Your feature idea will have to be in line with where the developer wants to take his project. Perhaps start by suggesting a feature in an issue on the git hub repo, that might get communications going.

Return to “General programming discussion”