[Project_owners] Naming

Shivanand Sharma / Varun varun21 at gmail.com
Tue Nov 11 11:09:55 PST 2008


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 <belaviyo at gmail.com> wrote:

> Any Idea :)
>
> Is there any reference to show correct ways for naming variables ?
>
> On 11/9/08, joe ertaba <belaviyo at gmail.com> 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
> Project_owners at mozdev.org
> https://www.mozdev.org/mailman/listinfo/project_owners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mozdev.org/pipermail/project_owners/attachments/20081112/5e8b1a98/attachment.html>


More information about the Project_owners mailing list