Why is there a minimum character count for posting questions? o.O
Anyway, my question is as clear as can be from the title. Do you use int, bigint, tinyint, whatever.
It seems like a small thing I guess, I was just wondering what the usual practice is.
...
Duplicate: Do you use another language instead of english
Related: Coding in other (spoken) languages
Given a programming language (such as Java) that allows you to use non-ASCII identifiers (class, method, variable names), and an application written for non-English users, by developers who speak English only as a foreign language at v...
I've been trying to understand this example Ruby code from a blog entry which says it uses the symbols :DEFAULT, :say and :@message "to look up identifiers". But from what I can tell, it's not looking up the identifiers, but the values associated with those identifiers. I thought identifiers are names of variables, methods, etc. So the i...
What does the C++ standard say about using dollar signs in identifiers, such as Hello$World? Are they legal?
...
Basically, I have a list like: [START, 'foo', 'bar', 'spam', eggs', END] and the START/END identifiers are necessary for later so I can compare later on. Right now, I have it set up like this:
START = object()
END = object()
This works fine, but it suffers from the problem of not working with pickling. I tried doing it the following w...
In Java, there are methods called isJavaIdentifierStart and isJavaIdentifierPart on the Character class that may be used to tell if a string is a valid Java identifier, like so:
public boolean isJavaIdentifier(String s) {
int n = s.length();
if (n==0) return false;
if (!Character.isJavaIdentifierStart(s.charAt(0)))
return fa...
How can I train myself to give better variable and function names (any user-defined name in a program).
...
We have recently started using FxCop on our code base and I am in the process of evaluating the problems. One is the IdentifiersShouldNotMatchKeywords issue. This applies to a namespace company.blah.Event, which it wants me to change to something else as event is a keyword. The docs say:
When to Suppress Warnings
Do not suppress a wa...
I ran some code through an automatic translator for C# to VB, and it translated some code like this:
Public Property Title As [String]
How is this different to
Public Property Title As String
and why do both exist?
...
For example (in C):
int break = 1;
int for = 2;
Why will the compiler have any problems at all in deducing that break and for are variables here?
So, we need keywords because
we want the programs to be readable
we do not want to over-complicate the job of already complex compilers of today
but most importantly, a language is lot ...
I must be missing something simple here, but I'm having trouble retrieving data from a JSON array response. I can access objects with identifiers that start with letters, but not ones that start with numbers.
For example, I can access
data.item[0].specs.overview.details
But I can't access
data.item[0].specs.9a99.details
If anyone...
I have a snippet of code that looks like this:
double Δt = lastPollTime - pollTime;
double α = 1 - Math.exp(-Δt / τ);
average += α * (x - average);
Just how bad an idea is it to use unicode characters in Java identifiers? Or is this perfectly acceptable?
...