941 reputation
512
bio website
location
age 32
visits member for 3 years, 1 month
seen Sep 17 at 15:12

Aug
29
comment Asking for a code sample of the company at an interview
It is still useful to see if they can cherry pick good code to show you. The most frustrating part of dealing with bad code often is that no one recognizes it is bad and should be fixed.
Jul
6
comment Sharing ideas without risk of leaking
If only it were that easy to get Google to adopt my ideas by discussing them with Google Docs.
May
17
comment Interpretation of DRY principle
To account for the possible combinations of values for the booleans dosomething and dosomething2, you would need 4 functions, not 2, in addition to the base createTrajectoryFromPoint function. This approach does not scale well as the number of options increases, and even naming the functions gets tedious.
May
14
comment How safe is it if I store passwords in app.config in C# .net 4
Since the question was about app.config, not web.config, I suspect this is for a desktop application, and the "hacker" doesn't even need to compromise a web server.
Mar
22
comment Do you sign contracts digitally or still on paper? And what do clients think?
It seems relevant to ask what sort of digital signing, if any, has been upheld in court cases.
Jan
6
comment How do you validate critical input that cannot be vetted?
@AveryPayne Can you cancel printing once it is started? You could instead have a non blocking screen indicating the number of pages (computed in parallel with getting the printing started) with an option to cancel if it wasn't what the user meant to do, so you only waste a few pages while the user realizes the mistake.
Jan
6
comment Is it ok to call external services or database inside the entity
Is there any particular reason you don't like have a step load data from an external data source?
Jan
5
comment Google Closure Compiler - what does the name mean?
@MarkTrapp It appears to me that Mike noticed a technical term in the name of a tool he was using/evaluating, and wondering if that word was indicating some fact or insight he was missing. As such it seems appropiate to ask what is going on. The specific problem to be solved is potential confusion about the tool.
Jan
4
comment Wrapping a 3rd party API - Gateway Pattern connections
@Pete The pro is that it simply does what you want: allowing multiple objects to expose different aspects of the same instance of a 3rd party object. The cons are either inherent in what you want (you have to insantiate multiple wrapper objects to use the 3rd party API) or relative to the pros of other, as yet unspecified, approaches.
Dec
21
comment Long File Extensions: Why Not
File extensions also allow the same folder to contain "foo.dll" and "foo.pdb". If you try to replace that system with naming each file just "foo" with meta data indicating that they are respectively compiled code and metadata about that code relevent to debugging, you get a name collision.
Dec
2
comment Is there a formula to figure out the total execution time of sequential asyncronous processes?
@CharlesLambert You still have a problem. Since the last step does not dequeue its items, the condition (Count==0) is not always true when there are no items to process. After the last step processes the first item, it immediately starts processing the the second item which it has not yet received.
Dec
2
comment Is there a formula to figure out the total execution time of sequential asyncronous processes?
@CharlesLambert Your simulation program is wrong. In each tick, it advances the progress of all steps, even those that have no item to work on.
Nov
28
comment Good, simple reasons for having multiple environments
How has there not yet been a critical issue? If applications are being developed in production environments, it should be common (and is common in normal dev enviroments) for basic mistakes to disable features, cause error conditions, and even crash the entire application. Is the application so non-mission-critical that these problems are not critical failures?
Nov
4
comment Local Stack vs Call Stack
@Pubby Often there is no benefit, especially if you are using a functional language with compiler optimizations related to recursion. If you are using a language like javascript, there can be performance benefits, though beware premature optimizations. An explicit stack can also be more elegant in some ways, a depth first traversal of a tree using an explicit stack can be changed into a breadth first traversal be replacing the stack with a queue.
Nov
4
comment Local Stack vs Call Stack
@Mason I found the comments searching for "LKM".
Nov
3
comment In .net, why can't values of intrinsic data types (such as DateTime) be null?
@Conrad, I would I agree that value types are not meant to have null values, and that I discussed more about how they don't have null values.
Nov
3
comment In .net, why can't values of intrinsic data types (such as DateTime) be null?
@Conrad, the point of talking about the "binary representation" is not that it is binary, but that it is a concrete low level thing that maps to the abstract high level values of the type, and I wanted to talk about the mapping.
Nov
3
comment In .net, why can't values of intrinsic data types (such as DateTime) be null?
@Conrad, .Net languages such as C# provide syntactic sugar for the Nullable<T> type to allow treating a Nullable<T> value with HasValue = false the same as a null reference type. However, having worked with MSIL code directly, I can tell you there are differences. Like if I want to load a null value for a reference type onto the stack, I can use "ldnull", but this does not work for Nullable<T>.
Nov
3
comment In .net, why can't values of intrinsic data types (such as DateTime) be null?
@Conrad, yes the Nullable<T> type itself defines representations for null. This a feature of that particular type and not of value types, like null values are a feature of reference types. I meant to answer the question of why in general value types cannot be null, not claim that you couldn't make a value type that could represent null.