Results 1 to 6 of 6

Thread: Naming Conventions...

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

    Angry Naming Conventions...

    Can anyone direct me to some good sites that deal with organizing and naming not only variables but also how to design a good naming schema for forms, modules, COMs, StoredProcs?

    Thanks

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    -= a peet post =-

  3. #3
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    I personally don't like 1 letter prefixes. On that site variable naing convention is using single letter prefix except byte, float, single, double. object etc.

    That's why I use 3 letter prefixes all the time.
    For the scope that site uses g and m (global and module) which is the same thing I use. I also have a prefix p for the parameter.
    So if you look at my code on this site you will see that I'm pretty consistent with the naming convention.

    Good luck.

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    Serge, the problem I often run into is as the project develops I get backed into a corner with the naming of like my stored procs.

  5. #5
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277
    I have a brief listing of naming conventions on my webpage .

    Basically, ..... use 1 letter for variables, and 3 for objects.
    ~Peter


  6. #6
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    With stored procs I usually use lp_StoreProcName

    lp indicates a local procedure.
    The reason why I dont use "sp_" as many people do is because sp_ is being used by system stored procs.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width