Top "Naming-conventions" questions

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

Java - enum valueOf "override" naming convention

Say you have the following enum: public enum Color { RED("R"), GREEN("G"), BLUE("B"); private String shortName; private Color(…

java enums naming-conventions value-of
C# .NET instance variable naming convention?

I'm doing a small internship at a business and in their code I find classes that are named like this: …

c# .net naming-conventions naming
What is the underscore prefix for python file name?

In cherryPy for example, there are files like: __init__.py _cptools.py How are they different? What does this mean?

python naming-conventions prefix
Naming conventions for "number of foos" variables

Let's suppose that I need to store the number of foo objects in a variable. Not being a native English …

naming-conventions
How can I simulate interfaces in C++?

Since C++ lacks the interface feature of Java and C#, what is the preferred way to simulate interfaces in C++ …

c++ interface naming-conventions abstract-class
Good naming convention for private member functions in C++?

For members, I use //.......vv SomeType m_XXX; //.......^^ I'd love to use _ as a prefix for member functions, but names …

c++ naming-conventions private-methods
What are Clojure's Naming Conventions?

Can anyone explain or point me to where I can find clojure's naming conventions for: File names Functions (From what …

clojure naming-conventions
Rule of thumb for naming wrapper classes

I find myself creating a significant number of wrapper classes, purely because I want to mock out the behaviour of …

naming-conventions wrapper
mongodb schema design naming convention

So I have something called exports.create = function(projectJSON){ var project = new ProjectModel({ id : projectJSON.id, projectName : projectJSON.projectName , authorName : …

mongodb naming-conventions database-schema
Is it bad practice to use a built-in function name as an attribute or method identifier?

I know to never use built-in function names as variable identifiers. But are there any reasons not to use them …

python namespaces python-3.x reserved-words naming-conventions