1,085 reputation
48
bio website
location
age
visits member for 3 years, 5 months
seen Jun 9 at 5:00

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).
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
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
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
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.
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
15
comment What are the benefits of archiving?
Why is it wrong?
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").
Oct
13
comment Should the build drive your tags or should the tags drive the build?
Not only should backward-incompatible be classed as "major change", such changes should be forced by versioning policy to be batched together into a painful single major upgrade rather than strung through a long and painful sequence of minor upgrades. Semantic versioning does this.
Sep
27
comment Would using AJAX extensively improve server performance?
That is how front-end guys and designers use the term "render". Not how app-server programmers use the term "render". See, e.g., the prevalent use of rendering views, rendering text or raw bytes, etc, in Rails.
Sep
27
comment Would using AJAX extensively improve server performance?
AJAX would cause more requests than doing the same thing without AJAX in cases like: your main layout has "holes" but is delivered with those holes to the browser, and those holes are "filled" using AJAX. See e.g. Facebook.
Sep
27
comment Would using AJAX extensively improve server performance?
Starting from view/template, combining it with variables, and rendering raw HTML from it.
Jul
28
comment Ruby on Rails: Converting a Rails 3 app to Rails 2?
Migrating servers might be less painful.
May
6
comment Is it legal for me to contribute to open source software while employed?
The person running the possibly-now-tainted project.
May
6
comment Is it legal for me to contribute to open source software while employed?
This has the potential to cause BIG PROBLEMS for the unfortunate poor soul who has to deal with the potential for lawsuits that your advice caused.
May
4
comment Ruby: The Bad Parts
If what you need in a language is raw speed (e.g. number crunching), then Ruby is not your best choice. Although you may want to keep an eye on JRuby and Rubinius, two new implementations of the Ruby language, which bring to bear the optimizing capabilities of the JVM and the LLVM respectively.
May
4
comment Packaging F#/C# Application
I have used WiX in the past on a simple project. It works.