Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,297,240
Community Members
 
Community Events
165
Community Groups

How Defining Code Owners Can Radically Improve Your Code Reviews

How Defining Code Owners Can Radically Improve Your Code Reviews

In every development team, you have a combination of people with different sets of knowledge and expertise.  That’s the beauty of working together as a collective.  For example, in our team we have Java experts, Scala enthusiasts, a TypeScript and JS team, and many more!  All of these superstars range across the board from junior all the way up to senior developers.

 

If we want to make our code reviews as efficient, robust, and quality-focused as we can, we want to take advantage of the unique strengths of each of our team members.  The way that we can do this is by designating code owners.

 

Code owners are defined by three pillars:

  • They are experts in a specific code area or technology.
  • They are dedicated to maintaining a high level of code quality.
  • They give valuable feedback.

 

When you combine these together, you can drastically improve the overall quality of what you’re creating because you’re better leveraging the skills and expertise that you have at your disposal.

 

Typically, you’ll look to select these code owners based on the folder structure and extensions such as */ui, .ts, or .java.  This is the main difference between the concept of a code owner versus a default reviewer in Bitbucket.  With our Code Owners app, you can define code owners specifically for certain domains which helps to spread the load and get the right person on the job for each component.

 

Maintaining an intuitive folder structure also helps to support monorepos in a way that you simply can’t achieve with default reviewers.  You are even able to define Bitbucket groups as code owners for certain domains which provides even more flexibility.

 

By deploying code owners, we have a much more consistent code review process and we get better results over time because we’re making the most of the expertise that we have in our team.  In addition, we also get automatic versioning by using the code owners files within our git repositories.  What’s not to love?

Researchers found that reviewers with prior knowledge of the code under review give more useful comments (Source: * https://www.zora.uzh.ch/id/eprint/152982/1/icse2018seip.pdf).

This is why major software companies like Google use the concept of Code Owners since years.

 

We’re curious, have you tried this?  Who are your code owners?

codeowners_banner@1,5x.jpg


 

0 comments

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

375 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you