Microsoft June 2017 Security Rollup Woes

Let me set the scene for you.It's the morning of June 14th, 6:30am to be exact, and we're going to make a standards deployment. You know how I know? Because it's Wednesday. And Wednesday morning is the morning that we usually make standards deployments. Monday is just too…

Read this article

Coding Standards Should Not Matter

Yeah that's right. That behemoth of a document that you call your standards document just does not matter. Now that's a pretty bold statement, so let me explain.I believe that a standards document should be about how to style code. It should be about where to place curly braces,…

Read this article

The Rules Pattern (How to Drop Your Guard)

In your travels as a programmer, you will more than likely come across a body of code that looks a little something like the following:public bool CheckSystem(Computer computer) { if (computer.Ghz < 3) { return false; } if (computer.Ram < 4) { return false; } if (computer.DiskSpace < 10) { return…

Read this article

Who Moved My Cheese?!

Earlier this morning, I was reminded of an incident that I had with a customer a couple years ago. It went a little something like this:I was working on a web application. It consisted of a tabular grid that displayed information based on search criteria. Very similar to anything…

Read this article

A Comment on Comments

Full disclosure, I really don't like comments.Like any feature of a language, I believe they have their purpose. After all, they were put in the language in the first place. I've just seen a lot of incorrect uses of comments, and the more I run into them, the more…

Read this article

IIS Debugging Roulette

It's a typical day in the office. You've spent your day writing top notch unit tests and elegant code. You sit back, marvel at what you have accomplished and decide, being that good developer that you are, that maybe you should do some functional testing.You navigate to the Debug…

Read this article

Keep Your Collection Setters Private

When exposing properties of a class, you may find yourself immediately exposing a public getter and a public setter. This is a very common approach, especially in anemic models. However, this approach can be problematic when applied to collections. Allowing consumers of your collection to freely modify the entire collection…

Read this article

Prefer readonly to const

I was recently reading Effective C# by Bill Wagner. In the book, the author makes the statement that we should prefer readonly to constants. I wasn't immediately able to piece together why we should, I mean, what's even the difference between the two? To answer this, let's first discuss how…

Read this article

Design Patterns Are Solutions

I believe there comes a point in every budding software developers career, when they will decide that they should learn design patterns. After all, there is more to developing than copying and pasting code from stack overflow, right? They want to be able to engineer their own solutions.However, the…

Read this article