403 reputation
236
bio website
location
age
visits member for 3 years, 10 months
seen Nov 24 at 19:29

Nov
6
awarded  Yearling
Nov
6
answered Should I throw std::bad_alloc?
Nov
6
comment Should I throw std::bad_alloc?
Why are you doing this? Looks like an x/y problem.
Nov
5
answered Designing a system to archive databases with referential integrity
Nov
4
comment Should a getter throw an exception if its object has invalid state?
"Do the thing that is easiest to reason about. " That. That
Sep
22
comment Why don't developers make installation automatic on windows?
On windows the standard is MSI which does everything including walk your dog, if you give it your home address. A basic MSI installation goes "Do you want to install this?" "Doing it...", "OK, done". And you can go all the way up to picking install-on-demand features albeit that is becoming irrelevant as storage prices fall.
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.