What are the best naming convention's you've used?
I was wondering how people name variables, objects, and function names with all the combination's out there; camel-case, pascal, using underscores, all caps for statics etc....

A good naming convention that is uniform could create a quicker understanding of what the item is, leading to much faster interpretations...e.g. 'oh its all in caps, so I KNOW its a static var'...'oh the function is in camel case so I know that it's a non-static call'... etc... 

I have even seen some people who include the return type in a function name like:

    int myFunction_int(); // the '_' is a delimiter for the return type
    string myFunction_string();

Just curious what convention's people use since some people come from c++ probably use the underscores more than the Java folks.

**More Examples**

    int g_my_global;
    int gMyGlobal;
    
    int* p_my_pointer;
    int* pMyPointer;
    
    static int MYSTATIC = 1;
    
    static void MyFunction();
    void my_function();
    void myFunction();


What are the best naming convention's you've used?
===

I was wondering how people name variables, objects, and function names with all the combination's out there; camel-case, pascal, using underscores, all caps for statics etc....

A good naming convention that is uniform could create a quicker understanding of what the item is, leading to much faster interpretations...e.g. 'oh its all in caps, so I KNOW its a static var'...'oh the function is in camel case so I know that it's a non-static call'... etc... 

I have even seen some people who include the return type in a function name like:

    int myFunction_int(); // the '_' is a delimiter for the return type
    string myFunction_string();

Just curious what convention's people use since some people come from c++ probably use the underscores more than the Java folks.

**More Examples**

    int g_my_global;
    int gMyGlobal;
    
    int* p_my_pointer;
    int* pMyPointer;
    
    static int MYSTATIC = 1;
    
    static void MyFunction();
    void my_function();
    void myFunction();

