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

Wordpress Gallery Name Structure

This website annapogossova.com is set up through wordpress. As you can see each "gallery" is set up as a page, with an iFrame linking to the actual html gallery. The problem is - Anna would like to call each item in the drop down menu - Gallery 1,…
MDB
  • 117
  • 3
  • 15
0
votes
1 answer

Name for a "model and view" object?

Spring MVC names objects that contain a logical view name and the payload to render ModelAndView, the JAX-RS implementation Jersey names them Viewable. I like Viewable a bit better, but maybe you have a better suggestion. Example: return new…
deamon
  • 89,107
  • 111
  • 320
  • 448
0
votes
4 answers

How to create a java method that stores User Input?

I've been trying to wreck my brain around this for days. I need to make a method that is going to ask for the user input via the keybaord. I've written it as private static String getFromUser(String question){ String s = " "; …
0
votes
3 answers

Iterating variables to change its features in Python

I assigned values with setattr() function in a loop: for i in range(30): for j in range(6): setattr(self, "e"+str(i)+str(j), Entry(self.top)) , then I want to apply .grid() func. to all these variables with a loop. For…
erkangur
  • 2,048
  • 5
  • 21
  • 31
0
votes
2 answers

Naming convention for variables like timers, counters, indices, etc?

I have a project in which I am organizing my variables/tags using categories like "PartA", "PartB", "Data", "HMI", and of course the requisite "Debug". So a few examples of random tags would be: Debug.ReadWriteTimer HMI.ReportViewerMode …
Dan A.
  • 195
  • 10
0
votes
4 answers

Inline function naming convention

I was wondering if there is a sort of naming convention when using inline functions. Say I am implementing an API and want to let the user decide if he wants to use a normal function or an inline function(both doing the same thing), is there a…
Bongo
  • 2,933
  • 5
  • 36
  • 67
0
votes
0 answers

(JAVA) Create name of class instance object from variable

I was searching web but find no answer for this case: I am still JAVA newbie working on a rendering sw, lets say I am instancing a class named Shaders which I could very easily do like this: Shaders someName = new Shaders(); Problem is that I…
errerr
  • 63
  • 8
0
votes
1 answer

Unity3D Editor - Creating Automatically Unique-Named Game Objects?

I have some Unity editor integration scripts with that the user should be able to create game objects in the opened scene and I'd like to be able to automatically give each newly created object a unique, preferably sequentially numbered name,…
BadmintonCat
  • 9,416
  • 14
  • 78
  • 129
0
votes
1 answer

ANDROID: After Rename .IML all Classes Red and Project won't Build

I was following a youtube tutorial on changing my android studio project name, so that when I download it from Google Play it doesn't display the old app name. The video suggested Refactor--> Renaming the .IML file, and then going to Modules.xml…
0
votes
1 answer

Give each variable a name based on an already existing logical-ID vector (MATLAB)

I have length(C) number of variables. Each index represents a uniqe type of variable (in my optimization model), e.g. wheter it is electricity generation, transmission line capacity etc.. However, I have a logical vector with the same length as C…
Martin K
  • 5
  • 1
0
votes
1 answer

Script working for 1 directory path but not for multiple directory paths

I am trying to Create a CD_TMP file in each WE*.MS directory Set content by processing the AHD*.TPL and ADT*.TPL files Rename the AHD*.TPL to AHD*.TPL.Done and ADT*.TPL to AHD*.TPL.Done. When there is only one WE.20150408.MS directory, the…
High_Tech
  • 31
  • 5
0
votes
3 answers

Creating subfiles uniquely

I have a problem. I have a file named for example abc. While working on this file I'll get some others files, which will have some unique info like tags or some values. I want to name them abc#unique_id. It's like a perfect/injective hash function.…
Z-DNA
  • 133
  • 1
  • 10
0
votes
1 answer

Clojure{Script} protocol naming

What is the idiomatic way to name a Clojure protocol ? IProtocol or Protocol, or do they present different use cases, and why ? So far I use IProtocol when dealing with interoperability (Java or js/google-closure in ClojureScript). I am also…
nha
  • 17,623
  • 13
  • 87
  • 133
0
votes
2 answers

A Pattern Naming Curiosity: Why ActiveRecord and not ActionRecord?

I am really curious about this naming convention: ActiveRecord, not ActionRecord ActionMailer, not ActiveMailer ActionController, not ActiveController Basically, what I am asking is if there is a difference between using Active and Action?
0
votes
1 answer

How to add an interator number to a variable name?

In my program i'm currently working on programmatically adding a variety of form objects in C#. For example i'm trying to create a certain group of panels, which contain the data I wish to show. When loading the form I have a file which contains all…
Rhydis
  • 13
  • 2