Open Source Contribution
Open Source Software is at the core of Protocol Labs. You can explore the repos here to get a sense of what the core technologies and repositories behind Protocol Labs are, how these projects operate.
For those who want to dive in deep, get started contributing to IPFS Projects, with these high-traffic repos
The Protocol Labs OSS Projects
IPFS, IPLD, libp2p, and Filecoin
The four main projects focused on in this curriculum are IPFS, IPLD, Libp2p, and Filecoin. Most of the information and interaction can be found on docs and GitHub organizations:
Note that these are not the only projects in the core Protocol Labs stack, and there are many more, such as Multiformats, Drand, Bacalhau, and more that are continually being added and updated to contribute to the PLN.
- kubo (formerly go-ipfs) is a high traffic project, with many contributors from outside PL.
- libp2p is the home of the OSS project that makes up the networking layer used by PL.
- ipfs-cluster provides data orchestration across a swarm of IPFS daemons by allocating, replicating and tracking a global pinset distributed among multiple peers.
- js-ipfs has multiple JS projects in a single repo. See the what they each do.
- multiformats is a library that defines common interfaces and low level building blocks for multiformat technologies (multicodec, multihash, multibase, and CID).
- Filecoin Improvement Requests (FIPs) contains the set of fundamental governing principles for the Filecoin Network. It outlines the vision for Filecoin and it also describes how improvements to these rules can be proposed and ratified.
Graphical/ User Interfaces
We often see issues being filled in these repos that end up getting moved elsewhere:
- IPFS Desktop. Use IPFS Desktop to get acquainted with IPFS without needing to touch the terminal — or, if you’re already experienced, use the powerful menubar/taskbar shortcuts alongside the command line to make your IPFS workflow faster.
- IPFS Web UI is a web interface to IPFS, shipped with kubo (go-ipfs), js-ipfs, and ipfs-desktop.
- IPFS Companion is a browser extension for Firefox, Chrome, Brave, Opera, and Edge.
Contribute while you learn more about PL projects:
How to Contribute
Contributing and Maintaining in Open Source | Steven Allen & Raul Kripalani
In This talk Steven Allen & Raul Kripalani will give tips and advice on how to make sure contributing to your open source project is effective, and maintains the spirit of positive communication and working together as a community to build great software in a way that teaches and elevates all member of a community.
Guide to Writing and Reviewing Great PRs
Code Review Developer Guide
This is an annotated version of Google’s Code Review Developer Guide
Code reviews should look at:
- Design: Is the code well-designed and appropriate for your system?
- Functionality: Does the code behave as the author likely intended? Is the way the code behaves good for its users?
- Complexity: Could the code be made simpler? Would another developer be able to easily understand and use this code when they come across it in the future?
- Tests: Does the code have correct and well-designed automated tests?
- Naming: Did the developer choose clear names for variables, classes, methods, etc.?
- Comments: Are the comments clear and useful?
- Style: Does the code follow our style guides?
- Documentation: Did the developer also update relevant documentation?
Standards for Review
The primary purpose of code review is to make sure that the overall code health of the code base is improving over time. All of the tools and processes of code review are designed to this end.
In order to accomplish this, a series of trade-offs have to be balanced.
First, developers must be able to make progress on their tasks. If you never submit an improvement to the codebase, then the codebase never improves. Also, if a reviewer makes it very difficult for any change to go in, then developers are disincentivized to make improvements in the future.
On the other hand, it is the duty of the reviewer to make sure that each CL is of such a quality that the overall code health of their codebase is not decreasing as time goes on.
Technical facts and data overrule opinions and personal preferences.
On matters of style, the style guide is the absolute authority. Any purely style point (whitespace, etc.) that is not in the style guide is a matter of personal preference. The style should be consistent with what is there. If there is no previous style, accept the author’s.
Aspects of software design are almost never a pure style issue or just a personal preference. They are based on underlying principles and should be weighed on those principles, not simply by personal opinion. Sometimes there are a few valid options.
If no other rule applies, then the reviewer may ask the author to be consistent with what is in the current codebase, as long as that doesn’t worsen the overall code health of the system
In any conflict on a code review, the first step should always be for the developer and reviewer to try to come to consensus, based on the contents of this document and the other documents in The CL Author’s Guide and this Reviewer Guide.
When coming to consensus becomes especially difficult, it can help to have a face-to-face meeting or a video conference between the reviewer and the author, instead of just trying to resolve the conflict through code review comments. (If you do this, though, make sure to record the results of the discussion as a comment on the CL, for future readers.)
Code review can have an important function of teaching developers something new about a language, a framework, or general software design principles. It’s always fine to leave comments that help a developer learn something new. Sharing knowledge is part of improving the code health of a system over time.
The Complete Guide
See all the sections below for a comprehensive picture. The pages in these section contain recommendations on the best way to do code reviews, based on long experience. All together they represent one complete document, broken up into many separate sections. You don’t have to read them all, but many people have found it very helpful to themselves and their team to read the entire set.
- The Standard of Code Review
- What to Look For In a Code Review
- Navigating a CL in Review
- Speed of Code Reviews
- How to Write Code Review Comments
- Handling Pushback in Code Reviews
See also the CL Author’s Guide, which gives detailed guidance to developers whose CLs are undergoing review.