Archive for the ‘Programming’ Category

I’ve stopped using regions in my code.  And, to be honest, I’ve never looked back.  I don’t need them, don’t even miss them.  In fact, the more I go on coding without attempting to group my methods, properties, etc., into sections of magically collapsible text, the more convinced I am that regions are unnecessary. Requisite […]

I was recently performing an ad hoc code review of a custom DLL when I saw what, in my opinion, was an over abundance of exceptions.  I went back to the developer and proceeded to discuss how we could refactor-away various exceptions, shorten certain Try/Catch blocks, possibly even mitigate them altogether, etc. The developer, whom […]

I’ve been reading a lot interesting posts lately around Test-Driven Development adoption, or the lack thereof, the collective synopsis of which goes something like: TDD is too difficult and cumbersome to gain widespread traction.  It needs to change if it is to get anymore mindshare among developers. Roy Osherove makes a compelling argument that developers […]

Here’s a trick question for the developers out there: What’s wrong with this code? public class SomeClass { public string GiveMeAnObject(object someObject) { return someObject.ToString(); } } The title of this post gives it away, but technically there’s absolutely nothing wrong.  It compiles just fine.  And it runs just fine… as long as it’s given […]

Full Disclosure – This is the third attempt at posting this list, which was originally framed in a way that seriously just did not work.  The list is still the same, but minus it’s original context which, while intended to be opinionated in a humorous way, unfortunately just created a woeful distraction. I’ll admit it.. […]