The naming-standards tag has no wiki summary.
1
vote
3answers
267 views
“Is” prefix and “On” suffix as reasonable exceptions to a “non-hungarian” naming standard?
First, I believe I've seen this question discussed here before, but I cannot find it. My apologies if you do find it.
I'm starting a new project, and trying to figure out why IsResolved and/or ...
2
votes
3answers
213 views
Naming the project containing only interfaces
I've extracted interfaces from my repository classes, like ICustomerRepository, IProductRepository and so on. The project which contains the repositories is named X.DataAccessLayer. Should I call the ...
4
votes
2answers
420 views
Why do most java classes end with “ers”? [closed]
...Provider
...Searcher
...Resolver
...Builder
...Manager
...Importer
...Descriptor
...Helper
...Indexer
Is it a global convention to refer a thing with "..ers" or "..ors". In contrast, a "thing" ...
8
votes
4answers
643 views
What's the best practice for naming uploaded images?
Suppose I have a form in my web application where users can upload a profile picture.
I've got few requirements about file size, dimensions etc, but when the user uploads the image, how should I name ...
5
votes
3answers
467 views
Might starting variables/members with an underscore puzzle the compiler?
I've been taught since high school that defining variables like this:
int _a;
or
int __a;
should be consider bad practice because this would eventually puzzle compilers that use variables starting ...
1
vote
2answers
124 views
Pros/Cons for getter and setters of collections
I'm creating a model where one element can contain other elements. I'm currently writing the interface to the model, and I'm not sure which is the best of the two options:
Option 1
interface ...
2
votes
4answers
199 views
Derived Class Method Naming
I'm having a hard time coming up with a good naming convention for methods in derived classes that serve the same purpose as the methods in the base class. For example, if both the base class, and the ...
2
votes
2answers
242 views
Writing Clean, Elegant Procedural Code (BASIC): Is There Such a Thing?
I learned to code in OO languages. I've always been interested in design patterns, clean code, etc., etc. - you know the type.
Now at work I'm using a BASIC dialect. Given modern programming values, ...
-1
votes
1answer
89 views
Database Connection Variable Name [closed]
What are the most well known / commonly accepted variable names used for the SQL connection itself?
In Perl, I have seen $dbh (stands for database handle, but why 'handle'), which has been used only ...
6
votes
1answer
245 views
What is the convention for the star location in reference variables?
I have been learning Objective-C, noting that different books and examples use differing conventions for the location of the star (*) when naming reference variables:
MyType* x;
MyType *y;
MyType*z; ...
0
votes
3answers
178 views
How should compound words be handled when coding? Is there a definitive list of compound words? [closed]
QUESTION:
How should you handle compound words when programming?
Are there any good lists available online for developers of generally accepted technology-related compound words?
I can see how ...
7
votes
1answer
205 views
Why does XMLHttpRequest not seem to follow a naming convention?
I've been working with the XMLHttpRequest object in JavaScript recently, and I couldn't help but notice that the casing of this name makes no sense. Why is 'XML' all in caps while 'Http' is not? ...
4
votes
3answers
484 views
Environment naming standards in software development?
My project is currently suffering from environment naming issues. Different people have different assumptions as to what environments should be named or what the names designate, and it's causing ...