Why you should profile

So I’m a bit behind on my blog reading and I came across this post by Keyvan Nayyeri via The Morning Brew. In it, he goes on to compare the performance of DateTime.Now versus DateTime.UtcNow. Now, to be fair, I did not know that DateTime.Now was that much more expensive then Date.UtcNow. I mean, hey, [...]

Mocking Membership provider

So as usual with so many of .NET 1.0 to .NET 2.0 era classes, Microsoft have made it near impossible to mock out MembershipProvider. The MembershipProvidersCollection class is read-only so you can’t just add your own provider at runtime. No matter! After some time with Reflector and some twiddling with reflection I came up with [...]

Visual XPath

Found a pretty cool tool that I thought I’d share. One of my co-workers introduced me to Visual XPath. I could really have used this when I was working heavily with XML awhile back. It does have a few flaws (like it apparently doesn’t handle nested namespaces so well) but it suits me down to [...]

I had a problem with our build process at work the other day. For reasons I won’t go into, our source control is on a different network from the build server and the developers. This means checking out the full source everytime takes too long. So the first solution was not to use the “cleanCopy” [...]

3 things to learn from LINQ to SQL

If I’d been starting a data-based application a year ago, I think I would have chosen LINQ to SQL (L2S). Regarding the slightly confusing news that L2S is dead and the subsequent response to it, I would be pretty pissed if I had made that choice. So what can we learn? Here’s my take. 1. [...]

« Previous Entries  Next Page »