How to Get More Out of Code

At HackerOne, we consider our community of code security experts to be a part of your team. We have provided some quick tips for making the most of your experience with Code.

Bite-sized merge requests

While all sizes of merge request are taken and reviewed by the HackerOne Code community, we recommend that merge requests exceed no larger than about 800 lines of reviewable code.

Part of HackerOne's mission is to improve the overall speed and quality of your software development lifecycle. The larger a merge request is, the longer it takes to verify, make changes, validate, and eventually merge it. This is due to a larger-than-expected scope and the potential for more code churn involved after receiving the initial review and any follow-up reviews required.

Detailed change descriptions

The code author should include a detailed description that provides context for the changes involved. This context can give code reviewers more direction and understanding of the scope involved to provide more relevant comments that align with the intent of the changes being made.

Helpful contextual information can include:

  • Background on why the issues/features are being fixed/implemented.

  • Goals on what the changes are trying to accomplish.

  • Any specific concerns or risks associated with the changes.

Have a conversation

Effective code review requires communication! As such, discussions within a code review comment can benefit from any of the following interactions:

  • Reply or react to each comment with an emoji or comment accordingly. This ensures you have acknowledged or addressed each issue, which can provide evidence for continuing with a merge. We can also detect your sentiment through these types of reactions.

  • Give reasons for any decisions made. For comments that are not going to be fixed, for example, explain why or indicate that there will be follow up in a later merge request.

  • Ask a question. Make sure to follow up and get more details if something a reviewer said is unclear or questionable.

  • Ask for advice or help in areas you are not comfortable with. Our reviewers are senior-level developers in various domain spaces and can help with wide range of topics.

Let us know what you think

The customer success team at HackerOne gets notified of every rating your team sends in for our reviewers. We actively work with our reviewers to ensure that this feedback is understood and that improvements are made. Positive or negative, provide more details so we can continue expanding efforts on the positive aspects or quickly remediate the negative aspects.

Last updated