User:Siddiquimonish/sandbox

Bummy_Case has the advantage that DueDate is clearly a class while dueDate is clearly an instance. BumpyCase also makes individual program statements a little shorter and less likely to wrap across multiple lines. Do we indicate the type of identifiers in how we choose their name? A common system is: CONSTANT, Class, instance, subroutine. The name of a subroutine is usually clear from context since it's followed by parentheses. At the opposite end of the spectrum, HungarianNotation embeds a lot more type information in a name. Any special way of indicating data members or private members? Some people use a prefix, like _ or m_: class PhoneNumber { private: unsigned int m_areaCode; unsigned int m_exchange; unsigned int m_lastFourDigits; public: PhoneNumber(string& phoneNumber); CallResult call; ... };

In non-OO languages, where you have to fake classes, how do you create the fake namespace for a class? A common solution is to combine BumpyCase and underscores, like this: void MboxParser_create; ErrorCode MboxParser_open(char *filename); MailHeaderField* MboxParser_getHeaderFields;