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
0
votes
1 answer

Naming a method that returns 0 for negative values

I'm writing such a method library. I can't seem to find a good name for it nor any reference of anyone having named such a function before. What would be a good name for it?
bluehallu
  • 10,205
  • 9
  • 44
  • 61
0
votes
1 answer

ListView Items not getting renamed properly

I have a list view that has two columns: one for the prefix and one for the connection string. Example: Prefix| Connection string -------------------------- OR1_ | blablabla -------------------------- OR2_ |…
0
votes
1 answer

Creating a new package in Java to make Web Service requests, what should I call it?

Bit of a newbie question, but I'm unfamiliar with Java. I'm thinking either: com.company.webservices or com.company.webserviceretriever or com.company.webservice.retriever Any thoughts or opinions on the matter?
BobC
  • 31
  • 5
0
votes
0 answers

Weblogic 10.3.1 version not showing JNDI tree stucture

I have created Admin server and followed these steps as per docs: To view objects in the JNDI tree: In the left pane expand Environment > Servers. On the Server summary page click the name of the server, for example, myserver. On the server…
vaishnavi
  • 33
  • 6
0
votes
1 answer

Why some object names starts with single or multiple underscores in c++?

I've seen a lot of times in c++ libraries tones of objects whose names start with underscores. I know some cases when this is useful for example: class Person { private: unsigned int age; //... public: …
ampawd
  • 968
  • 8
  • 26
0
votes
1 answer

Where to find what function names standfor? C++

I am learning c++ and I keep running into a common problem: I cannot find the reasons behind function names. For example, ifstream seekg() function. I attempt to look up the function on websites…
Enigma22134
  • 532
  • 5
  • 12
0
votes
2 answers

Renaming files in a smart way

I have a collection of files that I would like to re-organize in a smart way, using python. The files are state-county-year specific and saved in a folder structure of this form: \state\year\county\image.jpg with many images per county. I have the…
Julius
  • 1
  • 1
0
votes
4 answers

How unique should a class name be in Java?

Should I avoid naming my classes the same as classes in other external packages/libraries at the expense of sacrificing name conciseness and adding a little bit of complexity? For instance, in my application I have a package named UIComponents that…
carlossierra
  • 4,479
  • 4
  • 19
  • 30
0
votes
1 answer

Should you use related variables in your code?

Lately I was wondering if it is a bad practice to use variables in your code that are related to each other (e.g. a = 2 * b). A concrete example would be euro and dollars. Let's say we have a Person class who has some balance in euros and dollars…
Dacaspex
  • 669
  • 7
  • 15
0
votes
1 answer

is this a good variable name in JavaScript?

This seems fine to me but I wanted to know if it is ok to have two capital letters in a roll ("AF" in the case below). let isScoreAFloat = score % 1 !== 0; If this name is not the best, what name would better convey the possible result of the…
Gabriel Ferraz
  • 592
  • 6
  • 26
0
votes
0 answers

Referring to specific Python function in scientific manuscript

Assume the Python function def my_function() that is part of the class class MyClass(), which itself is part of the module mymodule.py, which is part of the package mypackage. mypackage/ mypackage/mymodule.py user$ cat mypackage/mymodule.py #class…
Michael Gruenstaeudl
  • 1,609
  • 1
  • 17
  • 31
0
votes
1 answer

Is there a name for a model class that never gets persisted?

In my MVVM project there are model classes that are persisted to the database, such as Customer, Product and Invoice. I've put these in a namespace called [Company].[Technology].Model as per the namespace naming Convention. I also have some model…
Guge
  • 4,569
  • 4
  • 35
  • 47
0
votes
2 answers

Naming methods to generic arguments

I am going over some code and I am adding some interfaces so i can make sure all the classes follow the same basic guidelines. Now I have an interface called Uni < T > which takes exactly one generic argument. Say I have a class which implements…
Whats
  • 11
0
votes
1 answer

Record variable value when condition true with dynamic name

I have 9x2 dataframe DATS with prices and POSIXct datetimestamps sampled every 15 minutes. and a list of dates FOMCDATES with the dates of recent FOMC events. I then split the POSIXct datetimestamps into separate Date and Time columns. I then add…
Krug
  • 1,003
  • 13
  • 33
0
votes
2 answers

alturnitives to dynamicly declaining variable names automaticly in vb.net

i searched online to find out how to dynamically declare variable names automatically and i came up with no results. my approach to the code i'm simplifying is as follows: dim choice1 as string dim choice2 as string dim choice3 as string ... i wish…