Reputation
4,342
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
2 18 39
Newest
 Nice Answer
Impact
~98k people reached

Feb
28
comment Configuration data: single-row table vs. name-value-pair table
@John: Good idea, if hierarchical structures are needed. If they aren't, it's just option 2 with added complexity.
Jan
21
comment Is it a good practice to use List of Enums?
Related SO question on HashSet<MyEnum> vs. flags enums: stackoverflow.com/q/9077487/87698
Sep
3
comment Why does ISO 8859-1 contain letter-free diacritics?
Good point about the printers, but are you sure that there were terminals which supported showing two characters on top of each other (rather than replacing the first one with the second one)?
Sep
2
comment Why does ISO 8859-1 contain letter-free diacritics?
@KarlBielefeldt: Good point. :-)
Sep
2
comment Why does ISO 8859-1 contain letter-free diacritics?
@BasileStarynkevitch: Curiosity -- I like to learn from history. Of course I use UTF-8 everywhere today!
Mar
20
comment Why aren't field-like events implemented as a list of delegates?
@JeppeStigNielsen: At least with C# 6.0 and the Elvis operator, the null check won't be necessary anymore: MyEvent?.Invoke(this, e);
Mar
15
comment Why aren't field-like events implemented as a list of delegates?
Yes, that's exactly my question: Why did they choose a (custom) list representation with an utterly inconvenient 0-element case instead of a (default) list with a convenient 0-element case?
Feb
28
comment Am I designing software or architecting software?
I doubt there is a formal definition for job titles such as "software designer" or "software architect". Choose whatever buzzword you would like to see on your CV.
Dec
14
comment Should I use .ToString() when concatenating string and integer variables in C#?
Side note: In VB.NET, this ambiguity is avoided by having an explicit string concatenation operator: "Expression: " + a will throw a compile time error (with Option Strict On), "Expression: " & a will perform string concatenation.
Apr
28
comment Static linking with modified LGPL code
@TacB0sS: It means that if you statically link MyApp.obj to SomeLgplLibrary.lib to create MyApp.exe, you need to provide MyApp.obj, so that the user can replace SomeLgplLibrary.lib with SomeCompatibleLgplLibrary.lib and re-link MyApp.exe.
Apr
28
comment Static linking with modified LGPL code
@TacB0sS: "(not necessarily source)" applies to your application, whereas "has the opportunity to modify" applies to the library.
Apr
19
comment What is meant by a primitive data type?
...and the wink illustrates the (obvious) implication that his definition of a primitive type is not particularly in the context of C#.
Apr
19
comment What is meant by a primitive data type?
@barlop: My comment starts with "Then...", so please read it in context: Josh said that by his definition, C#'s int is not a primitive type, and I replied that, in that case ("then"), none of C#'s types were primitive, since none meets his definition of primitive.
Jan
29
comment Are classes with only a single (public) method a problem?
Related (almost a duplicate): programmers.stackexchange.com/q/175070/33843
Nov
21
comment Dictionary of objects
Due to floating-point inaccuracies, I'm not sure if double is a wise choice for a dictionary key.
Nov
12
comment In retrospect, has it been a good idea to use three-valued logic for SQL NULL comparisons?
@DanielB: That was exactly the point of my question: From a mathematical point of view, it all makes perfect sense. However, from a practical point of view, does it really make life easier for developers?
Nov
7
comment In retrospect, has it been a good idea to use three-valued logic for SQL NULL comparisons?
PS: I know that this borders on "too broad" and "opinion-based", but I've tried to make it as answerable as possible. It is not meant as a rant, but as a genuine question.
Oct
21
comment I've been told that Exceptions should only be used in exceptional cases. How do I know if my case is exceptional?
Nice idea! One drawback: In your example, validation is actually performed twice: Once during Validate (returning False if invalid) and once during Save (throwing a specific, well-documented exception if invalid). Of course, the validation result could be cached inside the object, but that would add additional complexity, since the validation result would need to be invalidated on changes.
Sep
12
comment Hiding query strings logically?
@ratchetfreak: Please elaborate. I'm quite familiar with web.config, yet I do not see the relevance of your comment to the question.
Sep
12
comment What can multiple threads do that a single thread cannot?
@ColeJohnson: A deadlock is an implementation detail. The visible output is "not halting", which is easily doable with a single thread.