naming Questions

3

Solved

Quite often I use values between 0.0 and 1.0 to hold progress, or transparancy, or other things that can go from none to full. A percentage if you will. I don't want to call it a percentage because...
Stewartstewed asked 29/12, 2015 at 16:45

6

Ok, so I've been using Java for a long time now and have recently been preparing for my OCJP exam. I was wondering if anyone might be able to provide any insight into why the method names "poll" (a...
Backpedal asked 18/2, 2012 at 16:50

3

By default, my Spring Boot project had JPA mapping entity properties to table columns by transforming the names from camelCase to snake_case (e.g. from fooBar to foo_bar). I'm working on an existi...
Rhiamon asked 14/6, 2018 at 13:29

16

Solved

When building an application, is there any meaningful difference between the idea of "Find" vs "Search" ? Do you think of them more or less as synonymous? I'm asking in terms of labeling for appli...
Unashamed asked 26/1, 2009 at 18:15

7

Solved

I've got a PowerShell function Download-File, which uses WebClient.DownloadFile -- hence the name. When I attempt to turn my .ps1 script into a .psm1 module, PowerShell warns me that "Download" is...
Olympus asked 25/5, 2012 at 9:4

2

Solved

I'm maintaining some legacy Java code, and I keep coming across a weird mix of camel case and snake case in the same blocks of code. Some names are entirely camel case, others are entirely snake ca...
Bernhard asked 25/7, 2017 at 21:30

5

Solved

For example, the accumulator is named EAX and, while the instruction pointer is called IP. I also know that there are bytes called CL and DH. I know there must be a convention to all of the names, ...
Magnetochemistry asked 21/5, 2009 at 13:27

8

Solved

I saw in an application where it had interfaces such as: IHasContent IHasValue IHasMesh IHasGeometry IHasTransformation Should they not be?: IHaveContent IHaveValue ... Or?: IIncludeCo...
Sirrah asked 10/3, 2011 at 22:55

4

Solved

How do you name a class when it's all caps in Java? For example, if I want to create a class to select certain people to be VIP. Should I name the class "VIPSelector" or "VipSelector...
Incontinent asked 30/6, 2020 at 3:43

3

It's a basic question but I want to know when defining main colors for an application, should the color classes be named by their color: pumpkin-orange, topaz, sky-blue,gray-color Or by their me...
Mcauliffe asked 18/6, 2018 at 13:15

4

In Java, it is simple: file name for a type is the name of a type plus .java suffix. In Kotlin, you can write files that don't contain classes. Is there any convention to name them? And also how ...
Lankester asked 10/11, 2015 at 17:45

18

Solved

Background In a C# command-line app I'm writing, several of the parameters have "yes" and "no" as the possible values. I am storing their input using the Enum type shown below. enum YesNo ...
Mcbryde asked 22/12, 2008 at 6:57

2

Solved

They say that use exclamation marks when naming impure functions. But I don't exactly understand the "impure" functions. Are they functions change state of their arguments (via reset!, alter, ja...
Stethoscope asked 16/12, 2013 at 8:22

4

Solved

Does the YYYY-MM-DD HH:MM:SS datetime format have a special name? I am writing a function that returns a date in this format and I'm trying to figure out what to call the function.
Sternlight asked 15/9, 2012 at 20:40

10

Solved

Is there a name meaning "not a singleton"?
Hatband asked 24/10, 2008 at 11:10

7

Solved

For the "Hello World" example in android.com, the package name is "package com.example.helloandroid;" Is there any guideline/standard to name this package? (references would be nice)
Dilute asked 8/6, 2011 at 3:27

13

Solved

From time to time I write a function that just creates something if it's not there yet and otherwise does nothing. Names like CreateFooIfNecessary() or EnsureThereIsAFoo() do work but they feel a b...
Gunas asked 6/8, 2009 at 11:47

5

Solved

Which characters are illegal within a branch name?
Aperiodic asked 6/9, 2010 at 13:33

3

Solved

Of course I could name the objects in my list all manually like this: #create dfs df1<-data.frame(a=sample(1:50,10),b=sample(1:50,10),c=sample(1:50,10)) df2<-data.frame(a=sample(1:50,9),b...
Olin asked 13/3, 2013 at 14:11

3

Solved

I'm trying to use a Performance Counter do determine how many bytes my application has sent or received. I followed the suggested solution found here: Calculating Bandwidth, but the instance of my ...
Cheeseburger asked 28/12, 2011 at 9:33

3

Solved

I think I'm trying to do something really simple. Using Spring Boot (1.3.3.RELEASE) with JPA I want to set a table name. @Entity @Table(name = "MyTable_name") public class MyTableData { ... } W...
Pastime asked 28/7, 2016 at 20:20

4

Solved

I'm wondering if there is a proper naming convention for generated pod names in Kubernetes. By generated pod names I mean the name displayed in both kubectl get pods or, for instance, by querying t...
Koss asked 13/9, 2017 at 18:27

7

Solved

If I have a method that hides a button, I would probably call it HideButton If I have a method that shows a button, I would probably call it ShowButton But what do you guys call a ShowIfThisHideI...
That asked 9/9, 2010 at 15:34

6

Solved

I'm interested in the different kinds of identifier cases, and what people call them. Do you know of any additions to this list, or other alternative names? myIdentifier : Camel case (e.g. in java...
Retinue asked 26/6, 2013 at 17:0

5

Solved

There's one thing I haven't found in RFC 2616 ("Hypertext Transfer Protocol -- HTTP/1.1") and that's a "canonical" name for a request/response pair. Is there such thing? 4.1 Mes...
Creamcups asked 28/11, 2008 at 9:21

© 2022 - 2025 — McMap. All rights reserved.