Questions tagged [naming]

A general purpose tag to cover anything concerning naming, be it files, programming constructs, data etc.

A general purpose tag to cover anything concerning naming, be it files, programming constructs, data etc.

1723 questions
18
votes
7 answers

What is a good common term for errors and warnings?

I'd like to build an OO hierarchy of errors and warnings returned to the client during a, let's say, pricing operation: interface PricingMessage {} interface PricingWarning extends PricingMessage {} interface PricingError extends PricingMessage…
sandris
  • 1,363
  • 13
  • 27
18
votes
13 answers

Naming your projects: does it matter?

I work on a variety of projects using different languages and platforms. Parts of them I abstract out into their own separate projects, and I want to open some of these up to the public. What gets me stuck is the christening. So, does it matter?…
Aupajo
  • 5,885
  • 6
  • 30
  • 28
17
votes
2 answers

Can a DAO call DAO?

I have component which needs to update the database for the customer and customer address (via JDBC). Is it appropriate to call the CustomerAddressDAO from the CustomerDAO? Or create a separate "CustomerDataManager" component which calls them…
Jack BeNimble
  • 35,733
  • 41
  • 130
  • 213
17
votes
2 answers

What is the difference between java.rmi.Naming and java.rmi.registry.LocateRegistry

when studying RMI sometimes (head first Java) dudes use Naming.rebind(name, object) but other peoples on the web (oracle) use Registry registry = LocateRegistry.getRegistry(); registry.rebind(name, object); I know that hf java is a little…
demonz demonz
  • 641
  • 1
  • 15
  • 32
17
votes
7 answers

C# Variable Naming

I was wondering what the best way of naming a variable is in C#? I know there are several different ways but I was just wondering why some people prefer one over the other? I tend to use a lowercase letter representing the type (I think this is the…
Bali C
  • 30,582
  • 35
  • 123
  • 152
17
votes
5 answers

Best practice for naming subclasses

I am often in a situation where I have a concept represented by an interface or class, and then I have a series of subclasses/subinterfaces which extend it. For example: A generic "DoiGraphNode" A "DoiGraphNode" representing a resource A…
Uri
  • 88,451
  • 51
  • 221
  • 321
17
votes
4 answers

Kubernetes pod naming convention

I'm wondering if there is a proper naming convention for generated pod names in Kubernetes. By generated pod names I mean the name displayed in both kubectl get pods or, for instance, by querying the heapster api: $ curl -s…
Miguel
  • 173
  • 1
  • 1
  • 4
17
votes
1 answer

F#: Best practices for organizing types and modules

If I take the functional approach of defining a type, and then describing functions (as opposed to instance methods) that operate on that type, how should I organize my code? I generally go one of three ways: (1): module MyType = type MyType (x…
MiloDC
  • 2,373
  • 1
  • 16
  • 25
17
votes
9 answers

Programmers dictionary/lexicon for non native speakers

I'm not an English speaker, and I'm not very good at English. I'm self thought. I have not worked together with others on a common codebase. I don't have any friends who program. I don't work with other programmers (at least nobody who cares about…
simendsjo
  • 4,739
  • 2
  • 25
  • 53
17
votes
1 answer

Common vs Core - difference

Assume we have a couple of libs. What is the difference between Core and Common library? How should they be recognized and do we organize the responsibilites of both? +Common -Class1 +Core -Class2 +Lib1 has : Common +Lib2 has : Core,…
Puchacz
  • 1,987
  • 2
  • 24
  • 38
17
votes
1 answer

Swift's standard library and name collision

I know that Swift doesn't use namespaces, but that names are defined within each module. First of all, I don't understand very well how this avoids name collisions -feel free to elaborate. Nevertheless, my main question is: Let's say I want a tree…
George
  • 1,235
  • 10
  • 23
17
votes
2 answers

Namespace naming convention when [CompanyName] starts with a lower case "i"

My company name starts with a lower case "i". For example: iWare (this is not the real company name, but it demonstrates the purposes). Because of this I find that I am constantly having to fight StyleCop and Resharper due to the namespace naming…
gregpakes
  • 4,465
  • 29
  • 43
16
votes
7 answers

Renaming Threads in Java

I am working on a project that is slowly getting larger and larger and the number of active threads used by many different processes is increasing. Lately, I have been taking a closer look at the running threads in the debugger and I have noticed…
Elijah
  • 13,368
  • 10
  • 57
  • 89
16
votes
3 answers

Set table name in Spring JPA

I think I'm trying to do something really simple. Using Spring Boot (1.3.3.RELEASE) with JPA I want to set a table name. @Entity @Table(name = "MyTable_name") public class MyTableData { ... } What I expect in my database is a table with…
EricGreg
  • 1,098
  • 1
  • 10
  • 18
16
votes
11 answers

Is naming variables after their type a bad practice?

I'm programming C++ using the underscore naming style (as opposed to camel case) which is also used by the STL and boost. However, since both types and variables/functions are named all lower case, a member variable declaration as follows will lead…
Noarth
  • 3,981
  • 6
  • 23
  • 16