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

Is it possible to include loop counter in name of array when declaring it? (in C)

I have this loop which creates a certain number of array depending on a value input by the user. I want to include the counter of the array at the end of the array name such that it is: array1[], array2[], array3[] and so on, one for each iteration.…
Yiannis
  • 929
  • 2
  • 11
  • 14
0
votes
1 answer

Naming object and its string representation

Sirs, I have a lot of places in my code where method receives raw user input as string, then TryParses it to actual data type (decimal, enum, etc). The object I name by its actual purpose (for example, decimal amount). But I can't figure what is the…
Denis
  • 3,653
  • 4
  • 30
  • 43
0
votes
1 answer

dynamic naming of UIButtons within a loop - objective-c, iphone sdk

As it may seem obvious I am not armed with Objective C knowledge. Levering on other more simple computer languages I am trying to set a dynamic name for a list of buttons generated by a simple loop (as the following code suggest). Simply putting it,…
chewy
  • 8,207
  • 6
  • 42
  • 70
0
votes
2 answers

Naming Java File with Inheritance to compile

I wanna compile java file but dont know how to name the file, since it has 2 public classes, where 1 class inherits from another. I named the file with name of Superclass, however cmd is giving me an error saying that "subclass is public, should be…
Mario
  • 1
  • 3
0
votes
1 answer

What is this signature { zero : α; append : α -> β -> α; } name?

I have Monoid and Builder interfaces: interface IMonoidFor { T Zero { get; } T Append(T a, T b); } interface IBuilderFor { IBuilderFor Append(T value); T Result(); } And want to implement from Monoid to Builder converting…
Valentyn Zakharenko
  • 2,710
  • 1
  • 21
  • 47
0
votes
1 answer

How to name an inherited classes?

Let's say I have inheritance like this Person | +-----+------+ | | Student Teacher Then I would call Person the Base. How would I call Student? Inherited class sounds stupid. Is there a single word…
juergen d
  • 201,996
  • 37
  • 293
  • 362
0
votes
4 answers

Is it kEatSpeed or kSpeedEat?

I have a bunch of related constants that are not identical. What's the better way to name them? way #1 kWalkSpeed kRunSpeed kEatSpeed kDrinkSpeed Or, way #2 kSpeedWalk kSpeedRun kSpeedEat kSpeedDrink If we evaluate these based…
bobobobo
  • 64,917
  • 62
  • 258
  • 363
0
votes
3 answers

Function naming: sendCharacter or receiveCharacter?

I'm trying to name a function that runs when a character is received by the object. For the caller, it should be named sendCharacter, so that it can call: object->sendCharacter( character ) ; That looks nice for the caller.. but for the receiver,…
bobobobo
  • 64,917
  • 62
  • 258
  • 363
0
votes
1 answer

Module name within class name

While refactoring my User class, I created a new UserService class. After some work I decided to move all user related operations into a new microservice which resides under the "User" namespace. My first move would be having User::UserService which…
SystematicFrank
  • 16,555
  • 7
  • 56
  • 102
0
votes
1 answer

Plugin route to a prefixed controller

I'm creating a plugin for my application (using CakePHP 2.6.0) that allows users to login into a user area using the same model as for the admin area, so I'm trying to get the same type of URI scheme as the admin area e.g. /admin/users/login but…
Max
  • 21
  • 4
0
votes
1 answer

What are groups on the same z-coordinate called? (eg, such groups on the same x-coord are called "columns".)

I am wondering if there is a conventional name for groups that lie on the same z-coordinate. Eg, such groups on the same x-coord are called "columns", and such groups on the same y-coord are called "rows". Is there such a conventional name for…
Zachary Ryan Smith
  • 2,688
  • 1
  • 20
  • 30
0
votes
3 answers

Create a textfile where filename is based on the value in one or two arrays

In a C-program I am trying to create a textfile where the file name should be based on the input to one or two char arrays in a structure. At the moment I query the filename like this: printf("Type a filename:"); scanf("%s",…
Espen
  • 147
  • 4
  • 16
0
votes
1 answer

Setting the name of cells inside a vba function

While inside a VBA function I'm attempting to change the name of certain cells to flag them and use them later. I have a searching function that searches excel docs for keywords from a .txt file and need to know which cells don't include any of the…
Tyler Cheek
  • 327
  • 2
  • 14
0
votes
2 answers

Naming personal email address with own domain

I am planning to host my own mail server at a personal website with my name as the domain name. What is the naming convention for such personal email address at a personal domain? my_name@my_name.com sounds silly and is repetitive.
siyu
  • 147
  • 5
0
votes
1 answer

Oracle SQL columns naming

I'm using Oracle SQL. I have 3 tables which including each one 80 columns with the same columns names. I want to join the tables into a new table, but i supposed to get an error due to a duplicated naming. I don’t what to rename 240 columns. Is…
Omri
  • 1,436
  • 7
  • 31
  • 61