Questions tagged [naming]
A general purpose tag to cover anything concerning naming, be it files, programming constructs, data etc.
naming
1,718
questions
1
vote
1
answer
35
views
Why not reuse a class name for an instance of the class in python? [closed]
I want to get singleton/module-like behavior without the hassle of imports. Are there any issues with just creating a class and then reusing its name to prevent other instances of the class?
For ...
0
votes
1
answer
37
views
How to suppress warning for all derived types?
I have an ITemplate interface in my project. All interfaces derived from it have names that do not start with I. This causes the InconsistentNaming warning to appear.
I want to suppress this warning ...
-1
votes
0
answers
16
views
How you call non inclusive upper bound with the index TO+1?
Imagine you store subsequence in a file, e.g. 10 elements from the element with index 10. So you call the file FROM_10_TO_19. Then you realize 19-10 is not actual number of elements so you would like ...
2
votes
1
answer
77
views
Associated type (type parameter) naming convention
Rust's official naming guidelines suggest that we should use concise UpperCamelCase, usually single uppercase letter: T. But I have a trait with several associated types. Is it okay to use acronyms ...
0
votes
1
answer
98
views
How to register celery class based task with a custom name in 5.x?
Architecture: Flask app running in its own container, Celery running in its own container. Message broker is Redis. This is all python btw.
Problem: I cant figure out how to register a class based ...
0
votes
1
answer
33
views
Which url name should be used for api performing the membership withdrawal function
Q1. Is it okay to use the word "deregistration" in the API specification,
or should I use "signout"?
Which one is better?
Q2. And I wonder if the actual logic of membership ...
0
votes
0
answers
18
views
Variable or pattern name for method arguments as both input and output parameter
When I have an ecryption method parameter that acts as an input and output parameter, is there a convention on how to name such parameters? Or, more general, when I have a method that completely ...
0
votes
0
answers
14
views
Error when attempting to set a Worksheet name from a user defined list
I am trying to send user submitted data to up to two different worksheets in excel using vba macro.
I am a beginner and very much still learning the program / vba. I believe I am using the wrong ...
1
vote
1
answer
66
views
Conventions for Swift protocols [closed]
I have a class called NetworkInterface - and I want to make this class testable. The way to do this in Swift means I should extract a protocol from it? My quandry is, what do I call this protocol? I ...
0
votes
0
answers
34
views
Custom MIME Type Iconpack (glTF)
If one was to build or edit an icon pack for GNOME, and one wanted to add icons for filetypes that would be recognized, you would have to put your .svg in a folder where the MIME types are stored. ...
1
vote
0
answers
18
views
Naming classes on a framework that present multiple platforms
Our company has recently started developing a new UIKit. This framework is being developed using the atomic design methodology and is present on three different platforms: web, iOS, and Android.
In a ...
0
votes
0
answers
87
views
Where ReSharper naming rule is defined which prohibits using the prefix "Default" in type names, property names, constant names...?
I have the following class with const names and property names starting with Default prefix:
public class ComputeInfo
{
// ReSharper disable InconsistentNaming
public const string ...
-1
votes
1
answer
24
views
how to name a Master on a raspberry
I've a simply question.
I need to build a MASTER for a raspberry, so i need to make an image of my OS with my own configuration and some specific software installed on it.
Afterwards we must deploy ...
-1
votes
1
answer
149
views
What is the difference between Resolver and Service in java [closed]
I have a general question , i noticed that some people are naming classes as Resolver in spring boot application , but in functionality it os the same as in services , the only difference is the ...
3
votes
1
answer
108
views
How do I name controllers which are related to multiple entities in REST?
I want to rename and re-route controllers to make them more "RESTful", and I encountered a problem. Let's say I have ItemsController, the route is api/items. Then I have VersionsController, ...