1,065 reputation
48
bio website
location
age
visits member for 3 years, 3 months
seen Oct 14 '13 at 21:46

Jan
18
awarded  Yearling
Dec
19
awarded  Good Answer
Apr
25
comment Why use try … finally without a catch clause?
@ScottWhitlock There is no difference at all, in fact, so long as you understand exactly how it's defined to work. The with construct is simply defined to construct the IDisposable object before the entry to try. If that's not what you want, you're free to use the try construct directly in a different way, say, by constructing the IDisposable object inside the try (and checking for null in the finally).
Jan
18
awarded  Yearling
Aug
1
comment Storing plaintext passwords for detecting fraud
@James That's no longer a salt and no longer addresses any of the good security reasons for having a salt. Some people call that a "pepper" (e.g., github.com/plataformatec/devise).
Jun
28
answered Merge sort versus quick sort performance
Jun
16
comment What is the benefit of writing to a temp location, And then copying it to the intended destination?
If the temp directory is on a separate partition, you lose the atomicity.
Apr
28
comment Is use of finally clause for doing work after return bad style/dangerous?
The normal control flow speed is not significantly affected by the exception-handling constructs. The performance penalty is only paid when actually throwing and catching exceptions, not when entering a try block or entering a finally block in normal operation.
Feb
15
awarded  Nice Answer
Feb
2
comment Is it better idea to call an external command-line application or to internalize that application's logic?
Solving problems is great. Solving some problems while opening the door to other problems is not so great.
Jan
23
comment Why use try … finally without a catch clause?
Various languages have extremely useful language-specific enhancements to the try/finally construct. C# has using, Python has with, etc.
Jan
23
answered Why use try … finally without a catch clause?
Jan
18
awarded  Yearling
Jan
7
comment Why not use the word bug instead of exception?
+1 for defining your terms. In general, people should do that more often!
Jan
7
comment cost trade-offs for deploying changes to prod, stored procs vs. LINQ
The optimal solution is to forbid, on pain of termination, two applications sharing one database. Applications may share data only via public, exposed, documented APIs.
Dec
30
awarded  Nice Answer
Dec
25
answered Why does everybody write to-do comments in capital letters?
Nov
27
comment Software license restricting commercial usage like CC BY-NC-SA
Why do you want to forbid commercial use? And why are you asking that question on a commercial website which uses a whole lot of third-party free or open-source software ... for commercial use?
Nov
27
answered What web oriented language would work best with binary data?
Nov
15
comment What are the benefits of archiving?
Why is it wrong?