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
0 answers

Dynamically defining functions using list elements in Python

I'm trying to define a number of functions that I can then run concurrently using multiprocessing. In order to do this, I'm attempting to use a list of strings and iterate over the list, having each string be the name of a separate function.…
alvalentini
  • 145
  • 2
  • 5
0
votes
4 answers

Naming a cyclic buffer class for timed samples?

Given: class Buf { // has fixed buffer size, forming a cyclic buffer tor t->v pairs void add(time_type t, value_type v); // adds value v at time t, overwriting the oldest buffered value value_type get(time_type t); // returns the value at time…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
0
votes
1 answer

Validate for File naming scheme

I have a file that drops into a folder location. I'm looking for a file named like this. ID _Data_Tape_CCYYMMDD_hhmmss.txt How do i accomplish this?
user1836442
  • 55
  • 1
  • 9
0
votes
1 answer

Difference between String.join and string.join? ReSharper - "Name can be simplified"

I've noticed this for a while now and am just curious if there is any advantage or benefit to "simplifying" the name. Example: var lst = new List { 1, 2, 3, 4, 5 }; string commaLst = String.Join(",", lst); ReSharper then says Name can be…
Quiver
  • 1,351
  • 6
  • 33
  • 56
0
votes
2 answers

Bad practice to set parameter variable name of method to the name of the data type in Ruby?

Is it poor practice to name the variable in a method a lowercase version of the class name? In the case below: string.class ==> String def title=(string) @title = string.split(' ').map.with_index do |word, i| i == 0 ? word.capitalize :…
David Sawatske
  • 111
  • 1
  • 7
0
votes
0 answers

naming Java Multiple Classes/Instances The Same Name

Beneath is a pair of classes that I came across in a youtube tutorial. I have come to understand it's functionality almost in its entirety, and I would like to use something similar in a project. However, I would generally assume that issues would…
manYman
  • 1
  • 1
0
votes
0 answers

A stands for Accumulator then why X is used instead of R to represent register

Hello friends please tell me ..... The general purpose registers are AX, BX, CX, DX... A stands for Accumulator then why X is used instead of R to represent register.
0
votes
1 answer

Naming the graphical window of a igraph drawing

In my software i am drawing 8 different graph drawings using igraph, when they pop up they are simply numbered graph1, graph2 and so on. I need to rename the windows with a predefined message. I couldn't find the right instruction to do it. I need…
Alex Fort
  • 93
  • 6
0
votes
0 answers

What would be a good name for a method that is implemented in the user side and executed by 'our library' in order to decide (boolean) an operation?

Note: The context of this question is javascript, however is generic enough to not tie it as just as a javascript question. We have a javascript library that needs to send a request using http or https. In order to decide which protocol to use, our…
José Cabo
  • 6,149
  • 3
  • 28
  • 39
0
votes
6 answers

What is an appropriate name for a class which can store some object in an xml-file and read it back?

I have a class which is called TestPlan (to put it simple, let's assume that it's a usual java bean). I need to store TestPlan instances in xml-files (1 instance per file). The most appropriate way to do it which I can see is using another class…
Roman
  • 64,384
  • 92
  • 238
  • 332
0
votes
2 answers

Test for functions names in javascript script (SpiderMonkey engine)

I am embeding SpiderMonkey (mozila javascript) interpreter/engine in my C/C++ application. i programatically loading a javascript script and want to test (from my C/C++ code) if a certain function exist/defined in this script. is there a way to do…
Vertilka
  • 183
  • 2
  • 13
0
votes
2 answers

How to naming Custom sql in Repository Pattern

I am working with Repository Pattern and I am writing one interface to use the methods CRUD, but i need one custom query, but i don't know how to name the method following a standard. I am making this way: public interface Repository { void…
Enieber
  • 87
  • 6
0
votes
1 answer

What's the difference between a URL such as "a.b.example" instead of "b.example/a"?

Why do some websites I see have a URL in the form a.b.example, and others are in the form of b.example/a? For example, why is it gist.github.com instead of github.com/gist?
Andi Gu
  • 900
  • 11
  • 20
0
votes
1 answer

What does the gpr_ prefix in grpc source code stand for?

There are two types of prefixes in the grpc source code: grpc and gpr_, it seems that the gpr_ prefix is used for internal functions, but what exactly does it stand?
0
votes
0 answers

Naming classes that query a database

I know about the DAO pattern, but a DAO is meant for persisting entities, not for performing complex queries. People also often suggest that DAOs only query a single table, using multiple DAOs at the service layer to construct a complete entity. But…
Luca Fülbier
  • 2,641
  • 1
  • 26
  • 43