Relative Content

Tag Archive for naming

Why do old C-style method names continue being used in modern languages? [duplicate]

This question already has answers here: Why are cryptic short identifiers still so common in low-level programming? (11 answers) Are short abbreviated method/function names that don’t use full words bad practice or a matter of style? [duplicate] (13 answers) Closed 9 years ago. I understand that in the earlier days of computing, shorter method names […]

Naming conventions for Java classes that have a static main method?

After reading gnat’s answer to Why a static main method in Java and C#, rather than a constructor? I take his answer to mean that the purpose of a Java class with a static main method is to define a program entry point and that it is not meant to be the program itself.

Should I put the datatype of a class attribute in its name?

Most of my system’s class attributes are just text, but in this case it makes more sense to place this particular class’s attributes into one single hash (from a “keep the source code pretty” aspect). Basically, a list of attributes is returned, and instead of writing a bunch of static attributes for each one, I just loop over them and collect them into a hash.