Developing New Mozilla Features

  • Revision slug: Developing_New_Mozilla_Features
  • Revision title: Developing New Mozilla Features
  • Revision id: 180420
  • Created:
  • Creator: Yoshino
  • Is current revision? No
  • Comment Migration (http://www.mozilla.org/hacking/new-features.html)

Revision Content

{{template.Outdated("It was last updated in 2004.")}}

Tips For Contributing New Features To Mozilla.

Learn the codebase and coding practices before you start your feature

Include learning time in your schedule. Mozilla is a complex codebase. Our portability requirements may be new to even seasoned developers. Our cross-platform component model (“XPCOM”) is similar to COM, but you’ll want to make sure you use it well before going too far with your project. And of course, we have a set of coding practices to help everyone live together. Life will be much easier if your team has one or more members who are already familiar with and to the Mozilla world.

Develop relationships with existing developers in the area of your feature

If you want to add a big new feature to mail, spend some time helping the existing mail developers. Talk to the developers about fixing some of their bugs. Fix some bugs. Have some of your QA team get involved. Once you’re familiar with an area, do the completely unexpected and write a piece of documentation. Developers will be grateful, and you’ll be known as someone seriously interested in contributing. Become familiar with our code review processes. Have someone on your team become Mozilla-savvy enough to obtain CVS access.

Help the existing developers to understand that you are “for real”

That you have a clue about Mozilla development; that your team is going to ship a product. Our developers get a lot of mail, and not all of it is helpful. We appreciate the attention and interest in Mozilla, but the developers have to prioritize how they spend their time. Help them to realize you’re an informed developer who is interested and able to contribute. This will be much easier if you’ve been working on suggestion two.

Designate someone on your team to be involved with the mozilla.org CVS repository on a regular basis

The ease of integrating your feature will increase if someone on your team is intimately involved with the source tree. Reviewing the tree only at the milestone releases is risky if you're doing significant development. Something may have changed that will cause you extra work. And you'll miss the early discussion phase when you can add your perspective to the design work. If you absolutely don't have the resources to do this, then plan for extra integration time.

Work hard to have a developer involved in the core code who is connected to what you are doing

If you can’t make this happen, let mozilla.org staff know and we will try to facilitate this. It’s possible developers may not pay much attention to you because they believe your proposed feature is not a high priority, or is not wanted at all, or that you haven’t demonstrated that you understand the codebase and Mozilla coding practices well enough for them to spend a lot of time with you. In some cases the developers may be in error and staff will work to make this clear and get you connected. In other cases, mozilla.org staff may agree with the developers that it does not make sense for them to spend much time assisting with your project. This is a painful setting and we hope it doesn’t happen often. But our developers are a precious commodity and their time is probably the most important resource we have.

It’s also possible that a developer is over-worked or on vacation or just drops the ball. Obviously, we’ll never reach perfection but we need to reduce these occurrences as much as possible to have a successful project. If this happens to you, let us know. We’ll talk to the developers in question, find others to help you, and try to improve your experience with the project. Eventually you’ll be plugged in enough you won’t need us, you’ll be able to find your own back-ups. We’ll still want to know if a developer is consistently not responding to contributors, but you’ll be able to deal with the occasional problems just by asking someone else.

Design in the open

Post your plans to the appropriate newsgroup. If there is no response, double-check to see if you have been successful with suggestion five.

Try hard to design your feature so that it can be implemented and reviewed in manageable size patches

If you can implement and submit core elements first and build on them in subsequent patches, so much the better. If you think your feature can only be implemented and reviewed in one enormous chunk, ask for design help in the appropriate newsgroup and/or from the developers with whom you have established relationships.

If it is not possible to submit your feature in manageable size patches and you submit a 500k patch, be prepared for several months of review and revision before the patch is ready to be checked in

It may not take this long. But if your team has worked for months on a feature, it is going to take reviewers new to the code a long time to work their way through it. And if it’s not possible to design the feature in bite-size chunks, it probably won’t be possible to review it that way either. We expect our reviewers to understand the code they approve for check-in, not to simply glance at it and say OK. Finding the focus to digest a massive patch in the midst of multiple other demands will take time, even if you’ve done a perfect job. And since few of us are perfect, chances are that revisions will be requested.

If you’ve got a large patch, let the likely reviewers know when they might expect to see it

If your timeframe is tight, check out the Mozilla roadmap for milestone dates and see if your feature will arrive at a time of furious activity. If so, and if your feature is not of general interest, prepare to be a low priority for a while.

Get connected with mozilla.org staff

mitchell@mozilla.org is a good contact for project management discussions. Let us know what you’re doing. If you can find the resources, designate someone on your team as the liaison to mozilla.org for project management issues.

Become familiar with the Code Review FAQ

Review and super-review take time

Improving the code as requested by the reviewers takes time. Poor quality code also takes time. We’ve opted to spend the time improving code consistency before check-in when the pain is limited to the developers and the reviewers rather than everyone in the tree. We’re committed to this style of development, but recognize that vigilance is necessary to make sure newcomers and their features don’t get lost. If you’re having a particularly bad experience or if you’ve got suggestions on how to improve our process, please let mozilla.org staff know.

Original Document Information

  • Author(s): Mitchell Baker
  • Last Updated Date: October 30, 2004
  • Copyright Information: Portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a Creative Commons license | Details.

Revision Source

<p>{{template.Outdated("It was last updated in 2004.")}}
</p><p>Tips For Contributing New Features To Mozilla.
</p>
<h3 name="Learn_the_codebase_and_coding_practices_before_you_start_your_feature"> Learn the codebase and coding practices before you start your feature </h3>
<p>Include learning time in your schedule. Mozilla is a complex codebase. Our portability requirements may be new to even seasoned developers. Our cross-platform component model (“XPCOM”) is similar to COM, but you’ll want to make sure you use it well before going too far with your project. And of course, we have a <a href="en/Mozilla_Coding_Style_Guide">set of coding practices</a> to help everyone live together. Life will be much easier if your team has one or more members who are already familiar with and to the Mozilla world.
</p>
<h3 name="Develop_relationships_with_existing_developers_in_the_area_of_your_feature"> Develop relationships with existing developers in the area of your feature </h3>
<p>If you want to add a big new feature to mail, spend some time helping the existing mail developers. Talk to the developers about fixing some of their bugs. Fix some bugs. Have some of your QA team get involved. Once you’re familiar with an area, do the completely unexpected and write a piece of documentation. Developers will be grateful, and you’ll be known as someone seriously interested in contributing. Become familiar with our <a class="external" href="http://www.mozilla.org/hacking/reviewers.html">code review processes</a>. Have someone on your team become Mozilla-savvy enough to <a class="external" href="http://www.mozilla.org/hacking/getting-cvs-write-access.html">obtain CVS access</a>.
</p>
<h3 name="Help_the_existing_developers_to_understand_that_you_are_.E2.80.9Cfor_real.E2.80.9D"> Help the existing developers to understand that you are “for real” </h3>
<p>That you have a clue about Mozilla development; that your team is going to ship a product. Our developers get a lot of mail, and not all of it is helpful. We appreciate the attention and interest in Mozilla, but the developers have to prioritize how they spend their time. Help them to realize you’re an informed developer who is interested and able to contribute. This will be much easier if you’ve been working on suggestion two.
</p>
<h3 name="Designate_someone_on_your_team_to_be_involved_with_the_mozilla.org_CVS_repository_on_a_regular_basis"> Designate someone on your team to be involved with the mozilla.org CVS repository on a regular basis </h3>
<p>The ease of integrating your feature will increase if someone on your team is intimately involved with the source tree. Reviewing the tree only at the milestone releases is risky if you're doing significant development. Something may have changed that will cause you extra work. And you'll miss the early discussion phase when you can add your perspective to the design work. If you absolutely don't have the resources to do this, then plan for extra integration time.
</p>
<h3 name="Work_hard_to_have_a_developer_involved_in_the_core_code_who_is_connected_to_what_you_are_doing"> Work hard to have a developer involved in the core code who is connected to what you are doing </h3>
<p>If you can’t make this happen, let mozilla.org staff know and we will try to facilitate this. It’s possible developers may not pay much attention to you because they believe your proposed feature is not a high priority, or is not wanted at all, or that you haven’t demonstrated that you understand the codebase and Mozilla coding practices well enough for them to spend a lot of time with you. In some cases the developers may be in error and staff will work to make this clear and get you connected. In other cases, mozilla.org staff may agree with the developers that it does not make sense for them to spend much time assisting with your project. This is a painful setting and we hope it doesn’t happen often. But our developers are a precious commodity and their time is probably the most important resource we have.
</p><p>It’s also possible that a developer is over-worked or on vacation or just drops the ball. Obviously, we’ll never reach perfection but we need to reduce these occurrences as much as possible to have a successful project. If this happens to you, let us know. We’ll talk to the developers in question, find others to help you, and try to improve your experience with the project. Eventually you’ll be plugged in enough you won’t need us, you’ll be able to find your own back-ups. We’ll still want to know if a developer is consistently not responding to contributors, but you’ll be able to deal with the occasional problems just by asking someone else.
</p>
<h3 name="Design_in_the_open"> Design in the open </h3>
<p>Post your plans to the appropriate newsgroup. If there is no response, double-check to see if you have been successful with suggestion five.
</p>
<h3 name="Try_hard_to_design_your_feature_so_that_it_can_be_implemented_and_reviewed_in_manageable_size_patches"> Try hard to design your feature so that it can be implemented and reviewed in manageable size patches </h3>
<p>If you can implement and submit core elements first and build on them in subsequent patches, so much the better. If you think your feature can only be implemented and reviewed in one enormous chunk, ask for design help in the appropriate newsgroup and/or from the developers with whom you have established relationships.
</p>
<h3 name="If_it_is_not_possible_to_submit_your_feature_in_manageable_size_patches_and_you_submit_a_500k_patch.2C_be_prepared_for_several_months_of_review_and_revision_before_the_patch_is_ready_to_be_checked_in"> If it is not possible to submit your feature in manageable size patches and you submit a 500k patch, be prepared for several months of review and revision before the patch is ready to be checked in </h3>
<p>It may not take this long. But if your team has worked for months on a feature, it is going to take reviewers new to the code a long time to work their way through it. And if it’s not possible to design the feature in bite-size chunks, it probably won’t be possible to review it that way either. We expect our reviewers to understand the code they approve for check-in, not to simply glance at it and say OK. Finding the focus to digest a massive patch in the midst of multiple other demands will take time, even if you’ve done a perfect job. And since few of us are perfect, chances are that revisions will be requested.
</p>
<h3 name="If_you.E2.80.99ve_got_a_large_patch.2C_let_the_likely_reviewers_know_when_they_might_expect_to_see_it"> If you’ve got a large patch, let the likely reviewers know when they might expect to see it </h3>
<p>If your timeframe is tight, check out the Mozilla roadmap for milestone dates and see if your feature will arrive at a time of furious activity. If so, and if your feature is not of general interest, prepare to be a low priority for a while.
</p>
<h3 name="Get_connected_with_mozilla.org_staff"> Get connected with mozilla.org staff </h3>
<p><a class="external" href="mailto:mitchell@mozilla.org">mitchell@mozilla.org</a> is a good contact for project management discussions. Let us know what you’re doing. If you can find the resources, designate someone on your team as the liaison to mozilla.org for project management issues.
</p>
<h3 name="Become_familiar_with_the_Code_Review_FAQ"> Become familiar with the <a href="en/Code_Review_FAQ">Code Review FAQ</a> </h3>
<h3 name="Review_and_super-review_take_time"> Review and super-review take time </h3>
<p>Improving the code as requested by the reviewers takes time. Poor quality code also takes time. We’ve opted to spend the time improving code consistency before check-in when the pain is limited to the developers and the reviewers rather than everyone in the tree. We’re committed to this style of development, but recognize that vigilance is necessary to make sure newcomers and their features don’t get lost. If you’re having a particularly bad experience or if you’ve got suggestions on how to improve our process, please let mozilla.org staff know.
</p>
<div class="originaldocinfo">
<h2 name="Original_Document_Information"> Original Document Information </h2>
<ul><li> Author(s): Mitchell Baker
</li><li> Last Updated Date: October 30, 2004
</li><li> Copyright Information: Portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a Creative Commons license | <a class="external" href="http://www.mozilla.org/foundation/licensing/website-content.html">Details</a>.
</li></ul>
</div>
Revert to this revision