Mozilla开发组的开发策略(英文) 关键字: 开发策略 原作者姓名: Seth Spitzer & Alec Flett 文章原始出处: http://www.mozilla.org/hacking/development-strategies.html 转载请与作者联系 1) work on the most important bugs first. Everyone likes to check in. But keep in mind, checkin rate isn't everything. It's better to fix one dataloss bug, crasher, or performance bug that really affects the user than edge case bugs that are rarely seen or minor bugs. 2) take extra time to do it right the first time It's also better to come up with one really solid, well tested, well commented, clean, easy to maintain piece of code than a bunch of quick fixes. You (or someone else) will be back in that code someday. It's easier to do it right once, when your mind is in the problem, then to do it once quickly and once again when you have to fix it The only thing worse that not understanding someone else's code is not understanding your own. 3) test your code QA's job is to assure quality, not to add quality. That's your job. It's your responsibility to find the problems in your code before checking in, and to fix them. When you land your bug free code, it's QA's job to assure others that it's really bug free. Make sure you appreciate anyone who finds a bug in your code. Appreciate it even more if they find it before you ship. They're giving you a second chance to get it right before it becomes a bug that affects users. 4) minimize how you are affected by regressions Unless you are the type to go out and tackle daily regressions, you need to find a way to not let them affect you. You don't want to have one tree, update it every morning, and then be stuck waiting for blockers to clear. Have multiple trees. At least one of them should be updated every day. You'll need this one for regressions that require your immediate attention (a new crasher, a blocker or regression that is in your area, etc.) Use this same tree for small, quick bugs or recent regressions or crashers. For your other tree, don't update as often. Update when you know that the tree is in good shape. Do your primary development in this tree. You'll need to update, rebuild, re-test and make a diff against the current trunk once you feel your fix is done. But, daily regressions won't block your primary development. As far as keeping trees up to date - the longer you go without updating your tree, the more likely you are to have CVS conflicts. If you update every day for a week, you might not have any conflicts, but if you update once a week and you've changed a lot of code, you'll most likely have conflicts. see mozilla\config\fast-update.pl for a fast way to update your tree - you can update your main mozilla tree (minus nsprpub, etc) in 1-2 minutes. |
正在阅读:Mozilla开发组的开发策略(英文)Mozilla开发组的开发策略(英文)
2004-02-14 09:34
出处:PConline原创
责任编辑:zwg
键盘也能翻页,试试“← →”键