I remember a mention of such conventions but can't locate them now... may be MDC or Mozillazine. But what's the concern anyways?
Cheers! Shivanand Sharma Producer and Editor http://www.binaryturf.com (Web Technology & Blogging) http://www.advancedphotography.net On Wed, Nov 12, 2008 at 12:30 AM, joe ertaba <[EMAIL PROTECTED]> wrote: > Any Idea :) > > Is there any reference to show correct ways for naming variables ? > > On 11/9/08, joe ertaba <[EMAIL PROTECTED]> wrote: > > Hi > > > > I want to know what is the best method for naming variables,... > > > > *Please suggest naming for these conditions:* > > > > My Application name: *MyApp* > > My current XUL window name: *MyMainXUL* > > > > then what is the best name for these : > > > > What is the best name for main window id : > > My choice is id="*MyApp.MyMainXUL*" > > What is the best name for main window title (id for localization)= > > My choice is title="&*MyApp.MyMainXUL.Title*;" > > What is the best name for pref in Js file: > > pref("*MyApp.MyMainXUL.SomePrefName*", "*PrefValue*"); > > > > What is the best name for one element in main xul file (all ??? cases): > > <menubar id="???"> > > <menu id="???" label="&???;"> > > > > ----- > > <tabbox id="???" > //My choice is * > > MyApp.MyMainXUL.Tabbox1* > > <tabs> > > <tab label="&???;"/> //My choice is > *MyApp.MyMainXUL.** > > Tabbox1.Tab1* > > <tab label="&???;"/> //My choice is > *MyApp.MyMainXUL.** > > Tabbox1.Tab2* > > </tabs> > > <tabpanels> > > <tabpanel> > > <textbox id="???" value="&???;" /> //My choice for id is > * > > MyApp.MyMainXUL.**Tabbox1.Tab1.Textbox1* > > //My > > choice for value is *MyApp.MyMainXUL.**Tabbox1.Tab1.Textbox1* > > </tabpanel> > > <tabpanel></tabpanel> > > </tabpanels> > > </tabbox> > > > > > > I think these example will show all possible cases, please add some more > if > > you think they couldn't support all conditions. > > > > Thanks > > -Joe > > > _______________________________________________ > Project_owners mailing list > [email protected] > https://www.mozdev.org/mailman/listinfo/project_owners >
_______________________________________________ Project_owners mailing list [email protected] https://www.mozdev.org/mailman/listinfo/project_owners
