Questions tagged [name-length]

Number of characters a name contains.

Number of characters a name contains.

14 questions
284
votes
15 answers

Maximum filename length in NTFS (Windows XP and Windows Vista)?

I'm designing a database table which will hold filenames of uploaded files. What is the maximum length of a filename in NTFS as used by Windows XP or Vista?
GateKiller
  • 74,180
  • 73
  • 171
  • 204
218
votes
12 answers

What is the maximum length of a table name in Oracle?

What are the maximum length of a table name and column name in Oracle?
robertkroll
  • 8,544
  • 6
  • 24
  • 24
55
votes
2 answers

Maximum length of variable name in JavaScript

What is the maximum length of a variable name in JavaScript?
Allan Bowe
  • 12,306
  • 19
  • 75
  • 124
45
votes
3 answers

Max name length of variable or method in Java

Is there a max length for class/method/variable names in Java? the JLS doesn't seem to mention that. I know very long names are problematic anyway from code readability and maintainability perspective, but just out of curiosity is there a limitation…
talg
  • 1,759
  • 6
  • 22
  • 30
44
votes
8 answers

Maximum Method Name Length

Does anyone happen to know what the maximum length of a method name is in your programming language of choice? I was going to make this a C# specific question, but I think it would be nice to know across the spectrum. What are the factors involved…
Josh
  • 44,706
  • 7
  • 102
  • 124
38
votes
4 answers

Does Java have a limit on the class name length?

This question came up in Spring class, which has some rather long class names. Is there a limit in the language for class name lengths?
Eugene Katz
  • 5,208
  • 7
  • 40
  • 49
10
votes
6 answers

Effect of field name length of a database on performance?

What effect does a field name length has on the performance of a database? Is it negligible? Should I go with long descriptive names?
Raminder
  • 1,847
  • 2
  • 18
  • 30
5
votes
2 answers

Maximum Possible File Name Length in Windows Kernel

I was wondering, what is the longest possible name length allowed by the Windows kernel? E.g.: I know the kernel uses UNICODE_STRING structures to hold all object paths, and since the byte length of a wide-character string is stored inside a USHORT,…
user541686
  • 205,094
  • 128
  • 528
  • 886
5
votes
5 answers

Programmatically determine maximum filename length

How can I determine the maximum filename length on a linux box? Preferred in PHP programming language.
prinzdezibel
  • 11,029
  • 17
  • 55
  • 62
3
votes
4 answers

How to find directories with the name of specific length

How could I find directories with the name of specific length? For example, I have bunch of directories which have length of the name equal to 33 chars ('a92e8cc611fdebcca3cf2fc8dc02c918', 'c442fb3f46d6c8bd17d27245290a9512' and so on). Does find…
altern
  • 5,829
  • 5
  • 44
  • 72
3
votes
4 answers

Does JUnit have some weird 30 character length limit on the name of your class?

I have a class that I made for some unit tests. Everything was going swimmingly until I changed the name of the class to match the class that I was testing suffixed with TestCase. All of a sudden every time I tried to run the test case in Eclipse I…
uriDium
  • 13,110
  • 20
  • 78
  • 138
1
vote
1 answer

enforcing functions name length in Oracle 12 to meet SQL-92 standard

in Oracle 12 is there a way to enforce the max length of function name (and constant-names) to be 30 chars only? (as in oracle 11g and priors)
Bauerhof
  • 155
  • 11
1
vote
1 answer

Internet Explorer: FileUpload control doesn't recognize files with long file names

You might think after reading this question that it is somehow unrealistic but the below situation is there in one of our production applications. One of our users reported that he is getting an error if he tries to upload files with too long names,…
Ahmed Atia
  • 17,848
  • 25
  • 91
  • 133
0
votes
1 answer

Scala method name length convention

I'm looking into code smells that have an impact on the readability of an application. I came across long method names and I was wondering if there is a convention for this. I've checked the naming conventions in the scaladocs but it didn't list…
RemcoW
  • 4,196
  • 1
  • 22
  • 37