Top "Naming-conventions" questions

Naming conventions refer to general rules governing names assigned to programming constructs such as variables and methods.

Why is the asterisk before the variable name, rather than after the type?

Why do most C programmers name variables like this: int *myVariable; rather than like this: int* myVariable; Both are valid. …

c pointers variables naming-conventions
What is a proper naming convention for MySQL FKs?

Being that they must be unique, what should I name FK's in a MySQL DB?

mysql naming-conventions foreign-keys
Naming convention for utility classes in Java

When writing utility classes in Java, what are some good guidelines to follow? Should packges be "util" or "utils"? Is …

java naming-conventions
Generic type parameter naming convention for Java (with multiple chars)?

In some interfaces I wrote I'd like to name generic type parameters with more than one character to make the …

java generics naming-conventions
Correct Bash and shell script variable capitalization

I run across many shell scripts with variables in all caps, and I've always thought that there is a severe …

bash shell scripting naming-conventions capitalization
Is there a convention to name collection in MongoDB?

I would like to know if there is a convention for database collections such as: PageVisit or page_visit. Are …

mongodb naming-conventions
Why do Java programmers like to name a variable "clazz"?

I've seen lots of codes have declaration like Class clazz , where does this originate from ? Is this some kind of …

java naming-conventions
Boolean method naming readability

Simple question, from a readability standpoint, which method name do you prefer for a boolean method: public boolean isUserExist(...) or: …

api naming-conventions readability
Anyone else find naming classes and methods one of the most difficult parts in programming?

So I'm working on this class that's supposed to request help documentation from a vendor through a web service. I …

naming-conventions
Trailing underscores for member variables in C++

I've seen people use a trailing underscore for member variables in classes, for instance in the renowned C++ FAQ Lite. …

c++ naming-conventions member