| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 2 years, 4 months |
| seen | Apr 25 at 15:24 | |
| stats | profile views | 21 |
|
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? |
|
Nov 12 |
answered | What are some best practices for cookie based web authentication? |
|
Nov 10 |
comment |
Is cloud computing just a way of renting resources? When an org is its own provider, the provider wing of the org incurs capital expenditures to build the cloud service. However, usage of the cloud service requires no capital expenditure. Orgs often do internal billing, where if division A wants services from division B, division A pays division B for it internally. The phrase "billed like a utility" applies to these orgs. Orgs which provide free cloud services to user divisions do not bill, so that item applies but is overridden by "services which are free"). |