Naming Conventions

Last post 07-03-2009 7:45 AM by chintanpshah. 4 replies.

Sort Posts:

  • Naming Conventions

    07-03-2009, 5:16 AM
    • Member
      39 point Member
    • KulerMaster
    • Member since 11-17-2008, 1:31 AM
    • Posts 142

    Is it ok if i use the underscors in my code

    I mean is it ok if i use a two underscores for the classes e.g. __MyClass or single underscore for the func e.g. _MySharedFunction etc.


    I mean is there any issue with the underscores?

  • Re: Naming Conventions

    07-03-2009, 7:28 AM
    Answer
    • All-Star
      91,768 point All-Star
    • vinz
    • Member since 10-05-2007, 3:47 PM
    • Cebu, Philippines
    • Posts 13,769
    • TrustedFriends-MVPs

    I usually use Pascal Case for naming classes..

    Design Guidelines for Class Library Developers

    "Code,Beer and Music ~ my way of being a programmer"

  • Re: Naming Conventions

    07-03-2009, 7:35 AM
    Answer
    • Star
      10,840 point Star
    • chintanpshah
    • Member since 11-19-2008, 5:39 AM
    • Ahmedabad
    • Posts 1,942

    There will not be any Issue. But, its not common practice to give names like this to Class and Function. _ (underscore) is used for Private variables of class in general. 

    Hope this helps...

    Don't forget to mark as answer, if it helps
  • Re: Naming Conventions

    07-03-2009, 7:40 AM
    • Member
      39 point Member
    • KulerMaster
    • Member since 11-17-2008, 1:31 AM
    • Posts 142

    Means as long as i keep it consistent and as long i understand my code there will not be issues?


  • Re: Naming Conventions

    07-03-2009, 7:45 AM
    Answer
    • Star
      10,840 point Star
    • chintanpshah
    • Member since 11-19-2008, 5:39 AM
    • Ahmedabad
    • Posts 1,942

    No there can never be issue with the naming style of the classes or function or variables and so on.

    Its the matter of following Common Naming Convention.

    Hope this helps...

    Don't forget to mark as answer, if it helps
Page 1 of 1 (5 items)