396 reputation
226
bio website
location
age
visits member for 3 years, 1 month
seen Apr 4 at 12:23

Apr
22
answered Logging failed login attempts exposes passwords
Apr
4
awarded  Nice Answer
Apr
4
comment What's the best practice for naming uploaded images?
@Kolyuny, that's true, in the sense that guaranteed global uniqueness is not a property that even GUIDs have in real life, (even v1 guids are busted due to the issuance of duplicate MAC addresses). All you can get is a statistical likelihood of uniqueness. But you can ensure uniqueness by checking if the file already exists (atomically using CreateFile with CREATE_NEW), and using different randomness if it does.
Apr
4
awarded  Yearling
Apr
4
answered What's the best practice for naming uploaded images?
Sep
27
comment Case insensitive keywords in a language
@DavidThornley, that is what the UNICODE database is for. Do you really want e followed by composing acute accent to be different from e-acute? I think not. So you have to canonicalise first, which means you need a unicode library which will make it easy to case-fold.
Sep
27
comment Case insensitive keywords in a language
@Kaz, if you don't pay your bill they will send you a demand for sure.
Sep
26
comment Case insensitive keywords in a language
@DavidCowden, I at no point called Kaz foolish. I agree one should always use the same case wherever one uses an identifier. Kana difference is more significant than case difference, just as accent difference is more significant than case difference. However just as it is silly to have two identifiers which differ only by case, it is also silly to have two identifiers which differ only by kana or by accent. It makes more sense to forbid identifiers differing only by kana or accent than to treat them the same, but it makes very little sense to treat them as different.
Sep
26
comment Case insensitive keywords in a language
@Kaz, in most countries, you do not have to pay any bill until you recieve a demand for payment, the form of which is prescibed by law. It doesn't necessarily have to be in paper form to be valid, but there are requirements it must meet.
Sep
26
awarded  Commentator
Sep
25
comment Case insensitive keywords in a language
"How about French: do you consider È and è to be equivalent? Or Japanese? Do you consider hiragana and katakana to just be cases, so that ファイル and ふぁいる are the same identifier?" The answer is "yes", and it's only folly if you think other people's cultures are foolish.
Sep
24
comment Case insensitive keywords in a language
@delnan """I can have multiple identifiers differing in case, but denoting very different things """ TRWTF help anyone who has to deal with THAT.
Sep
24
comment Case insensitive keywords in a language
@WinstonEwert, I would call it o. It really doesn't matter what you call it since it is just a parameter name. As long as it isn't offensive or illegal, or liable to cause confusion.
Sep
24
comment Case insensitive keywords in a language
@delnan, according to the Supreme Court of the United States of America, computer languages are an expressive language designed to be understood by both computers and humans (when ruling that computer code is protected by the first amendment). They are not English, but they are a language, and saying "BOB" is different from "bob" is different from "Bob" is idiotic in any language intended to be used by humans. Yes, we can learn to cope with it, but that is no excuse whatsoever.
Sep
24
comment Case insensitive keywords in a language
@delnan, consistent casing is good, and editors should HELP by auto-correcting to match the declaration. The language shouldn't HURT by punishing TYpographical ERorrs of very common kinds. We both know how those bugs should be fixed, and so does the language designer - they've just taken a deliberate decision to be awkward about it. That's a BAD THING.
Sep
24
comment Case insensitive keywords in a language
Since it is a scripting language, it is a no-brainer - case insensitivity is the way to go. Why be case-sensitive? If the answer is "to be like C and Java", is that really a good reason?
Sep
24
comment Case insensitive keywords in a language
@delnan, Yes, a wrong answer will often contradict a right answer, I find. Lots of posters have explained how case sensitive languages hurt the user. Now you need to explain how case *in*sensitive languages hurt the user. codinghorror.com/blog/2005/12/…
Sep
24
awarded  Critic
Sep
24
comment Case insensitive keywords in a language
+1 for "will this difference be meaningful to the user". The user matters most of all.
Sep
24
comment Case insensitive keywords in a language
Why would you name an object object? That's just asking for trouble.