[Project_owners] Question: Mozilla Development

John Dobbins john at brandxcomputers.com
Thu Mar 24 12:00:10 EST 2005


Pete Collins wrote:

> I have some basic questions regards Mozilla development for Mozdev 
> developers.
>
> When developing Moz code what editor do you use?

Notepad ++

>
> What platform do you use for primary development?

About 75% Win XP, about 25% Mac OS X.

>
> If you are writing some js code let's say this bit below:
>
> var prefs = Components.classes["@mozilla.org/preferences-service;1"].
>                     getService(Components.interfaces.nsIPrefBranch);
>
> How would you actually write this code?
>
> Copy and paste it from somewhere else?

Copy and Paste

>
> Do you type it manually from memory?
>
> How do you obtain the contractID or interface to use to instantiate a 
> component?
>
> eg: "@mozilla.org/preferences-service;1",  "nsIPrefBranch"
>
> How about if you were writing a new XUL file from scratch, how would 
> you do it?
>
> Let's say you wanted to add the code below, how would you do it?
>
>   <toolbarbutton type="menu">
>     <menupopup>
>       <menu>
>         <menupopup>
>           <menuitem />
>         </menupopup>
>       </menu>
>     </menupopup>
>   </toolbarbutton>

Copy and Paste a known working snippet, then modify to meet the needs of 
the new code.

>
> Same with css, let's say you wanted to add some style rules to an 
> element:
>
> #foo
> {
>   -moz-image-region: rect(0, 388px, 20px, 292px);
> }
>
> Is the rule "-moz-image-region" committed to memory or a search and 
> paste action?

Pasted from a sample of working code.

>
> I'm very curious to see how everyone does things. How the act of 
> actually writing the code works for different people.
>
> Thanks
>
> --pete
>




More information about the Project_owners mailing list