Reputation
3,112
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
11 25
Newest
 Nice Answer
Impact
~102k people reached

1d
answered How to store passwords which need to be re-read
Jun
27
answered Eclipse plugins - safe to install?
Jun
25
comment How to avoid calling String.Replace() in a loop?
If performance is a major concern, Phil Haack rewrote it without regular expressions . Though at that point it's probably not that different from what I'd expect you to come up with by following the advice of the current answers, other than the use of databinder to support complex named parameters.
Jun
25
comment How to avoid calling String.Replace() in a loop?
If your only justification for avoiding String.Format is lack of named parameter support, consider using James Newton's FormatWith2.0 code instead. It's a very simple wrapper around String.Format that uses a regex to convert arbitrary named parameters to ordinal parameters. It even supports complex named parameters (e.g., {Results[0].Name}).
Jun
23
comment Using auto-increment clustered key and guid primary key together
@kirie: It still makes no sense to me. I guess you could have only an objectGuid foreign key that mapped to multiple tables, but that's horribly confusing, very inefficient, and doesn't work well unless the tables you are joining to are similar. A database with that sort of design should probably be a document database, not a relational database.
Jun
23
comment Using auto-increment clustered key and guid primary key together
An identity column int key is also unique within the table, so #1 is not normally valid.
Jun
22
comment Using auto-increment clustered key and guid primary key together
@Crono: You may want to also investigate the use of Sequential GUIDs, which fix some of the performance problems of standard GUIDs...on condition that they're mostly generated by the same machine. The other alternative is a Comb Guid, which is performant even when used on multiple machines...but has less native support.
Jun
18
comment Cost estimation in software engineering
@Mingebag: It's not screwing the customer. We don't know what your initial estimate is, but we know it's too low.
Jun
12
awarded  Nice Answer
Jun
12
answered How Do News Websites E.g. Forbes / Zdnet Seamlessly Merge One Webpage into Another?
Jun
10
comment Are (basic) SQL queries semantically equivalent to Higher Order Functions?
@Sridhar-Sarnobat: Normally, when a bunch of users vote to migrate your question to Programmers.SE, it will automatically be migrated. You closed your question before it reached the requisite 5 votes.
Jun
3
comment If possible, would it be a bad practice to use Nullable for non value types?
See also Jon Skeet's NonNullable<T> class inside of miscutil. It has a several features a production implementation of NonNullable should include (equality Operators, GetHashCode, and implicit conversions). I recommend any implementation of Maybe have these same features. Skeet does use a struct, though this also doesn't prevent a null NonNullable.
Jun
2
comment Is there a hashCode()-like method that can be used for state checking?
@LinkTheProgrammer: I encourage you to read Eric Lippert's Guidelines and rules for GetHashCode. It was written from the perspective of C#, but the guidelines are basically the same.
May
27
answered If I have a method that needs verification in order to proceed, do I call it inside the method or before?
May
13
comment How Do I Create A Module* For A Class That Relies On Another Module?
@Carcigenicate: Yes, my interface proposal is intended to allow external callers to tell any implementor of ICanRandomWalk to randomly walk. I admit this is slightly annoying in that every implementer of ICanRandomWalk must copy/paste an identical implementation of the randomwalk function. You could instead pass position to RandomWalk's constructor, though this means RandomWalk contains state information.
May
13
comment Smallest and Largest contiguous repeating sub-sequence in a sequence
@david.pfx: In the OP's example, the repeated pairs are 3,6, 6,17, 17,19, and 19,3. Your answer does not make it clear how/why you are ignoring 17,19 and 19,3.
May
13
answered How Do I Create A Module* For A Class That Relies On Another Module?
May
13
comment Should I prefer properties with or without private fields?
#1 - Most serializers ignore private properties/fields by default; I've never encountered the issues you mention. #2 - This is fixed in VS2015 and can be worked around in VS2013. See this Visual Studio Magazine article.
May
11
comment Why is iterating through List<T> more expensive than iterating through Array in .NET?
Loop iteration cost is normally irrelevant for non-trivial loops; the inside of the loop tends will normally have much higher cost than loop iteration.
May
5
comment Is my usage of explicit casting operator reasonable or a bad hack?
@Neil: No, by default using an extension method avoids coupling entirely, since an extension method would lack the ability to access private members either of the two objects.