Monthly Archives: October 2015

How not to use dependency injection frameworks

Just like any tool, a DI framework can be misused. Here’s a quick guide to understand why you might want such a tool and how to avoid shooting yourself in the foot with it. The goal Inversion of Control (IoC) is … Continue reading

Posted in Principles | Tagged , , , | Leave a comment

SOLID refresher

Single Responsibility This principle says a module should have precisely one reason to change. Encapsulate sources of high uncertainty first. If it’s highly likely to change, make sure it can change separately from other things. Open Closed My previous post goes … Continue reading

Aside | Posted on by | Tagged | Leave a comment

Evil Regexes

Server side input validation is an essential part of basic web security. Most people use regexes to deal with this. But if you’re not careful, your input validation could be used to denial of service attack your server. Problem Take … Continue reading

Posted in C# | Tagged | Leave a comment