Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Programming style, uppercase

Name: Anonymous 2010-05-10 15:26

I heard that writing variable names in upper case is bad. Is there a real motivation or is just a convention?

Name: Anonymous 2010-05-12 17:14

Tangential question!

Most people agree that when creating pointers as variables, the clearest syntax is as follows (Warning: I'll be using shitCase, since that is my preferred capitalization style at the moment):

ClassName *objectName;

...but what about in a class method definition?

ExoticType *ClassName::methodName(int argOne, int *argTwo)
{
//...


or

ExoticType* ClassName::methodName(int argOne, int *argTwo)
{
//...


?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List