Firefox addons developer guide

  • Revision slug: Talk:Firefox_addons_developer_guide
  • Revision title: Firefox addons developer guide
  • Revision id: 112176
  • Created:
  • Creator: Slosd
  • Is current revision? No
  • Comment 29 words added

Revision Content

Comments, questions and/or suggestion

Please do via the MDC forum: http://groups.google.fr/group/mozilla.dev.mdc/topics

Rules:

  • File and directory names: italic
  • method and variable names: class name
  • If you want to add a FIXME, add:
{{Template.TODO("a message")}}

Notes:

The original document is in Japanese and distributed via the xuldev.org website. So there may be still some reference to the xuldev website (we want to host source code on MDC, not on xuldev), and to Japanese things (like some specific locales, which have been translated to French since non-latin characters are not well supported).

There are a few things that could be done to make this fit the site better, and for general cleaning up:

  1. Tables should use the "standard-table" CSS class so they're styled the same as those on the rest of MDC.
  2. There should be some introductory text on the table of contents page at https://developer.mozilla.org/En/Firefox_addons_developer_guide
  3. Obviously there are a number of FIXME items in the content that need dealing with, but those are already known.
  4. These should use the Previous, Next, and PrevNext templates to add quick routes to get from chapter to chapter. See the XUL Reference, for example.
  5. Each chapter should be tagged appropriately, based on content, and every chapter should include the tag "Firefox addons developer guide".
  6. Instead of using footnotes, we should inline these notes into the body of the article.
  7. Apostrophes are being done using curly apostrophes instead of straight ones as is done everywhere else in MDC.
  8. The stuff about installing the DOM inspector (https://developer.mozilla.org/En/Firefox_addons_developer_guide/Let%27s_build_a_Firefox_extension#Install_the_DOM_Inspector) is not accurate for Firefox 3 or later, since it's no longer included in the Firefox installer and must be downloaded from AMO.
  9. Filenames should use <code> styling.  This is available from the Style drop-down menu in the editor.
  10. Variable and function names use <code> styling.
  11. XPI should be in all caps instead of written as ("xpi").
  12. Method and function names should have parentheses after them.  For example, here: https://developer.mozilla.org/En/Firefox_addons_developer_guide/Let's_build_a_Firefox_extension#init_method The text of the paragraph should begin  "The <code>init()</code> method is as shown...".
  13. If you use the Interface template when mentioning interfaces by name, MDC will automatically format them and generate links to their documentation, like this: {{ interface("nsIConsoleService") }}.  If you prefer, you can just link to the articles directly.  Either way, these links should be added.
  14. These articles are all tagged as covering Firefox 3.1 using the fx_minversion_header template, but I don't think that's the case. Certainly Appendix 2 doesn't care what version of Firefox you're using, since it's just about open source software licenses.

Todo:

  • All FIXME notes inside the documents;
  • Add abbreviation definition to acronyms;
  • Add some link to the internal MDC documentation when it makes sense;
  • Indent source code;
  • Make sure documentation is relevant for all platforms: GNU/Linux, MacOS, Windows;
  • Add anchor links to Figures & Listings;
  • Add credits to original authors and license; COMPLETED
  • Sometimes, interfaces names are misspelled: s/nsL/nsI;
  • Talk about FUEL;
  • Titles of chapters and sub-headings should have CAPS for first letter of each word;
  • We should add a part about bad and good practices (leaks, global scopes, ...);
  • Add external resources (mozdev.org/community/books.html);
  • Add to chapter 3 or 5 more informations about overlay (how to overlay some interesting part of Firefox like status bar, menus or toolbar)
  • Add previous/next at the end of each chapter

Questions:

  • OpenSource appendix. Should we keep this part ?
    • Gen's opinion: yes, because it is important for developers to make informed decisions regarding OSS licenses and it was a part of the original guide.

Opinions:

  • I think we should be careful about adding new contents to this guide. The original version of this guide was written as a first step guide for beginners. If we add too much topics, they possibly make learners weary. An alternative idea: writing a "next step" guide for interested people such as adding statusbar buttons, sidebar panels, and so on. (by Piro)
    • I do think this guide should cover more advanced topics as well. There already is a tutorial for beginners: Building an Extension. Slosd 09 April 2009

Revision Source

<h2>Comments, questions and/or suggestion</h2>
<p>Please do via the MDC forum: <a class=" external" href="http://groups.google.fr/group/mozilla.dev.mdc/topics" rel="freelink">http://groups.google.fr/group/mozilla.dev.mdc/topics</a></p>
<h2>Rules:</h2>
<ul> <li>File and directory names: <em>italic</em></li> <li>method and variable names: <code>class name</code></li> <li><code>If you want to add a FIXME, add:</code></li>
</ul>
<pre>{{Template.TODO("a message")}}
</pre>
<h2>Notes:</h2>
<p>The original document is in Japanese and distributed via the xuldev.org website. So there may be still some reference to the xuldev website (we want to host source code on MDC, not on xuldev), and to Japanese things (like some specific locales, which have been translated to French since non-latin characters are not well supported).</p>
<p>There are a few things that could be done to make this fit the site better, and for general cleaning up:</p>
<ol> <li>Tables should use the "standard-table" CSS class so they're styled the same as those on the rest of MDC.</li> <li>There should be some introductory text on the table of contents page at https://developer.mozilla.org/En/Firefox_addons_developer_guide</li> <li>Obviously there are a number of FIXME items in the content that need dealing with, but those are already known.</li> <li><strike>These should use the Previous, Next, and PrevNext templates to add quick routes to get from chapter to chapter. See the XUL Reference, for example.</strike></li> <li>Each chapter should be tagged appropriately, based on content, and every chapter should include the tag "Firefox addons developer guide".</li> <li>Instead of using footnotes, we should inline these notes into the body of the article.</li> <li>Apostrophes are being done using curly apostrophes instead of straight ones as is done everywhere else in MDC.</li> <li>The stuff about installing the DOM inspector (https://developer.mozilla.org/En/Firefox_addons_developer_guide/Let%27s_build_a_Firefox_extension#Install_the_DOM_Inspector) is not accurate for Firefox 3 or later, since it's no longer included in the Firefox installer and must be downloaded from AMO.</li> <li>Filenames should use &lt;code&gt; styling.  This is available from the Style drop-down menu in the editor.</li> <li>Variable and function names use &lt;code&gt; styling.</li> <li>XPI should be in all caps instead of written as ("xpi").</li> <li>Method and function names should have parentheses after them.  For example, here: https://developer.mozilla.org/En/Firefox_addons_developer_guide/Let's_build_a_Firefox_extension#init_method The text of the paragraph should begin  "The &lt;code&gt;init()&lt;/code&gt; method is as shown...".</li> <li>If you use the Interface template when mentioning interfaces by name, MDC will automatically format them and generate links to their documentation, like this: {{ interface("nsIConsoleService") }}.  If you prefer, you can just link to the articles directly.  Either way, these links should be added.</li> <li>These articles are all tagged as covering Firefox 3.1 using the fx_minversion_header template, but I don't think that's the case. Certainly Appendix 2 doesn't care what version of Firefox you're using, since it's just about open source software licenses.</li>
</ol>
<h2>Todo:</h2>
<ul> <li>All FIXME notes inside the documents;</li> <li>Add abbreviation definition to acronyms;</li> <li>Add some link to the internal MDC documentation when it makes sense;</li> <li>Indent source code;</li> <li>Make sure documentation is relevant for all platforms: GNU/Linux, MacOS, Windows;</li> <li>Add anchor links to Figures &amp; Listings;</li> <li><strike>Add credits to original authors and license;</strike> COMPLETED</li> <li>Sometimes, interfaces names are misspelled: <em><code>s/nsL/nsI</code></em>;</li> <li>Talk about FUEL;</li> <li>Titles of chapters and sub-headings should have CAPS for first letter of each word;</li> <li>We should add a part about bad and good practices (leaks, global scopes, ...);</li> <li>Add external resources (mozdev.org/community/books.html);</li> <li>Add to chapter 3 or 5 more informations about overlay (how to overlay some interesting part of Firefox like status bar, menus or toolbar)</li> <li>Add previous/next at the end of each chapter</li>
</ul>
<h2>Questions:</h2>
<ul> <li>OpenSource <em>appendix</em>. Should we keep this part ? <ul> <li>Gen's opinion: yes, because it is important for developers to make informed decisions regarding OSS licenses and it was a part of the original guide.</li> </ul> </li>
</ul>
<h2>Opinions:</h2>
<ul> <li>I think we should be careful about adding new contents to this guide. The original version of this guide was written as a first step guide for beginners. If we add too much topics, they possibly make learners weary. An alternative idea: writing a "next step" guide for interested people such as adding statusbar buttons, sidebar panels, and so on. (by Piro) <ul> <li>I do think this guide should cover more advanced topics as well. There already is a tutorial for beginners: <a href="/en/Building_an_Extension">Building an Extension</a>. <a href="https://developer.mozilla.org/User:Slosd" rel="custom">Slosd</a> 09 April 2009</li> </ul> </li>
</ul>
Revert to this revision