Common Naming Schemes


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 10 of 10

Thread: Common Naming Schemes

  1. #1
    Join Date
    Nov 2004
    Posts
    142

    Common Naming Schemes

    Hi,

    Its been many many many (very long time) years since I coded in Foxpro and dbase 3.

    So, I have a question on coding today regarding naming schemes.

    Can anyone point me to, or tell me, what the standard naming conventions are for file names today ?

    IE:

    frmMYFORM (frm indicates a form)
    cmdMYCOMMAND (cmd indicates a command button)
    mnuMYMENU (mnu indicates a menu)

    It seems that there has evolved a standard way to files in an app. Is there a listing somewhere ?

    Thanks
    shickey

  2. #2
    Join Date
    Dec 2003
    Posts
    2,750
    See if the following helps:

    Naming Guidelines
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

  3. #3
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    I'm confused: Are you asking about naming conventions for FoxPro/xBase, or for .NET languages? For future reference, FoxPro/xBase questions should be posted to the Database forum. Thank you!
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  4. #4
    Join Date
    Nov 2004
    Posts
    142
    Hi

    Well, the FP & dBase days are over. Looking for VB.NET naming.

    pclement pointed out a location for some general Microsoft guidelines (interesting), but it does not list out some standard naming schemes that I see used, such as "frm" as a pre to designate a form, "cmd" prefix to designate a command button, etc.

  5. #5
    Join Date
    Dec 2003
    Posts
    2,750
    The Hungarian Notation that represents these objects hasn't really changed nor has it been enhanced to support new classes.

    Some developers still use this naming convention and some don't, however, it's more or less been outdated and abandoned by Microsoft for .NET development.

    http://support.microsoft.com/default...b;en-us;110264
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

  6. #6
    Join Date
    May 2004
    Location
    Texas
    Posts
    21
    Typically in VFP the standard is just picked up from reading code. Each shop is different.

    cbo - combobox
    lst - listbox
    txt - textbox
    btn - button
    grd - grid
    chk - checkbox
    pnl - panel
    frm - form
    mnu - menu
    lbl - label
    edt - editbox
    spn - spinner
    cnt - container
    pgf - page frame
    opg - option group
    cmg - command group


    Most shops practice Hungarian notation in their code:

    aVariableName - array
    oVariableName - object
    nVariableName - numeric
    cVariableName- char/string
    lVariableName - logical
    dVariableName - date

  7. #7
    Join Date
    May 2004
    Location
    Texas
    Posts
    21
    Our shop is moving our 10 year old app from VFP to C#. Old naming conventions ( Hungarian ) are being dropped for Microsoft standards ( Paschal/camel ).

  8. #8
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  9. #9
    Join Date
    Nov 2004
    Posts
    142

    Wink

    Very Cool....

    Thanks Guys


    shickey

  10. #10
    Join Date
    Sep 2004
    Posts
    17
    Here’s a link to an excellent free document, that covers naming conventions plus a whole lot more!

    http://www.iridiumsoftsol.com/conten...gy/whitepapers

    I found it very helpful when starting out.

    Talyrond

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center