Questions tagged [naming]
Give meaning and explanation with the fewest number of characters in a form that is most accepted by your team or community at large.
0
votes
2answers
84 views
Is this a proxy or bridge or something else?
I have an object that acts as a "bridge" between objects and I'm not really sure if it has a name.
Unity (the game engine) lets me build a concrete object and then link those objects in the inspector ...
-1
votes
1answer
582 views
What to name package and their facade classes?
I'm using a some C++ Facade classes like this:
Suppose that there is package named "SubSystem" with a lot of classes inside, like in the picture above.
I cannot name the package of the facade ...
-1
votes
1answer
64 views
How to name functions which continue a process after an asynchronous step
Say that you have an web application which prints pages in a document. Suppose that after validating the page range, the application does the following:
If a billing option is turned on, it first ...
-2
votes
1answer
53 views
How do I name a service that adds a line item to the quote?
I have an object called LineItem, which can be added to an object called Quote. A Quote can have 0 or more of LineItem.
I have a service, which is a class, whose purpose is to add LineItem to the ...
-4
votes
1answer
107 views
Is it bad practice to give a directory and a file the same name?
I have a program that produces a command line tool called GetFood. The source code lives in a directory named GetFood/, and I have a main file that interacts with a class that gets the food. It seems ...
-7
votes
1answer
530 views
Class names with Verbs
So I am reading Clean Code. In the Meaningful Names chapter, they lay down a rule of no verbs in class names. However in the Adding Meaningful Context section of that chapter, on page 29, he uses a ...
1
vote
0answers
146 views
What is a Function that Creates Functions Called?
Let's say I have the following function (in JavaScript, for sake of example):
function foo() {
var bar = function () {return 'lol';}
return bar;
}
This function returns other functions. I had ...
1
vote
0answers
49 views
Is this a misuse of locales (internal config name)?
I have a situation where a given object is named, but there are multiple formats that are reasonable for that name.
internal: fully qualified
human-readable: translatable name, meant to be used in ...
0
votes
0answers
35 views
Way to describe a coordinate system without external points of reference?
I'm writing an API for a JavaScript library to let my users offset an object from another.
I have to provide my user with a way to describe a "vertical" and "horizontal" offset.
My problem is that I ...
0
votes
0answers
44 views
Naming convention for string constants and string functions
I'm creating a react application, and I want to keep all my string constants in a single file like:
export const STR_LOGIN = "Log in"; //h1 on a login page
export const STR_USERNAME = "Username"; // ...
0
votes
0answers
98 views
Qt Naming Schemes for returns of boolean member variables: enabled(); vs isEnabled(); ?
In building my classes, I have noticed that I have not been very consistent about naming my boolean returns. In Qt; I notice that many of their classes use the is prefix, but checking their coding ...
0
votes
0answers
34 views
Name of the operation where whole table is put in array format
Consider this data struture:
key1 : value1
key2 : value2
key3 : value3
I have an operation that put this data in array format:
key1, value1, key2, value2, key3, value3
Which would the the name of ...
0
votes
0answers
64 views
Namespaces for a custom XML like language: URIs or not
I am working on an XML like language that features a namespace system also.
Now my question is: Should I use URIs as namespace names too (1) or should I follow the naming of java/.net/php namespaces (...
-3
votes
0answers
43 views
Need an attribute name that is instantly readable
I have an Employee class for which I want to create a method/attribute/property that outputs a formatting of the firstname lastname and the employeeid. It's a standard output for logging purposes ...