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

Julia BinDeps: Difference between Sources and Binaries

I am trying to use BinDeps to download a package dependency. After reading the documentation I am still a little confused over the difference between Sources and Binaries. Can someone explain how they are different? If I just want to download a .so…
Mageek
  • 4,691
  • 3
  • 26
  • 42
0
votes
1 answer

How to satisfy both Rails controller naming conventions and naming of callback path?

When using an oauth provider I want to have a callback link like so: base_url/callback. I want to have a controller responding with its index action to this url. Here's the thing however - if I create a CallbacksController the path to the index…
Alexander Popov
  • 23,073
  • 19
  • 91
  • 130
0
votes
2 answers

Trying to get simple definitions for Objects and Datatypes.

I'm trying to wrap my head around the correct naming of objects. So let's say I call Fruit apple = new Fruit(apple); So is Fruit (1st) the datatype apple (1st) the name of the object Fruit() a call to the constructor apple (2nd) a reference to…
0
votes
1 answer

R: Name an object created within a function with a name defined by the function

I need to simulate some data, and I would like to have a function with everything built in, so I just need to run simulate(scenario="xxx") This function stores all the simulated datasets for the designated scenario in a list called simdat. Within…
0
votes
1 answer

A key distinct from any legal possibilities in the data

"There are only two hard problems in Computer Science: cache invalidation and naming things." -- Phil Karlton When needing some logic like below, I'm struggling to come up with a sensible name for the THING: THING = object() def…
wim
  • 338,267
  • 99
  • 616
  • 750
0
votes
0 answers

Underscores in names of columns in Hibernate + PostgreSql

I’ve created a PostgreSql database and configured Hibernate. Now I have problem with naming of columns. In the table „users” I have a column „role_id”. After that, I’ve created entity in Java: @Basic @Column(name = "role_id") public…
user2783755
  • 578
  • 2
  • 10
  • 26
0
votes
0 answers

Naming external parameter in init method

I have this very simple code: class ESTime: NSObject { let hours:Int let minutes:Int init(withHours hours:Int, andMinutes minutes:Int) { self.hours = hours self.minutes = minutes } } It doesn't compile. The error…
Andrey Chernukha
  • 21,488
  • 17
  • 97
  • 161
0
votes
0 answers

How to correctly implement assignment mutator methods ( += , /= , etc ) for class member variables , in Java

Java doesn't support operator overloading , so when I want to plus_equals [ += ] two objects like this : // pseudo : a += b ; In Java I have to write : a . set ( a . add ( b ) ) ; Which can be wrapped in a method to more closely mimic…
0
votes
2 answers

Bad practice to repeat class name in property names?

Suppose I have a class called Person with a property for their name. Is it bad practice to name that property "personName"? Wouldn't just "name" suffice since "person" is implied already? Then you end up with syntax like: person.personName, which…
cas5nq
  • 413
  • 5
  • 11
0
votes
1 answer

Is Abstracting API function call names correct?

When using an external library or API, I have noticed that each function or data structure belonging to that library or API has something in its name which discloses the API or library we are using. For example, D3DXVECTOR3 or SDL_Surface from…
The Light Spark
  • 504
  • 4
  • 19
0
votes
1 answer

Dynamic Table Name Causing Problems, any ideas?

I have a really tricky bug in my macro project. At one point in the project I take a large dynamic range and convert it into a filterable table. I need to run several passes on this table, which each require a removal of duplicates in a different…
Lewis Heslop
  • 574
  • 2
  • 8
  • 25
0
votes
1 answer

How generally to refer to a function's argument in the course of further coding?

How can I refer to the choice of a function's argument in the course of my further coding?---A specific example: library("quantmod") INDEX<-get(getSymbols("^GDAXI",…
Clyde Frog
  • 483
  • 1
  • 6
  • 15
0
votes
1 answer

Naming a UIImagePickerController according to an NSString

I'm programatically creating x number of UIPicker instances and I want to retrieve the images picked using the didFinishPicking method. I therefore need a way to uniquely identify each picker instance. I'm trying to name each picker in the format…
0
votes
1 answer

Name for a stream that cannot seek backwards

Is there an often-used name for a stream that cannot seek backwards? I was thinking of calling it a "forward stream", but would prefer a more often used term.
simonzack
  • 19,729
  • 13
  • 73
  • 118
0
votes
1 answer

CakePHP using foreign keys with different names as the associated primary keys

I set up more than one models, which i want to associate with a master-model like this: class CommonType extends AppModel { public $useDbConfig = 'common'; public $hasOne = array( 'CommonTypeDescription' => array( …
1 2 3
99
100