7,073 reputation
11334
bio website
location Juneau, AK
age 47
visits member for 3 years, 10 months
seen 12 mins ago

I have three wonderful kids, two boys and a girl. My wife is a treasure.


Sep
16
comment The importance of duplicate code removal
I was getting ready to make this exact point...
Sep
15
answered Is it okay to use exceptions as tools to “catch” errors early?
Sep
13
comment Is a long list of parameter checks an anti-pattern?
The check for null either needs to be relocated (and probably argument specific) or removed as A.Equals(B) will throw on A, B.Equals(A) will throw on B (and what's up with that, checking equality twice?) and linkType.BaseType will throw on linkType.
Sep
12
comment can a logic error happen way later than its cause?
@user61852: I think that is adequately covered by "cosmic rays". Either the hardware fault is no more under the applications control than cosmic rays are, or it's a failure to account for a possible failure. Back in the day, I wrote code to deal with the application disk suddenly not being available during an open dialog. Not really hardware fault, more user action, but same thing: you either account for it or you don't. Nowdays I don't, I don't go looking for it and if I encountered it, I'd probably say tough, get a hard drive, as that is by far the simpler solution.
Sep
12
comment can a logic error happen way later than its cause?
@Tim: (1) the assumption refers to the logic flaw. And (2) No. Flow refers to program flow -- additional functions called. Say you have a function that populates a list of strings as numbers, and a function that turns the elements of list of strings into a number and does some processing on it. If the first function mistakenly puts a non number into the list, the second will crash. logic error in first function, runtime error in second. These functions could be the same function, in which case flow-wise they are very close, but with a large list, possibly very far apart in time.
Sep
12
answered can a logic error happen way later than its cause?
Sep
6
answered Do else blocks increase code complexity?
Aug
28
awarded  Good Answer
Aug
28
comment How to verify that library assemblies originate from a given Web site?
@FrankHileman: But an additional signature does not require that the dll be downloaded from a specific web site.
Aug
28
answered How to verify that library assemblies originate from a given Web site?
Aug
25
answered How would you rewrite/refactor this ?
Aug
4
answered Why does Microsoft still ship VBA within Office products, instead of integrating .NET directly?
Aug
3
answered What's the difference between an API and an SDK?
Jul
26
comment Why do executables depend on the OS but not on the CPU?
You should mention that both java and .net are examples of using an intermediate format -- intermediate formats are very popular today, and not just a relic of a 1970's system that ran off of 5 1/4 floppies.
Jul
4
comment Is it OK to let invalid arguments slip to another method?
@LeopoldAsperger: true, they are much more likely to simple ignore it if it's negative. Frankly I halfway consider it a bug that it throws an exception now.
Jul
4
comment Is it OK to let invalid arguments slip to another method?
@LeopoldAsperger: it doesn't make sense to you, but List could be changed so that negative values have meaning -- it could for instance be a flag that changes the way reallocation works. So that instead of doubling when necessary it only increases it by 50% or conversely by 3x.
Jul
4
answered Is it OK to let invalid arguments slip to another method?
Jun
19
comment Is it beneficial to study past the basics of a core language when the primary goal is to rely on its framework?
I would say that this IS another "How much" question -- it certainly has the same answer which is that its a sliding scale depending upon your exact circumstances.
Jun
17
answered How much information about an error should be shown to the user?
Jun
16
answered Is my work on a developer test being taken advantage of?