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
42
votes
9 answers

Is using "is" to name Boolean variables bad practice?

Is naming Booleans that start with "is" bad practice now? My manager believes that "isAnything" is outdated and poor practice. Is this true? myManager.isLame ? correct() : incorrect();
worked
  • 5,762
  • 5
  • 54
  • 79
42
votes
3 answers

What is the reason function names are prefixed with an underscore by the compiler?

When I see the assembly code of a C app, like this: emacs hello.c clang -S -O hello.c -o hello.s cat hello.s Function names are prefixed with an underscore (e.g. callq _printf). Why is this done and what advantages does it…
user142019
42
votes
5 answers

Name for HTTP Request+Response

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 Message Types: 4.1 Message Types HTTP messages consist of requests…
VolkerK
  • 95,432
  • 20
  • 163
  • 226
40
votes
2 answers

Is there any kind of standard for representing date ranges?

ISO 8601 represents a date as YYYY-MM-DD. It doesn't seem to offer any recommendation on how to represent a date range, for example: 2013-01-01 => 2013-06-31 Does ISO 8601, or another standard, give a sensible recommendation for representing date…
BenMorel
  • 34,448
  • 50
  • 182
  • 322
39
votes
3 answers

Why is one_of() called that?

Why is dplyr::one_of() called that? All the other select_helpers names make sense to me, so I'm wondering if there's an aspect of one_of() that I don't understand. My understanding of one_of() is that it just lets you select variables using a…
MissMonicaE
  • 709
  • 1
  • 8
  • 15
37
votes
5 answers

iPhone Application Name Availability

Is there a way to check whether an iphone application name is available to use? Would a search on iTunes and checking to see if there is an existing application already out there be indicative that an iphone application name is available to use or…
WillF
  • 665
  • 1
  • 7
  • 15
36
votes
3 answers

Interface naming convention Golang

I'll just post my code: /* * Role will ALWAYS reserve the session key "role". */ package goserver const ( ROLE_KEY string = "role" ) type Role string //if index is higher or equal than role, will pass type RolesHierarchy []Role func (r…
Dale
  • 1,220
  • 2
  • 10
  • 20
35
votes
12 answers

C# .NET instance variable naming convention?

I'm doing a small internship at a business and in their code I find classes that are named like this: public class FlagsConfig { private static FlagsConfig _instance; } Is the _instance a naming convention of any sort in C#? I would ask the…
Shogoot
  • 297
  • 2
  • 6
  • 13
35
votes
5 answers

When duplicating a target in Xcode, is there any way to set the name that the target will have before or as it is created?

Duplicating a target in Xcode is a great way to create multiple app or framework/library products that have somewhat different features using the same codebase as a result of conditional code controlled by environmental variables set within the…
Halle
  • 3,584
  • 1
  • 37
  • 53
34
votes
15 answers

Semantic difference between "Find" and "Search"?

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 application UI as well as API design.
Larsenal
  • 49,878
  • 43
  • 152
  • 220
34
votes
5 answers

Renaming SVN repository project name

I have migrated a project from CVS to SVN. Now I need to rename that project. What can be the best possible way to rename it, keeping the all the history intact. The project folder contains some 100 numbers of C and its header files.
thetna
  • 6,903
  • 26
  • 79
  • 113
34
votes
33 answers

What kind of prefix do you use for member variables?

No doubt, it's essential for understanding code to give member variables a prefix so that they can easily be distinguished from "normal" variables. But what kind of prefix do you use? I have been working on projects where we used m_ as prefix, on…
Thomas Koschel
  • 3,321
  • 9
  • 33
  • 38
33
votes
4 answers

Is there a recommended naming convention for files that contain only functions/extension methods?

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 would you name unit test classes for those functions?
gvlasov
  • 18,638
  • 21
  • 74
  • 110
33
votes
10 answers

Is there a name meaning "not a singleton"?

Is there a name meaning "not a singleton"?
Richard Nagle
  • 11,974
  • 3
  • 21
  • 16
33
votes
1 answer

What does .dist used as an extension of some source code file mean?

Examples in the Zend tutorial: phpunit.xml.dist local.php.dist TestConfig.php.dist
AsTeR
  • 7,247
  • 14
  • 60
  • 99